Entering edit mode
11.8 years ago
potassiumiodide0990
▴
80
import java.util.Map; import javax.swing.text.Position; import org.biojava.bio.structure.*; import org.biojava.bio.structure.io.PDBFileReader; public class PDBFile { public PDBFile() { Parser parserObj = new Parser(); String PDBID = parserObj.passPDBID(); { PDBFileReader pdbreader = new PDBFileReader(); pdbreader.setAlignSeqRes(true); pdbreader.setAutoFetch(true); try{ Structure struc = pdbreader.getStructureById(PDBID); } catch (Exception e) { e.printStackTrace(); } } } }
This code directly downloads a pdb file from the protein data bank, but the file obtained is in pdb.gz , in a zip file. how do i extract the pdb file using java or biojava? is there any method that would directly download the pdb file alone and not in pdb.gz format? please help..