View source: R/customReferences.R
customReferences | R Documentation |
This function uses the Counts_to_tpm and the DAFS function to select the reference genes.
customReferences(counts, featureLength, top_genes = 0.5)
counts |
Data frame genes/features (in the rows) by samples (in the columns). Rownames must be in the names of the features and in the same format as the names of the featureLength vector |
featureLength |
Named numeric vector with the length of each gene/feature. Names must be the names of the features and in the same format as the rownames of the data frame counts. |
top_genes |
Percentage of genes (left after filtering) to be selected as references, default is 0.5%. |
After transforming the counts into TPM values, the tpm data frame is used as input for DAFS function.
We then select the genes with lowest covariance, among those considered as expressed according to DAFS (average expression higher than the cutoff), as references.
Data frame with genes as rows and two columns: Mean (average TPM) and Covariance.
data("sample_counts"); data("ath_featureLength")
genes <- customReferences(counts = sample_counts, featureLength = ath_featureLength, top_genes = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.