snps_vs_genes | R Documentation |
Instead of cross referencing variant positions against experimental condition, one might be interested in seeing what variants are observed per gene. This function attempts to answer that question.
snps_vs_genes(
expt,
snp_result,
start_col = "start",
end_col = "end",
snp_name_col = "seqnames",
observed_in = NULL,
expt_name_col = "chromosome",
ignore_strand = TRUE
)
expt |
The original expressionset. |
snp_result |
The result from get_snp_sets(). |
start_col |
Which column provides the start of each gene? |
end_col |
and the end column of each gene? |
snp_name_col |
Name of the column in the metadata with the sequence names. |
observed_in |
Minimum proportion of samples required before this is deemed real. |
expt_name_col |
Name of the metadata column with the chromosome names. |
ignore_strand |
Ignore strand information when returning? |
List with some information by gene.
[GenomicRanges::makeGRangesFromDataFrame()] [IRanges::subsetByOverlaps()] [IRanges::mergeByOverlaps()] [IRanges::countOverlaps()]
## Not run:
expt <- create_expt(metadata, gene_information)
snp_expt <- count_expt_snps(expt)
snp_result <- get_snp_sets(snp_expt)
gene_intersections <- snps_vs_genes(expt, snp_result)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.