R/SegSites.R

Defines functions SegSites

Documented in SegSites

SegSites <-
function(seqs){ 
    ##  Segregating sites: Number of sites with mutations
        ##  seqs: an aligment of haplotypes
    if(!is(seqs, "DNAStringSet") & !is(seqs, "AAStringSet"))
        stop("The input object must be a DNAStringSet or AAStringSet\n")
    return(sum(colSums(FreqMat(seqs)> 0)> 1))
}
VHIRHepatiques/QSutils documentation built on April 27, 2024, 10:29 p.m.