Codota Logo
PDBFileReader.getStructureById
Code IndexAdd Codota to your IDE (free)

How to use
getStructureById
method
in
org.biojava.nbio.structure.io.PDBFileReader

Best Java code snippets using org.biojava.nbio.structure.io.PDBFileReader.getStructureById (Showing top 7 results out of 315)

  • Common ways to obtain PDBFileReader
private void myMethod () {
PDBFileReader p =
  • Codota Iconnew PDBFileReader()
  • Smart code suggestions by Codota
}
origin: biojava/biojava

Structure s1 = pdbr.getStructureById(pdb1);
Structure s2 = pdbr.getStructureById(pdb2);
origin: biojava/biojava

Structure s1 = pdbr.getStructureById(pdb1);
Structure s2 = pdbr.getStructureById(pdb2);
origin: biojava/biojava

protected Structure loadStructureFromPdbByPdbId(String pdbId) throws IOException, StructureException {
  logger.debug("Loading structure {} from PDB file {}.", pdbId, path);
  Structure s;
  flagLoading(pdbId);
  try {
    PDBFileReader reader = new PDBFileReader(path);
    reader.setFetchBehavior(fetchBehavior);
    reader.setObsoleteBehavior(obsoleteBehavior);
    reader.setFileParsingParameters(params);
    s = reader.getStructureById(pdbId.toLowerCase());
  } finally {
    flagLoadingFinished(pdbId);
  }
  return s;
}
origin: biojava/biojava

Structure structure1 = reader.getStructureById(pdb);
origin: biojava/biojava

Structure structure1 = reader.getStructureById(pdb);
origin: biojava/biojava

Structure s1 = pdbr.getStructureById(pdb1);
Structure s2 = pdbr.getStructureById(pdb2);
origin: biojava/biojava

public static void main(String[] args){
  try {
    PDBFileReader pdbr = new PDBFileReader();
    pdbr.setPath("/tmp/");
    String pdbCode = "5pti";
    Structure struc = pdbr.getStructureById(pdbCode);
    BiojavaJmol jmolPanel = new BiojavaJmol();
    jmolPanel.setStructure(struc);
    // send some RASMOL style commands to Jmol
    jmolPanel.evalString("select * ; color chain;");
    jmolPanel.evalString("select *; spacefill off; wireframe off; backbone 0.4;  ");
    jmolPanel.evalString("save STATE state_1");
  } catch (Exception e){
    e.printStackTrace();
  }
}
org.biojava.nbio.structure.ioPDBFileReadergetStructureById

Popular methods of PDBFileReader

  • <init>
    Constructs a new PDBFileReader, initializing the extensions member variable. The path is initialized
  • getStructure
  • setPath
  • addExtension
  • getFileParsingParameters
  • prefetchStructure
  • setFetchBehavior
  • setFileParsingParameters
  • setObsoleteBehavior

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now