Skip to content
Snippets Groups Projects
Select Git revision
  • 4e3e9048945a3a9f465f79cf6e4158fc2166e6c4
  • master default
  • testing
3 results

changeCoding.Rd

Blame
  • changeCoding.Rd 752 B
    % Generated by roxygen2: do not edit by hand
    % Please edit documentation in R/correlationMatrix.R
    \name{changeCoding}
    \alias{changeCoding}
    \title{Align the coding with the reference panel}
    \usage{
    changeCoding(x, v)
    }
    \arguments{
    \item{x}{is the matrix of additively coded genotypes
    Rows are variants and columns are individuals}
    
    \item{v}{is a vector of boolean indicating wether reference alleles differ or not}
    }
    \value{
    The additively coded genotyped matrix with coded allele in the matrix
    corresponding to the reference allele in the reference panel
    }
    \description{
    Change the coding of the variant if the reference allele differs between 
    the data and the reference panel. If reference alleles differs, 
    switch 0s and 2s. Otherwise, no change.
    }