Last chance! 50% off unlimited learning
Sale ends in
htmlReport(object, annot, blocks=c(), transcripts=c(), sampleCols, minMut=3, dir="HTMLReport", title="Summary")
AVASet-class
or MapperSet-class
instance.AnnotatedVariants
you get
by calling annotateVariants
.
If no such argument is supplied the data will be read from the
Ensembl database automatically for all variants.fData
,
annotateVariants
).
Using the argument blocks
, the main page can be individually
structured by assigning a block name to each variant.
The main page can be further structured by samples. For a
given AVASet object, every sample links to another short
quality report showing only the amplicon coverage for this sample.
annotateVariants
.
# note: all examples save the report to the directory "htmlReportExample" in your current R working directory
# load a filtered AVA dataset containing 6 samples, 4 amplicons and 4 variants
# and its variant annotations
data("avaSetFiltered")
data("avaSetFiltered_annot")
# create a full report showing all (unfiltered) information
htmlReport(avaSetFiltered, avaSetFiltered_annot, dir="htmlReportExample", title="htmlReport Example", minMut=0)
# create a report that emphasizes on samples with variants covered by at least 50% of the reads
htmlReport(avaSetFiltered, avaSetFiltered_annot, dir="htmlReportExample", title="htmlReport Example", minMut=50)
# create a report that is structured by the reference genes
library("ShortRead")
refs = sapply(fData(avaSetFiltered)$referenceSeq, function(x)
subset(pData(alignData(referenceSequences(avaSetFiltered))), pData(alignData(referenceSequences(avaSetFiltered)))$refSeqID == x)$name)
htmlReport(avaSetFiltered, avaSetFiltered_annot, dir="htmlReportExample", title="htmlReport Example", minMut=0, blocks=refs)
# create a report whose sample information only lists the sample ids
pData(avaSetFiltered)
sampleCols = "SampleID"
htmlReport(avaSetFiltered, avaSetFiltered_annot, dir="htmlReportExample", title="htmlReport Example", minMut=0, sampleCols=sampleCols)
Run the code above in your browser using DataLab