-
Notifications
You must be signed in to change notification settings - Fork 11
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
changing dot size in plot depending if new submission #75 #93
Conversation
webinterface/_base.py
Outdated
@@ -36,7 +36,7 @@ def _preface(self): | |||
unsafe_allow_html=True, | |||
) | |||
|
|||
@abstractmethod | |||
@abstractmethod |
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.
can you install the black formatting plugin in VSCode?
So both your changes are due to formatting. We use black for formatting the code and it can be installed as a plugin in VSCode: https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter |
all_datapoints = all_datapoints.T | ||
|
||
current_datapoint["old_new"] = "new" |
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.
Alternatively you could remember the index and use df.loc[idx_new]
@@ -75,12 +75,25 @@ def plot_metric(self, benchmark_metrics_df: pd.DataFrame) -> go.Figure: | |||
|
|||
# Add hover text | |||
hover_texts = [ | |||
f"Search Engine: {benchmark_metrics_df.search_engine[idx]} {benchmark_metrics_df.software_version[idx]}<br>FDR psm: {benchmark_metrics_df.fdr_psm[idx]}<br>FDR Peptide: {benchmark_metrics_df.fdr_peptide[idx]}<br>FRD Protein: {benchmark_metrics_df.fdr_protein[idx]}<br>MBR: {benchmark_metrics_df.MBR[idx]}<br>Precursor Tolerance: {benchmark_metrics_df.precursor_tol[idx]} {benchmark_metrics_df.precursor_tol_unit[idx]}<br>Fragment Tolerance: {benchmark_metrics_df.fragment_tol_unit[idx]}<br>Enzyme: {benchmark_metrics_df.enzyme_name[idx]} <br>Missed Cleavages: {benchmark_metrics_df.missed_cleavages[idx]}<br>Min peptide length: {benchmark_metrics_df.min_pep_length[idx]}<br>Max peptide length: {benchmark_metrics_df.max_pep_length[idx]}" | |||
f"Search Engine: {benchmark_metrics_df.search_engine[idx]} {benchmark_metrics_df.software_version[idx]}<br>" + |
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.
you don't need the plus:)
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 details could be change in a big refactoring.
f"Search Engine: {benchmark_metrics_df.search_engine[idx]} {benchmark_metrics_df.software_version[idx]}<br>" | ||
+ f"FDR psm: {benchmark_metrics_df.fdr_psm[idx]}<br>" | ||
+ f"FDR Peptide: {benchmark_metrics_df.fdr_peptide[idx]}<br>" | ||
+ f"FRD Protein: {benchmark_metrics_df.fdr_protein[idx]}<br>" |
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.
+ f"FRD Protein: {benchmark_metrics_df.fdr_protein[idx]}<br>" | |
+ f"FDR Protein: {benchmark_metrics_df.fdr_protein[idx]}<br>" |
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.
I tested the branch after merging changes from main and it works for me.
No description provided.