read_tabular {airr} | R Documentation |
Read AIRR tabular data
Description
read_tabular
reads a tab-delimited (TSV) file containing tabular AIRR records.
Usage
read_tabular(file, schema, base = c("1", "0"), aux_types = NULL, ...)
read_rearrangement(file, base = c("1", "0"), ...)
read_alignment(file, base = c("1", "0"), ...)
Arguments
file |
input file path. |
schema |
|
base |
starting index for positional fields in the input file.
If |
aux_types |
named vector or list giving the type for fields that are not
defined in |
... |
additional arguments to pass to read_delim. |
Details
read_rearrangement
reads an AIRR TSV containing Rearrangement data.
read_alignment
reads an AIRR TSV containing Alignment data.
Value
A data.frame
of the TSV file with appropriate type and position conversion
for fields defined in the specification.
See Also
See Schema for the AIRR schema object definition. See write_tabular for writing AIRR data.
Examples
# Get path to the rearrangement-example file
file <- system.file("extdata", "rearrangement-example.tsv.gz", package="airr")
# Load data file
df <- read_rearrangement(file)