Skip to content

Commit

Permalink
ci: fix static code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
deliaBlue committed Aug 18, 2024
1 parent e1643ca commit 032af37
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/mirna_quantification.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

# pylint: disable=line-too-long

"""Quantify miRNAs and corresponding isomiRs.
Read the input SAM file, calculate the contribution sum of the intersecting
Expand Down Expand Up @@ -115,7 +117,8 @@
command: mirna_quantification.py SAM --count --len --mir-list isomir
output: hsa-miR-512-3p|0|1|23M|22C0|AAGTGCTGTCATAGCTGAGGTAA 4.333333333333333 6 23
hsa-miR-512-3p|0|1|23M|3T18C0|AAGGGCTGTCATAGCTGAGGTAA 12.0 8 19
"""
""" # noqa: E501
# pylint: enable=line-too-long

import argparse
from pathlib import Path
Expand Down Expand Up @@ -285,7 +288,6 @@ def collapsed_contribution(aln: pysam.AlignedSegment) -> float:
Alignment to which the overall contribution is calculated
Returns:
Contribution of alignment to overall count
"""
name = str(aln.query_name)
Expand Down Expand Up @@ -372,7 +374,8 @@ def get_name(pre_name: str) -> list[str]:
Args:
pre_name:
string with the format FEAT_NAME|5p-SHIFT|3p-SHIFT|CIGAR|MD|READ_SEQ
string with the format
FEAT_NAME|5p-SHIFT|3p-SHIFT|CIGAR|MD|READ_SEQ
Returns:
list with the species name to be found in the final table and its type
Expand Down

0 comments on commit 032af37

Please sign in to comment.