Skip to content

Commit

Permalink
Refactoring MS1 adducts (#141, #144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Jul 2, 2024
1 parent a5a7af8 commit b3f8885
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 187 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export(clean_collapse)
export(cleanup_spectra)
export(columns_model)
export(complement_metadata_structures)
export(create_adducts)
export(create_components)
export(create_dir)
export(create_edges)
Expand Down
5 changes: 4 additions & 1 deletion R/annotate_masses.R
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,10 @@ annotate_masses <-
if (nrow(df_addlossed_min_2) != 0) {
message("Some adducts were unproperly detected, defaulting to (de)protonated")
df_addlossed_min_2 <- df_addlossed_min_2 |>
tidytable::mutate(label = switch(ms_mode, "pos" = "[M+H]+", "neg" = "[M-H]-")) |>
tidytable::mutate(label = switch(ms_mode,
"pos" = "[M+H]+",
"neg" = "[M-H]-"
)) |>
tidytable::rowwise() |>
tidytable::mutate(mass = calculate_mass_from_adduct(adduct_string = label, mass = mz_1)) |>
tidytable::ungroup()
Expand Down
156 changes: 0 additions & 156 deletions R/create_adducts.R

This file was deleted.

2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@
"SystemRequirements": null
},
"keywords": ["metaboliteannotation", "chemotaxonomy", "scoringsystem", "naturalproducts", "computationalmetabolomics", "taxonomicdistance", "specializedmetabolome"],
"fileSize": "4385.035KB",
"fileSize": "4378.302KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
28 changes: 0 additions & 28 deletions man/create_adducts.Rd

This file was deleted.

0 comments on commit b3f8885

Please sign in to comment.