Tprofilesegments

Go back to top

TPROFILESEGMENTS


FUNCTION

TProfileSegments makes optimal alignments showing the segments of similarity found by TProfileSearch.


DESCRIPTION

There is an essay on profile analysis in the Multiple Sequence Analysis chapter of the Program Manual.

TProfileSearch and TProfileSegments use the method of Gribskov, et al (Proc. Natl. Acad. Sci. USA 84;4355-4358 (1987)). TProfileSearch compares a profile to a set of sequences and lists the sequences with similarity to the profile. TProfileSegments then makes an optimal alignment to display the best segment of similarity in each sequence in the list. TProfileSegments uses the alignment procedure of Smith and Waterman (Advances in Applied Mathematics 2; 482-489 (1981)) to search for and align the segments. The symbol comparison values, gap weights, and gap length weights used to find the best region of similarity between the profile and the sequence are all present in the input file itself and need not be set.


AUTHOR

This GCG program was modified by Peter Rice (E-mail: pmr@sanger.ac.uk Post: Informatics Division, The Sanger Centre, Hinxton Hall, Cambridge, CB10 1RQ, UK).

All EGCG programs are supported by the EGCG Support Team, who can be contacted by E-mail (egcg@embnet.org).


EXAMPLE

Here is a session using TProfileSegments to display the segments in the output file from the example in the EGCG Program Manual for TProfileSearch:

  
  
  % tprofilesegments
  
   TPROFILESEGMENTS from what TPROFILESEARCH output file ? hth.pfs
  
   Stop after how many alignments (* 15 *) ?
  
   What should I call the paired output display file (* hth.pairs *)?
  
     The following levels will be marked in the alignments:
                Bar: 0.32
              Colon: 0.18
                Dot: 0.09
  
   Aligning .-..
   Empro:Ecgals5
  
       Gaps:     0
    Quality:  17.8
   Quality Ratio: 0.573
     Length:    31
  
   //////////////////////////////////////////////////////////
  
  %
  


OUTPUT

Here is some of the output file:

  
  
   (Local) TPROFILESEGMENTS of: Ecgals5  check: 9965  from: 1  to: 1990
  
  ID   ECGALS5    standard; DNA; PRO; 1990 BP.
  AC   X62529;
  DT   25-MAR-1992 (Rel. 31, Created)
  DT   20-APR-1993 (Rel. 35, Last updated, Version 7)
  DE   Escherichia coli galS gene for hypothetical hydrophobic transport
  DE   protein 5' end . . .
  
   to: Hth.Prf  check: 1753  from: 1  to: 39
  
  (Peptide) PROFILEMAKE v4.40 of: hth.msf{*}  Length: 39
    Sequences: 9  MaxScore: 17.37  September 6, 1993  11:39
                       Gap: 1.00              Len: 1.00
                  GapRatio: 0.33         LenRatio: 0.10
        hth.msf{Galr_Ecoli}  From: 1     To: 39    Weight: 1.00
        hth.msf{Gals_Ecoli}  From: 1     To: 39    Weight: 1.00 . . .
  
  
      Gap Weight:  4.500      Average Match:  0.185
   Length Weight:  0.050   Average Mismatch: -0.127
  
         Quality:  17.77             Length:     31
           Ratio:   0.57               Gaps:      0
  
  
   Ecgals5 x Hth.Prf         September 6, 1993  12:21  ..
  
               .         .         .
  S   1584 NMITIRDVARQAGVSVATVSRVLNNSTLVSA 1614
       |:||:|||:.||||:||||||||::. |:.
  P      8 KMATLKDVARMAGVSVATVSWVLNGSPWVSE 38
  
    //////////////////////////////////////////
  
  


RELATED PROGRAMS

PileUp creates a multiple sequence alignment from a group of related sequences. LineUp is a multiple sequence editor used to create multiple sequence alignments. Pretty displays multiple sequence alignments.

ProfileMake makes a profile from a multiple sequence alignment. ProfileSearch uses the profile to search a database for sequences with similarity to the group of aligned sequences. ProfileSegments displays optimal alignments between each sequence in the ProfileSearch output list and the group of aligned sequences (represented by the profile consensus). ProfileGap makes optimal alignments between a sequence and a group of aligned sequences represented as a profile. ProfileScan finds structural and sequence motifs in protein sequences, using predetermined parameters to determine significance.


