R/PCC.elimination.R

Defines functions PCC.elimination

Documented in PCC.elimination

PCC.elimination <-
function(x) {
    ### Takes in input an object of class pccOverconflicting, and
    ### deletes variant locations labelled as overconflicting;
    ### outputs the new database.
    # we select the overconflicting
    overconflicting = rownames(x$vertexAttributes)[x$vertexAttributes[, 1] == "overconflicting"]
    # and we remove them
    x$database = x$database[!rownames(x$database) %in% overconflicting, , 
        drop = FALSE]
    return(x$database)
}

Try the stemmatology package in your browser

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

stemmatology documentation built on May 2, 2019, 5:10 a.m.