Package pl.poznan.put.pdb.analysis
Class CifContainer
java.lang.Object
pl.poznan.put.pdb.analysis.CifContainer
- All Implemented Interfaces:
Closeable,AutoCloseable,ModelContainer
- Direct Known Subclasses:
ImmutableCifContainer
A container of one or more PDB files converted from a single mmCIF file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FilecifFile()final voidclose()Deletes all files (PDB and mmCIF) maintained by this instance.final StringconvertedPdbChainName(File pdbFile, String cifChain) Checks mapping of chains to get the generated PDB chain name from the original mmCIF chain name.static ModelContaineremptyInstance(File cifFile) Creates an empty instance (without any chain mapping).final StringoriginalCifChainName(File pdbFile, String pdbChain) Checks mapping of chains to get the original mmCIF chain name from the generated PDB chain name.pdbFiles()
-
Constructor Details
-
CifContainer
public CifContainer()
-
-
Method Details
-
emptyInstance
Creates an empty instance (without any chain mapping).- Parameters:
cifFile- Path to the mmCIF file.- Returns:
- An instance without any chain mapping.
-
fileChainMap
@Parameter(order=2) public abstract Map<File,org.apache.commons.collections4.BidiMap<String, fileChainMap()String>> - Returns:
- The mapping of chain name in PDB and mmCIF for a specific file.
-
cifFile
- Returns:
- The value of the
cifFileattribute,
-
pdbFiles
- Specified by:
pdbFilesin interfaceModelContainer- Returns:
- A list of PDB files corresponding to this container.
-
originalCifChainName
Description copied from interface:ModelContainerChecks mapping of chains to get the original mmCIF chain name from the generated PDB chain name.- Specified by:
originalCifChainNamein interfaceModelContainer- Parameters:
pdbFile- A PDB file.pdbChain- Chain name in the PDB file.- Returns:
- Original chain name in the mmCIF file.
-
convertedPdbChainName
Description copied from interface:ModelContainerChecks mapping of chains to get the generated PDB chain name from the original mmCIF chain name.- Specified by:
convertedPdbChainNamein interfaceModelContainer- Parameters:
pdbFile- A PDB file.cifChain- Chain name in the mmCif file.- Returns:
- Original chain name in the PDB file.
-
close
public final void close()Deletes all files (PDB and mmCIF) maintained by this instance.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-