Description Usage Arguments Details Value Author(s) Examples
Changes strand in gwaa.data-class object
1 | patch_strand(data,snpid,strand,based_on="snpnames", quiet = TRUE)
|
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 |
For SNPs, as identified by 'snpid', changes strand to strand specified by 'strand'
object of gwaa.data or snp.data class
Yurii Aulchenko
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])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.