SnpToGene | R Documentation |
Maps SNPs to their nearest genes within TSS windows.
SnpToGene(gwas_data, block_annotation, marg = 10000)
gwas_data |
(data.frame) the result for GWAS_summary_input |
block_annotation |
(data.frame) Start and end points for block traits, usually genes. |
marg |
(integer) region upstream and downstream(default=10000). |
data frame for gwas_data mapping to gene.
library(scPagwas)
Pagwas <- list()
gwas_data <- bigreadr::fread(system.file("extdata",
"GWAS_summ_example.txt",
package = "scPagwas"
))
Pagwas <- GWAS_summary_input(
Pagwas = Pagwas,
gwas_data = gwas_data,
maf_filter = 0.1
)
Pagwas$gwas_data_gene_df <- SnpToGene(
gwas_data = Pagwas$gwas_data,
block_annotation = block_annotation,
marg = 10000
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.