Learn R Programming

gsalib (version 2.1)

gsa.read.gatkreport: Function to read in a GATKReport

Description

This function reads in data from a GATKReport. A GATKReport is a document containing multiple tables produced by the GATK. Each table is loaded as a separate data.frame object in a list.

Usage

gsa.read.gatkreport(filename)

Arguments

filename
The path to the GATKReport file.

Value

Returns a LIST object, where each key is the TableName and the value is the data.frame object with the contents of the table. If multiple tables with the same name exist, each one after the first will be given names of TableName.v1, TableName.v2, ..., TableName.vN.

Details

The GATKReport format replaces the multi-file output format used by many GATK tools and provides a single, consolidated file format. This format accommodates multiple tables and is still R-loadable through this function.

References

http://www.broadinstitute.org/gatk/guide/article?id=1244

Examples

Run this code
test_file = system.file("inst", "extdata", "test_gatkreport.table", package = "gsalib");
report = gsa.read.gatkreport(test_file);

Run the code above in your browser using DataLab