R/genomeIntervals-methods.R

#' Extension for the genomeIntervals package
#'
#' \describe{
#' \item{type}{ Another way to access the content of the gff type
#' column.  }}
#'
#' @aliases type,Genome_intervals-method
#' @name genomeIntervals additional methods
#' @rdname genomeIntervals-methods
#' @param x An object of class \code{\linkS4class{Genome_intervals}}
#' @usage \S4method{type}{Genome_intervals}(x)
#' @return \describe{
#' \item{type}{ The content of the
#' type column, usually a factor or a character vector } }
#' @examples
#' # library
#' library(genomeIntervals)
#'
#' # fetch the example data
#' gffFilePath <- fetchData("Dmel-mRNA-exon-r5.52.gff3.gz")
#' annot<-readGff3(gffFilePath,quiet=TRUE)
#' type(annot)
#'
#' @author Nicolas Delhomme
#' @seealso
#' \itemize{
#' \item \code{\link[genomeIntervals:Genome_intervals_stranded-class]{genomeIntervals
#' object}}
#' \item \code{\link[genomeIntervals]{genomeIntervals-readGff3}}
#' }
# define a type accessor
setMethod(
          f="type",
          signature="Genome_intervals",
          definition=function(x){
            x$type
          })

Try the easyRNASeq package in your browser

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

easyRNASeq documentation built on April 30, 2020, 2 a.m.