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
1 change: 1 addition & 0 deletions .github/workflows/predictor_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
pip cache purge
pip install git+https://github.com/griffithlab/bigmhc.git#egg=bigmhc
pip install git+https://github.com/griffithlab/deepimmuno.git#egg=deepimmuno
pip install git+https://github.com/griffithlab/TL-MHC.git#egg=TL-MHC
pip install -e .
mhcflurry-downloads fetch
- name: Install MixMHCpred
Expand Down
48 changes: 48 additions & 0 deletions predictor_tests/test_call_iedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,54 @@ def test_prime_method_generates_expected_files_for_A02110(self):
atol=2e-2
)

def test_tlbind_method_generates_expected_files(self):
call_iedb_output_file = tempfile.NamedTemporaryFile()
tmp_call_iedb_output_dir = tempfile.TemporaryDirectory()

pvactools.lib.call_iedb.main([
self.input_file,
call_iedb_output_file.name,
'TLBind',
self.allele,
'-l', str(self.epitope_length),
'--tmp-dir', tmp_call_iedb_output_dir.name,
])
expected_output_file = os.path.join(self.test_data_dir, 'output_tlbind.tsv')
expected_df = pd.read_csv(expected_output_file, sep="\t", index_col=[0,4,5])
actual_df = pd.read_csv(call_iedb_output_file.name, sep="\t", index_col=[0,4,5])
pd.testing.assert_frame_equal(
expected_df,
actual_df,
check_like=True,
check_exact=False,
rtol=1e-3,
atol=2e-2
)

def test_tlimm_method_generates_expected_files(self):
call_iedb_output_file = tempfile.NamedTemporaryFile()
tmp_call_iedb_output_dir = tempfile.TemporaryDirectory()

pvactools.lib.call_iedb.main([
self.input_file,
call_iedb_output_file.name,
'TLImm',
self.allele,
'-l', str(self.epitope_length),
'--tmp-dir', tmp_call_iedb_output_dir.name,
])
expected_output_file = os.path.join(self.test_data_dir, 'output_tlimm.tsv')
expected_df = pd.read_csv(expected_output_file, sep="\t", index_col=[0,3,4])
actual_df = pd.read_csv(call_iedb_output_file.name, sep="\t", index_col=[0,3,4])
pd.testing.assert_frame_equal(
expected_df,
actual_df,
check_like=True,
check_exact=False,
rtol=1e-3,
atol=2e-2
)

class CallIEDBClassIITests(CallIEDBTests):
@classmethod
def additional_setup(cls):
Expand Down
2,787 changes: 2,787 additions & 0 deletions predictor_tests/test_data/output_tlbind.tsv

Large diffs are not rendered by default.

Loading
Loading