Skip to content
Draft
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
6 changes: 3 additions & 3 deletions mavisp/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import os
from importlib.resources import as_file, files
import pandas as pd
from mavisp.methods import *
from mavisp.utils import three_to_one, three_to_one_hgvsp
from collections import defaultdict
import logging as log
import re
import pkg_resources
import numbers
import yaml

Expand Down Expand Up @@ -1444,8 +1444,8 @@ def ingest(self, mutations):
critical=[MAVISpCriticalError(this_error)])

# load phospho-SLiM data file
fname = pkg_resources.resource_filename(__name__, 'data/phosphoSLiMs_15062023.csv')
phospho_slims = pd.read_csv(fname)
with as_file(files(__package__).joinpath('data/phosphoSLiMs_15062023.csv')) as fname:
phospho_slims = pd.read_csv(fname)

# create final table
final_table = pd.DataFrame({'mutation' : mutations})
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ dependencies = [
"pyyaml",
"requests",
"termcolor",
"setuptools",
]
dynamic = ["version"]

Expand Down