Skip to main content

preprocess microbiome data

Project description

Preprocessing for 16S values.

The input file for the preprocessing should contain detailed unnormalized OTU/Feature values as a biom table, the appropriate taxonomy as a tsv file, and a possible tag file, with the class of each sample. The tag file is not used for the preprocessing, but is used to provide some statistics on the relation between the features and the class. You can also run the preprocessing without a tag file.

input

Here is an example of how the input OTU file should look like : (file example)

drawing

Parameters to the preprocessing

Now you will have to select the parameters for the preprocessing.

  1. The taxonomy level used - taxonomy sensitive dimension reduction by grouping the bacteria at a given taxonomy level. All features with a given representation at a given taxonomy level will be grouped and merged using three different methods: Average, Sum or Merge (using PCA then followed by normalization).
  2. Normalization - after the grouping process, you can apply two different normalization methods. the first one is the log (10 base)scale. in this method
    x → log10(x + ɛ),where ɛ is a minimal value to prevent log of zero values.
    The second methos is to normalize each bacteria through its relative frequency.

If you chose the Log normalization, you now have four standardization
possibilities:
a) No standardization
b) Z-score each sample
c) Z-score each bacteria
d) Z-score each sample, and Z-score each bacteria (in this order)
When performing relative normalization, we either dont standardize the results or performe only a standardization on the bacteria.

  1. Dimension reduction - after the grouping, normalization and standardization you can choose from two Dimension reduction method: PCA or ICA. If you chose to apply a Dimension reduction method, you will also have to decide the number of dimensions you want to leave.

How to use

use MIPMLP.preprocess(input_df) ####parameters: taxonomy_level 4-7 , default is 7
taxnomy_group : sub PCA, mean, sum, default is mean
epsilon: 0-1
z_scoring: row, col, both, No, default is No
pca: (0, 'PCA') second element always PCA. first is 0/1
normalization: log, relative, default is log
norm_after_rel: No, relative, default is No

output

The output is the processed file.

drawing

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

MIPMLP-1.1.5.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MIPMLP-1.1.5-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file MIPMLP-1.1.5.tar.gz.

File metadata

  • Download URL: MIPMLP-1.1.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for MIPMLP-1.1.5.tar.gz
Algorithm Hash digest
SHA256 ec77ea04b0af9c160e22020fde9a69833a02b93793ffb2e518b6fdafa8dcaa19
MD5 211a09c701f3918704e7635405d299a4
BLAKE2b-256 60d9379acca4d8670a4ef80fb74beeb6f8b220a87f2004bc98f42cafca9bfe16

See more details on using hashes here.

File details

Details for the file MIPMLP-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: MIPMLP-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for MIPMLP-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b13d9c05508199f0f3f528858107fcbcbff29c82a67721ad02a864e64bab3411
MD5 30f7f937739fb76dab434091d64895d6
BLAKE2b-256 22db0d439e1e7a839cdc6a5dd47eaff87d2df4077e8a862eb63741b622567b26

See more details on using hashes here.

Supported by

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