Skip to contents

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

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" = 1, "EOC809_p2Per1_cO_DNA2" = 2)) |>
  jellyfisher()