Question: Extracting Genbank Features With Biojava3 Or Java Library
gravatar for Raygozak
5.5 years ago by
State College, PA, Penn State
Raygozak1.2k wrote:

Does anyone have experience extracting feature information from a genbank file in biojava3 or any other java api?

biojava feature genbank • 2.6k views
ADD COMMENTlink modified 5.5 years ago by Pavel Senin1.9k • written 5.5 years ago by Raygozak1.2k

Currently there doesn't seem to be a way of parsing genbank files with biojava3. The only mention of genbank in the whole project seems to be in the DataSource class and some tests that use it (looking at the git project). There is nothing that seems related in the API either. There is a thread in one of their mailing lists where until December 2012 it didn't seem to be an implementation available Lets hope this changes.

ADD REPLYlink modified 5.2 years ago • written 5.2 years ago by Pablacious610
gravatar for Pavel Senin
5.5 years ago by
Pavel Senin1.9k
Los Alamos, NM
Pavel Senin1.9k wrote:

I am not sure how it works in BioJava 3.X, but I used to read genbank in with SeqIOTools in 1.8X

Here are some examples:

 System.out.println("Length: " + myGenbank.length());
 System.out.println("Features: " + myGenbank.countFeatures());
 for(Iterator fi = myGenbank.features(); fi.hasNext(); ) {
   Feature f = (Feature);
   System.out.println(f.getType() + "\t" + f.getLocation());
ADD COMMENTlink modified 5.5 years ago • written 5.5 years ago by Pavel Senin1.9k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2041 users visited in the last hour