Package mmLib :: Module mmCIF :: Class mmCIFData
[hide private]
[frames] | no frames]

Class mmCIFData

source code

object --+    
         |    
      list --+
             |
            mmCIFData
Known Subclasses:

Contains all information found under a data_ block in a mmCIF file. mmCIF files are represented differently here than their file format would suggest. Since a mmCIF file is more-or-less a SQL database dump, the files are represented here with their sections as "Tables" and their subsections as "Columns". The data is stored in "Rows".

Instance Methods [hide private]
new empty list
__init__(self, name)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
__deepcopy__(self, memo) source code
 
__eq__(self, other)
x==y
source code
 
__getattr__(self, name) source code
 
__getitem__(self, x)
x[y]
source code
 
__setitem__(self, x, table)
x[i]=y
source code
 
__delitem__(self, x)
Remove a mmCIFTable by index or table name.
source code
 
append(self, table)
Append a mmCIFTable.
source code
 
insert(self, i, table)
insert object before index
source code
 
remove(self, table)
remove first occurrence of value.
source code
 
has_key(self, x) source code
 
get(self, x, default=None) source code
 
has_table(self, x) source code
 
get_table(self, name)
Looks up and returns a stored mmCIFTable class by its name.
source code
 
new_table(self, name, columns=None)
Creates and returns a mmCIFTable object with the given name.
source code
 
split_tag(self, tag) source code
 
join_tag(self, cif_table_name, cif_column_name) source code
 
get_tag(self, tag)
Get.
source code
 
set_tag(self, tag, value)
Set.x
source code

Inherited from list: __add__, __contains__, __delslice__, __ge__, __getattribute__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setslice__, __sizeof__, count, extend, index, pop, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]
  file
  name

Inherited from object: __class__

Method Details [hide private]

__init__(self, name)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns: new empty list
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 

x==y

Overrides: list.__eq__
(inherited documentation)

__getitem__(self, x)
(Indexing operator)

source code 

x[y]

Overrides: list.__getitem__
(inherited documentation)

__setitem__(self, x, table)
(Index assignment operator)

source code 

x[i]=y

Overrides: list.__setitem__

__delitem__(self, x)
(Index deletion operator)

source code 

Remove a mmCIFTable by index or table name.

Overrides: list.__delitem__

append(self, table)

source code 

Append a mmCIFTable. This will trigger the removal of any table with the same name.

Overrides: list.append

insert(self, i, table)

source code 

insert object before index

Overrides: list.insert
(inherited documentation)

remove(self, table)

source code 

remove first occurrence of value. Raises ValueError if the value is not present.

Overrides: list.remove
(inherited documentation)

get_table(self, name)

source code 

Looks up and returns a stored mmCIFTable class by its name. This name is the section key in the mmCIF file.

new_table(self, name, columns=None)

source code 

Creates and returns a mmCIFTable object with the given name. The object is added to this object before it is returned.