Skip to content

Commit 0aef517

Browse files
author
John Ziegler
committedMar 31, 2021
add additional python version support and ci config
1 parent 334cdc1 commit 0aef517

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed
 

‎.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ python:
33
- 2.7
44
- 3.5
55
- 3.6
6+
- 3.7
7+
- 3.8
68
before_install:
79
- sudo apt-get -y update
810
install:

‎data/generate_vectors/create_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def create_data(
296296
raise Exception(
297297
"Label column in case list can be empty or contain one the values +1 (MSI) or -1 (MSS)."
298298
)
299-
cases = cases.replace({pd.np.nan: None})
299+
cases = cases.replace({np.nan: None})
300300
for index, row in cases.iterrows():
301301
tumor_id, normal_id, tumor_bam, normal_bam, label = map(
302302
lambda x: row[x] if x in row and row[x] else None,

‎main/evaluate_sample.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def sample_name_parser(sample):
9090
try:
9191
os.mkdir(save_loc)
9292
except OSError as e:
93-
if e.errno != os.errno.EEXIST:
93+
if e.errno != errno.EEXIST:
9494
print("Exception when creating directory to store final results.")
9595
raise
9696

‎requirements.txt

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
future==0.18.2
21
nose>=1.3.7
32
numpy==1.16.1
4-
pandas==0.24.2
5-
Pillow==5.3.0
3+
pandas==0.24.2; python_version <= '2.7'
4+
pandas
5+
pillow>=8.1.1
66
pysam==0.16.0.1
77
python-dateutil==2.8.1
8-
scikit-learn==0.20.0
9-
scipy==1.1.0
8+
scikit-learn>=0.20.0; python_version <= '2.7'
9+
scikit-learn
10+
scipy>=1.1.0; python_version <= '2.7'
11+
scipy
1012
six==1.11.0
11-
sklearn==0.0
13+
sklearn==0.0; python_version <= '2.7'
14+
sklearn
1215
torch==1.4.0
1316
torchvision==0.5.0

‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def most_recent_tag():
2929

3030
setup(
3131
name="MiMSI",
32-
version=most_recent_tag(),
32+
version="v.0.4.1",
3333
description="A deep, multiple instance learning based classifier for identifying Microsatellite Instability from NGS",
3434
url="https://github.com/mskcc/mimsi",
3535
author="John Ziegler",

0 commit comments

Comments
 (0)
Please sign in to comment.