| Title: | Data for the VariantTools tutorial |
|---|---|
| Description: | Data from the sequencing of a 50/50 mixture of HapMap trio samples NA12878 (CEU) and NA19240 (YRI), subset to the TP53 region. |
| Authors: | Michael Lawrence |
| Maintainer: | Michael Lawrence <[email protected]> |
| License: | Artistic-2.0 |
| Version: | 1.36.0 |
| Built: | 2026-10-10 12:08:51 UTC |
| Source: | https://github.com/bioc/VariantToolsData |
Reference genotypes for NA12878 and NA19240, as called by the HapMap project, and the Broad GATK project.
data(geno)data(geno)
A VRanges with the genotypes for NA12878 and NA19240 from the HapMap pilot project and the Broad/GATK calling of NA12878. The genotypes, stored in the "freq." columns, are represented by the alt frequency, so 0/0.5/1 for hom-ref/het/hom-alt. The "expected.freq" column indicates the alt frequency expected in the 50/50 mixture.
The HapMap Pilot and Broad GATK projects.
data(geno) table(geno$expected.freq)data(geno) table(geno$expected.freq)
Repeat regions from the RepeatMasker track of the hg19 UCSC genome browser database, subset to low complexity and simple repeats.
data(repeats)data(repeats)
A GRanges object with the repeat ranges, including variables classifying the repeats by name, class, and family, and information about the alignment of the repeat consensus to the genome.
The "rmsk" table in the UCSC table browser (hg19). Click the "Describe Schema" button for details.
data(repeats) tab <- table(repeats$repFamily) tab[tab > 0]data(repeats) tab <- table(repeats$repFamily) tab[tab > 0]
Finds the unique variants across every element of a list of VRanges, with depths computed by summing the depths over the elements. If a variant is not found in a sample, the depth is assumed to zero. That is a very dangerous assumption.
sumDepths(x)sumDepths(x)
x |
A VRangesList, typically of replicates |
A VRanges
Michael Lawrence
data(tallies) sumDepths(tallies)data(tallies) sumDepths(tallies)
Nucleotide tallies computed over the TP53 region (+/- 1Mb) for the 50/50 NA12878/NA19240 mixture, separately for each replicate. Each replicate corresponds to a separate biochemical mixing.
data(tallies)data(tallies)
A VRangesList, each VRanges of which corresponds to one of the three biochemical replicates.
Computed from the alignments of the FASTQ files found in the ‘inst/extdata’ directory. Repeat regions (see repeats) were excluded. For example, for one replicate,
library(gmapR)
extdata.dir <- system.file("extdata",
package="VariantToolsData")
bams <- BamFileList(tools::list_files_with_exts(extdata.dir, "bam"))
data(repeats, package = "VariantToolsData")
param <- TallyVariantsParam(TP53Genome(), mask = repeats,
read_pos=TRUE, read_length=75L)
tallies <- split(tallyVariants(bams, param), ~ sampleNames)
This assumes that the BAM files have been generated for the current version of the TP53 genome:
param <- GsnapParam(TP53Genome(), unique_only = TRUE,
molecule = "DNA")
first.fastq <- dir(extdata.dir, "first.fastq",
full.names=TRUE)
last.fastq <- dir(extdata.dir, "last.fastq",
full.names=TRUE)
output <- gsnap(first.fastq, last.fastq, param)
bams <- as(output, "BamFileList")
Lawrence, M., Huntley, M. A., Stawiski, E., Owen, A., Wu, T. D., Goldstein, L. D., Cao, Y., Degenhardt, J., Young, J., Guillory, J., Heldens, S., Jackson, M., Seshagiri S., and Gentleman, R. (2015). Genomic variant calling: Flexible tools and a diagnostic data set. bioRxiv.
data(tallies) VariantTools::callVariants(tallies[[1L]])data(tallies) VariantTools::callVariants(tallies[[1L]])
Returns a GRanges object consisting of the TP53 coordinates in
hg19. All coordinates in these data are relative to that region.
TP53Region()TP53Region()
A GRanges of the extents of the TP53 gene in hg19.
Michael Lawrence
TP53Region()TP53Region()