Description Usage Arguments Value Examples
Apply a weakly supervised metric learning algorithm ITML to scRNA-seq data. Users give very few training samples to tell expected angle they would use to analyze the data, and the function learns the metric automatically for downstream clustering and visualization.
1 2 |
X |
a scRNA-seq expression matrix, cells for rows and genes for columns. |
label |
a vector. Specify which group cells belong to, corresponding to rows in X. If NULL(default), |
constraints |
a N by 3 matrix, weak supervision information. N stands for total number of cell pairs. The first 2 columns specify two cells. The 3rd column is a value specifying whether corresponding two cells in the first two columns are similar, 1 for similar and -1 for dissimilar. If NULL(default), |
num_constraints |
total number of similar and dissimilar pairs that are used. No larger than N. If |
thresh |
threshold that decides when metric learning iteration stops. Default: 0.01 |
max_iters |
max iterations of metric learning. Default: 100000 |
draw_tSNE |
boolean. Default: FALSE. Specify whether to draw tSNE plot or not |
List containing four outputs:
newData: new data based on new metric, rows are cells and columns are linear combination of original genes expressions
newMetric: learned metric, a d by d matric where d represents genes numbers
constraints: constraints used for metric learning
sortGenes: genes sorted by importance score
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.