RESTRICTIONS

We have little experience using nucleotide sequences with profile analysis.

The surface of comparison (see the entry for BestFit in the Program Manual) may not be more than some value set within the program (5.5 million at most institutions). Profiles may not be longer than 1,000 residues or bases. Sequences that are too long for the surface of comparison are divided into smaller segments that are aligned separately (see the CONSIDERATIONS topic, below).


ALGORITHM

There is an essay on profile analysis in the Multiple Sequence Analysis chapter of the Program Manual.

TProfileSegments reads the profile, the profile's consensus sequence, and the set of sequences in the list from TProfileSearch and then executes a BestFit on each sequence to make an alignment. The alignment is made with the values in the profile. The display is made with the consensus sequence and values from the profile. For a detailed description of Smith and Waterman style alignments, see the BestFit program's entry.


CONSIDERATIONS

There is strong reason to believe that the BestFit algorithm used by TProfileSegments is the best known way to find segments of similarity, but the best parameters must be determined empirically. Like any alignment program, TProfileSegments produces alignments that are very different depending on the symbol comparison values and gap coefficients used to make up the profile, and the gap weights used as input to TProfileSearch.

Unless the -LIMit command line qualifier is used, sequences that are too long for the surface of comparison are always divided into smaller, overlapping segments that are aligned separately. The -LIMit qualifier may permit long sequences to be aligned without division. For a detailed description of the -LIMit qualifier, see the entry for BestFit in the Program Manual. Sequences longer than 32,000 are always divided and aligned as separate segments. Although ProfileGap and ProfileSegments overlap the points of division by the whole length of the profile, divided sequences may not align properly if the segment of similarity crosses the point where the sequence was divided.

The command line option -GLObal makes ProfileGap and ProfileSegments display the alignment of the whole sequence to the whole profile, instead of just the most-similar segment between the sequence and the profile. This is analogous to executing a Gap between the profile and sequence.

ProfileSearch- ProfileSegments finds only the best fit of the profile to any sequence. This obscures other fits in the same sequence, especially in nucleic acids.


INPUT FILES

TProfileSegments reads the file names in the output file from TProfileSearch. You can edit the TProfileSearch output file to comment-out (with an '!' character in the first column of the line) any sequence files you wish TProfileSegments to ignore. If the profile used in TProfileSearch cannot be identified and read correctly from the information in the text heading of the input file, TProfileSegments complains and stops. If the gap weight and gap length weight cannot be read correctly from the information in the text heading of the input file, TProfileSegments uses default values of 4.5 and 0.05, respectively.


COMMAND-LINE SUMMARY

All parameters for this program may be put on the command line. Use the option -CHEck to see the summary below and to have a chance to add things to the command line before the program executes. In the summary below, the capitalized letters in the qualifier names are the letters that you must type in order to use the parameter. Square brackets ([ and ]) enclose qualifiers or parameter values that are optional. For more information, see "Using Program Parameters" in Chapter 3, Basic Concepts: Using Programs in the GCG User's Guide.

  
  
  Minimum syntax: % tprofilesegments [-INfile=]pileup.pfs -Default
  
  Prompted Parameters:
  
  -SEQLimit=15            limit the number of alignments
  [-OUTfile=]pileup.pairs output file for the alignments
  
  Local Data Files: None
  
  Optional Parameters:
  
  -LOCal                 aligns the best segment of similarity between
                      the sequence and profile (local alignment is
                      the default)
  -GLObal                aligns the whole sequence and profile (global
                      alignment)
  -NOAVErage             does not adjust alignment scores for sequence
                      composition
  -ENDWeight             weights end gaps like other gaps
  -LIMit1=20             lets you set a gap shift limit for the sequence
  -LIMit2=20             lets you set a gap shift limit for the profile
  -OUTfile2=hs7t_rat.gap new file for sequence 1 with gaps added
  -OUTfile3=pileup.gap   new file for the profile consensus with gaps added
  -PAIr=1.0,0.5,0.1      thresholds for displaying '|', ':', and '.'
  -NOMONitor             suppresses the screen summary for each alignment
  


LOCAL DATA FILES

