Biojava secondary structure prediction
1
0
Entering edit mode
6.9 years ago

Is there any method to use in biojava to predict secondary structure from a given sequence?

Or if not does any anyone how can i implement it? any source code? Any exe to recommend?

secondary structure prediction biojava • 1.9k views
ADD COMMENT
1
Entering edit mode
6.9 years ago
sbliven ▴ 30

There's a DSSP implementation in the structure module, called SecStruc. I recommend using the latest BioJava snapshot from github for this code, as there have been some recent bug fixes.

import org.biojava.bio.structure.secstruc.SecStruc;
import org.biojava3.structure.StructureIO;
import org.biojava.bio.structure.Structure;
...
Structure s = StructureIO.getStructure("1BSP");
SecStruc sec = new SecStruc();
sec.assign(s);
for(Group g : sec.getGroups()) {
     SecStrucState state = (SecStrucState) g.getProperty("secstruc");
     if(state != null) System.out.print(state.getSecStruc().type);
}
System.out.println();

The code is very rough and should be considered 'beta'. There may be a few minor differences to the official DSSP implementation.

ADD COMMENT
0
Entering edit mode

In case anyone stumbles across this post, biojava 4.2 officially includes secondary structure prediction and is tested for DSSP compatibility.

ADD REPLY

Login before adding your answer.

Traffic: 2396 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6