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

Fix GUI on Linux systems #123

Merged
merged 3 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ms2rescore/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""MS²Rescore: Sensitive PSM rescoring with predicted MS² peak intensities and RTs."""

__version__ = "3.0.0"
__version__ = "3.0.1"

from warnings import filterwarnings

Expand Down
4 changes: 3 additions & 1 deletion ms2rescore/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import webbrowser
from pathlib import Path
from typing import Dict, List, Tuple
import platform

import customtkinter as ctk
from joblib import parallel_backend
Expand Down Expand Up @@ -648,6 +649,7 @@ def app():
dpi = root.winfo_fpixels("1i")
root.geometry(f"{int(15*dpi)}x{int(10*dpi)}")
root.title("MS²Rescore")
root.wm_iconbitmap(os.path.join(str(_IMG_DIR), "program_icon.ico"))
if platform.system() != "Linux":
root.wm_iconbitmap(os.path.join(str(_IMG_DIR), "program_icon.png"))

root.mainloop()
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ classifiers = [
dynamic = ["version"]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.16.0",
"numpy>=1.16.0; python_version != '3.11'",
"numpy==1.24.3; python_version == '3.11'", # Incompatibility with sklearn, pygam, and TF...
"pandas>=1.0",
"rich>=12",
"pyteomics>=4.1.0",
Expand All @@ -41,7 +42,7 @@ dependencies = [
"click>=7",
"cascade-config>=0.4.0",
"deeplc>=2.2",
"deeplcretrainer>=0.2", # TODO: Release version pin
"deeplcretrainer>=0.2",
"tomli>=2; python_version < '3.11'",
"psm_utils>=0.4",
"customtkinter>=5,<6",
Expand Down
Loading