20
20
21
21
DEFAULT_ALLELE = 'HLA-A*02:01'
22
22
23
- @pytest .mark .skipif (apple_silicon , "Can't run netMHCcons on arm64 architecture" )
23
+ @pytest .mark .skipif (apple_silicon , reason = "Can't run netMHCcons on arm64 architecture" )
24
24
def test_netmhc_cons ():
25
25
alleles = [normalize_allele_name (DEFAULT_ALLELE )]
26
26
cons_predictor = NetMHCcons (
@@ -36,15 +36,15 @@ def test_netmhc_cons():
36
36
assert len (binding_predictions ) == 4 , \
37
37
"Expected 4 epitopes from %s" % (binding_predictions ,)
38
38
39
- @pytest .mark .skipif (apple_silicon , "Can't run netMHCcons on arm64 architecture" )
39
+ @pytest .mark .skipif (apple_silicon , reason = "Can't run netMHCcons on arm64 architecture" )
40
40
def test_netmhc_cons_multiple_lengths ():
41
41
cons_predictor = NetMHCcons (alleles = ["A6801" ])
42
42
binding_predictions = cons_predictor .predict_peptides (
43
43
["A" * 8 , "A" * 9 , "A" * 10 , "A" * 11 ])
44
44
assert len (binding_predictions ) == 4 , \
45
45
"Expected 4 epitopes from %s" % (binding_predictions ,)
46
46
47
- @pytest .mark .skipif (apple_silicon , "Can't run netMHCcons on arm64 architecture" )
47
+ @pytest .mark .skipif (apple_silicon , reason = "Can't run netMHCcons on arm64 architecture" )
48
48
def test_netmhc_cons_multiple_alleles ():
49
49
alleles = 'A*02:01,B*35:02'
50
50
cons_predictor = NetMHCcons (
@@ -59,7 +59,7 @@ def test_netmhc_cons_multiple_alleles():
59
59
assert len (binding_predictions ) == 8 , \
60
60
"Expected 4 binding predictions from %s" % (binding_predictions ,)
61
61
62
- @pytest .mark .skipif (apple_silicon , "Can't run netMHCcons on arm64 architecture" )
62
+ @pytest .mark .skipif (apple_silicon , reason = "Can't run netMHCcons on arm64 architecture" )
63
63
def test_netmhc_cons_process_limits ():
64
64
alleles = [normalize_allele_name (DEFAULT_ALLELE )]
65
65
sequence_dict = {
0 commit comments