library("tima")
copy_backbone()
go_to_cache()
<- "https://raw.githubusercontent.com/"
github <- "taxonomicallyinformedannotation/tima-example-files/main/"
repo <- paste0(github, repo)
dir <- get_params(step = "filter_annotations")$files$annotations$prepared$structural[[2]] |>
annotations gsub(
pattern = ".gz",
replacement = "",
fixed = TRUE
)<- get_params(step = "filter_annotations")$files$features$prepared |>
features gsub(
pattern = ".gz",
replacement = "",
fixed = TRUE
)<- get_params(step = "filter_annotations")$files$libraries$temporal$prepared |>
rts gsub(
pattern = ".gz",
replacement = "",
fixed = TRUE
)get_file(url = paste0(dir, annotations), export = annotations)
get_file(url = paste0(dir, features), export = features)
get_file(url = paste0(dir, rts), export = rts)
filter_annotations(
annotations = annotations,
features = features,
rts = rts
)unlink("data", recursive = TRUE)
Filter annotations
Description
This function filters initial annotations.
Usage
filter_annotations(
annotations = get_params(step =
"filter_annotations")\$files\$annotations\$prepared\$structural,
features = get_params(step = "filter_annotations")\$files\$features\$prepared,
rts = get_params(step = "filter_annotations")\$files\$libraries\$temporal\$prepared,
output = get_params(step = "filter_annotations")\$files\$annotations\$filtered,
tolerance_rt = get_params(step = "filter_annotations")\$ms\$tolerances\$rt\$library
)
Arguments
annotations
|
Prepared annotations file |
features
|
Prepared features file |
rts
|
Prepared retention time library |
output
|
Output file |
tolerance_rt
|
Tolerance to filter retention time |
Value
The path to the filtered annotations