Galaxy | Tool Preview

LASTZ_D (version 1.04.22+galaxy0)
If your TARGET is in history, choose 'from your history' option
If your genome of interest is not listed, contact the Galaxy team
These are the sequences that you are aligning against TARGET
Optional controf file. If nothing is selected, LASTZ_D uses default described in the manual

What is does

LASTZ_D is a non-integer (D stands for Double) version of LASTZ that can be used to estimate substitution matrix that will be used to score alignments. It was developed by Bob Harris in the lab of Webb Miller at Penn State as a part of LASTZ. Matrix computed by this tool is to be used by LASTZ (see below).

Read documentation before proceeding. LASTZ is a complex tool with many parameter options. Fortunately, there is a great manual maintained by its author. The two sections that are particularly relevant to the inference of substitution matrix are Inferring Score Sets and Inference Control File.

Notes on the inference

Inference is achieved by computing the probability of each of the 18 different alignment events (gap open, gap extend, and 16 substitutions). These probabilities are estimated from alignments of the sequences. Of course, at first we don't have alignments, so the process begins by using a generic scoring set to create alignments, infer scores from those, then realign, and so on, until the scores stabilize or "converge". Ungapped alignments are performed until the substitution scores converge, then gapped alignments are performed (holding the substitution scores constant) until the gap penalties converge. In the end you get a matrix like this:

# (a LASTZ scoring set, created by "LASTZ --infer")

bad_score          = X:-1781 # used for sub[X][*] and sub[*][X]
fill_score         = -178    # used when sub[*][*] not otherwise defined
gap_open_penalty   = 400
gap_extend_penalty = 30

      A     C     G     T
A    72   -79   -49   -97
C   -79   100  -178   -49
G   -49  -178   100   -79
T   -97   -49   -79    72

This dataset can then be used as an input to the Read the substitution scores parameter of LASTZ (Parameter section Scoring).

The iterative process can fail if there's not a lot of sequence to align. E.g. if after the 4th iteration there's nothing in the central 50% denominators go to zero and the process fails.

If the sequences you are aligning have GC content different than the usual ACGT 30-20-20-30 split, scoring inference should discover this and give you better alignments.