expression_by_snp | R Documentation |
Based on a GWAS table and a rank, returns a table of expression values for a gene where accessions that contain the SNP have TRUE in SNP. If no GeneID is specified, the gene that is closest to the SNP will be looked up.
expression_by_snp( gwas_table, SNPrank, GeneID = NULL, plot = FALSE, nobees = FALSE, SNPmatrix = NULL, ... )
gwas_table |
Object returned from |
SNPrank |
The (-log10(p)) rank of the SNP of interest |
GeneID |
If NULL (default), retrieves counts for the gene that is nearest. If not NULL it should be a TAIR GeneID ("ATXGNNNNN"). If a GeneID is provided expression of that gene will be intersected with the SNP presence. |
plot |
If TRUE, will return a plot instead of a table. |
nobees |
If TRUE, observations will be plotted with geom_point. |
SNPmatrix |
SNPmatrix, to control if accessions are based on 1001genomes.org or local matrix. |
format_gwas
get_expression
get_nearest_genes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.