-
Notifications
You must be signed in to change notification settings - Fork 10
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
add developer guide #268
base: development
Are you sure you want to change the base?
add developer guide #268
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Georg, you did a lot on aB, PeptDeep and aDIA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! some of them should make it to a broader audience
Avoid making assumptions about: | ||
- Precursor ordering by `nAA` | ||
- Fragment indices ordering (e.g., `frag_start_idx`) | ||
- Continuity of `frag_start_idx` where `frag_start_idx[i+1] = frag_stop_idx[i]` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nit) - Continuity of frag_start_idx
, i.e. frag_start_idx[i+1] == frag_stop_idx[i]
|
||
#### 4. Code Quality | ||
- Include type hints for all functions (see [numpy docstring example](https://www.sphinx-doc.org/en/master/usage/extensions/example_numpy.html#example-numpy)) | ||
- Include python type hints |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean exactly here?
[alphashared](https://github.com/MannLabs/alphashared) repository. Please see the instructions | ||
[there](https://github.com/MannLabs/alphashared/blob/reusable-release-workflow/.github/workflows/README.md#release-a-new-version). | ||
|
||
|
||
------------------------------------------------------------------------ | ||
|
||
## Changelog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you are already on that: ```
For a full overview of the changes made in each version see CHANGELOG.md (until version 1.1.0) and the github release notes (from >1.1.0).
|
||
#### pre-commit hooks | ||
#### 1. Code Structure | ||
While AlphaBase offers an object-oriented interface, implement algorithms for manipulating data in a functional way and call them from class methods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. to be able to reuse them without instantiating a class.
Hi all,
I think there are some patterns in AlphaBase which have been introduced by Feng and evolved with me and Magnus joining. I think we should formalize them a bit with more developers joining.
This is just a first version and most likely not comprehensive.