question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in importing my_SNP.tar.gz

See original GitHub issue

Hi, I was trying to import my SNP file and I followed your instruction here. However, I got the error message as follows: Importing polymorphism set: my/path/to/my_SNP.tar.gz... (This may take a while) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pyGeno/importation/SNPs.py", line 65, in importSNPs return _importSNPs_dbSNPSNP(setName, species, genomeSource, snpsFile) File "pyGeno/importation/SNPs.py", line 192, in _importSNPs_dbSNPSNP snpData = VCFFile(snpsFile, gziped = True, stream = True) File "pyGeno/tools/parsers/VCFTools.py", line 89, in __init__ self.parse(filename, gziped, stream) File "pyGeno/tools/parsers/VCFTools.py", line 106, in parse ll = self.f.readline() File "/usr/lib/python2.7/gzip.py", line 464, in readline c = self.read(readsize) File "/usr/lib/python2.7/gzip.py", line 268, in read self._read(readsize) File "/usr/lib/python2.7/gzip.py", line 303, in _read self._read_gzip_header() File "/usr/lib/python2.7/gzip.py", line 197, in _read_gzip_header raise IOError, 'Not a gzipped file' IOError: Not a gzipped file

I zipped both manifest.ini and snps.txt to my_SNP.tar.gz using tar -cvzf.

Do you have any idea why this issue comes up and how I could fix this?

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Yiming-Shencommented, Nov 9, 2017

Thanks, I would look into the Agnostic SNP format and try to find a proper way to convert VCF files. Just a quick question. Since the position in VCF file is 1 based and Agnostic SNP is 0 based, does that mean the number of positions in VCF file needs to minus 1 when converted to Agnostic?

0reactions
tariqdaoudacommented, Nov 10, 2017

You’re welome, I’m here to help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot import a tar.gz file
First I got different error messages while trying to import. I updated Java, downloaded the earliest release of OR and changed the browser...
Read more >
GitLab project import crashes when the .tar.gz file is invalid ...
Project import accepts any .tar.gz file and crashes with an unhelpful error message. The crash is normal, I want to address the error...
Read more >
Unable to open a tar.gz file
I am running Mac OS X 10.7. My command line returns: tar: Unrecognized archive format tar: Error exit delayed from previous errors. I...
Read more >
SMR.pdf
NOTE : 1) The program is able to read *.tar.gz file. 2) The SNP and probe information in the SMR eQTL output files...
Read more >
NG Sequence
If this returns an error message then first download the sequences to your desktop and import them from there. myseq1[grep("phosphoesterase" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found