Convert alleles to the opposing DNA strand
This function is a subroutine of QC_GWAS
and
match_alleles
. It converts allele-pairs to
the configuration on the opposing DNA strand.
switch_strand(input, strand_col = FALSE)
input |
table with the alleles in column 1 and 2, and
(optionally) the strand-information (coded as |
strand_col |
logical; if strand-information is present, this switches the sign in column 3 as well. |
A table with two or three columns, depending on strand_col
.
data("gwa_sample") switched_data <- gwa_sample[ , c("MARKER", "EFFECT_ALL", "OTHER_ALL", "STRAND")] switched_data[1:10, ] switched_data[ , 2:4] <- switch_strand(input = switched_data[ , 2:4], strand_col = TRUE) switched_data[1:10, ]
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.