patch_strand: function to change strand

Description Usage Arguments Details Value Author(s) Examples

Description

Changes strand in gwaa.data-class object

Usage

1
	patch_strand(data,snpid,strand,based_on="snpnames", quiet = TRUE)

Arguments

data

gwaa.data or snp.data object

snpid

vector of ids of snsp (name or position)

strand

vector of strands ("+","-","u")

based_on

either "snpnames" or "map" depending on what info is provided by snpid

quiet

indicates if recoding report should be directed to the screen

Details

For SNPs, as identified by 'snpid', changes strand to strand specified by 'strand'

Value

object of gwaa.data or snp.data class

Author(s)

Yurii Aulchenko

Examples

1
2
3
4
5
6
7
require(GenABEL.data)
data(srdta)
as.character(srdta@gtdata@strand[1:20])
a <- patch_strand(srdta,srdta@gtdata@snpnames[1:10],rep("+",10))
as.character(a@gtdata@strand[1:20])
a <- patch_strand(srdta,srdta@gtdata@map[1:10],rep("+",10),based_on="map")
as.character(a@gtdata@strand[1:20])


Search within the GenABEL package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.