Skip to content
/ CTV Public

compute SCBD values from a matrix of normalised counts

License

Notifications You must be signed in to change notification settings

rderelle/CTV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

SCBD

Description

This script computes the SCBD values for all features of a given normalised matrix, as described in Legendre and De Càceres 2013, after tranformation of normalised counts using the Hellinger transformation. The SCBD values give an estimate of the feature contributions to the overall signal, allowing to extract the most contributing features from a large dataset. The features can be species abundances, gene expression levels or any feature quantified by sequencing data.

Requirement

  • Python version 3

Usage

_ the script takes as input a coma-separated matrix of normalised counts:

python3 SCBD.py -m normalised_matrix.csv

It returns 2 output files: out_SCBD_values.tsv (tab-delimited file containing the SCBD values, sorted by decreasing order) and out_SCBD_matrix.csv (your normalised matrix with features sorted by decreasing SCBD values)

_ have a look at the distribution of SCBD values and determine the threshold below which the features should be discarded. It usually corresponds to the inflexion point of the distribution.

_ remove from the sorted matrix the features with SCBD values below the chosen threshold (the bottom part of the sorted matrix)

About

compute SCBD values from a matrix of normalised counts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages