set_ranks {jellyfisher} | R Documentation |
Set ranks for samples
Description
Given a list of jellyfish input tables and a named list of ranks for each sample, set the rank for each sample.
Usage
set_ranks(tables, ranks, default = 1)
Arguments
tables |
A list of tables (samples, phylogeny, compositions, ranks) |
ranks |
A named list of ranks for each sample |
default |
The default rank to use when a sample is not in the rank list (default: 1) |
Value
A list of tables with ranks set for each sample
Examples
jellyfisher_example_tables |>
select_patients("EOC809") |>
set_ranks(list("EOC809_r1Bow1_DNA1" = 2, "EOC809_p2Per1_cO_DNA2" = 2),
default = 1
) |>
jellyfisher()
[Package jellyfisher version 1.0.4 Index]