Skip to content

Commit

Permalink
Update mirna_quantification.py
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg authored Jul 31, 2024
1 parent 0b120f8 commit da2a958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/mirna_quantification.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def collapsed_contribution(aln: pysam.AlignedSegment) -> float:
Alignment to which the overall contribution is calculated
Returns:
the contribution of the alignment to the overall count
Contribution of alignment to overall count
"""
name = str(aln.query_name)
collapsed = 0.0
Expand Down Expand Up @@ -322,7 +322,7 @@ def nh_contribution(aln: pysam.AlignedSegment) -> float:
Alignment to which the overall contribution is calculated
Returns:
the contribution of the alignment to the overall count
Contribution of alignment to overall count
"""
name = str(aln.query_name)
nh_val = 0.0
Expand Down Expand Up @@ -355,7 +355,7 @@ def contribution(aln: pysam.AlignedSegment) -> float:
Alignment to which the overall contribution is calculated
Returns:
the contribution of the alignment to the overall count
Contribution of alignment to overall count
"""
try:
return 1 / float(aln.get_tag("NH"))
Expand Down

0 comments on commit da2a958

Please sign in to comment.