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

Merge calculateFragments and calculateFragments2 #19

Merged
merged 30 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
11d943c
Create fragments-calculate2.R
guideflandre Dec 19, 2024
32dd91b
Create test_fragments2.R
guideflandre Dec 19, 2024
ab01551
Update fragments-calculate2.R
guideflandre Dec 19, 2024
d1951bb
Update fragments-calculate2.R
guideflandre Dec 19, 2024
d505a3d
Update fragments-calculate2.R
guideflandre Dec 19, 2024
b75af03
Update documentation
guideflandre Dec 19, 2024
f3b7ba7
Update documentation
guideflandre Dec 20, 2024
ea262a0
Delete PSMatch.Rproj
guideflandre Dec 24, 2024
dfeaa2e
Update NEWS.md
guideflandre Dec 24, 2024
7c8f6c9
Update DESCRIPTION
guideflandre Dec 24, 2024
9d1ea08
Update fragments-calculate2.R
guideflandre Dec 24, 2024
befd86a
Update test_fragments2.R
guideflandre Dec 24, 2024
046cca0
Update R/fragments-calculate2.R
guideflandre Jan 2, 2025
ebb8673
Update fragments-calculate2.R
guideflandre Jan 2, 2025
5c4ce49
Update fragments-calculate2.R
guideflandre Jan 6, 2025
7c8afd6
Update DESCRIPTION
guideflandre Jan 6, 2025
6d25915
git ignore Rproj file
guideflandre Jan 7, 2025
f5b8b06
update .cumsumFragmentMasses
guideflandre Jan 7, 2025
9d5b9ff
update: testthat .cumsumFragmentMasses
guideflandre Jan 7, 2025
5c0344e
update variable_modifications default to empty numeric
guideflandre Jan 7, 2025
a39cbee
Update fragments-calculate2.R
guideflandre Jan 10, 2025
0525f86
Add warning for modifications parameter
guideflandre Jan 17, 2025
f4a5d0f
Remove redundancy in strplit(sequence)
guideflandre Jan 20, 2025
2526ccd
Update documentation
guideflandre Jan 20, 2025
bdd7cd8
update documentation
guideflandre Jan 20, 2025
3d6bc0c
update documentaton
guideflandre Jan 20, 2025
7107718
Merge calculateFragments and calculateFragments2 into one true calcul…
guideflandre Jan 20, 2025
4f5795a
Remove redundancies and update calculateFragments based on PR
guideflandre Jan 21, 2025
5f46152
Updated failed unit test
guideflandre Jan 21, 2025
56aec17
Update comments in addFragments
guideflandre Jan 21, 2025
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
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export("reduced<-")
export(ConnectedComponents)
export(PSM)
export(addFragments)
export(calculateFragments2)
export(ccMatrix)
export(connectedComponents)
export(defaultNeutralLoss)
Expand Down
6 changes: 6 additions & 0 deletions R/fragments-add.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ addFragments <- function(x,
x_data <- Spectra::peaksData(x)[[1L]]
y_data <- calculateFragments(y, verbose = FALSE, ...)
y_data <- y_data[order(y_data$mz), ]

## stop if variable modifications used
## Temporary check to allow plotSpectra to work fine
## Will need to be removed once plotSpectra accepts variable modifications
## See issue: https://github.com/rformassspectrometry/Spectra/issues/346
stopifnot(length(unique(y_data[["peptide"]])) == 1)

## Find common peaks and prepare annotations
idx <- which(MsCoreUtils::common(x_data[, "mz"], y_data[, "mz"],
Expand Down
Loading
Loading