writeTreesJSON
Experimental. Write trees in AIRR formatwriteTreesJSON
Experimental. Write trees in AIRR format
writeTreesJSON(
object,
file,
repertoire_id = "sample",
check = TRUE,
verbose = TRUE,
edge_tol = 1e-08,
cell = "cell_id",
heavy = "IGH",
light = c("IGK", "IGL"),
dowser_fields = TRUE,
nproc = 1
)Dowser object from getTrees
name of .json file
repertoire_id to use
verify object is equivalent on reloading
print out more info
tolerance for branch length checks (if check=TRUE)
cell id column name in Dowser object
name of heavy chain locus
names of light chain loci
include dowser-specific information? (recommended)
number of cores to use (parallelizes by clone)
Works with trees built by any of getTrees's build options
("pratchet", "pml", "igphyml", "raxml").
getTrees(..., build="pml") trees store the full
phangorn::optim.pml fit in tree$parameters; since that object
isn't JSON-serializable (and isn't meaningful to reconstruct from a file),
it's reduced to a flat list of fitted model parameters via
pmlParamsToList before being written out. See that function's
documentation for what is kept and why.