I am trying to access 1000 Genomes (1KG) data using tabix as per the 1KG tabix
documentation "How do I get a genomic region sub-section of your files?" but am getting errors.
Command I'm running:
I am getting errors when I run the sample command provided in the docs:
tabix -h ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20100804/ALL.2of4intersection.20100804.genotypes.vcf.gz 2:39967768-39967768
Error message:
The error I'm getting is:
[E::bgzf_read] bgzf_read_block error -1 after 50219 of 52392 bytes
Could not load .tbi/.csi index of [...file name...]
Manual download
I tried to download a .tbi
file and then run tabix
as per this comment on GitHub but got an error
I ran:
wget ftp://ftp.ncbi.nih.gov/snp/organisms/human_9606_b151_GRCh37p13/VCF/00-All.vcf.gz.tbi
which seemed to work, but this:
tabix ftp://ftp.ncbi.nih.gov/snp/organisms/human_9606_b151_GRCh37p13/VCF/00-All.vcf.gz 1:17375-17375
returned an error:
hts_close returned non-zero status:
Other information
This worked for me a few days ago with the command above and my own queries, but I am now having issues.
I'm not very savvy with command line tools so it could very well be me, though the GUI Data Slicer tool for accessing 1KG files doesn't seem to be working right now, so perhaps it's a server-side thing.
Software
- I'm on a PC using the Windows Linux Subsystem
- I installed
tabix
viabioconda
after having issues compiling it directly as specified in docs - Since having this issue I have re-installed
anaconda
,bioconda
,tabix
,samtools
, andhtslib
.
Tabix info
which tabix
/home/brouwern/anaconda3/bin/tabix
tabix --version
tabix (htslib) 1.3.1
Copyright (C) 2016 Genome Research Ltd.