Re: access to qualities

Tony Power <[email protected]>
Newsgroups gmane.comp.java.bio.general
Message-ID <CAMNg4HjM0RiH0EL-rCJwAFjK7KJpgCXmwmLo35MTHOPpLoUiYg@mail.gmail.com>
Sorry, the message went before I finish it.

How can I access the qualities of each sequence?

I am trying like this:
List<FeatureInterface<AbstractSequence<NucleotideCompound>,
NucleotideCompound>> features = s.getFeaturesByType("qualityScores");
for (int i = 0; i < features.size(); i++){
                System.out.println(": " + features.get(i).toString());
}

How can I access the qualities?

Thanks for your help,
Tony


On Thu, Nov 15, 2012 at 2:15 PM, Tony Power <[email protected]> wrote:

> Hi,
>
> I am trying to access to the qualities created with the example:
>
> FastqReader fastqReader = new SangerFastqReader();
> List<DNASequence> sequences = new LinkedList<DNASequence>();
>  for (Fastq fastq : fastqReader.read(new File <http://www.google.com/search?hl=en&q=allinurl%3Afile+java.sun.com&btnI=I%27m%20Feeling%20Lucky>("sanger.fastq"))){
>   sequences.add(FastqTools.createDNASequenceWithQualityScores(fastq));}
>
>
_______________________________________________
Biojava-l mailing list  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.