R/New.fromSnpToQuartet.R

Defines functions fromSnpToQuartet

Documented in fromSnpToQuartet fromSnpToQuartet fromSnpToQuartet

#############################################
### get mean snp intensity for each quartet
fromSnpToQuartet <- function(quartetInfo, profilSNP){
    #which(colnames(profilSNP) == "fsetid" | colnames(profilSNP) == "Smoothing")
    e <- which(colnames(quartetInfo) == "Smoothing")
    if(length(e) > 0) quartetInfo <- quartetInfo[, -e]
    profilSNP <- profilSNP[,  which(colnames(profilSNP) == "fsetid" | colnames(profilSNP) == "Smoothing")]
    dat <- merge(profilSNP, quartetInfo)
    return(dat)
}

Try the ITALICS package in your browser

Any scripts or data that you put into this service are public.

ITALICS documentation built on Nov. 8, 2020, 6:48 p.m.