Hi @pwwang!
I'm trying to use vcfstats on a multiple sample vcf file in conda environment. But the command line return some errors that I could not solve.
I got TypeError: getattr(): attribute name must be string
[06/26/22 09:20:50] INFO Combining regions, remind that regions should not be overlapping ...
[06/26/22 09:20:50] INFO Getting vcf handler by given regions ...
[06/26/22 09:20:50] WARNING (cyvcf2) [W::bcf_hdr_check_sanity] GL should be declared as Number=G
[06/26/22 09:20:50] INFO Getting instances ...
[06/26/22 09:20:50] INFO INSTANCE: 'test'
[06/26/22 09:20:50] INFO test: Parsing formulas ...
[06/26/22 09:20:50] INFO test: plot type: col
[06/26/22 09:20:50] INFO Start reading variants ...
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '1' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '2' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '3' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '4' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '5' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '6' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '7' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '8' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '9' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig '10' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] WARNING (cyvcf2) [W::vcf_parse] Contig 'X' is not defined in the header. (Quick workaround: index the file with tabix.)
[06/26/22 09:20:50] INFO 105 variants read.
[06/26/22 09:20:50] INFO test: Summarizing aggregations ...
Traceback (most recent call last):
File "/gpfs/ycga/project/lifton/jc2545/conda_envs/vcfstats/bin/vcfstats", line 8, in <module>
sys.exit(main())
File "/gpfs/ycga/project/lifton/jc2545/conda_envs/vcfstats/lib/python3.8/site-packages/vcfstats/[cli.py](http://cli.py/)", line 209, in main
instance.plot()
File "/gpfs/ycga/project/lifton/jc2545/conda_envs/vcfstats/lib/python3.8/site-packages/vcfstats/[instance.py](http://instance.py/)", line 285, in plot
self.save_plot(plt, theme_elems)
File "/gpfs/ycga/project/lifton/jc2545/conda_envs/vcfstats/lib/python3.8/site-packages/vcfstats/[instance.py](http://instance.py/)", line 318, in save_plot
Diot(height=1000, width=1000, res=100, format=self.figfmt)
File "/gpfs/ycga/project/lifton/jc2545/conda_envs/vcfstats/lib/python3.8/site-packages/diot/[diot.py](http://diot.py/)", line 312, in __or__
ret.update(other)
File "/gpfs/ycga/project/lifton/jc2545/conda_envs/vcfstats/lib/python3.8/site-packages/diot/[diot.py](http://diot.py/)", line 294, in update
dict_to_update = dict(*value, **kwargs)
File "/gpfs/ycga/project/lifton/jc2545/conda_envs/vcfstats/lib/python3.8/site-packages/pyparam/[utils.py](http://utils.py/)", line 46, in __getitem__
return getattr(self, name)
TypeError: getattr(): attribute name must be string
And i used it in conda environment (python 3.8)python 3.9 also returns the same error.
Hi @pwwang! I'm trying to use vcfstats on a multiple sample vcf file in conda environment. But the command line return some errors that I could not solve.
I got
TypeError: getattr(): attribute name must be string
And i used it in conda environment (python 3.8) python 3.9 also returns the same error.