[Biojava-l] Getting a Slice of an Alignment

Dexter Riley edbeaty at charter.net
Mon Jun 26 14:16:39 UTC 2006


Hello.  I have a FlexibleAlignment of 20 sequences, and want to get a slice
of it:
>Seq1
nactatcgg...atcagcgtatctgac
>Seq2
nactatcgg...atcagcgtatctgac
...
>Seq19
nactatcgg...atcagcgtatctgac
>Seq20
nactatcgg...atcagcgtatctgac

So a slice of the Location(1,5) of this alignment should look like:
>Seq1
nacta
>Seq2
nacta
...
>Seq19
nacta
>Seq20
nacta

How to do this?  Alignment.subAlignment(null, Location(1,5)) returns an
alignment containing all the full-length sequences (presumably because all
the sequences have symbols between positions 1 and 5).

Any suggestions would be greatly appreciated.  
Thanks,
Ed
--
View this message in context: http://www.nabble.com/Getting-a-Slice-of-an-Alignment-t1849222.html#a5047818
Sent from the BioJava forum at Nabble.com.




More information about the Biojava-l mailing list