I have a VCF maf based on mutect. I check the vcf.py code and sequenza doens't seem able to handle this format yet only strelka and caveman.
Could you verify this? All my VCFs are based on mutect2 so I wonder if there is a fix to get around this since the difference between mutect and strelka/caveman are not that huge? Thanks!
sequenza-utils snp2seqz -v f6e2ea5a-0970-4e02-b11e-d83180dddf55.mutect2_somatic.PASS.vep.vcf -gc gc50.hg38.txt.gz --preset mutect -o test.seqz.gz
Traceback (most recent call last):
File "/home/lze6063/.conda/envs/sequenza/bin/sequenza-utils", line 11, in <module>
sys.exit(main())
File "/home/lze6063/.conda/envs/sequenza/lib/python3.7/site-packages/sequenza/commands.py", line 39, in main
modules[args.module](subparsers, args.module, extra, log)
File "/home/lze6063/.conda/envs/sequenza/lib/python3.7/site-packages/sequenza/programs/snp2seqz.py", line 98, in snp2seqz
for vcf_line in seqz_vcf:
File "/home/lze6063/.conda/envs/sequenza/lib/python3.7/site-packages/sequenza/vcf.py", line 57, in vfc2seqz
for line in vcf_gc:
File "/home/lze6063/.conda/envs/sequenza/lib/python3.7/site-packages/sequenza/izip.py", line 30, in next
self.c1_line = next(self.c1)
File "/home/lze6063/.conda/envs/sequenza/lib/python3.7/site-packages/sequenza/vcf.py", line 130, in vcf_parse
alleles[0], ref_alt, ':', ',', preset)
File "/home/lze6063/.conda/envs/sequenza/lib/python3.7/site-packages/sequenza/vcf.py", line 157, in split_format
alleles, ref_alt, ':', ',', None)
File "/home/lze6063/.conda/envs/sequenza/lib/python3.7/site-packages/sequenza/vcf.py", line 139, in split_format
format_str = format_str.split(split_char1)
AttributeError: 'list' object has no attribute 'split'