library("tima")
copy_backbone()
go_to_cache()
github <- "https://raw.githubusercontent.com/"
repo <- "taxonomicallyinformedannotation/tima-example-files/main/"
data_interim <- "data/interim/"
dir <- paste0(github, repo, data_interim)
get_file(
url = paste0(dir, "features/example_edges.tsv"),
export = get_params(step = "create_components")$files$networks$spectral$edges$prepared
)
create_components()
unlink("data", recursive = TRUE)Create components
Description
This function creates network components (connected subgraphs) from edge lists using igraph. Each component represents a set of features that are connected through spectral similarity or other relationships.
Usage
create_components(
input = get_params(step = "create_components")\$files\$networks\$spectral\$edges\$prepared,
output = get_params(step = "create_components")\$files\$networks\$spectral\$components\$raw
)
Arguments
input
|
Character vector of file path(s) containing edge data. Files should have feature_source and feature_target columns. |
output
|
Character string path for the output components file |
Value
Character string path to the created components file