Skip to content

Commit

Permalink
changing float to int when calculating the number of reads in a fastq
Browse files Browse the repository at this point in the history
  • Loading branch information
sbastkowski committed Jan 7, 2025
1 parent f1feb78 commit ab7d1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quatradis/tisp/generator/from_alignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_number_reads(seq_file_in):
else:
cat_cmd = "cat"
lines = int(subprocess.check_output(["bash", "-c", cat_cmd + joiner + seq_file_in + " | wc -l"]).strip())
return lines / 4
return int(lines / 4)


def generate_stats(mapped_reads, out_file, fastq, nb_reads, nb_tagged_reads, nb_mapped, uis_map):
Expand Down

0 comments on commit ab7d1b8

Please sign in to comment.