8000 Merge AlignedSegment.query_qualities_str addition (PR #1341) · pysam-developers/pysam@9c4c693 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c4c693

Browse files
committed
Merge AlignedSegment.query_qualities_str addition (PR #1341)
2 parents 9fe6ca9 + 5a9eb8c commit 9c4c693

File tree

4 files changed

+276
-105
lines changed

4 files changed

+276
-105
lines changed

pysam/libcalignedsegment.pxd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,13 @@ cdef class AlignedSegment:
4242

4343
# caching of array properties for quick access
4444
cdef object cache_query_qualities
45+
cdef object cache_query_qualities_str
4546
cdef object cache_query_alignment_qualities
47+
cdef object cache_query_alignment_qualities_str
48+
cdef void _clear_cached_query_qualities(self)
4649
cdef object cache_query_sequence
4750
cdef object cache_query_alignment_sequence
51+
cdef void _clear_cached_query_sequences(self)
4852

4953
# add an alignment tag with value to the AlignedSegment
5054
# an existing tag of the same name will be replaced.

pysam/libcalignedsegment.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class AlignedSegment:
8383
template_length: int
8484
query_sequence: Optional[str]
8585
query_qualities: Optional[array]
86+
query_qualities_str: Optional[str]
8687
bin: int
8788
is_paired: bool
8889
is_proper_pair: bool
@@ -121,6 +122,8 @@ class AlignedSegment:
121122
@property
122123
def query_alignment_qualities(self) -> Optional[array]: ...
123124
@property
125+
def query_alignment_qualities_str(self) -> Optional[str]: ...
126+
@property
124127
def query_alignment_start(self) -> int: ...
125128
@property
126129
def query_alignment_end(self) -> int: ...

0 commit comments

Comments
 (0)
0