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 File
cifFile()
final void
close()
Deletes all files (PDB and mmCIF) maintained by this instance.final String
convertedPdbChainName
(File pdbFile, String cifChain) Checks mapping of chains to get the generated PDB chain name from the original mmCIF chain name.static ModelContainer
emptyInstance
(File cifFile) Creates an empty instance (without any chain mapping).final String
originalCifChainName
(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
cifFile
attribute,
-
pdbFiles
- Specified by:
pdbFiles
in interfaceModelContainer
- Returns:
- A list of PDB files corresponding to this container.
-
originalCifChainName
Description copied from interface:ModelContainer
Checks mapping of chains to get the original mmCIF chain name from the generated PDB chain name.- Specified by:
originalCifChainName
in 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:ModelContainer
Checks mapping of chains to get the generated PDB chain name from the original mmCIF chain name.- Specified by:
convertedPdbChainName
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-