R/trimSeqnames.R

Defines functions trimSeqnames

Documented in trimSeqnames

trimSeqnames <- function(genome){
    if(!is(genome, "BSgenome")) stop("genome must be an object of BSgenome")
    seqnames <- seqnames(genome)
    seqnames <- seqnames[grepl("^chr[0-9XY]+$", seqnames)]
}

Try the InPAS package in your browser

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

InPAS documentation built on Nov. 8, 2020, 5:03 p.m.