Description Usage Arguments Value
View source: R/get_annotations.R
Loads in one set of GWAS results from a bigsnp GWAS, a GAPIT GWAS, a mash object, RQTL2 output, or a dataframe with 'CHR', 'start', and 'end' columns for the genome of Phaseolus_vulgaris. Then, it constructs SNP tables meeting different criteria using these genomic intervals.
1 2 3 4 5 6 7 8 9 10 |
df |
a data frame or tbl_df. Can be bigsnpr output, mashr output (loaded into R), gapit or r/qtl2 output (specify the path to a saved .csv file), or, for Phaseolus vulgaris intervals in another format, a data frame containing columns 'CHR', 'start', and 'end'. |
type |
Type of Phaseolus vulgaris genomic marker input specified by the df parameter. Options are "bigsnp", "gapit", "mash", "rqtl2", and "table". Defaults to 'bigsnp'. |
n |
An integer or integer vector The numberof most significant SNPs to select (by p-value). Set to NA to omit this table. Default is 10. |
FDRalpha |
The false discovery rate. Numeric, a number or vector of numbers between 0 and 1. Set to NA to omit this table. Default is 0.1. |
rangevector |
How far from the significant SNP should annotations be pulled? Can be an integer or a vector of integers. Default is 0 (the SNP itself) and a 10 kbp window around the SNP. |
markers |
For data frames of type "mash" or "bigsnp", the same set of markers (with CHR and POS columns) as your df object. |
anno_info |
Gene information from Pvulgaris_442_v2.1.annotation_info.txt |
txdb |
Annotation information from Pvulgaris_442_v2.1.gene.txdb.sqlite |
A list containing dataframes of SNPs. If more than one dataframe is returned, they are named using the criteria used to select the SNPs in the dataframe.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.