Package org.biojava.bio.structure.server
Class MMCIFFileInstallation
- java.lang.Object
-
- org.biojava.bio.structure.server.MMCIFFileInstallation
-
- All Implemented Interfaces:
PDBInstallation
public class MMCIFFileInstallation extends java.lang.Object implements PDBInstallation
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.logging.Loggerlogger
-
Constructor Summary
Constructors Constructor Description MMCIFFileInstallation(java.io.File filePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPDBFilter(PDBFilter filter)add a filter for PDB files.voidclearFilters()remove all filters, next time getAll is called, it will return all available PDBsjava.io.FiledownloadCIF(java.lang.String pdbId)java.util.List<PDBHeader>getAll()get all PDBHeaders that pass the added Filters, if no filters have been added returns all available PDBsPDBHeadergetPDBHeader(java.lang.String pdbId)get the PDB header for a single protein structureStructuregetStructure(java.lang.String pdbId)request a structure by its PDB identifierbooleanhasNext()return if the iteration over all structures will return another structurebooleanisAutoFetch()should the parser to fetch missing mmCif files from the RCSB FTP server automatically? default is falseStructurenext()iterate over all structures in this Installation that pass the provided filters and return the next one in the list.voidsetAutoFetch(boolean autoFetch)tell the parser to fetch missing mmCif files from the RCSB FTP server automatically.
-
-
-
Method Detail
-
isAutoFetch
public boolean isAutoFetch()
should the parser to fetch missing mmCif files from the RCSB FTP server automatically? default is false- Returns:
- flag
-
setAutoFetch
public void setAutoFetch(boolean autoFetch)
tell the parser to fetch missing mmCif files from the RCSB FTP server automatically. default is false. If true, new PDB files will be automatically stored in the Path and gzip compressed.- Parameters:
autoFetch-
-
downloadCIF
public java.io.File downloadCIF(java.lang.String pdbId)
-
addPDBFilter
public void addPDBFilter(PDBFilter filter)
Description copied from interface:PDBInstallationadd a filter for PDB files. THis can be used to request, e.g. all X-ray structures, or all structures with a given resolution, all proteins with a certain function, etc.- Specified by:
addPDBFilterin interfacePDBInstallation- Parameters:
filter- the filter to apply when getAll is being called.- See Also:
PDBInstallation.getAll()
-
clearFilters
public void clearFilters()
Description copied from interface:PDBInstallationremove all filters, next time getAll is called, it will return all available PDBs- Specified by:
clearFiltersin interfacePDBInstallation
-
getAll
public java.util.List<PDBHeader> getAll()
Description copied from interface:PDBInstallationget all PDBHeaders that pass the added Filters, if no filters have been added returns all available PDBs- Specified by:
getAllin interfacePDBInstallation- Returns:
- a list of PDBHeader objects
-
getPDBHeader
public PDBHeader getPDBHeader(java.lang.String pdbId)
Description copied from interface:PDBInstallationget the PDB header for a single protein structure- Specified by:
getPDBHeaderin interfacePDBInstallation- Returns:
- the PDB header object
-
getStructure
public Structure getStructure(java.lang.String pdbId)
Description copied from interface:PDBInstallationrequest a structure by its PDB identifier- Specified by:
getStructurein interfacePDBInstallation- Returns:
- the structure for the pdbId
-
hasNext
public boolean hasNext()
Description copied from interface:PDBInstallationreturn if the iteration over all structures will return another structure- Specified by:
hasNextin interfacePDBInstallation- Returns:
- true if there is another structure that has not been iterated over yet
-
next
public Structure next()
Description copied from interface:PDBInstallationiterate over all structures in this Installation that pass the provided filters and return the next one in the list.- Specified by:
nextin interfacePDBInstallation- Returns:
- the next structure
-
-