R/chrseparate.R

Defines functions chrseparate

Documented in chrseparate

chrseparate <- function(GTFdb=NULL,chrname=NULL){
    isActiveSeq(GTFdb)[seqlevels(GTFdb)] <- FALSE
    chrsepa <- rep(TRUE,length(chrname))
    names(chrsepa) <- chrname
    chrsepa <- chrsepa[is.element(names(chrsepa),names(isActiveSeq(GTFdb)))]
    try.test <- try(isActiveSeq(GTFdb) <- chrsepa,silent=TRUE)
    if (length(names(try.test)) == 0){
        return (NULL)
        }
    else {
        isActiveSeq(GTFdb) <- chrsepa
        return (GTFdb)
        }
    }

Try the IVAS package in your browser

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

IVAS documentation built on Nov. 8, 2020, 5:52 p.m.