Learn R Programming

TarSeqQC (version 1.2.0)

TargetExperiment-class: TargetExperiment S4 class implementation in R

Description

This S4 class represents a Targeted Sequencing Experiment in R. Targeted Sequencing Experiments are characterized by a 'bed file' that contains the specification of the explored 'features' as a 'panel'. This features could be amplicons, exons, transcripts, among others. In general each feature is associated to one gene. A gene could be related to many features. This class allows the representation and quality control of a Targeted Sequencing Experiment.

Arguments

Slots

scanBamP
ScanBamParam containing the information to scan the BAM file.
pileupP
PileupParam containing the information to build the pileup.
bedFile
GRanges object that models the bed file.
bamFile
BamFile object that is a reference to the BAM file.
fastaFile
FaFile object that is a reference to the reference sequence.
featurePanel
GRanges object that models the feature panel and related statistics.
genePanel
GRanges object that models the analyzed panel and related statistics at a gene level.
attribute
character indicates which attribute 'coverage' or 'medianCounts' will be used to the analysis.
feature
character indicates the name of the analyzed features. E.g 'amplicon', 'exon', 'transcript'.

Features

  1. Model Targeted Sequencing Experiments in R.
  2. Obtain coverage and read counts per sequenced feature.
  3. Evaluate the performance of a targeted sequencing experiment using coverage/read counts information.
  4. Detect in early stage sequencing or library preparation errors.
  5. Explore read profiles for particular features or genomic regions.
  6. Explore any kind of experiment in which 'feature' definition is possible for several genes. E.g RNA-seq experiments in which transcripts could be the 'features'.
  7. Report quality control results.

Functions

TargetExperiment S4 class includes the following functions:
pileupCounts
calculate pileup statistics for the BAM file
buildFeaturePanel
build and model a feature panel as a GRanges object and compute read statistics
summarizePanel
summarize the feature panel to a gene panel and compute read statistics
initialize
constructor of TargetExperiment to generate the feature and gene panels starting from an alignment BAM file and the bed file
getBedFile, getBamFile, getFeaturePanel, getGenePanel, getAttribute, getFeature, getScanBamP, getPileupP
return the respective TargetExperiment slot
setAttribute,setFeature, setScanBamP, setPileupP
return the respective TargetExperiment slots
show
generic output of the object
print
generic output of the object
summary
print statistics summary for the setted attribute
freqTable
build a frequency table of the attribute occurrence in user configured intervals
plot
plot a summarized view of the feature panel performance
plotAttrExpl
plot the density and distribution of the attribute
plotFeatPerform
plot the sequencing performance for each feature and/or gene
plotFeature
plot the reads profile for a particular feature
plotGeneAttrPerFeat
plot the explored attribute for each feature of a particular gene
plotNtdPercentages
plot nucleotide percentages for each position of a particular feature
plotRegion
plot the reads profile for a particular genomic region
readFrequencies
calculate frequencies of reads fall in and out of targeted regions
plotInOutFeatures
plot frequencies of reads fall in and out of targeted regions
biasExploration
plot attribute distributions along groups of bias sources
plotMetaDataExpl
plot density and box plots or frequency bar plot of metadata columns
addStatSummSheet
internal function to add the first sheet of xlsx reports
buildReport
build the experiment report as an xlsx file

See Also

Rsamtools

Other TargetExperiment: TargetExperiment, ampliPanel, initialize, myCounts