Skip to content
Open
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
5 changes: 2 additions & 3 deletions mumble/mumble.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import pandas as pd
import pickle
import platformdirs
from psm_utils.io import read_file, write_file
from psm_utils import PSMList, PSM, Peptidoform
from psm_utils.utils import mz_to_mass
Expand Down Expand Up @@ -781,9 +782,7 @@ def _get_cache_file_path(self):
return:
str: path to cache file
"""
current_dir = os.path.dirname(os.path.realpath(__file__))
parent_dir = os.path.dirname(current_dir)
cache_dir = os.path.join(parent_dir, "modification_cache")
cache_dir = platformdirs.user_cache_dir(appname="mumble")

# Create the cache directory if it doesn't exist
os.makedirs(cache_dir, exist_ok=True)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ dependencies = [
"pandas >= 1.5.0",
"psm_utils >= 0.9.0",
"numpy >= 1.23.0",
"rustyms >= 0.8.0"
"rustyms >= 0.8.0",
"platformdirs >= 3.0.0",
]
requires-python = ">=3.10"

Expand Down
Loading