Skip to content
Snippets Groups Projects
Commit 2e634083 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

update samtools flagstat and name of outfile

parent 6a389e7f
Branches
Tags
1 merge request!5Resolve "Add mapping and trimming"
......@@ -193,9 +193,9 @@ def main():
align_se(fastq, sai, reference, fastq_basename)
bam_mapstats_filename = '%s.raw.srt.bam.flagstat.qc' % (fastq_basename)
with open(raw_bam_mapstats_filename, 'w') as fh:
with open(bam_mapstats_filename, 'w') as fh:
subprocess.check_call(
shlex.split("%s flagstat %s" % (samtools, bam_mapstats_filename)),
shlex.split("samtools flagstat %s" % (bam_mapstats_filename)),
stdout=fh)
# Remove sai files
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment