Skip to content

Commit

Permalink
Improve app
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Aug 15, 2024
1 parent 4291cc5 commit 8fcab5e
Show file tree
Hide file tree
Showing 43 changed files with 85 additions and 1 deletion.
2 changes: 2 additions & 0 deletions R/annotate_masses.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' github <- "https://raw.githubusercontent.com/"
Expand All @@ -54,6 +55,7 @@
#' str_tax_npc = paste0(dir, "libraries/sop/merged/structures/taxonomies/npc.tsv")
#' )
#' unlink("data", recursive = TRUE)
#' }
annotate_masses <-
function(features = get_params(step = "annotate_masses")$files$features$prepared,
output_annotations = get_params(step = "annotate_masses")$files$annotations$prepared$structural$ms1,
Expand Down
2 changes: 2 additions & 0 deletions R/annotate_spectra.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' get_file(
Expand All @@ -39,6 +40,7 @@
#' library = get_default_paths()$data$source$libraries$spectra$exp$with_rt
#' )
#' unlink("data", recursive = TRUE)
#' }
annotate_spectra <- function(input = get_params(step = "annotate_spectra")$files$spectral$raw,
library = get_params(step = "annotate_spectra")$files$libraries$spectral,
polarity = get_params(step = "annotate_spectra")$ms$polarity,
Expand Down
2 changes: 2 additions & 0 deletions R/create_components.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' github <- "https://raw.githubusercontent.com/"
Expand All @@ -25,6 +26,7 @@
#' )
#' create_components()
#' unlink("data", recursive = TRUE)
#' }
create_components <-
function(input = get_params(step = "create_components")$files$networks$spectral$edges$prepared,
output = get_params(step = "create_components")$files$networks$spectral$components$raw) {
Expand Down
2 changes: 2 additions & 0 deletions R/create_edges_spectra.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' get_file(
Expand All @@ -29,6 +30,7 @@
#' )
#' create_edges_spectra()
#' unlink("data", recursive = TRUE)
#' }
create_edges_spectra <- function(input = get_params(step = "create_edges_spectra")$files$spectral$raw,
output = get_params(step = "create_edges_spectra")$files$networks$spectral$edges$raw,
name_source = get_params(step = "create_edges_spectra")$names$source,
Expand Down
2 changes: 2 additions & 0 deletions R/filter_annotations.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' github <- "https://raw.githubusercontent.com/"
Expand Down Expand Up @@ -47,6 +48,7 @@
#' rts = rts
#' )
#' unlink("data", recursive = TRUE)
#' }
filter_annotations <-
function(annotations = get_params(step = "filter_annotations")$files$annotations$prepared$structural,
features = get_params(step = "filter_annotations")$files$features$prepared,
Expand Down
2 changes: 2 additions & 0 deletions R/get_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' get_params("prepare_params")
#' }
get_params <- function(step) {
paths <- get_default_paths()
steps <-
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_annotations_gnps.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' prepare_annotations_gnps()
#' unlink("data", recursive = TRUE)
#' }
prepare_annotations_gnps <-
function(input = get_params(step = "prepare_annotations_gnps")$files$annotations$raw$spectral$gnps,
output = get_params(step = "prepare_annotations_gnps")$files$annotations$prepared$structural$gnps,
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_annotations_sirius.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' prepare_annotations_sirius()
#' unlink("data", recursive = TRUE)
#' }
prepare_annotations_sirius <-
function(input_directory = get_params(step = "prepare_annotations_sirius")$files$annotations$raw$sirius,
output_ann = get_params(step = "prepare_annotations_sirius")$files$annotations$prepared$structural$sirius,
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_annotations_spectra.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' github <- "https://raw.githubusercontent.com/"
Expand All @@ -42,6 +43,7 @@
#' str_tax_npc = paste0(dir, "libraries/sop/merged/structures/taxonomies/npc.tsv")
#' )
#' unlink("data", recursive = TRUE)
#' }
prepare_annotations_spectra <-
function(input = get_params(step = "prepare_annotations_spectra")$files$annotations$raw$spectral$spectral,
output = get_params(step = "prepare_annotations_spectra")$files$annotations$prepared$structural$spectral,
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_features_components.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' github <- "https://raw.githubusercontent.com/"
Expand All @@ -24,6 +25,7 @@
#' input = input
#' )
#' unlink("data", recursive = TRUE)
#' }
prepare_features_components <-
function(input = get_params(step = "prepare_features_components")$files$networks$spectral$components$raw,
output = get_params(step = "prepare_features_components")$files$networks$spectral$components$prepared) {
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_features_edges.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' github <- "https://raw.githubusercontent.com/"
Expand All @@ -27,6 +28,7 @@
#' input = list("ms1" = input_1, "spectral" = input_2)
#' )
#' unlink("data", recursive = TRUE)
#' }
prepare_features_edges <-
function(input = get_params(step = "prepare_features_edges")$files$networks$spectral$edges$raw,
output = get_params(step = "prepare_features_edges")$files$networks$spectral$edges$prepared,
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_features_tables.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' get_file(
Expand All @@ -24,6 +25,7 @@
#' )
#' prepare_features_tables()
#' unlink("data", recursive = TRUE)
#' }
prepare_features_tables <-
function(features = get_params(step = "prepare_features_tables")$files$features$raw,
output = get_params(step = "prepare_features_tables")$files$features$prepared,
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_libraries_rt.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' prepare_libraries_rt()
#' unlink("data", recursive = TRUE)
#' }
prepare_libraries_rt <-
function(mgf_exp = get_params(step = "prepare_libraries_rt")$files$libraries$temporal$exp$mgf,
mgf_is = get_params(step = "prepare_libraries_rt")$files$libraries$temporal$is$mgf,
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_libraries_sop_closed.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' prepare_libraries_sop_closed()
#' unlink("data", recursive = TRUE)
#' }
prepare_libraries_sop_closed <-
function(input = get_params(step = "prepare_libraries_sop_closed")$files$libraries$sop$raw$closed,
output = get_params(step = "prepare_libraries_sop_closed")$files$libraries$sop$prepared$closed) {
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_libraries_sop_ecmdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' prepare_libraries_sop_ecmdb()
#' unlink("data", recursive = TRUE)
#' }
prepare_libraries_sop_ecmdb <-
function(input = get_params(step = "prepare_libraries_sop_ecmdb")$files$libraries$sop$raw$ecmdb,
output = get_params(step = "prepare_libraries_sop_ecmdb")$files$libraries$sop$prepared$ecmdb) {
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_libraries_sop_hmdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' prepare_libraries_sop_hmdb()
#' unlink("data", recursive = TRUE)
#' }
prepare_libraries_sop_hmdb <-
function(input = get_params(step = "prepare_libraries_sop_hmdb")$files$libraries$sop$raw$hmdb,
output = get_params(step = "prepare_libraries_sop_hmdb")$files$libraries$sop$prepared$hmdb) {
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_libraries_sop_lotus.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' prepare_libraries_sop_lotus()
#' unlink("data", recursive = TRUE)
#' }
prepare_libraries_sop_lotus <-
function(input = get_params(step = "prepare_libraries_sop_lotus")$files$libraries$sop$raw$lotus,
output = get_params(step = "prepare_libraries_sop_lotus")$files$libraries$sop$prepared$lotus) {
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_libraries_sop_merged.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' github <- "https://raw.githubusercontent.com/"
Expand All @@ -43,6 +44,7 @@
#' get_file(url = paste0(dir, files), export = files)
#' prepare_libraries_sop_merged(files = files)
#' unlink("data", recursive = TRUE)
#' }
prepare_libraries_sop_merged <-
function(files = get_params(step = "prepare_libraries_sop_merged")$files$libraries$sop$prepared,
filter = get_params(step = "prepare_libraries_sop_merged")$organisms$filter$mode,
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_libraries_spectra.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' prepare_libraries_spectra()
#' unlink("data", recursive = TRUE)
#' }
prepare_libraries_spectra <-
function(input = get_params(step = "prepare_libraries_spectra")$files$libraries$spectral$raw,
nam_lib = get_params(step = "prepare_libraries_spectra")$names$libraries,
Expand Down
2 changes: 2 additions & 0 deletions R/prepare_taxa.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#' @export
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' github <- "https://raw.githubusercontent.com/"
Expand All @@ -52,6 +53,7 @@
#' org_tax_ott = org_tax_ott
#' )
#' unlink("data", recursive = TRUE)
#' }
prepare_taxa <-
function(input = get_params(step = "prepare_taxa")$files$features$raw,
extension = get_params(step = "prepare_taxa")$names$extension,
Expand Down
2 changes: 2 additions & 0 deletions R/weight_annotations.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
#' @seealso annotate_masses weight_bio weight_chemo
#'
#' @examples
#' \donttest{
#' tima:::copy_backbone()
#' go_to_cache()
#' github <- "https://raw.githubusercontent.com/"
Expand Down Expand Up @@ -170,6 +171,7 @@
#' taxa = taxa
#' )
#' unlink("data", recursive = TRUE)
#' }
weight_annotations <- function(library = get_params(step = "weight_annotations")$files$libraries$sop$merged$keys,
org_tax_ott = get_params(step = "weight_annotations")$files$libraries$sop$merged$organisms$taxonomies$ott,
str_stereo = get_params(step = "weight_annotations")$files$libraries$sop$merged$structures$stereo,
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
"SystemRequirements": null
},
"keywords": ["metaboliteannotation", "chemotaxonomy", "scoringsystem", "naturalproducts", "computationalmetabolomics", "taxonomicdistance", "specializedmetabolome"],
"fileSize": "3253.523KB",
"fileSize": "3254.195KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
2 changes: 2 additions & 0 deletions man/annotate_masses.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/annotate_spectra.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/create_components.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/create_edges_spectra.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/filter_annotations.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/get_params.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8fcab5e

Please sign in to comment.