Skip to content

Commit

Permalink
fix: tweak mpileup params
Browse files Browse the repository at this point in the history
  • Loading branch information
Danderson123 committed Jan 23, 2025
1 parent 440096e commit f23bfa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amira/result_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def genotype_promoters(

def get_mean_read_depth_per_contig(bam_file, core_genes=None):
# Run samtools depth command and capture output
command = ["samtools", "mpileup", "-aa", "-Q", "0", "--ff", "UNMAP", bam_file] # -aa ensures all positions are included
command = ["samtools", "mpileup", "-aa", "-Q", "0", "--ff", "UNMAP,QCFAIL,DUP", bam_file]
# Run the command and capture the output
result = subprocess.run(command, capture_output=True, text=True, check=True)
# Parse the mpileup output
Expand Down

0 comments on commit f23bfa2

Please sign in to comment.