-
Notifications
You must be signed in to change notification settings - Fork 1
Add MulitFLEX-LF to PROTzilla #521
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
base: dev
Are you sure you want to change the base?
Conversation
…ck_trace based on debug mode of Django
| @@ -0,0 +1,567 @@ | |||
| import logging | |||
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.
this file should be deleted
|
|
||
| # check if colormap is valid | ||
| try: | ||
| custom_cmap = copy(plt.get_cmap(color_map)) |
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.
when selecting "red-yellow-blue" as "Color mat used for heatmap" the following error occurres:
File "C:\Users\janni\PycharmProjects\PROTzilla2\protzilla\steps.py", line 76, in calculate
output_dict = self.method(self.inputs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\janni\PycharmProjects\PROTzilla2\protzilla\methods\data_analysis.py", line 757, in method
return multiflex_lf(**inputs)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\janni\PycharmProjects\PROTzilla2\protzilla\data_analysis\ptm_quantification\multiflex.py", line 224, in multiflex_lf
custom_cmap = copy(plt.get_cmap(color_map))
^^^^^^^^^
UnboundLocalError: cannot access local variable 'color_map' where it is not associated with a value```
| and facilitates the analysis of modification dynamics and coregulated modifications across large datasets without the need for preselecting specific proteins. | ||
|
|
||
| Parts of the implementation have been adapted from https://gitlab.com/SteenOmicsLab/multiflex-lf. | ||
| """ |
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.
document input parameters
| end = time.time() | ||
| message = dict( | ||
| level=logging.INFO, | ||
| msg=f"Finished with MultiFLEX-LF analysis in ~{end-start:.1f} seconds.", |
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.
should this displayed to the user? (we never do this for other methods)
| elif colormap == 6: | ||
| color_map = "RdYlGn" | ||
| elif colormap == 7: | ||
| color_map = "RdYlBu" |
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.
Maybe use an array or dictionary here instead
|
|
||
| # ignore nan-slice warnings | ||
| # with warnings.catch_warnings(): | ||
| # warnings.filterwarnings("ignore", r"All-NaN (slice|axis) encountered") |
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.
remove this code instead of commenting it
Description
Adds new MulitFLEX-LF method to PROTzilla.
Changes
A new file was creared for MultiFLEX-LF. Changes where you would expect them for adding a new method.
Testing
Tests will be added in the future.