Trees | Index | Help |
---|
Package Bio :: Package NeuralNetwork :: Package Gene :: Module Signature :: Class SignatureCoder |
|
Convert a Sequence into its signature representatives.
This takes a sequence and a set of signatures, and converts the sequence into a list of numbers representing the relative amounts each signature is seen in the sequence. This allows a sequence to serve as input into a neural network.Method Summary | |
---|---|
Initialize with the signatures to look for. | |
Convert a sequence into a representation of its signatures. |
Method Details |
---|
__init__(self,
signatures,
max_gap)
|
representation(self, sequence)Convert a sequence into a representation of its signatures. Arguments: o sequence - A Seq object we are going to convert into a set of signatures. Returns: A list of relative signature representations. Each item in the list corresponds to the signature passed in to the initializer and is the number of times that the signature was found, divided by the total number of signatures found in the sequence. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Aug 27 16:43:46 2007 | http://epydoc.sf.net |