floccinauci commited on
Commit
6faa4a1
·
verified ·
1 Parent(s): baa85a7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md CHANGED
@@ -54,6 +54,20 @@ pip install git+https://github.com/BiomedSciAI/biomed-multi-alignment.git
54
 
55
  A simple example for a task already supported by `ibm/biomed.omics.bl.sm.ma-ted-458m.tcr_epitope_bind`:
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  See our detailed example at: on `https://github.com/BiomedSciAI/biomed-multi-alignment`
58
 
59
 
 
54
 
55
  A simple example for a task already supported by `ibm/biomed.omics.bl.sm.ma-ted-458m.tcr_epitope_bind`:
56
 
57
+ from mammal.examples.tcr_epitope_binding.main_infer import load_model, task_infer
58
+
59
+ tcr_beta_seq = "NAGVTQTPKFQVLKTGQSMTLQCAQDMNHEYMSWYRQDPGMGLRLIHYSVGAGITDQGEVPNGYNVSRSTTEDFPLRLLSAAPSQTSVYFCASSYSWDRVLEQYFGPGTRLTVT"
60
+ epitope_seq = "LLQTGIHVRVSQPSL"
61
+
62
+ model_inst, tokenizer_op = load_model(device="cpu")
63
+ result = task_infer(
64
+ model=model_inst,
65
+ tokenizer_op=tokenizer_op,
66
+ tcr_beta_seq=tcr_beta_seq,
67
+ epitope_seq=epitope_seq,
68
+ )
69
+ print(f"The prediction for {epitope_seq} and {tcr_beta_seq} is {result}")
70
+
71
  See our detailed example at: on `https://github.com/BiomedSciAI/biomed-multi-alignment`
72
 
73