get_accessions: Obtain accession ids that carry a SNP. This function takes a...

View source: R/gwar.R

get_accessionsR Documentation

Obtain accession ids that carry a SNP. This function takes a table of gwas pvalues per chromosome and numeric position and retrieves the accessions that carry that SNP.

Description

Obtain accession ids that carry a SNP. This function takes a table of gwas pvalues per chromosome and numeric position and retrieves the accessions that carry that SNP.

Usage

get_accessions(gwas_table, SNPrank, SNPmatrix = NULL)

Arguments

gwas_table

Object returned from format_gwas function

SNPrank

The (-log10(p)) rank of the SNP of interest

SNPmatrix

A path pointing to a SNPmatrix in .fst format.

Details

If no SNPmatrix is provided, the information will be obtained from 1001genomes.org

This function returns a single column named ACC_ID, that contains the accessions that contain the snp.


Gregor-Mendel-Institute/gwaR documentation built on Feb. 8, 2023, 8:34 p.m.