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 032af37 commit 55712c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/iso_name_tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def attributes_dictionary(attr: str) -> Dict[str, str]:


def parse_intersect_output(
intersect_file: Path, id: str = "name", extension: int = 0
intersect_file: Path, ID: str = "name", extension: int = 0
) -> Optional[Dict[Optional[str], list]]:
"""Parse intersect BED file.
Expand Down Expand Up @@ -205,7 +205,7 @@ def parse_intersect_output(
for line in bedfile:
fields = Fields(*line.strip().split("\t"))

miRNA_name = attributes_dictionary(fields.feat_attributes)[id]
miRNA_name = attributes_dictionary(fields.feat_attributes)[ID]
miRNA_start = int(fields.feat_start) + extension
miRNA_end = int(fields.feat_end) - extension

Expand Down Expand Up @@ -268,7 +268,7 @@ def main(args) -> None:
"""Add intersecting feature(s) into a SAM file as a tag."""
intersect_data = parse_intersect_output(
intersect_file=args.bed,
id=args.id,
ID=args.id,
extension=args.extension,
)

Expand Down

0 comments on commit 55712c7

Please sign in to comment.