-
Notifications
You must be signed in to change notification settings - Fork 13
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
refactor Spectrum
class
#193
Merged
Merged
Conversation
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 was referenced Dec 4, 2023
Merged
CunliangGeng
force-pushed
the
11-27-remove_SingletonFamily_and_id
branch
from
December 5, 2023 15:54
583384f
to
b4ab6e1
Compare
CunliangGeng
force-pushed
the
11-27-refactor_Spectrum
branch
from
December 5, 2023 15:54
e09bcb1
to
54a9f64
Compare
CunliangGeng
force-pushed
the
11-27-remove_SingletonFamily_and_id
branch
from
December 11, 2023 13:04
b4ab6e1
to
5ad51fe
Compare
CunliangGeng
force-pushed
the
11-27-refactor_Spectrum
branch
from
December 11, 2023 13:04
54a9f64
to
7b7fed8
Compare
This was referenced Dec 11, 2023
gcroci2
reviewed
Dec 13, 2023
gcroci2
approved these changes
Dec 13, 2023
CunliangGeng
force-pushed
the
11-27-remove_SingletonFamily_and_id
branch
from
December 14, 2023 08:33
5ad51fe
to
a0d5ea7
Compare
CunliangGeng
force-pushed
the
11-27-refactor_Spectrum
branch
from
December 14, 2023 08:33
7b7fed8
to
87caba4
Compare
`parent_mz` refers to `precursor_mz` in the context, so removing `parent_mz` and keep `precursor_mz`.
Remove `id` and use `spectrum_id` as the unique identifier of spectrum.
- add optional arguments `metadata` and `annotations` - update and order the attributes - add docstring and typings
method `__cmp__` is not supported in python 3.
Property can be used as a way to provide computed attribute.
The specific method `keep_top_k` is only required by class `SpecLib`, so better to move it there.
- remove `None` from typing and keep only `float` - change default value to 0 - update spectrum loader
- remove argument `annotations` - remove property `gnps_annotations` - add attribute `gnps_annotations`
CunliangGeng
force-pushed
the
11-27-refactor_Spectrum
branch
from
December 19, 2023 13:28
f2f89ad
to
ab84fab
Compare
This was referenced Dec 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactor the whole
Spectrum
class. There are quite some commits, but the major idea of these changes are simple:You could find more details about the changes in each commit.