Learn R Programming

TarSeqQC (version 1.2.0)

getBedFile: Getters for TargetExperiment object.

Description

Obtain TargetExperiment's slot information, according to the given function call.

Usage

getBedFile(object)
"getBedFile"(object)
getBamFile(object)
"getBamFile"(object)
getFastaFile(object)
"getFastaFile"(object)
getFeaturePanel(object)
"getFeaturePanel"(object)
getGenePanel(object)
"getGenePanel"(object)
getFeature(object)
"getFeature"(object)
getAttribute(object)
"getAttribute"(object)
getScanBamP(object)
"getScanBamP"(object)
getPileupP(object)
"getPileupP"(object)
getRegion(object, level, ID, collapse = TRUE)
"getRegion"(object, level, ID, collapse = TRUE)
getLowCtsFeatures(object, level, threshold = 50)
"getLowCtsFeatures"(object, level, threshold = 50)

Arguments

object
TargetExperiment class object.
level
Character indicating 'gene' or 'feature'. Useful to getRegion function
ID
Character indicating the feature name that getRegion should be found.
collapse
Logical. Should the region be collapsed?.
threshold
Numeric what should be the minimum attribute value?.

Value

according to the call one of the following objects can be returned
GRanges
bed file of the experiment
BamFile
reference to the BAM file
FaFile
reference to the fasta file
GRanges
feature panel with statistical information
GRanges
summarized version of the feature panel at gene level
character
name of the explored features (e.g 'amplicon', 'exon')
character
name of the analyzed attribute ('coverage' or 'medianCounts')
ScanBamParam
parameters for the scan of the BAM file
PileupParam
parameters for the pileup building
data.frame
regions or low counts features

See Also

TargetExperiment-class

Examples

Run this code
## Loading the TargetExperiment object
data(ampliPanel,package="TarSeqQC")
## Get the bedFile slot
getBedFile(ampliPanel)
## Get the bamFile slot
getBamFile(ampliPanel)
## Get the fastaFile slot
getFastaFile(ampliPanel)
## Get the feateurePanel slot
getFeaturePanel(ampliPanel)
## Get the genePanel slot
getGenePanel(ampliPanel)
## Get the Feature slot
getFeature(ampliPanel)
## Get the attribute slot
getAttribute(ampliPanel)
## Get the scanBamP slot
getScanBamP(ampliPanel)
## Get the pileupP slot
getPileupP(ampliPanel)
## Get the region related to a feature or a gene
getRegion(ampliPanel, level="gene", ID="gene7", collapse=FALSE)
## Get the low counts features
getLowCtsFeatures(ampliPanel, level="feature")

Run the code above in your browser using DataLab