5c41f2d0 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/featureCoverage.R
\name{featureCoverage}
\alias{featureCoverage}
|
f4931c73 |
\title{Coverage based on the genomic feature}
|
5c41f2d0 |
\usage{
|
a4f1fe44 |
featureCoverage(bs, features, genomebuild)
|
5c41f2d0 |
}
\arguments{
|
f4931c73 |
\item{bs}{bsseq object}
|
69fbca4d |
\item{features}{list of genomic features, e.g. genes_exons, genes_introns,
|
ba93b446 |
cpg_islands, cpg_shelves
Names are based on the annotatr packages, so all the features provided by the
annotatr
|
f4931c73 |
package will be supported in this function}
|
a4f1fe44 |
\item{genomebuild}{reference alignment, i.e. mm10 or hg38}
|
5c41f2d0 |
}
\value{
|
ba93b446 |
a data frame with genomic feature names and the number of
CpG covered in each feature
|
5c41f2d0 |
}
\description{
|
ba93b446 |
Provides Coverage metrics for the sample by each genomic features provided
by the user
|
5c41f2d0 |
}
|
755e5212 |
\examples{
|
3764abd4 |
directory <- system.file("extdata/bismark_data", package='scmeth')
|
be7d4113 |
bs <- HDF5Array::loadHDF5SummarizedExperiment(directory)
|
dc512f13 |
featureCoverage(bs, c('cpg_islands', 'cpg_shores'), 'hg38')
|
755e5212 |
}
|