Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding translations for cliqueMS (#141) #157

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions R/annotate_masses.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@
#'
#' @examples NULL
annotate_masses <-
function(features = get_params(step = "annotate_masses")$files$features$prepared,

Check warning on line 38 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=38,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 83 characters.

Check warning on line 38 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=38,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 83 characters.
filter_nitro = get_params(step = "annotate_masses")$options$nitrogen_rule,

Check warning on line 39 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=39,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 85 characters.

Check warning on line 39 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=39,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 85 characters.
output_annotations = get_params(step = "annotate_masses")$files$annotations$prepared$structural$ms1,

Check warning on line 40 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=40,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 111 characters.

Check warning on line 40 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=40,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 111 characters.
output_edges = get_params(step = "annotate_masses")$files$networks$spectral$edges$raw,

Check warning on line 41 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=41,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 97 characters.

Check warning on line 41 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=41,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 97 characters.
name_source = get_params(step = "annotate_masses")$names$source,
name_target = get_params(step = "annotate_masses")$names$target,
library = get_params(step = "annotate_masses")$files$libraries$sop$merged$keys,

Check warning on line 44 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=44,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 90 characters.

Check warning on line 44 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=44,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 90 characters.
str_stereo = get_params(step = "annotate_masses")$files$libraries$sop$merged$structures$stereo,

Check warning on line 45 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=45,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 106 characters.

Check warning on line 45 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=45,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 106 characters.
str_met = get_params(step = "annotate_masses")$files$libraries$sop$merged$structures$metadata,

Check warning on line 46 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=46,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 105 characters.

Check warning on line 46 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=46,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 105 characters.
str_nam = get_params(step = "annotate_masses")$files$libraries$sop$merged$structures$names,

Check warning on line 47 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=47,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 102 characters.

Check warning on line 47 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=47,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 102 characters.
str_tax_cla = get_params(step = "annotate_masses")$files$libraries$sop$merged$structures$taxonomies$cla,

Check warning on line 48 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=48,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 115 characters.

Check warning on line 48 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=48,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 115 characters.
str_tax_npc = get_params(step = "annotate_masses")$files$libraries$sop$merged$structures$taxonomies$npc,

Check warning on line 49 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=49,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 115 characters.

Check warning on line 49 in R/annotate_masses.R

View workflow job for this annotation

GitHub Actions / MegaLinter

file=/github/workspace/R/annotate_masses.R,line=49,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 115 characters.
adducts_list = get_params(step = "annotate_masses")$ms$adducts,
clusters_list = get_params(step = "annotate_masses")$ms$clusters,
neutral_losses_list = get_params(step = "annotate_masses")$ms$neutral_losses,
Expand Down Expand Up @@ -132,13 +132,18 @@
# TODO this should be externalized
adducts_translations <-
c(
"-2H" = "-H2", # cliqueMS
"-3H" = "-H3", # cliqueMS
"-2H2O" = "-H4O2 (2xH2O)", # mzmine
"-3H2O" = "-H6O3 (3xH2O)", # mzmine
"-4H2O" = "-H8O4 (4xH2O)", # mzmine
"-5H2O" = "-H10O5 (5xH2O)", # mzmine
"-NH3" = "+H3N", # mzmine
"+2H" = "+H2", # mzmine
"+2K" = "+K2", # cliqueMS
"+2Na" = "+Na2", # mzmine
"+3K" = "+K3", # cliqueMS
"+3Na" = "+Na3", # cliqueMS
"+Acetate" = "C2H3O2", # mzmine
"+ACN" = "+C2H3N", # mzmine
"+FA" = "CHO2", # mzmine
Expand Down
Loading