This project has been archived by its maintainers, and is no longer receiving any updates.
About pynmdc
PyNMDC is a Python package to work with NMDC data.
More about NMDC: https://microbiomedata.org/
Install (for developers only):
Clone the repository
git clone git@github.com:microbiomedata/pynmdc.gitc.git
Setup
Package intall using pypi
pynmdc$ pip install nmdc
Go to the pynmdc package root dir and run the following command to install the package in developer mode,
pynmdc$ pip install -e .
Test Command line interface
pynmdc$ nmdc --help
Usage: nmdc [OPTIONS] COMMAND [ARGS]...
NMDC Tools v0.2.
Options:
--help Show this message and exit.
Commands:
gff2json Convert GFF3 to NMDC JSON format.
Test the package
The test_data directory contains two example gff files and the corresponding JSON outputs. Note that the string nmdc:4ce9a799923b238585fc952135e5a0f5 is an example activity id.
MetaG_annotation$ nmdc gff2json -of simple_feature.json -oa simple_func.json -ai nmdc:4ce9a799923b238585fc952135e5a0f5 simple_example.gff
This command will generate two json files: simple_feature.json has the genome feature and simple_func.json has the functional annotation.
The content of the src/nmdc/test_data/MetaG_annotation/simple_example.gff file is:
Ga0185794_41 GeneMark.hmm-2 v1.05 CDS 48 1037 56.13 + 0 ID=Ga0185794_41_48_1037;translation_table=11;start_type=ATG;product=5-methylthioadenosine/S-adenosylhomocysteine deaminase;product_source=KO:K12960;cath_funfam=3.20.20.140;cog=COG0402;ko=KO:K12960;ec_number=EC:3.5.4.28,EC:3.5.4.31;pfam=PF01979;superfamily=51338,51556```
simple_feature.json looks like this:
{
"genome_feature_set": [
{
"seqid": "nmdc:Ga0185794_41",
"start": 48,
"end": 1037,
"strand": "+",
"type": "SO:0000316",
"encodes": "nmdc:Ga0185794_41_48_1037"
}
]
}
simple_func.json looks like this:
{
"functional_annotation_set": [
{
"subject": "nmdc:Ga0185794_41_48_1037",
"has_function": "5-methylthioadenosine/S-adenosylhomocysteine deaminase",
"was_generated_by": "nmdc:4ce9a799923b238585fc952135e5a0f5"
},
{
"subject": "nmdc:Ga0185794_41_48_1037",
"has_function": "CATH:3.20.20.140",
"was_generated_by": "nmdc:4ce9a799923b238585fc952135e5a0f5"
},
{
"subject": "nmdc:Ga0185794_41_48_1037",
"has_function": "EGGNOG:COG0402",
"was_generated_by": "nmdc:4ce9a799923b238585fc952135e5a0f5"
},
{
"subject": "nmdc:Ga0185794_41_48_1037",
"has_function": "KEGG.ORTHOLOGY:K12960",
"was_generated_by": "nmdc:4ce9a799923b238585fc952135e5a0f5"
},
{
"subject": "nmdc:Ga0185794_41_48_1037",
"has_function": "EC:3.5.4.28",
"was_generated_by": "nmdc:4ce9a799923b238585fc952135e5a0f5"
},
{
"subject": "nmdc:Ga0185794_41_48_1037",
"has_function": "PFAM:PF01979",
"was_generated_by": "nmdc:4ce9a799923b238585fc952135e5a0f5"
},
{
"subject": "nmdc:Ga0185794_41_48_1037",
"has_function": "SUPFAM:51338",
"was_generated_by": "nmdc:4ce9a799923b238585fc952135e5a0f5"
}
]
}
Metadata
Release files for nmdc 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nmdc-0.2.1.tar.gz | 631.7 kB | Without provenance | Details for nmdc-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nmdc-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for nmdc-0.2.1-py3-none-any.whl |
Total release size: 635.6 kB
Release files / nmdc-0.2.1.tar.gz
| Download URL | nmdc-0.2.1.tar.gz |
|---|---|
| Size | 631.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b8b598a47e8a088c77be67eba8c45abd91f28051ac8c77a3c01aabe0ea0faac
|
|
BLAKE2b-256 checksum How to use checksums |
cce961c2ba9a7ef7931632cf8620bd25ac439b055250c56b9de177927dbb51b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
|
Release files / nmdc-0.2.1-py3-none-any.whl
| Download URL | nmdc-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
292de696d2af9397f2817c52c5ef9e2f45e106df5e680e3a190a59e8107ce5c3
|
|
BLAKE2b-256 checksum How to use checksums |
75da2e8ddb9cf062f0f31086522f879a2fdfcdde999ed054a830013faf17d380
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
|
Security for nmdc 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.