skbio.alignment.AlignmentStructure¶
- class skbio.alignment.AlignmentStructure¶
Wraps the result of an alignment c struct so it is accessible to Python
Notes
cigar may be empty depending on parameters used.
target_begin and query_begin may be -1 depending on parameters used.
Developer note: read_sequence is an alias for query_sequence used by ssw.c as is reference_sequence for target_sequence
Attributes
aligned_query_sequenceReturns the query sequence aligned by the cigar
aligned_target_sequenceReturns the target sequence aligned by the cigar
cigarCigar formatted string for the optimal alignment
optimal_alignment_scoreOptimal alignment score
query_beginReturns the character index at which the query sequence begins
query_endCharacter index at where query sequence ends
query_sequenceQuery sequence
suboptimal_alignment_scoreSuboptimal alignment score
target_beginCharacter index where the target's alignment begins
target_end_optimalCharacter index where the target's optimal alignment ends
target_end_suboptimalCharacter index where the target's suboptimal alignment ends
target_sequenceTarget sequence
Built-ins
__eq__(value, /)Return self==value.
__ge__(value, /)Return self>=value.
__getitem__(key, /)Return self[key].
__gt__(value, /)Return self>value.
__hash__()Return hash(self).
__le__(value, /)Return self<=value.
__lt__(value, /)Return self<value.
__ne__(value, /)Return self!=value.
__str__()Return str(self).
Methods
Returns True if alignment inidices start at 0 else False
Set the aligment indices to start at 0 if True else 1 if False