View source: R/overlapping_among_groups.R
overlapping_among_groups | R Documentation |
Takes a dataframe with a column of genes, QTLs (or other data) and a grouping column and create some matrices with the overlapping information
overlapping_among_groups(file, x, y)
file |
A dataframe with the data and grouping factor |
x |
The grouping factor to be compared |
y |
The data to be compared among the levels of the grouping factor |
A list with three matrices: 1) A matrix with the number of overlapping data; 2) A matrix with the percentage of overlapping; 3) A matrix with the combination of the two previous one
data(QTLmarkers)
data(gtfGenes)
genes.out <- find_genes_qtls_around_markers(db_file=gtfGenes,
marker_file=QTLmarkers,method="gene",
marker="snp",interval=100000, nThreads=1)
overlapping.out<-overlapping_among_groups(
file=genes.out,x="Reference",y="gene_id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.