This function creates a matrix with rows (genes) and columns (mirnas) with values indicating if miRNA-gene pair is target according putative targets and negative correlation of the expression of both molecules.
findTargets(mirna_rse, gene_rse, target, summarize = "group", min_cor = -0.6)
mirna_rse |
|
---|---|
gene_rse |
|
target | Data.frame with two columns: gene and miRNA. |
summarize | Character column name in colData(rse) to use to group samples and compare betweem miRNA/gene expression. |
min_cor | Numeric cutoff for correlation value that will be use to consider a miRNA-gene pair as valid. |
mirna-gene matrix
data(isoExample) mirna_ma <- data.frame(gene = names(gene_ex_rse)[1:20], mir = names(mirna_ex_rse)) corMat <- findTargets(mirna_ex_rse, gene_ex_rse, mirna_ma)#>#>#>#>#>#>#>#> Dimmension of cor matrix: 20 20