public class SimpleMMcifParser extends Object implements MMcifParser
String file = "path/to/mmcif/file"; StructureIOFile pdbreader = new MMCIFFileReader(); Structure s = pdbreader.getStructure(file); System.out.println(s); // you can convert it to a PDB file... System.out.println(s.toPDB());For more documentation see http://biojava.org/wiki/BioJava:CookBook#Protein_Structure.
Modifier and Type | Field and Description |
---|---|
static String |
COMMENT_CHAR |
static String |
FIELD_LINE |
static String |
LOOP_START |
static String |
MMCIF_TOP_HEADER
The header appearing at the beginning of a mmCIF file.
|
static String |
STRING_LIMIT
Quoting character ; (multi-line quoting)
|
Constructor and Description |
---|
SimpleMMcifParser() |
public static final String MMCIF_TOP_HEADER
public static final String COMMENT_CHAR
public static final String LOOP_START
public static final String FIELD_LINE
public static final String STRING_LIMIT
public SimpleMMcifParser()
public void addMMcifConsumer(MMcifConsumer consumer)
MMcifParser
addMMcifConsumer
in interface MMcifParser
consumer
- a consumer object.public void clearConsumers()
MMcifParser
clearConsumers
in interface MMcifParser
public void removeMMcifConsumer(MMcifConsumer consumer)
MMcifParser
removeMMcifConsumer
in interface MMcifParser
public void parse(InputStream inStream) throws IOException
MMcifParser
parse
in interface MMcifParser
inStream
- InputStream to parse from.IOException
public void parse(BufferedReader buf) throws IOException
MMcifParser
parse
in interface MMcifParser
buf
- a BufferedReader.IOException
public void triggerNewPdbxStructOper(PdbxStructOperList structOper)
public void triggerNewStructNcsOper(StructNcsOper sNcsOper)
public void triggerNewAtomSites(AtomSites atomSites)
public void triggerGeneric(String category, List<String> loopFields, List<String> lineData)
public void triggerNewEntity(Entity entity)
public void triggerNewEntityPoly(EntityPoly entityPoly)
public void triggerNewEntityPolySeq(EntityPolySeq epolseq)
public void triggerNewEntitySrcGen(EntitySrcGen entitySrcGen)
public void triggerNewEntitySrcNat(EntitySrcNat entitySrcNat)
public void triggerNewEntitySrcSyn(EntitySrcSyn entitySrcSyn)
public void triggerNewChemComp(ChemComp cc)
public void triggerNewStructAsym(StructAsym sasym)
public void triggerNewPdbxEntityNonPoly(PdbxEntityNonPoly pen)
public void triggerNewStructKeywords(StructKeywords kw)
public void triggerNewRefine(Refine r)
public void triggerDocumentStart()
public void triggerDocumentEnd()
public void triggerNewChemCompDescriptor(ChemCompDescriptor ccd)
Copyright © 2000–2018 BioJava. All rights reserved.