Prepare features components

Description

This function prepares molecular network component (cluster) assignments by loading, standardizing, and formatting component IDs for each feature. Components represent groups of related features in the molecular network.

Usage

prepare_features_components(
  input = get_params(step =
    "prepare_features_components")\$files\$networks\$spectral\$components\$raw,
  output = get_params(step =
    "prepare_features_components")\$files\$networks\$spectral\$components\$prepared
)

Arguments

input Character vector of paths to input component files. Can be a single file or multiple files that will be combined.
output Character string path where prepared components should be saved

Value

Character string path to the prepared features’ components file

Examples

library("tima")

copy_backbone()
go_to_cache()
github <- "https://raw.githubusercontent.com/"
repo <- "taxonomicallyinformedannotation/tima-example-files/main/"
dir <- paste0(github, repo)
input <- get_params(step = "prepare_features_components")$files$networks$spectral$components$raw
get_file(url = paste0(dir, input), export = input)
prepare_features_components(input = input)
unlink("data", recursive = TRUE)