Skip to content
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

Merged
merged 9 commits into from
Sep 25, 2023

Conversation

wolski
Copy link
Contributor

@wolski wolski commented Sep 25, 2023

No description provided.

@@ -36,7 +36,7 @@ def _preface(self):
unsafe_allow_html=True,
)

@abstractmethod
@abstractmethod
Copy link
Member

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?

@enryH
Copy link
Member

enryH commented Sep 25, 2023

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"
Copy link
Member

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>" +
Copy link
Member

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:)

Copy link
Member

@enryH enryH left a 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>"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+ f"FRD Protein: {benchmark_metrics_df.fdr_protein[idx]}<br>"
+ f"FDR Protein: {benchmark_metrics_df.fdr_protein[idx]}<br>"

@scaramonche scaramonche self-requested a review September 25, 2023 15:47
Copy link
Contributor

@scaramonche scaramonche left a 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.

@RobbinBouwmeester RobbinBouwmeester merged commit 763c54a into main Sep 25, 2023
4 checks passed
@RobbinBouwmeester RobbinBouwmeester deleted the improveplots branch September 25, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants