Description Usage Arguments Value Examples
View source: R/createClusters2.R
Creates clusters from a dataframe of mRNAs and miRs. This function should primarily be used when analysing data that has not gone through pair-wise DE. This function will create clusters from longitudinal temporal patterns. createClusters2 will create 3 data files. 1) Clusters will contain cluster logistics information and will be stored as metadata, 2) MfuzzData will contain fuzzy clustering information and will be stored as an experiment, 3) ClusterData will contain cluster-pathway fit information and will be stored as an assay.
1 | createClusters2(MAE, genetic_data, noClusters)
|
MAE |
MultiAssayExperiment which will store the results from createClusters2. |
genetic_data |
A dataframe with miR and mRNA information together. This is the output from the combineGenes function and will be stored as an assay within the MAE used in the combineGenes function. |
noClusters |
How many clusters should be generated? Default is 5. |
3 new objects in the input MAE. Clusters(metadata): A list to be used as the input in checkClusters and quickFuzz. MfuzzData(ExperimentList): An ExpressionSet object to be used as input for quickFuzz. ClusterData(assay): An assay to be used as input for returnCluster.
1 2 3 4 5 6 7 8 9 10 | data(long_data)
miRNA <- long_data[c(1:105),]
mRNA <- long_data[-c(1:105),]
MAE <- startObject(miR = miRNA, mRNA = mRNA)
MAE <- combineGenes(MAE, miR_data = assay(MAE, 1),
mRNA_data = assay(MAE, 2))
MAE <- createClusters2(MAE = MAE, genetic_data = assay(MAE, 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.