Skip to content

Commit

Permalink
add external_db
Browse files Browse the repository at this point in the history
  • Loading branch information
Jody Phelan committed Aug 12, 2019
1 parent e8034c0 commit e8135e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions pathogenprofiler/bam.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ def call_variants(self,caller="GATK",gff_file=None,bed_file=None,call_method="op
return bcf(self.variant_bcf_file,prefix=self.prefix)
def gatk_gvcf(self,bed_file=None,low_dp_as_missing=False,max_dp=None,min_dp=10):
add_arguments_to_self(self,locals())
dict_file = self.ref_file.replace(".fasta","").replace(".fa","")
if nofile(dict_file+".dict"):
dict_file = self.ref_file.replace(".fasta","").replace(".fa","")+".dict"
if nofile(dict_file):
run_cmd("gatk CreateSequenceDictionary -R %(ref_file)s" % vars(self))
if nofile(self.ref_file+".fai"):
run_cmd("samtools faidx %(ref_file)s" % vars(self))

self.gvcf_file = "%s.gvcf.gz" % self.prefix
self.tmp_gvcf_file = "%s.tmp.gvcf.gz" % self.prefix
self.bed_option = "-L %s " % self.bed_file if self.bed_file else ""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
setuptools.setup(

name="pathogen-profiler",
version="1.5.0",
version="1.6.0",
packages=["pathogenprofiler",],
license="GPL3",
long_description="Pathogen profiling tool",
Expand Down

0 comments on commit e8135e1

Please sign in to comment.