parmed.formats.pdbx.PdbxContainers module¶
A collection of container classes supporting the PDBx/mmCIF storage model.
A base container class is defined which supports common features of data and definition containers. PDBx data files are organized in sections called data blocks which are mapped to data containers. PDBx dictionaries contain definition sections and data sections which are mapped to definition and data containes respectively.
Data in both PDBx data files and dictionaries are organized in data categories. In the PDBx syntax individual items or data identified by labels of the form ‘_categoryName.attributeName’. The terms category and attribute in PDBx jargon are analogous table and column in relational data model, or class and attribute in an object oriented data model.
The DataCategory class provides base storage container for instance data and definition meta data.
- 
class 
parmed.formats.pdbx.PdbxContainers.CifName[source]¶ Bases:
objectClass of utilities for CIF-style data names -
Methods
attributePart
categoryPart
- 
class 
parmed.formats.pdbx.PdbxContainers.ContainerBase(name)[source]¶ Bases:
objectContainer base class for data and definition objects.
Methods
append(obj)Add the input object to the current object catalog.
remove(curName)Revmove object by name.
rename(curName, newName)Change the name of an object in place -
replace(obj)Replace an existing object with the input object
exists
getName
getObj
getObjNameList
getType
printIt
setName
setType
- 
class 
parmed.formats.pdbx.PdbxContainers.DataCategory(name, attributeNameList=None, rowList=None)[source]¶ Bases:
parmed.formats.pdbx.PdbxContainers.DataCategoryBaseMethods for creating, accessing, and formatting PDBx cif data categories.
Methods
getFullRow(index)Return a full row based on the length of the the attribute list.
renameAttribute(curAttributeName, …)Change the name of an attribute in place -
append
appendAttribute
appendAttributeExtendRows
dumpIt
get
getAttributeCount
getAttributeIndex
getAttributeLengthMaximumList
getAttributeList
getAttributeListWithOrder
getAttributeValueMaxLengthList
getCurrentAttribute
getFormatTypeList
getFormatTypeListX
getIndex
getItemNameList
getName
getRow
getRowCount
getRowIndex
getRowList
getValue
getValueFormatted
getValueFormattedByIndex
hasAttribute
invokeAttributeMethod
invokeCategoryMethod
printIt
removeRow
replaceSubstring
replaceValue
setAttributeNameList
setName
setRowList
setValue
- 
class 
parmed.formats.pdbx.PdbxContainers.DataCategoryBase(name, attributeNameList=None, rowList=None)[source]¶ Bases:
objectBase object definition for a data category -
Methods
get
setAttributeNameList
setName
setRowList
- 
class 
parmed.formats.pdbx.PdbxContainers.DataContainer(name)[source]¶ Bases:
parmed.formats.pdbx.PdbxContainers.ContainerBaseContainer class for DataCategory objects.
Methods
append(obj)Add the input object to the current object catalog.
remove(curName)Revmove object by name.
rename(curName, newName)Change the name of an object in place -
replace(obj)Replace an existing object with the input object
exists
getGlobal
getName
getObj
getObjNameList
getType
invokeDataBlockMethod
printIt
setGlobal
setName
setType
- 
class 
parmed.formats.pdbx.PdbxContainers.DefinitionContainer(name)[source]¶ Bases:
parmed.formats.pdbx.PdbxContainers.ContainerBaseMethods
append(obj)Add the input object to the current object catalog.
remove(curName)Revmove object by name.
rename(curName, newName)Change the name of an object in place -
replace(obj)Replace an existing object with the input object
exists
getName
getObj
getObjNameList
getType
isAttribute
isCategory
printIt
setName
setType