Skip to content

Commit

Permalink
add tbprofiler_get_sequences.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jody Phelan committed Oct 9, 2019
1 parent 0789804 commit b11fdae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tbprofiler_generate_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def main(args):
params["vcf"] = "%s/%s.targets.csq.vcf.gz" % (args.dir, s)
params["tmp_vcf"] = "%s/%s.targets.csq.tmp.vcf.gz" % (args.dir, s)
params["sample_fa"] = "%s.targets.fa" % (s)
pp.run_cmd("bcftools filter -e 'sum(AD)=0' -S . %(vcf)s | bcftools view -a | grep -v NON_REF | -Oz -o %(tmp_vcf)s" % params)
pp.run_cmd("bcftools filter -e 'sum(AD)=0' -S . %(vcf)s | bcftools view -a | grep -v NON_REF | bcftools view -Oz -o %(tmp_vcf)s" % params)
pp.run_cmd("bcftools index %(tmp_vcf)s" % params)
pp.run_cmd("samtools faidx -r %(tmp_locations)s %(ref)s | bcftools consensus -H A %(tmp_vcf)s > %(sample_fa)s" % params)
fa_dict = pp.fasta(params["sample_fa"]).fa_dict
Expand Down

0 comments on commit b11fdae

Please sign in to comment.