Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

snp_info-class

An S4 class for an object assigning SNP positions to rs-numbers (for internal use)


Description

An S4 class for an object assigning SNP positions to rs-numbers (for internal use)

This function gives for a vector of SNP identifiers the position of each SNP as extracted from the Ensemble database. The database is accessed via the R-package biomaRt.

show Shows basic information on snp_info object

summary Summarizes information on snp_info object

Usage

snp_info(x, ...)

## S4 method for signature 'character'
snp_info(x)

## S4 method for signature 'snp_info'
show(object)

## S4 method for signature 'snp_info'
summary(object)

Arguments

x

A character vector of SNP rsnumbers for which positions will be extracted.

...

further arguments can be added.

object

An object of class snp_info.

Value

A data.frame including the SNP positions with columns 'chromosome', 'position' and 'snp'. SNPs not found in the Ensemble database will not be listed in the returned snp_info object, SNPs with multiple positions will appear several times.

show Basic information on snp_info object.

summary Summarized information on snp_info object.

Slots

info

A data.frame including information on SNP positions

Author(s)

Stefanie Friedrichs

See Also

Examples

data(rs10243170_info) # snp_info("rs10243170")

rs10243170_info
summary(rs10243170_info)

kangar00

Kernel Approaches for Nonlinear Genetic Association Regression

v1.4
GPL-2
Authors
Juliane Manitz [aut], Stefanie Friedrichs [aut], Patricia Burger [aut], Benjamin Hofner [aut], Ngoc Thuy Ha [aut], Saskia Freytag [ctb], Heike Bickeboeller [ctb]
Initial release
2020-02-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.