R/io_immundata_conversion.R
from_immunarch.Rd
The from_immunarch()
function takes an immunarch object (as returned by
immunarch::repLoad()
), writes each repertoire to a TSV file with an added
filename
column in a specified folder, and then imports those files into
an ImmunData object via read_repertoires()
.
A list returned by immunarch::repLoad()
, typically containing:
data
: a named list of data.frame
s, one per repertoire.
meta
: (optional) a data.frame
of sample metadata.
Path to the output directory where the resulting ImmunData Parquet files will be stored. This directory will be created if it does not already exist.
Character vector of column names that together define unique
receptors (for example, c("CDR3.aa", "V.name", "J.name")
).
Path to a directory where intermediate TSV files will
be written. Defaults to file.path(tempdir(), "temp_folder")
.
An ImmunData object containing all repertoires from the input
immunarch object, with data saved under output_folder
.