Skip to content

Commit 716de79

Browse files
committed
chore: tweak phrasing in docstrings slightly
1 parent 7116964 commit 716de79

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fgpyo/sam/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -865,11 +865,11 @@ def sum_of_base_qualities(rec: AlignedSegment, min_quality_score: int = 15) -> i
865865

866866

867867
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.
869869
870870
Args:
871871
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.
873873
874874
Raises:
875875
ValueError: If dest and source are of the same read ordinal.
@@ -899,7 +899,7 @@ def set_mate_info(
899899
is_proper_pair: Callable[[AlignedSegment, AlignedSegment], bool] = is_proper_pair,
900900
isize: Callable[[AlignedSegment, AlignedSegment], int] = isize,
901901
) -> None:
902-
"""Resets mate pair information between reads in a pair.
902+
"""Resets mate pair information between two records that share a query name.
903903
904904
Args:
905905
rec1: The first record in the pair.
@@ -925,7 +925,7 @@ def set_mate_info(
925925

926926

927927
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.
929929
930930
Args:
931931
secondary: The secondary alignment to set mate information upon.
@@ -946,7 +946,7 @@ def set_mate_info_on_secondary(secondary: AlignedSegment, mate_primary: AlignedS
946946

947947

948948
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.
950950
951951
Args:
952952
supp: The supplementary alignment to set mate information upon.
@@ -1241,7 +1241,7 @@ def set_mate_info(
12411241
is_proper_pair: Callable[[AlignedSegment, AlignedSegment], bool] = is_proper_pair,
12421242
isize: Callable[[AlignedSegment, AlignedSegment], int] = isize,
12431243
) -> Self:
1244-
"""Reset all mate information on every record in the template.
1244+
"""Reset all mate information on every alignment in the template.
12451245
12461246
Args:
12471247
is_proper_pair: A function that takes two alignments and determines proper pair status.

0 commit comments

Comments
 (0)