7.7 years ago by
The short answer is no, but I expect there are other tools in galaxy
that could do that filtering.
There are two reasons lastz doesn't provide filtering based on
length. First, there are three possible interpretations of what
"length" is, all equally valid. Should it be the length of the hit in
the reference, or in the read? Or should it be the number of
positions in the alignment? Second, even if there is no difference in
the three lengths, length is a poorer discriminator than the number of
matches. For example, a strict length cutoff of 100 would reject a
exact match of length 99 but keep a 90-match-10-mismatch hit.
I'm not familiar enough with galaxy to give you specific details of
how to filter by length. But if you choose tabular output from lastz
you should be able to use galaxy's "text manipulation" tools to
compute the length, then one of the "filter and sort" tools to discard
short alignments. Or, if you are using SAM output, it looks like you
could use "convert SAM to interval" in the "NGS: SAM Tools" group,
then compute the length and filter as above.
Hope that is helpful,