Closed Homap closed 4 years ago
Hi @Homap,
UserWarning: tabix not found, falling back to scanning to region
warnings.warn('tabix not found, falling back to scanning to region')
This means that tabix is not installed on the system you are running on, which means that scikit-allel has to scan through the VCF to find the data for a given chromosome, which can be slow. If you are able to install tabix then it will be faster, because scikit-allel can use tabix to jump into the VCF file to the location where the data are for a given chromosome.
If you are on windows then there is no way to install tabix. If you are on linux or max then you can install tabix various ways, e.g., via bioconda (I think it's part of the htslib package).
Hth.
Hi,
Thank you so much. I installed tabix
via bionconda and it's now under:
/pathto/envs/popgene/bin/tabix
I tried again, and I got almost the same warning:
/pathto/envs/popgene/lib/python3.7/site-packages/allel/io/vcf_read.py:1057: UserWarning: error occurred attempting tabix ([tabix] failed to load the index file.); falling back to scanning to region
'scanning to region' % e)
Thanks a lot for your help! Homa
Hi Homa, now you need to tabix index your VCF file. E.g., if I remember rightly, run:
tabix -p vcf /path/to/your/file.vcf.gz
That should create an index file. Then scikit-allel warning should go away.
On Fri, 18 Oct 2019, 18:28 Homa Papoli, notifications@github.com wrote:
Hi,
Thank you so much. I installed tabix via bionconda and it's now under:
/pathto/envs/popgene/bin/tabix
I tried again, and I got almost the same warning:
/pathto/envs/popgene/lib/python3.7/site-packages/allel/io/vcf_read.py:1057: UserWarning: error occurred attempting tabix ([tabix] failed to load the index file.); falling back to scanning to region 'scanning to region' % e)
Thanks a lot for your help! Homa
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cggh/scikit-allel/issues/292?email_source=notifications&email_token=AAFLYQQQRJ66AVIUI7VNLOTQPHW37A5CNFSM4JCJPQ62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBVHXZY#issuecomment-543849447, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFLYQXW52D4TC4X4UDYKOTQPHW37ANCNFSM4JCJPQ6Q .
Hello,
Thank you for the wonderful package.
When trying to convert vcf to hdf5, using the following:
I get the following warning:
I was wondering what does this mean and how I could solve it?
Thank you!