Outputing annotated VCF to the current directory instead of attempting to write in the directory next to the original vcf.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2869 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
8b555ff17c
commit
5f9c3f3884
|
|
@ -32,7 +32,7 @@ for record in maf_gen:
|
|||
|
||||
#vcf_gen = FlatFileTable.record_generator(vcf_file, "\t", 34)
|
||||
vcf_file = open(vcf_filename)
|
||||
vcf_out_file = open(os.path.splitext(vcf_filename)[0]+".maf_annotated.vcf", "w")
|
||||
vcf_out_file = open(os.path.splitext(os.path.basename(vcf_filename))[0]+".maf_annotated.vcf", "w")
|
||||
vcf_format_line = vcf_file.readline()
|
||||
vcf_out_file.write(vcf_format_line)
|
||||
if vcf_format_line != "##fileformat=VCFv3.3\n":
|
||||
|
|
|
|||
Loading…
Reference in New Issue