get_comparison_name: Customize name of comparison / output folder depending on...

get_comparison_nameR Documentation

Customize name of comparison / output folder depending on inclusion/exclusion criteria and presence of row annotation 2

Description

Customize name of comparison / output folder depending on inclusion/exclusion criteria and presence of row annotation 2

Usage

get_comparison_name(
  current,
  filters,
  delim = ";",
  all_out_dirs = NULL,
  rowAnn2 = NA
)

Arguments

filters

A string in the form of filters delimited by default ";". Each filter has 3 parts: 1) column name in df, 2) operator either != or ==, 3) value in column to exclude/include

delim

A string/character to seperate individuals filter by, default is ";"

all_out_dirs

A character vector of directory names, if the current_dir name exists, the algorithm will append "1", "2", and so on until the dir name is unique.

rowAnn2

Name of row annotation 2 if applicable, otherwise NA.

current_dir

The name of the output directory

Details

subset_by_filters(df, "Smoker==Yes;Cancer.subtype!=NA") # positively select for smokers and remove NA from Cancer.subtype column

Value

New name of output folder


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.