The files described below supply auxiliary data to this program. The program automatically reads them from a public data directory unless you either 1) have a data file with exactly the same name in your current working directory; or 2) name a file on the command line with an expression like -DATa1=myfile.dat. For more information see Chapter 4, Using Data Files in the User's Guide.

The translation of codons to amino acids, the identification of potential start codons and stop codons, and the mappings of one-letter to three-letter amino acid codes are all defined in a translation table in the file translate.txt. If the standard genetic code does not apply to your sequence, you can provide a modified version of this file in your working directory or name an alternative file on the command line with an expression like -TRANSlate=mycode.txt. Translation tables are discussed in more detail in the Data Files manual.


OPTIONAL PARAMETERS

The parameters and switches listed below can be set from the command line. For more information, see "Using Program Parameters" in Chapter 3, Basic Concepts: Using Programs in the GCG User's Guide.

-GLObal

causes this program to make alignments using the method of Needleman and Wunsch instead of the default method of Smith and Waterman. The difference between these two methods is the same as the difference between the programs Gap and BestFit. The Needleman and Wunsch method displays the whole length of both sequences after alignment, while the Smith and Waterman method shows only the best segment of similarity from each sequence.

-LOCal

forces this program to make alignments using the default method of Smith and Waterman instead of the method of Needleman and Wunsch. The difference between these two methods is the same as the difference between the programs BestFit and Gap. The Smith and Waterman method shows only the best segment of similarity from each sequence, while the Needleman and Wunsch method displays the whole length of both sequences after alignment.

-AVErage

turns on the adjustment of scores for sequence composition. With & -AVErage) , a score due to the similarity in composition between the profile and sequence of interest is subtracted from the original alignment score. Users at EMBL prefer to run searches without averaging.

-ENDWeight

causes the end gaps to be penalized in the same way as all other gaps. This qualifier is ignored unless -GLObal is also present on the command line.

-LIMit1=20 and -LIMit2=20

lets you set gap shift limits for each sequence ( -LIMit1 sets a gap shift limit for the sequence and -LIMit2 sets a gap shift limit for the profile). When you already know of a long similarity between two sequences you can "zip" them together using this mode. The beginning coordinates for each sequence must be near the beginning of the alignment you want to see. The alignment continues so that gaps inserted do not require the sequences to get out of step by more than the gap shift limits. You can align very long sequences rapidly. The surface of comparison is still limited to one million. The size of a comparison can be predicted by multiplying the average length of the two sequences times the sum of the two shift limits.

If you add -LIMit to the command line without any qualifier value, the program prompts you to enter gap shift limits for each sequence.

-OUTfile2=seqname1.gap -OUTfile3=profilename.gap

This program can write three different output files. The first displays the alignment of the sequence with the profile consensus sequence. The second is a new sequence file for the sequence, possibly expanded by gaps to make it align with the profile. The third, like the second, is a new sequence file for the profile consensus, possibly expanded by gaps to make it align with sequence one. The program writes only the first file unless there are output file options on the command line. If there are any output files named on the command line, only those output files are written. If you add -OUT to the command line without any qualifying filename, then the program will write the second and third output files after prompting you for their names.

Aligned sequences (in sequence files) can be displayed with GapShow.

-PAIr=1.0,0.5,0.1

The paired output file from this program displays sequence similarity by putting a pipe character (|), colon (:), and period (.) between similar sequence symbols. The thresholds for the characters are determined by the values in the profile. The pipe character is put between symbols whose comparison value in the profile is at least the average positive value in the profile plus one tenth the difference between the maximum and average values in the profile. The colon character threshold is the average positive value in the profile. The period character threshold is the larger of the average positive value in the profile minus one tenth the difference between the maximum and average values, and one half the average value.

-NOMONitor

suppresses the screen summary for each alignment which reports some statistics for the alignment.


REFERENCES

Gribskov, M., McLachlan, M., and Eisenberg, D. (1987) "Profile Analysis: Detection of Distantly Related Proteins." Proceedings of the National Academy of Sciences USA 84, 4355-4358.

Smith, T.F. and Waterman, M.S. (1981) "Comparison of Bio-Sequences." Advances in Applied Mathematics 2, 482-489.

Printed: April 22, 1996 15:56 (1162)