brentp / peddy

genotype :: ped correspondence check, ancestry check, sex check. directly, quickly on VCF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error loading tabix index

ccymak opened this issue · comments

May I ask if this is a problem with the vcf file?

peddy --plot -p $cpu --loglevel DEBUG --prefix tof99test /home/ccymak/tof_exome/TOF_Solexa_99.genotypecalls.vcf /home/ccymak/tof_exome/2018_SS-180814-01a/TOF_99.ped

Thanks


python3/3.6.4 is loaded
2019-10-24 15:47:00 paedbc01 peddy.cli[223643] INFO Running Peddy version 0.4.3
/home/ccymak/peddy/peddy/cli.py:198: FutureWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing

See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#ix-indexer-is-deprecated
ped_df = ped_df.ix[samples, :]
/home/ccymak/.local/lib/python3.6/site-packages/pandas/core/indexing.py:822: FutureWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing

See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#ix-indexer-is-deprecated
retval = getattr(retval, self.name)._getitem_axis(key, axis=i)
2019-10-24 15:47:00 paedbc01 peddy.cli[223643] INFO �[1;31mped_check�[0m
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/software/python/3.6.4/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "cyvcf2/cyvcf2.pyx", line 93, in cyvcf2.cyvcf2._par_relatedness
File "cyvcf2/cyvcf2.pyx", line 783, in cyvcf2.cyvcf2.VCF._site_relatedness
File "cyvcf2/cyvcf2.pyx", line 658, in gen_variants
File "cyvcf2/cyvcf2.pyx", line 376, in call
AssertionError: error loading tabix index for b'/home/ccymak/tof_exome/TOF_Solexa_99.genotypecalls.vcf'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/ccymak/.local/bin/peddy", line 11, in
load_entry_point('peddy', 'console_scripts', 'peddy')()
File "/home/mullinyu/.local/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/mullinyu/.local/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/mullinyu/.local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/mullinyu/.local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/ccymak/peddy/peddy/cli.py", line 209, in peddy
in ("ped_check", "het_check", "sex_check")]):
File "/home/ccymak/peddy/peddy/cli.py", line 43, in run
prefix=prefix, **kwargs)
File "/home/ccymak/peddy/peddy/peddy.py", line 970, in ped_check
min_depth=min_depth, each=each)
File "cyvcf2/cyvcf2.pyx", line 39, in cyvcf2.cyvcf2.par_relatedness
File "/software/python/3.6.4/lib/python3.6/multiprocessing/pool.py", line 735, in next
raise value
AssertionError: error loading tabix index for b'/home/ccymak/tof_exome/TOF_Solexa_99.genotypecalls.vcf'

yes, your vcf should be bgzipped and indexed.

Hi, does your VCF file also have an index file (.csi or .tbi) ?

yes, that's correct. you can also change 1 axis to show relatedness which might be more easily interpreted.