public class MMCIFFileInstallation extends java.lang.Object implements PDBInstallation
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger |
| Constructor and Description |
|---|
MMCIFFileInstallation(java.io.File filePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPDBFilter(PDBFilter filter)
add a filter for PDB files.
|
void |
clearFilters()
remove all filters, next time getAll is called, it will return all available PDBs
|
java.io.File |
downloadCIF(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 PDBs
|
PDBHeader |
getPDBHeader(java.lang.String pdbId)
get the PDB header for a single protein structure
|
Structure |
getStructure(java.lang.String pdbId)
request a structure by its PDB identifier
|
boolean |
hasNext()
return if the iteration over all structures will return another structure
|
boolean |
isAutoFetch()
should the parser to fetch missing mmCif files from the RCSB FTP server automatically?
default is false
|
Structure |
next()
iterate over all structures in this Installation that pass the provided filters and
return the next one in the list.
|
void |
setAutoFetch(boolean autoFetch)
tell the parser to fetch missing mmCif files from the RCSB FTP server automatically.
|
public boolean isAutoFetch()
public void setAutoFetch(boolean autoFetch)
autoFetch - public java.io.File downloadCIF(java.lang.String pdbId)
public void addPDBFilter(PDBFilter filter)
PDBInstallationaddPDBFilter in interface PDBInstallationfilter - the filter to apply when getAll is being called.PDBInstallation.getAll()public void clearFilters()
PDBInstallationclearFilters in interface PDBInstallationpublic java.util.List<PDBHeader> getAll()
PDBInstallationgetAll in interface PDBInstallationpublic PDBHeader getPDBHeader(java.lang.String pdbId)
PDBInstallationgetPDBHeader in interface PDBInstallationpublic Structure getStructure(java.lang.String pdbId)
PDBInstallationgetStructure in interface PDBInstallationpublic boolean hasNext()
PDBInstallationhasNext in interface PDBInstallationpublic Structure next()
PDBInstallationnext in interface PDBInstallation