-
Notifications
You must be signed in to change notification settings - Fork 9
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 documentation | PSM reader tutorial #306
base: main
Are you sure you want to change the base?
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.
LGTM! thanks for the effort!
|
||
|
||
def test_read_psm(psm_example): | ||
search_engine, data, expected_shape = psm_example |
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.
could add a one-line docstring descibing the intent of the test and a # when
before df = psm_reader.import_file(copy(data))
to be able to quickly spot where the code under test is called
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.
Thanks! First time I learned about the given, when, then
structure in unittests!
docs/nbs/psm_readers.ipynb
Outdated
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.
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.
Thanks! Fixed the table formatting + changed the representation of the currently available readers.
…m in pretty format
…actor-docs_psm-reader_I
Refactor PSM reader tutorial. This PR restructures the PSM reader tutorial in background (Basic/Advanced), Code, Advanced examples. Comparison old/new attached
Tutorial
Theory
alphabase
workflowCode
Tests
/tests/unit/psm_reader/test_psm_reader_provider.py
)Edit: Just saw PR #305, but this PR seems to be complementary
Missing
Short example on implementing a custom reader. This is currently not easily possible as at the moment the
modification_mapping
has to be hard coded inalphabase.psm_reader.psm_reader_yaml
(see new ticket)tutorial_new.pdf
tutorial_old.pdf