A document based Variant database inspired by ga4gh Variants schema
Project description
# ga4gh-mongo
A document based Variant database inspired by ga4gh Variants schema.
https://github.com/ga4gh/schemas
## Usage
from ga4ghmongo.schema import Variant v = Variant.create(start=0,reference_bases=”A”, alternate_bases=[“T”]) v.to_mongo().to_dict()
{‘info’: {}, ‘is_snp’: True, ‘is_insertion’: False, ‘reference_bases’: u’A’, ‘created_at’: datetime.datetime(2016, 3, 16, 15, 11, 43, 989088), ‘updated_at’: datetime.datetime(2016, 3, 16, 15, 11, 43, 989189), ‘start’: 0, ‘var_hash’: u’b819f0202b6a9dff2821bbcf7dac87536bc9cb08be6eb96c8dad3fd4fd2a6fd6’, ‘names’: [u’A0T’], ‘is_indel’: False, ‘length’: 0, ‘alternate_bases’: [u’T’], ‘is_deletion’: False, ‘variant_sets’: []}
### Changes from ga4gh v0.5.1 API
In ga4gh schema each Variant must belong to one and only one VariantSet. Here we allow Variants to belong to multiple VariantSets
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ga4ghmongo-0.0.1.2.tar.gz
.
File metadata
- Download URL: ga4ghmongo-0.0.1.2.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614d5e409e993cac2beb5034213d8e1a855d55481d0e2468b4724d1b85719ec8 |
|
MD5 | 6557d21feb7540ad7cc2548036563a2b |
|
BLAKE2b-256 | 507c14c9ea8f8f2edb7871233c4dac8c32094acd274ce7f3c9e917c4a856a756 |