public class FlatFileInstallation extends java.lang.Object implements PDBInstallation
PrepareIndexFile| Modifier and Type | Field and Description |
|---|---|
static java.text.SimpleDateFormat |
dateFormat |
static java.lang.String |
DEFAUL_CHAIN_FILE |
static java.lang.String |
DEFAULT_INDEX_FILE |
static java.util.logging.Logger |
logger |
| Constructor and Description |
|---|
FlatFileInstallation(java.io.File filePath)
create a new FlatFile Installation and point it to the directory that contains all PDB files
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPDBFilter(PDBFilter filter)
add a filter for PDB files.
|
void |
applyFilters() |
void |
clearFilters()
remove all filters, next time getAll is called, it will return all available PDBs
|
java.util.List<PDBHeader> |
getAll()
get all PDBHeaders that pass the added Filters, if no filters have been added returns all available PDBs
|
java.io.File |
getChainInfoFile() |
java.io.File |
getFilePath() |
PDBHeader |
getPDBHeader(java.lang.String pdbId)
get the PDB header for a single protein structure
|
java.io.File |
getPDBInfoFile() |
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
|
Structure |
next()
iterate over all structures in this Installation that pass the provided filters and
return the next one in the list.
|
void |
setChainInfoFile(java.io.File chainInfoFile) |
void |
setFilePath(java.io.File filePath) |
void |
setPDBInfoFile(java.io.File indexFile) |
public static final java.util.logging.Logger logger
public static final java.lang.String DEFAULT_INDEX_FILE
public static final java.lang.String DEFAUL_CHAIN_FILE
public static java.text.SimpleDateFormat dateFormat
public FlatFileInstallation(java.io.File filePath)
filePath - public java.io.File getPDBInfoFile()
public void setPDBInfoFile(java.io.File indexFile)
public java.io.File getChainInfoFile()
public void setChainInfoFile(java.io.File chainInfoFile)
public java.io.File getFilePath()
public void setFilePath(java.io.File filePath)
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 void applyFilters()
public 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