Skip to content

Commit

Permalink
fixes #12 by removing the sparsify argument to Pandas.DataFrame.to_cs…
Browse files Browse the repository at this point in the history
…v() in output.VCF()
  • Loading branch information
kwkroll32 committed Feb 4, 2017
1 parent b0afaf1 commit a90dbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion output.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def VCF(self):
out = varDF.reindex(columns=vcf_fields).fillna('.') # drop the columns that are unrelated to vcf format, while reordering columns into proper vcf order
official_vcf_fields = ['#CHROM','POS','ID', 'REF','ALT', 'QUAL', 'FILTER','INFO']
out.columns = pd.Index(official_vcf_fields) # rename columns to comply with official vcf standards
out.to_csv(ofVariantVCF, sep='\t', na_rep='?', index=False, header=True, sparsify=False)
out.to_csv(ofVariantVCF, sep='\t', na_rep='?', index=False, header=True) #, sparsify=False)
ofVariantVCF.close()
print("\t{0}: {1} rows".format(ofVariantVCF.name, len(out)))
return True
Expand Down

0 comments on commit a90dbef

Please sign in to comment.