Location
#
- class biotite.sequence.Location(first, last, strand=Strand.FORWARD, defect=<Defect.NONE: 0>)[source]#
Bases:
object
A
Location
defines at which base(s)/residue(s) a feature is located.A feature can have multiple
Location
instances if multiple locations are joined.Objects of this class are immutable.
- Attributes:
- firstint
Starting base or residue position of the feature.
- lastint
Inclusive ending base or residue position of the feature.
- strandStrand
The strand direction. Always
Strand.FORWARD
for peptide features.- defectDefect
A possible defect of the location.
- class Defect(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
Flag
This enum type describes location defects.
A location has a defect, when the feature itself is not directly located in the range of the first to the last base.
NONE - No location defect
MISS_LEFT - A part of the feature has been truncated before the first base/residue of the
Location
(probably by indexing anAnnotation
object)MISS_RIGHT - A part of the feature has been truncated after the last base/residue of the
Location
(probably by indexing anAnnotation
object)BEYOND_LEFT - The feature starts at an unknown position before the first base/residue of the
Location
BEYOND_RIGHT - The feature ends at an unknown position after the last base/residue of the
Location
UNK_LOC - The exact position is unknown, but it is at a single base/residue between the first and last residue of the
Location
, inclusiveBETWEEN - The position is between to consecutive bases/residues.
- NONE = 0#
- MISS_LEFT = 1#
- MISS_RIGHT = 2#
- BEYOND_LEFT = 4#
- BEYOND_RIGHT = 8#
- UNK_LOC = 16#
- BETWEEN = 32#
Gallery#

Identification of a binding site by sequence conservation

Visualization of a region in proximity to a feature

Three ways to get the secondary structure of a protein