API#
Preprocessing#
|
Add metadata to an AnnData object while checking for matching indices or shape |
|
Filter based on metadata |
|
Filter features based on missing values |
|
Scale and center data. |
|
Logarithmize a data matrix. |
|
Detect special values such as NaN, zero, negative, and infinite values in the data. |
|
Normalize measured counts per sample |
|
Impute missing values in each column by random sampling from a gaussian distribution. |
|
Impute missing values using median imputation |
|
Impute missing values using median imputation |
|
Wrap scanpy's pp.combat function with error checks and preprocessing suggestions. |
Tools#
|
Apply Benjamini-Hochberg correction with NaN-safe handling. |
|
NaN-safe wrapper around scipy.stats.ttest_ind. |
|
Calculate ratios of features between two specific groups using t-test. |
|
Calculate differential expression using AlphaQuant. |
|
Principal component analysis []. |
|
Run Limma eBayes moderated ttest for differential expression |
Metrics#
Compute principal component regression (PCR) score. |
|
Compute pooled median absolute deviation (PMAD) within sample groups. |
Plotting#
|
Class for creating figures with matplotlib |
|
Add a vertical or horizontal line to a matplotlib axes object |
|
Add labels to a 2D axes object |
Base colormaps for alphapepttools plots |
|
Base colors for alphapepttools plots |
|
Base color palettes for alphapepttools plots |
|
|
Add a legend to an axis object. |
|
Make a legend and directly add it to a matplotlib axes object. |
|
Create a figure with a specified number of rows and columns. |
|
Apply labels to a matplotlib axes object |
|
Save a figure in a publication friendly format |
IO#
Reader functions#
|
Read peptide spectrum match tables to the |
|
Read protein group table to the |
|
Factory class to convert AlphaBase PSM DataFrames to AnnData format. |
|
Get a list of all available readers, as provided by alphabase |
Data#
Example data that can be accessed with the package.
Get list all available studies |
|
|
Get data from a specific study |