@@ -865,11 +865,11 @@ def sum_of_base_qualities(rec: AlignedSegment, min_quality_score: int = 15) -> i
865
865
866
866
867
867
def _set_common_mate_fields (dest : AlignedSegment , source : AlignedSegment ) -> None :
868
- """Set common mate info on a destination alignment to its mate's non-supplementary alignment.
868
+ """Set common mate info on a destination alignment from its mate's non-supplementary alignment.
869
869
870
870
Args:
871
871
dest: The alignment to set the mate info upon.
872
- source: The alignment to use as a mate reference.
872
+ source: The non-supplementary alignment to use as a mate reference.
873
873
874
874
Raises:
875
875
ValueError: If dest and source are of the same read ordinal.
@@ -899,7 +899,7 @@ def set_mate_info(
899
899
is_proper_pair : Callable [[AlignedSegment , AlignedSegment ], bool ] = is_proper_pair ,
900
900
isize : Callable [[AlignedSegment , AlignedSegment ], int ] = isize ,
901
901
) -> None :
902
- """Resets mate pair information between reads in a pair .
902
+ """Resets mate pair information between two records that share a query name .
903
903
904
904
Args:
905
905
rec1: The first record in the pair.
@@ -925,7 +925,7 @@ def set_mate_info(
925
925
926
926
927
927
def set_mate_info_on_secondary (secondary : AlignedSegment , mate_primary : AlignedSegment ) -> None :
928
- """Set mate info on a secondary alignment to its mate's primary alignment.
928
+ """Set mate info on a secondary alignment from its mate's primary alignment.
929
929
930
930
Args:
931
931
secondary: The secondary alignment to set mate information upon.
@@ -946,7 +946,7 @@ def set_mate_info_on_secondary(secondary: AlignedSegment, mate_primary: AlignedS
946
946
947
947
948
948
def set_mate_info_on_supplementary (supp : AlignedSegment , mate_primary : AlignedSegment ) -> None :
949
- """Set mate info on a supplementary alignment to its mate's primary alignment.
949
+ """Set mate info on a supplementary alignment from its mate's primary alignment.
950
950
951
951
Args:
952
952
supp: The supplementary alignment to set mate information upon.
@@ -1241,7 +1241,7 @@ def set_mate_info(
1241
1241
is_proper_pair : Callable [[AlignedSegment , AlignedSegment ], bool ] = is_proper_pair ,
1242
1242
isize : Callable [[AlignedSegment , AlignedSegment ], int ] = isize ,
1243
1243
) -> Self :
1244
- """Reset all mate information on every record in the template.
1244
+ """Reset all mate information on every alignment in the template.
1245
1245
1246
1246
Args:
1247
1247
is_proper_pair: A function that takes two alignments and determines proper pair status.
0 commit comments