-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from p2m2/develop
CI/CD implementation
- Loading branch information
Showing
14 changed files
with
305 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ devel.md$ | |
^.*\.Rproj$ | ||
^\.circleci\.yml$ | ||
^LICENSE\.md$ | ||
.circleci | ||
exampleOligopeptides* | ||
Data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 19 additions & 14 deletions
33
R/get_arrangement_oligopeptides.R → R/get_oligopeptides.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
#' Match an observed mz against the combined compounds Robject using a δppm | ||
#' | ||
#' @description Match an observed mz against the combined compounds Robject using a δppm | ||
#' @description Match an observed mz against the combined | ||
#' compounds Robject using a δppm | ||
#' @param mz_obs is the observed mz of the metabolomic study | ||
#' @param combined_compounds is the combined compounds array to match | ||
#' @param ppm_error is the criteria to match compounds | ||
#' @return the list as dataframe of all the matches | ||
#' @return the list as dataframe of all the matches | ||
#' @importFrom dplyr %>% | ||
#' @importFrom dplyr mutate | ||
#' @importFrom dplyr filter | ||
#' @export | ||
#' @examples | ||
|
||
match_mz_obs <- function(mz_obs, | ||
combined_compounds, | ||
ppm_error=5){ | ||
ppm_error=5) { | ||
return(combined_compounds %>% | ||
filter(combined_compounds<round(mz_obs, digits=0)+1) %>% | ||
filter(combined_compounds>=round(mz_obs, digits=0)) %>% | ||
mutate(round = round(combined_compounds, digits=4)) %>% | ||
mutate(ppm_error_value = d_ppm(round, mz_obs)) %>% | ||
filter(ppm_error_value<ppm_error)) | ||
dplyr::filter(combined_compounds < mz_obs + 1.0) %>% | ||
dplyr::filter(combined_compounds >= mz_obs - 1.0) %>% | ||
dplyr::mutate(round = round(combined_compounds, digits=4)) %>% | ||
dplyr::mutate(ppm_error_value = d_ppm(round, mz_obs)) %>% | ||
dplyr::filter(ppm_error_value<ppm_error)) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.