Package csb :: Package bio :: Package fragments :: Module isites :: Class Library
[frames] | no frames]

Class Library

source code

object --+
         |
        Library
Known Subclasses:

Representation of an I-Sites peptide fragment library. Provides dictionary-like access to the underlying Cluster objects by either cluster.id or cluster.representative.accesion.

Instance Methods
 
__contains__(self, key) source code
 
__getitem__(self, item) source code
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
compact(self)
Compact the library by excluding unimportant information:
source code
 
serialize(self, file)
Serialize the library to a file.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
Library
deserialize(file)
Load I-sites from a serialization file.
source code
Properties
  clusters

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

compact(self)

source code 

Compact the library by excluding unimportant information:

  • documentation
  • clusters: file, program, covariance
Raises:
  • AttributeError - on attempt to compact a delay-parsed library

deserialize(file)
Static Method

source code 

Load I-sites from a serialization file.

Parameters:
  • file (str) - source file name
Returns: Library
the deserialized library object

serialize(self, file)

source code 

Serialize the library to a file.

Parameters:
  • file (str) - output file name
Raises:
  • AttributeError - on attempt to serialize a delay-parsed library

Property Details

clusters

Get Method:
unreachable.clusters(self)
Set Method:
unreachable.clusters(self, clusters)