Description Details Public fields Methods See Also Examples
A GATK binding in an object-oriented form as a R6 class.
The GATK is predominantly used in a pipeline by chaining individual GATK function calls to clean a bam file and prepare it for further analysis. This GATK class utilize the R6 method chaining to facilitate this usage.
bam
a path to a current bam file. Modified during each method call to point to the result of the last GATK action.
original
a path to the original (unmodified) bam file
reference
a path to reference genome fasta (.fas
) file
vcf
a path to the Variant Coding File (VCF)
outdir
an output directory for individual methods
remake
whether to remake already existing files
history
a method call history
new()
Create a new GATK object
GATKR6$new(bam, reference, vcf, outdir = NULL, remake = FALSE)
bam
an input bam file
reference
a reference fasta (.fas
) file to which the sam/bam file was mapped
vcf
a vcf file with known polymorphic sites
outdir
optional an output directory
remake
optional remake the output if it already exists
a new GATK
object
SortSam()
Sort the SAM/BAM file
GATKR6$SortSam(output = NULL)
output
optional a path for an output bam file
MarkDuplicates()
Mark duplicates
GATKR6$MarkDuplicates(output = NULL)
output
optional a path for an output bam file
SplitNCigarReads()
Split the reads around the N in their CIGAR string.
GATKR6$SplitNCigarReads(output = NULL)
output
optional a path for an output bam file
Recalibrate()
Recalibrate the base quality score
GATKR6$Recalibrate(output = NULL, table = NULL)
output
optional a path for an output bam file
table
optional an output path for a new base quality scores
FilterSamReadsTag()
Filter the sam/bam file according to tag and its values.
GATKR6$FilterSamReadsTag(tag, values, output = NULL)
tag
a name of the tag that will be used for filtering reads
values
one or multiple values of a chosen tag
output
optional a path for an output bam file
clean()
Clean all intermediate files
Intermediate files are all files except the original bam file used during
the initialization of the GATKR6
object and the current bam file.
GATKR6$clean()
clone()
The objects of this class are cloneable with this method.
GATKR6$clone(deep = FALSE)
deep
Whether to make a deep clone.
GATK a group of functions that partially bind to the GATK toolkit, gatk_prepare and gatk_snv for a convenience functions utilizing the GATK calls
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.