Skip to main content

# curatedMetagenomicData3-python

Python Wrapper for curatedMetagenomicData3

# Installation

This package has been tested on python-3.7+. You can install it from PyPi[https://pypi.org/project/curatedmetagenomicdata3/]:

pip install curatedmetagenomicdata3

# Usage

See demo.py for a full working demo. You can follow along the below in a IPython terminal or Jupyter notebook

## Pre-requisites

# Decide on a folder to store files in # This package downloads files containing raw annotation data based on your queries

import curatedmetagenomicdata3 as cmd3 source_dir = “test” # This folder needs to exist beforehand

## 1) Open Metadata

# This function returns a DataFrame containing all sample metadata df = cmd3.get_metadata()

## 2) Decide What Samples You Want Annotations for

# For example, let’s say you want to download taxonomic relative # abundances data for all samples for Type 2 Diabetes patients

t2d = df[df[‘disease’] == ‘T2D’]

## 3) Compile OTU Data for Chosen Samples

# Taxonomic Relative Abundances taxa = cmd3.assemble_taxa_dataset(t2d, source_dir)

That’s it! taxa will be a dataframe containing the relative abundances data for the samples you chose. All of the data for that will be downloaded and cached to source_dir automatically for future use.

You can also get pathway abundances as well

# Pathway Relative Abundances pathways = cmd3.assemble_pathways_dataset(t2d, source_dir)

Metadata

Release files for curatedmetagenomicdata3 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for curatedmetagenomicdata3 0.1.4
File Size Uploaded Provenance Actions
curatedmetagenomicdata3-0.1.4.tar.gz 2.6 MB Without provenance Details for curatedmetagenomicdata3-0.1.4.tar.gz

Release files / curatedmetagenomicdata3-0.1.4.tar.gz

Download URL curatedmetagenomicdata3-0.1.4.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
6ac2b6256576dba7fff52936e7dfeb4ff7d487b5165ec289e1601f8d94c3f789
BLAKE2b-256 checksum
How to use checksums
415912e6127950eb0d7c44306f6b24bc9f968ca50e015f9893d0bb70e8f35a3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Security for curatedmetagenomicdata3 0.1.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page