Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown SNP type in manifest dbSNP, for dbSNP149 #17

Closed
ericloud opened this issue Mar 22, 2017 · 0 comments
Closed

Unknown SNP type in manifest dbSNP, for dbSNP149 #17

ericloud opened this issue Mar 22, 2017 · 0 comments

Comments

@ericloud
Copy link
Contributor

Below the error message:

In [1]: import pyGeno.bootstrap as B
In [2]: B.importSNPs("GRCh38p7_dbSNP149_common_all.tar.gz")
Importing polymorphism set: /u/eaudemard/dev/pyGeno/pyGeno/bootstrap_data/SNPs/GRCh38p7_dbSNP149_common_all.tar.gz... (This may take a while)
Downloading file: ftp://ftp.ncbi.nih.gov/snp/organisms/human_9606_b149_GRCh38p7/VCF/common_all_20161122.vcf.gz...
done.
---------------------------------------------------------------------------
FutureWarning                             Traceback (most recent call last)
<ipython-input-2-e9741c79a81d> in <module>()
----> 1 B.importSNPs("GRCh38p7_dbSNP149_common_all.tar.gz")

/u/eaudemard/dev/pyGeno/pyGeno/bootstrap.pyc in importSNPs(name)
    108         """Import a SNP set shipped with pyGeno. Most of the datawraps only contain URLs towards data provided by third parties."""
    109         path = os.path.join(this_dir, "bootstrap_data", "SNPs/" + name)
--> 110         PS.importSNPs(path)

/u/eaudemard/dev/pyGeno/pyGeno/importation/SNPs.pyc in importSNPs(packageFile)
     69                         return _importSNPs_AgnosticSNP(setName, species, genomeSource, snpsFile)
     70                 else :
---> 71                         raise FutureWarning('Unknown SNP type in manifest %s' % typ)
     72         else :
     73                 raise KeyError("There's already a SNP set by the name %s. Use deleteSNPs() to remove it first" %setName)

FutureWarning: Unknown SNP type in manifest dbSNP

here the manifest.ini:

[package_infos]
description = SNP set for dbSNP149 that contains only common SNP. For more details: http://www.ncbi.nlm.nih.gov/variation/docs/human_variation_vcf/
maintainer = Eric Audemard
maintainer_contact = [email protected]
version = 1

[set_infos]
species = human
name = GRCh38p7_dbSNP149_common_all
type = dbSNP
source = ftp://ftp.ncbi.nih.gov/snp/organisms/human_9606_b149_GRCh38p7/VCF/common_all_20161122.vcf.gz

[snps]
filename = ftp://ftp.ncbi.nih.gov/snp/organisms/human_9606_b149_GRCh38p7/VCF/common_all_20161122.vcf.gz
ericloud added a commit to ericloud/pyGeno that referenced this issue Mar 22, 2017
tariqdaouda added a commit that referenced this issue Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants