Re: Reading SCF files
Nick England <[email protected]>
| Newsgroups | gmane.comp.java.bio.general |
|---|---|
| Message-ID | <CAHKPz+9=oK_R70JBNLSdAM5aNbJZZ8h55CvUv2ECPsjJ3Ej9Vw@mail.gmail.com> |
Janier,
Here is a snippet which should read in SCF files for you, you will have to
have BioJava 1.0 for this to work.
File file = new File(String "your path here");
InputStream stream = new FileInputStream(file);
Chromatogram scf= ChromatogramFactory.create(stream);
stream.close();
Alignment data = scf.getBaseCalls();
String seq=data.symbolListForLabel("dna").seqString();
Cheers,
Nick
On 18 February 2013 05:09, Janier J. Ramírez
<[email protected]>wrote:
> Yes that's ok, Now I need an example of how given the path of the scf
> file, get the secuence, to them parse it to fasta, or if I can do it
> directly from scf to fasta.
>
> Thanks for your time
> _______________________________________________
> Biojava-l mailing list - [email protected]
> http://lists.open-bio.org/mailman/listinfo/biojava-l
>
_______________________________________________
Biojava-l mailing list - [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l