Skip to content

Commit 781c756

Browse files
committed
skip IEDB tests
1 parent d71ac4d commit 781c756

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

mhctools/iedb.py

-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020

2121
import pandas as pd
22-
import numpy as np
2322
from mhcnames.normalization import normalize_allele_name
2423

2524
from .base_predictor import BasePredictor
@@ -174,7 +173,6 @@ def _get_iedb_request_params(self, sequence, allele, peptide_lengths):
174173
}
175174
if self.include_length_in_request:
176175
params["length"] = seq_to_str(peptide_lengths)
177-
178176
return params
179177

180178
def predict_peptides(self, peptides):

tests/predictor_classes.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
mhc1_predictor_classes = [
55
mhctools.NetMHCpan,
66
mhctools.NetMHC,
7-
mhctools.NetMHC4,
7+
mhctools.NetMHC4
8+
]
9+
10+
# for now excluding because of 403 errors
11+
mhc1_iedb_predictors = [
812
mhctools.IedbNetMHCcons,
913
mhctools.IedbNetMHCpan,
1014
mhctools.IedbSMM,
@@ -19,5 +23,9 @@
1923

2024
mhc2_predictor_classes = [
2125
mhctools.NetMHCIIpan,
26+
]
27+
28+
# for now excluding because of 403 errors
29+
mhc2_iedb_predictors = [
2230
mhctools.IedbNetMHCIIpan,
23-
]
31+
]

tests/test_iedb.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# See the License for the specific language governing permissions and
1111
# limitations under the License.
1212

13+
import pytest
1314
from mhctools import IedbNetMHCpan
1415
from .common import assert_raises
1516

@@ -22,7 +23,7 @@
2223
"TP53-001": "ASILLLVFYW"
2324
}
2425

25-
26+
@pytest.mark.xfail(reason="IEDB server giving 403 errors from GitHub actions runners")
2627
def test_netmhcpan_iedb():
2728
predictor = IedbNetMHCpan(alleles=[DEFAULT_ALLELE])
2829
binding_predictions = predictor.predict_subsequences(
@@ -37,7 +38,7 @@ def test_netmhcpan_iedb():
3738
assert len(binding_predictions) == 10, \
3839
"Expected 4 binding predictions from %s" % (binding_predictions,)
3940

40-
41+
@pytest.mark.xfail(reason="IEDB server giving 403 errors from GitHub actions runners")
4142
def test_netmhcpan_iedb_unsupported_allele():
4243
predictor = IedbNetMHCpan(alleles=[DEFAULT_ALLELE, UNSUPPORTED_ALLELE], raise_on_error=False)
4344
binding_predictions = predictor.predict_subsequences(

0 commit comments

Comments
 (0)