home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.uv.es
/
2014.11.ftp.uv.es.tar
/
ftp.uv.es
/
pub
/
biologia
/
distanc_.exe
/
HELP.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-03-18
|
18KB
|
318 lines
UNIT Help;
INTERFACE
USES Crt;
PROCEDURE HelpPag1;
PROCEDURE HelpPag2;
PROCEDURE HelpPag3;
PROCEDURE HelpPag4;
PROCEDURE HelpPag5;
PROCEDURE HelpPag6;
PROCEDURE HelpPag7;
PROCEDURE HelpPag8;
PROCEDURE HelpPag9;
PROCEDURE HelpPag10;
PROCEDURE HelpPag11;
PROCEDURE HelpPag12;
PROCEDURE HelpPag13;
PROCEDURE HelpPag14;
PROCEDURE HelpCommandLine;
IMPLEMENTATION
PROCEDURE HelpPag1;
begin
textcolor (white);
GotoXY(12,2); write ('INDEX. (Page 1)');
textcolor (green);
GotoXY(2,3); write ('');
GotoXY(2,4); write ('Page 1. Index.');
GotoXY(2,5); write ('Page 2. Phylip New input -interleaved- format. Example.');
GotoXY(2,6); write ('Page 3. Phylip Old input -aligned- format. Example.');
GotoXY(2,7); write ('Page 4. MSF input format. Example.');
GotoXY(2,8); write ('Page 5. Methods to compute distances (Jukes-Cantor).');
GotoXY(2,9); write ('Page 6. Methods to compute distances (Kimura 2).');
GotoXY(2,10); write ('Page 7. Methods to compute distances (Kimura 3).');
GotoXY(2,11); write ('Page 8. Methods to compute distances (Kimura 4).');
GotoXY(2,12); write ('Page 9. Methods to compute distances (Kimura 6).');
GotoXY(2,13); write ('Page 10. Methods to compute distances (Tajima and Nei).');
GotoXY(2,14); write ('Page 11. Bases to use.');
GotoXY(2,15); write ('Page 12. Code tables.');
GotoXY(2,16); write ('Page 13. Output.');
GotoXY(2,17); write ('Page 14. Some important notes. Future.');
end;
PROCEDURE HelpPag2;
begin
textcolor (white);
GotoXY(12,2); write ('PHYLIP NEW INPUT -INTERLEAVED- FORMAT. EXAMPLE. (Page 2)');
textcolor (green);
GotoXY(1,3); write ('4 100',chr(20));
GotoXY(1,4); write ('HLPH3 TGGGAAAAGT TCTCCAGCCA ACCCAAGTTC GAAAGAGATT TGTTCTACCA',chr(20));
GotoXY(1,5); write ('RLPH3 TGGGAGAAGT TCTCCAACCA GACCAAGTTT GAAAGAGACT TGTTCTATCA',chr(20));
GotoXY(1,6); write ('HLPH4 ---------- ---------- ---------- ------GATG AGTTTCTGTA',chr(20));
GotoXY(1,7); write ('RLPH4 ---------- ---------- ---------- ------GATG AGTTCGTGTA',chr(20));
GotoXY(1,8); write (chr(20));
GotoXY(1,9); write ('CGGGATGACT TTCTGTGGGG CGTGTCCTCT TCCGCTTATC AGATTGAAGG',chr(20));
GotoXY(1,10); write ('CGGGATGACT TCCTGTGGGG CGTGTCCTCT TCAGCGTATC AGATTGAAGG',chr(20));
GotoXY(1,11); write ('CCTGAGGGCT TCATCTGGAG TGCAGCTTCT GCTGCATATC AGATTGAAGG',chr(20));
GotoXY(1,12); write ('CCTGAGGGCT TCGTGTGGAG TACATCTACT GCTGCATTTC AGATCGAAGG',chr(20));
GotoXY(1,13); write (chr(20));
textcolor (white); GotoXY(1,16); write ('IMPORTANT NOTES:'); textcolor (green);
GotoXY(1,17); write ('-Species names must be ten chars long, completed with blanks if necessary.');
GotoXY(1,18); write ('-The line length is not relevant.');
GotoXY(1,19); write ('-There must be a blank line between blocks of species.');
end;
PROCEDURE HelpPag3;
begin
textcolor (white);
GotoXY(12,2); write ('PHYLIP OLD INPUT -ALIGNED- FORMAT. EXAMPLE. (Page 3)');
textcolor (green);
GotoXY(1,3); write ('4 100',chr(20));
GotoXY(1,4); write ('HLPH3 TGGGAAAAGT TCTCCAGCCA ACCCAAGTTC GAAAGAGATT TGTTCTACCA',chr(20));
GotoXY(1,5); write (' CGGGATGACT TTCTGTGGGG CGTGTCCTCT TCCGCTTATC AGATTGAAGG',chr(20));
GotoXY(1,6); write (chr(20));
GotoXY(1,7); write ('RLPH3 TGGGAGAAGT TCTCCAACCA GACCAAGTTT GAAAGAGACT TGTTCTATCA',chr(20));
GotoXY(1,8); write (' CGGGATGACT TCCTGTGGGG CGTGTCCTCT TCAGCGTATC AGATTGAAGG',chr(20));
GotoXY(1,9); write (chr(20));
GotoXY(1,10); write ('HLPH4 ---------- ---------- ---------- ------GATG AGTTTCTGTA',chr(20));
GotoXY(1,11); write (' CCTGAGGGCT TCATCTGGAG TGCAGCTTCT GCTGCATATC AGATTGAAGG',chr(20));
GotoXY(1,12); write (chr(20));
GotoXY(1,13); write ('RLPH4 ---------- ---------- ---------- ------GATG AGTTCGTGTA',chr(20));
GotoXY(1,14); write (' CCTGAGGGCT TCGTGTGGAG TACATCTACT GCTGCATTTC AGATCGAAGG',chr(20));
GotoXY(1,15); write (chr(20));
textcolor (white); GotoXY(1,16); write ('IMPORTANT NOTES:'); textcolor (green);
GotoXY(1,17); write ('-Species names must be ten chars long, completed with blanks if necessary.');
GotoXY(1,18); write ('-The line length is not relevant.');
GotoXY(1,19); write ('-The ten blank spaces below the species names are not relevant.');
GotoXY(1,20); write ('-There must be a blank line between sequences.');
end;
PROCEDURE HelpPag4;
begin
textcolor (white);
GotoXY(12,2); write ('MSF INPUT FORMAT. EXAMPLE. (Page 4)');
textcolor (green);
GotoXY(2,3); write (' **** ANYTHING UNTIL THE "//" IN THE NEXT LINE ****');
GotoXY(2,4); write ('//',chr(20));
GotoXY(2,5); write (chr(20));
GotoXY(2,6); write (' 1 50',chr(20));
GotoXY(2,7); write ('HLPH3 TGGGAAAAGT TCTCCAGCCA ACCCAAGTTC GAAAGAGATT TGTTCTACCA',chr(20));
GotoXY(2,8); write ('RLPH3 TGGGAGAAGT TCTCCAACCA GACCAAGTTT GAAAGAGACT TGTTCTATCA',chr(20));
GotoXY(2,9); write ('HLPH4 .......... .......... .......... ......GATG AGTTTCTGTA',chr(20));
GotoXY(2,10); write (chr(20));
GotoXY(2,11); write (' 51 100',chr(20));
GotoXY(2,12); write ('HLPH3 CGGGATGACT TTCTGTGGGG CGTGTCCTCT TCCGCTTATC AGATTGAAGG',chr(20));
GotoXY(2,13); write ('RLPH3 CGGGATGACT TCCTGTGGGG CGTGTCCTCT TCAGCGTATC AGATTGAAGG',chr(20));
GotoXY(2,14); write ('HLPH4 CCTGAGGGCT TCATCTGGAG TGCAGCTTCT GCTGCATATC AGATTGAAGG',chr(20));
GotoXY(2,15); write (chr(20));
textcolor (white); GotoXY(1,16); write ('IMPORTANT NOTES:'); textcolor (green);
GotoXY(1,17); write ('-Species names must be NINE chars long, completed with blanks if necessary.');
GotoXY(1,18); write ('-The line length is not relevant. -Deletions are represented by dots.');
GotoXY(1,19); write ('-There must be two blank lines between blocks of species. The numbers of the');
GotoXY(1,20); write (' bases in the second line are not relevant.');
end;
PROCEDURE HelpPag5;
begin
textcolor (white);
GotoXY(12,2); write ('METHODS TO COMPUTE DISTANCES (Jukes-Cantor). (Page 5)');
textcolor (green);
GotoXY(2,3); write ('1. Jukes-Cantor''s distance method:');
GotoXY(2,4); write (' 9p(1-p)');
GotoXY(2,5); write (' d = (-3/4) ln (1-(4/3)p), V (d) = ---------------,');
GotoXY(2,6); write (' ((3-4p)²) n');
GotoXY(2,8); write ('where d is the Jukes-Cantor distance, V the corresponding variance,');
GotoXY(2,9); write ('p the proportion of different nucleotides between two sequences,');
GotoXY(2,10); write ('and n the total number of nucleotides being compared.');
GotoXY(2,12); write (' This is a simple method for estimating the number of nucleotide');
GotoXY(2,13); write ('substitutions presented by Jukes and Cantor (1969).');
GotoXY(2,14); write (' Nucleotide substitutions are assumed to occur at all nucleotide');
GotoXY(2,15); write ('sites with equal probability, and, at any site, a nucleotide');
GotoXY(2,16); write ('changes to any other nucleotide with a constant rate.');
end;
PROCEDURE HelpPag6;
begin
textcolor (white);
GotoXY(12,2); write ('METHODS TO COMPUTE DISTANCES (Kimura 2). (Page 6)');
textcolor (green);
GotoXY(2,3); write ('2. Kimura''s two parameters distance method:');
GotoXY(2,5); write (' d = (-1/2) ln [(1-2P-Q) sqrt(1-2Q)]');
GotoXY(2,7); write (' V (d) = (1/n) [(a²P)+(b²Q)-(aP+bQ)²]');
GotoXY(2,9); write (' a = (1/(1-2P-Q)), b = (1/2) [(1/(1-2P-2Q)) + (1/(1-2Q))],');
GotoXY(2,11); write ('where d is Kimura''s 2 parameters distance, V its variance,');
GotoXY(2,12); write ('P the proportion of transitions, Q the proportion of transversions,');
GotoXY(2,13); write ('and n is the total number of nucleotides being compared.');
GotoXY(2,15); write (' This method was proposed by Kimura (1980). It allows transitional');
GotoXY(2,16); write ('and transversional substitutions to occur at different rates.');
end;
PROCEDURE HelpPag7;
begin
textcolor (white);
GotoXY(12,2); Write ('METHODS TO COMPUTE DISTANCES (Kimura 3). (Page 7)');
textcolor (green);
GotoXY(2,3); write ('3. Kimura''s three parameters distance method:');
GotoXY(2,4); write ('');
GotoXY(2,5); write (' d := (-1/4)*ln((1-(2*fp)-(2*fq))*(1-(2*fp)-(2*fr))*(1-(2*fq)-(2*fr))');
GotoXY(2,8); write ('where p is the proportion of different nucleotides between two sequences');
GotoXY(2,9); write ('and n the total number of nucleotides being compared.');
GotoXY(2,11); write (' This model, proposed by Kimura (1981), allows for one type of');
GotoXY(2,12); write ('transversional substitutions (fp) and two types of transitional');
GotoXY(2,13); write ('substitutions (fq and fr).');
end;
PROCEDURE HelpPag8;
begin
textcolor (white);
GotoXY(12,2); Write ('METHODS TO COMPUTE DISTANCES (Kimura 4). (Page 8)');
textcolor (green);
GotoXY(2,5); write (' This four-parameter model, proposed by Takahata and Kimura (1981),');
GotoXY(2,6); write ('allows for the two types of transversional substitutions at a');
GotoXY(2,7); write ('nucleotide site to occur at different rates. Moreover, the four');
GotoXY(2,8); write ('types of transitions can occur at different rates.');
GotoXY(2,10); write (' For further information about this distance see the references cited');
GotoXY(2,11); write ('in the file DISTANCE.DOC.');
end;
PROCEDURE HelpPag9;
begin
textcolor (white);
GotoXY(12,2); Write ('METHODS TO COMPUTE DISTANCES (Kimura 6). (Page 9)');
textcolor (green);
GotoXY(2,5); write (' This six-parameter model is based on the model originally');
GotoXY(2,6); write ('proposed by Kimura (1981), who called it the two frequency');
GotoXY(2,7); write ('class model. It was solved by Gojobori et al. (1982).');
GotoXY(2,10); write (' For further information about this distance see the references cited');
GotoXY(2,11); write ('in the file DISTANCE.DOC.');
end;
PROCEDURE HelpPag10;
begin
textcolor (white);
GotoXY(12,2); Write ('METHODS TO COMPUTE DISTANCES (Tajima and Nei). (Page 10)');
textcolor (green);
GotoXY(2,3); write ('6. Tajima and Nei''s distance method:');
GotoXY(2,5); write (' d = (-b)*ln(1-(p/b))');
GotoXY(2,7); write (' (b²)*p*(1-p)');
GotoXY(2,8); write (' V (d) = ------------------');
GotoXY(2,9); write (' ((b-p)²)*n');
GotoXY(2,11); write ('where d is Tajima and Nei''s distance, V its variance,');
GotoXY(2,12); write ('p the proportion of different nucleotides between two sequences,');
GotoXY(2,13); write ('and n the total number of nucleotides compared.');
GotoXY(2,15); write (' Tajima and Nei (1984) developed another method, the Four-Parameters');
GotoXY(2,16); write ('Method, which seems to be quite insensitive to various disturbing factors,');
GotoXY(2,17); write ('in which each nucleotide is substituted by another at a fixed rate');
GotoXY(2,18); write ('for each substituting nucleotide.');
GotoXY(2,19); write (' For further information about this distance see the references cited');
GotoXY(2,20); write ('in the file DISTANCE.DOC.');
end;
PROCEDURE HelpPag11;
begin
textcolor (white);
GotoXY(12,2); Write ('BASES TO USE. (Page 11)');
textcolor (green);
GotoXY(2,4); write ('In this step, the bases in each codon to use in computations are chosen.');
GotoXY(2,5); write (' You can choose to compute distances in each combination of bases in');
GotoXY(2,6); write ('DNA sequences (all bases [default], first base, second base, third base,');
GotoXY(2,7); write ('the aligned first and second bases, first and third bases, and second and');
GotoXY(2,8); write ('third bases). Every distance can be calculated with these seven methods.');
GotoXY(2,10); write ('beginning of the sequence');
GotoXY(2,11); write (' |');
GotoXY(2,12); write (' | 1 2 3 4 5 6 7 8 9');
GotoXY(2,13); write (' --> A A C T G G G G T');
GotoXY(2,14); write (' ___ ___ ___');
GotoXY(2,15); write (' 1+2 1+2 1+2 <---- Using 1st + 2nd bases');
GotoXY(2,16); write (' ___ ___ ___');
GotoXY(2,17); write (' 2+3 2+3 2+3 <---- Using 2nd + 3rd bases');
GotoXY(2,19); write (' etc...');
end;
PROCEDURE HelpPag12;
begin
textcolor (white);
GotoXY(12,2); Write ('CODE TABLES. (Page 12)');
textcolor (green);
GotoXY(2,4); write (' When all the bases are selected, the matrices of synonymous and');
GotoXY(2,5); write ('non-synonymous difference proportions and substitutions per site using the');
GotoXY(2,6); write ('unweighted pathway method (Nei 1987), can be computed according to one of');
GotoXY(2,7); write ('the following genetic codes:');
GotoXY(2,10); write ('Tables of trinucleotide-aminoacid translation code to use:');
GotoXY(2,11); write (' - don''t make these calculations (default),');
GotoXY(2,12); write (' - standard nuclear code,');
GotoXY(2,13); write (' - Drosophila mitochondrial code,');
GotoXY(2,14); write (' - Yeast mitochondrial code,');
GotoXY(2,15); write (' - Mammalian mitochondrial code,');
GotoXY(2,16); write (' - ciliated code,');
textcolor (white); GotoXY(2,18); write ('IMPORTANT NOTICE:'); textcolor (green);
GotoXY(2,19); write ('These are slow computations. They may take a while.');
end;
PROCEDURE HelpPag13;
begin
textcolor (white);
GotoXY(12,2); Write ('OUTPUT. (Page 13)');
textcolor (green);
GotoXY(2,3); write ('The results file can be of three types:');
GotoXY(2,5); write (' -Large output file (all the matrices). DISTANCE prints the common');
GotoXY(2,6); write (' length vector, Hamming''s distance (absolute number of changes)');
GotoXY(2,7); write (' matrix, the transversions and transitions matrix (if selected),all the');
GotoXY(2,8); write (' nucleotide pairs matrices, and the distance matrix selected in, along');
GotoXY(2,9); write (' with its variances matrix, when feasible. This is the default.');
GotoXY(2,11); write (' -Brief output file. The program only prints the distance and the');
GotoXY(2,12); write (' corresponding variances matrix.');
GotoXY(2,14); write (' -Output for FITCH and KITSCH. The program only prints one lower ');
GotoXY(2,15); write (' triangular matrix with the distances for using with the PHYLIP package');
GotoXY(2,16); write (' programs FITCH and KITSCH. Remember to change the PHYLIP option ');
GotoXY(2,17); write (' ''Lower-triangular data matrix'' for using these matrices.');
end;
PROCEDURE HelpPag14;
begin
textcolor (white);
GotoXY(12,2); Write ('SOME IMPORTANT NOTES: (Page 14)');
textcolor (green);
GotoXY(2,4); write ('-Read the file ''DISTANCE.DOC'' and the on-screen help before beginning.');
GotoXY(2,6); write ('-The program does not use pairs of nucleotides with a deletion in the ');
GotoXY(2,7); write (' computations (this seems to be most correct unless an evolutionary model');
GotoXY(2,8); write (' for insertion/deletions is available). This can cause the results to be ');
GotoXY(2,9); write (' slightly different from other programs. All the results are coincident');
GotoXY(2,10); write (' in alignments without deletions.');
GotoXY(2,12); write ('-Error detection has been improved, but computer hang-ups may still occur.');
GotoXY(2,13); write (' It is strongly recommended to check the input file format.');
GotoXY(2,14); write (' There is a sample file for each input format.');
textcolor (white);
GotoXY(2,16); write ('FUTURE DEVELOPMENTS:');
textcolor (green);
GotoXY(2,17); write ('-More input formats.');
GotoXY(2,18); write ('-Improvement of the graphic interface. Mouse support.');
GotoXY(2,19); write ('-Use of extended memory under Windows 3.x.');
end;
(*HELP FOR DISTANCE IN COMMAND LINE MODE*)
PROCEDURE HelpCommandLine;
begin
writeln ('Help for DISTANCE in command line mode.');
writeln ('Up to 7 parameters can be specified, separated by a blank space.');
writeln ('1st. Input file (string) Default: sequence.seq.');
writeln ('2nd. Output file (string) Default: sequence.rst.');
writeln ('3rd. Format (1 <= integer <= 3) Default: 1= interleaved.');
writeln ('4th. Distance measure (1 <= integer <= 6) Default: 2= Kimura-2.');
writeln ('5th. Bases used (1 <= integer <= 7) Default: 1= all bases.');
writeln ('6th. Genetic code (1 <= integer <= 6) Default: 1= none.');
writeln ('7th. Output format (1 <= integer <= 3) Default: 1= long output.');
writeln;
writeln ('Distance /h (/H) Shows this help.');
writeln;
writeln ('Example: Distance input.seq output.rst 3');
writeln ('It will take file input.seq as input with MSF format and results will be');
writeln ('written in the file output.rst, using the remaining default parameters.');
end;
END.