Trees | Indices | Help |
---|
|
object --+ | FeatureLocation
Specify the location of a feature along a sequence.
This attempts to deal with fuzziness of position ends, but also make it easy to get the start and end in the 'normal' case (no fuzziness).
You should access the start and end attributes with your_location.start and your_location.end. If the start and end are exact, this will return the positions, if not, we'll return the approriate Fuzzy class with info about the position and fuzziness.
Note that the start and end location numbering follow Python's scheme, thus a GenBank entry of 123..150 (one based counting) becomes a location of [122:150] (zero based counting).
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
start Start location (possibly a fuzzy position, read only). |
|||
end End location (possibly a fuzzy position, read only). |
|||
nofuzzy_start Start position (integer, approximated if fuzzy, read only). |
|||
nofuzzy_end End position (integer, approximated if fuzzy, read only). |
|||
Inherited from |
|
Specify the start and end of a sequence feature. start and end arguments specify the values where the feature begins and ends. These can either by any of the *Position objects that inherit from AbstractPosition, or can just be integers specifying the position. In the case of integers, the values are assumed to be exact and are converted in ExactPosition arguments. This is meant to make it easy to deal with non-fuzzy ends. i.e. Short form: >>> from Bio.SeqFeature import FeatureLocation >>> loc = FeatureLocation(5,10) Explicit form: >>> from Bio.SeqFeature import FeatureLocation, ExactPosition >>> loc = FeatureLocation(ExactPosition(5),ExactPosition(10)) Other fuzzy positions are used similarly, >>> from Bio.SeqFeature import FeatureLocation >>> from Bio.SeqFeature import BeforePosition, AfterPosition >>> loc2 = FeatureLocation(BeforePosition(5),AfterPosition(10))
|
Returns a representation of the location (with python counting). For the simple case this uses the python splicing syntax, [122:150] (zero based counting) which GenBank would call 123..150 (one based counting).
|
A string representation of the location for debugging.
|
|
startStart location (possibly a fuzzy position, read only).
|
endEnd location (possibly a fuzzy position, read only).
|
nofuzzy_startStart position (integer, approximated if fuzzy, read only). To get non-fuzzy attributes (ie. the position only) ask for 'location.nofuzzy_start', 'location.nofuzzy_end'. These should return the largest range of the fuzzy position. So something like: (10.20)..(30.40) should return 10 for start, and 40 for end.
|
nofuzzy_endEnd position (integer, approximated if fuzzy, read only). To get non-fuzzy attributes (ie. the position only) ask for 'location.nofuzzy_start', 'location.nofuzzy_end'. These should return the largest range of the fuzzy position. So something like: (10.20)..(30.40) should return 10 for start, and 40 for end.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Jul 14 01:37:22 2010 | http://epydoc.sourceforge.net |