Identify Top Gene of Communities that are unique (only belong to one community)
Source:R/downstream.R
find_unique_top_genes.Rd
Identify Top Gene of Communities that are unique (only belong to one community)
Arguments
- membership_matrix
a community membership (kME) matrix with genes as rows and communities as columns. Often
community_membership
orfull_community_membership
output fromicwgcna()
- K
number of unique genes to find.
- maxIt
maximum number of iterations to avoid looping to meaningless top genes
Value
data.frame with key = community and value = top gene ID. Top genes will only be associated with one module.
Examples
if (FALSE) { # \dontrun{
library("UCSCXenaTools")
luad <- getTCGAdata(
project = "LUAD", mRNASeq = TRUE, mRNASeqType = "normalized",
clinical = FALSE, download = TRUE
)
ex <- as.matrix(data.table::fread(luad$destfiles), rownames = 1)
results <- icwgcna(ex)
unique_top_genes <- find_unique_top_genes(
results$community_membership,
K = 100,
maxIt = 10)
} # }