Skip to main content

Python Bioscience package

Project description

PyBioSci

Python BioScience is a package containing different functionalities on different BioScience algorithms. Initially the package will be focused on the Microbiome data analysis, later the functionalities will be expanded to other BioScience tasks.

Diversity Indices

This module contains different alpha and beta diversity indices to calculate the diversity of a sample and a group of samples. All the indices are discussed in this paper.

Below an example code for finding diversity indices has been shown:

from pybiosci.diversity_indicies import alpha_index 
import pandas as pd

df = pd.read_csv('data/simCounts.csv')
print(alpha_index(df, index='Shannon'))

The dataframe is expected to be in a definite format. Row represents the taxa and column represents each sample. Absolute read counts are taken as input and converted to relative abundance when required for an index. You can specify index=All to get all indices as a feature table.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybiosci-0.0.5.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

pybiosci-0.0.5-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page