<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://teaching.healthtech.dtu.dk/22145/index.php?action=history&amp;feed=atom&amp;title=Single_cell_technologies_for_T-cell_epitopes</id>
	<title>Single cell technologies for T-cell epitopes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://teaching.healthtech.dtu.dk/22145/index.php?action=history&amp;feed=atom&amp;title=Single_cell_technologies_for_T-cell_epitopes"/>
	<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22145/index.php?title=Single_cell_technologies_for_T-cell_epitopes&amp;action=history"/>
	<updated>2026-05-15T08:04:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22145/index.php?title=Single_cell_technologies_for_T-cell_epitopes&amp;diff=25&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;&#039;&#039;&#039;It is the intention with the following exercises, that you discuss and solve the following tasks and questions in your groups, so talk to each other for mutual benefit&#039;&#039;&#039;  = Introduction =  The purpose of this exercise is to get a feeling with T-cell CDR3 sequence data and to try to make predictions on which sequences will bind a specific peptide. We will here use to approaches for predictions: a naive &#039;database look-up&#039; approach and a neural network approach. With th...&quot;</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22145/index.php?title=Single_cell_technologies_for_T-cell_epitopes&amp;diff=25&amp;oldid=prev"/>
		<updated>2024-03-20T14:46:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;It is the intention with the following exercises, that you discuss and solve the following tasks and questions in your groups, so talk to each other for mutual benefit&amp;#039;&amp;#039;&amp;#039;  = Introduction =  The purpose of this exercise is to get a feeling with T-cell CDR3 sequence data and to try to make predictions on which sequences will bind a specific peptide. We will here use to approaches for predictions: a naive &amp;#039;database look-up&amp;#039; approach and a neural network approach. With th...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;It is the intention with the following exercises, that you discuss and solve the following tasks and questions in your groups, so talk to each other for mutual benefit&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
The purpose of this exercise is to get a feeling with T-cell CDR3 sequence data and to try to make predictions on which sequences will bind a specific peptide. We will here use to approaches for predictions: a naive &amp;#039;database look-up&amp;#039; approach and a neural network approach. With the naive approach we have a set of CDR3 sequences where we know the corresponding epitopes. We can compare our query CDR3 sequences with the validated set and compute a similarity score. We could then make the assumption that a high similarity score can be used to infer the epitope for the query CDR3 sequence. However, if this approach solved the problem of pairing CDR3 sequences and epitopes, we wouldn&amp;#039;t still be doing this research. The pairing is simply more complicated than that. Therefore, we instead utilize neural networks which lets us model non-linear relations. In the exercise we present to you our in-house model, netTCR. Other models exist out there, but we can only speak for our own. &lt;br /&gt;
&lt;br /&gt;
In this exercise, you will be working with curated T-cell epitopes from the IEDB and single cell immune profiling data sets from 10x Genomics. The peptides &amp;lt;code&amp;gt;GILGFVFTL&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;GLCTLVAML&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;NLVPMVATV&amp;lt;/code&amp;gt; in conjugation with &amp;lt;code&amp;gt;HLA-A*02:01&amp;lt;/code&amp;gt; are heavily studied and many &amp;lt;code&amp;gt;TCR-CDR3b&amp;lt;/code&amp;gt; sequences annotated as binders exist in the IEDB. Here, we will create a database of annotated binders using the IEDB and then use single cell data to compare the similarity between &amp;lt;code&amp;gt;TCR-CDR3b&amp;lt;/code&amp;gt; sequences annotated as binders and non-binders.&lt;br /&gt;
&lt;br /&gt;
= Theoretical questions =&lt;br /&gt;
&lt;br /&gt;
Discuss the following &amp;#039;&amp;#039;10 quick ones&amp;#039;&amp;#039; with your group  to make sure, that you are on track:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q1:&amp;#039;&amp;#039;&amp;#039; Where in the cell are MHC Class I molecules found?&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q2:&amp;#039;&amp;#039;&amp;#039; Do all human cells express MHC Class I molecules?&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q3:&amp;#039;&amp;#039;&amp;#039; How many HLA class I molecules do each person have?&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q4:&amp;#039;&amp;#039;&amp;#039; Which T-cells interact with MHC Class I?&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q5:&amp;#039;&amp;#039;&amp;#039; Where do the peptides that bind MHC Class I come from?&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q6:&amp;#039;&amp;#039;&amp;#039; Does MHC class I distinguish between self and non-self?&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q7:&amp;#039;&amp;#039;&amp;#039; Explain the difference between a peptide and an epitope in context with MHC Class I presentation&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q8:&amp;#039;&amp;#039;&amp;#039; How do virus peptides end up on being presented by MHC Class I?&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q9:&amp;#039;&amp;#039;&amp;#039; In cancer, there is no influx of foreign proteins, explain how cancer epitopes arise&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q10:&amp;#039;&amp;#039;&amp;#039; Briefly explain why understanding all three components of the TCRpMHC system is so extremely important in context with vaccinology&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q11:&amp;#039;&amp;#039;&amp;#039; What are the source proteins for the peptides &amp;lt;code&amp;gt;GILGFVFTL&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;GLCTLVAML&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;NLVPMVATV&amp;lt;/code&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
= Setup your Google Colab Notebook =&lt;br /&gt;
&lt;br /&gt;
Access the notebooks using a Google Drive account. Notebooks can be found [https://drive.google.com/drive/folders/18360Nkt6oKFVDfBVvO1tp33z8VnWTCSG?usp=sharing here]. You need the notebooks to complete the exercise. The notebooks contain code blocks that you will not be held accountable for. To code is not a prerequisite for this course, but you are encouraged to try to understand what is going on. All you need to do is upload data, run the notebooks, and download data.&lt;br /&gt;
&lt;br /&gt;
= Retrieve Data =&lt;br /&gt;
&lt;br /&gt;
== IEDB Data ==&lt;br /&gt;
&lt;br /&gt;
# Go to the [https://www.iedb.org/ Immune Epitope Database and Analysis Resource], which your worked with on day 2 of the course&lt;br /&gt;
# In the &amp;#039;&amp;#039;&amp;#039;Epitope&amp;#039;&amp;#039;&amp;#039; box, select &amp;#039;&amp;#039;Linear Epitope&amp;#039;&amp;#039; enter the sequence of one of the aforementioned peptides&lt;br /&gt;
# In the &amp;#039;&amp;#039;&amp;#039;Assay&amp;#039;&amp;#039;&amp;#039; box, tick &amp;#039;&amp;#039;Positive Assays Only&amp;#039;&amp;#039; and &amp;#039;&amp;#039;T Cell Assays&amp;#039;&amp;#039;&lt;br /&gt;
# In the &amp;#039;&amp;#039;&amp;#039;MHC Restriction&amp;#039;&amp;#039;&amp;#039; box, click &amp;#039;&amp;#039;Find&amp;#039;&amp;#039;&lt;br /&gt;
## Click the blue plus sign next to &amp;#039;&amp;#039;MHC molecule&amp;#039;&amp;#039;&lt;br /&gt;
## Click the blue plus sign next to &amp;#039;&amp;#039;Class I&amp;#039;&amp;#039;&lt;br /&gt;
## Click the blue plus sign next to &amp;#039;&amp;#039;Human&amp;#039;&amp;#039;&lt;br /&gt;
## Click the blue plus sign next to &amp;#039;&amp;#039;HLA-A&amp;#039;&amp;#039;&lt;br /&gt;
## Click &amp;#039;&amp;#039;HLA-A*02:01&amp;#039;&amp;#039;&lt;br /&gt;
## Click &amp;#039;&amp;#039;Apply&amp;#039;&amp;#039;&lt;br /&gt;
# Click &amp;#039;&amp;#039;Search&amp;#039;&amp;#039;&lt;br /&gt;
# On the left of the results page find the &amp;#039;&amp;#039;&amp;#039;Receptor&amp;#039;&amp;#039;&amp;#039; box and tick &amp;#039;&amp;#039;Has receptor sequence&amp;#039;&amp;#039;, set &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;TCRab&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Chain&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;beta&amp;#039;&amp;#039;&lt;br /&gt;
# Scroll down and click &amp;#039;&amp;#039;Search&amp;#039;&amp;#039;&lt;br /&gt;
# Now, click the &amp;#039;&amp;#039;&amp;#039;Receptors&amp;#039;&amp;#039;&amp;#039; tab&lt;br /&gt;
# Verify, that you are on the &amp;#039;&amp;#039;&amp;#039;T Cell Receptors&amp;#039;&amp;#039;&amp;#039; tab&lt;br /&gt;
# Click &amp;#039;&amp;#039;Export Results&amp;#039;&amp;#039; and select &amp;#039;&amp;#039;Export to CSV file&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== 10x Genomics Single Cell T-Cell Data ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;You may need to register to download the data in this section, if prompted, simply do so.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Go to the [https://support.10xgenomics.com/single-cell-vdj/datasets 10x Genomics Single Cell Immune Profiling Datasets]&lt;br /&gt;
# Find the &amp;#039;&amp;#039;&amp;#039;Application Note - A New way of Exploring Immunity&amp;#039;&amp;#039;&amp;#039; section&lt;br /&gt;
# Under &amp;#039;&amp;#039;&amp;#039;Cell Ranger 3.0.2&amp;#039;&amp;#039;&amp;#039; click &amp;#039;&amp;#039;&amp;#039;CD8+ T cells of Healthy Donor X&amp;#039;&amp;#039;&amp;#039; link (Choose an X in the range 1-4)&lt;br /&gt;
# This will take you to the page for the CD8+ T cells of Healthy Donor X&lt;br /&gt;
# Scroll down to the &amp;#039;&amp;#039;&amp;#039;Output Files&amp;#039;&amp;#039;&amp;#039; section&lt;br /&gt;
# Click the &amp;#039;&amp;#039;&amp;#039;binarized matrix CSV&amp;#039;&amp;#039;&amp;#039; link to download the &amp;#039;&amp;#039;&amp;#039;vdj v1 hs aggregated donorX binarized matrix&amp;#039;&amp;#039;&amp;#039; data set&lt;br /&gt;
&lt;br /&gt;
= Prepare and analyse the data =&lt;br /&gt;
&lt;br /&gt;
From the previous exercise steps you should now have the following two files:&lt;br /&gt;
&lt;br /&gt;
 tcell_receptor_table_export_1578653238.csv&lt;br /&gt;
 vdj_v1_hs_aggregated_donor1_binarized_matrix.csv&lt;br /&gt;
&lt;br /&gt;
Verify, that this is the case, note that &amp;lt;code&amp;gt;1578653238&amp;lt;/code&amp;gt; is a download id and therefore will not be the same. Also, depending on which donor you choose &amp;lt;code&amp;gt;donor1&amp;lt;/code&amp;gt; will be different.&lt;br /&gt;
&lt;br /&gt;
Go to [https://colab.research.google.com/drive/1aNgFI8jmf_SYl9PRfYVl19gFoNnGBDcV?usp=sharing this colab notebook]&lt;br /&gt;
&lt;br /&gt;
This notebook will create eight files:&lt;br /&gt;
&lt;br /&gt;
# Two database files (based on the IEDB data) containing CDR3 alpha and beta sequences, respectively.&lt;br /&gt;
# Three &amp;quot;binder&amp;quot; query files (based on the 10x annotated binders) containing CDR3 alpha, beta, and alpha+beta sequences, respectively.&lt;br /&gt;
# Three &amp;quot;non-binder&amp;quot; query files (based on the 10x annotated non-binders) containing CDR3 alpha, beta, and alpha+beta sequences, respectively.&lt;br /&gt;
&lt;br /&gt;
== Create Sequence Logos ==&lt;br /&gt;
&lt;br /&gt;
This is also part of the colab notebook. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q15:&amp;#039;&amp;#039;&amp;#039; Look at and interpret the logos&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Q16:&amp;#039;&amp;#039;&amp;#039; It seems that for both logos, the first and last three positions are quite conserved. Yet, we know that one logo represents a set of non-binders and the other a set of binders, so why can we not see the specificity for the target peptide?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Go to this [https://docs.google.com/spreadsheets/d/1lqsEby0AuK8UmpgGBDUECM3kZvgi5CibHkJ0LSa78YE/edit?usp=sharing Google Sheet] and enter the stated values, which you can find in your above analysis. The first line is filled in for reference.&amp;#039;&amp;#039;&amp;#039; (Note, the database/query files we create are based on a sampling, so do not despair if you do not get the same means and standard deviations)&lt;br /&gt;
&lt;br /&gt;
= Naive database look-up approach =&lt;br /&gt;
&lt;br /&gt;
== Calculate Similarity Scores using the MAIT-match server ==&lt;br /&gt;
&lt;br /&gt;
The MAIT-match server calculates a similarity metric between two amino acid sequences based on the method proposed by [https://arxiv.org/abs/1205.6031 Shen &amp;#039;&amp;#039;et al.&amp;#039;&amp;#039;]. If two sequences are highly similar, then the score will be close to 1 and if they are highly dissimilar, then the score will be close to 0.&lt;br /&gt;
&lt;br /&gt;
From the above exercise step, you need 6 of the 8 files and you will have to make several runs/queries. For each query you will need:&lt;br /&gt;
&lt;br /&gt;
# Database: an IEDB file (either alpha or beta)&lt;br /&gt;
# A query: a 10x genomics data set (either alpha or beta) (either positive or negative binders)&lt;br /&gt;
&lt;br /&gt;
Make sure you query both 10x alpha files against the single IEDB alpha file and query both 10x beta files against the single IEDB beta file. You should end up with 4 files that I recommend you give these names:&lt;br /&gt;
&lt;br /&gt;
# mait.cdr3a.pos.tsv&lt;br /&gt;
# mait.cdr3a.neg.tsv&lt;br /&gt;
# mait.cdr3b.pos.tsv&lt;br /&gt;
# mait.cdr3b.neg.tsv&lt;br /&gt;
&lt;br /&gt;
The task ahead is to use the [http://www.cbs.dtu.dk/services/MAIT_Match/ MAIT Match Server] to calculate similarity scores between the known IEDB binders and the annotated 10x binders/non-binders, to see if 10x annotated binders are more similar to the IEDB binders, compared to 10x non-binders.&lt;br /&gt;
&lt;br /&gt;
# Go to the [http://www.cbs.dtu.dk/services/MAIT_Match/ MAIT Match Server]&lt;br /&gt;
# Click the &amp;#039;&amp;#039;Choose file&amp;#039;&amp;#039; button under the first submission window and select the query file (10x data)&lt;br /&gt;
# Click the &amp;#039;&amp;#039;Choose file&amp;#039;&amp;#039; button under the second submission window and select the database file (IEDB data)&lt;br /&gt;
# Click &amp;#039;&amp;#039;Submit&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Once the server is done:&lt;br /&gt;
&lt;br /&gt;
# Open a text editor (Mac: TextEdit, windows: Notepad) &lt;br /&gt;
# Copy / paste the resulting output&lt;br /&gt;
# Delete everything &amp;#039;&amp;#039;before&amp;#039;&amp;#039; &amp;lt;code&amp;gt;Res              Sequence             MAIT_hit  Score&amp;lt;/code&amp;gt;, so that the first line in the file is &amp;lt;code&amp;gt;Res              Sequence             MAIT_hit  Score&amp;lt;/code&amp;gt;&lt;br /&gt;
# Delete everything &amp;#039;&amp;#039;after&amp;#039;&amp;#039; the last line of scores, e.g. &amp;lt;code&amp;gt;Best     ASSKARSLGNRGNEQF        ASSKGGTRGNEQF 0.8460&amp;lt;/code&amp;gt;&lt;br /&gt;
# Name file according to schema above&lt;br /&gt;
# Repeat the above steps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Evaluate Similarity Scores ==&lt;br /&gt;
&lt;br /&gt;
From the previous exercise steps you should now have the following four files:&lt;br /&gt;
&lt;br /&gt;
# mait.cdr3a.pos.tsv&lt;br /&gt;
# mait.cdr3a.neg.tsv&lt;br /&gt;
# mait.cdr3b.pos.tsv&lt;br /&gt;
# mait.cdr3b.neg.tsv&lt;br /&gt;
&lt;br /&gt;
Go to [https://colab.research.google.com/drive/1TRkvF831K12r2p30ag4QkyW7vK1SAkr9?usp=sharing this colab notebook]&lt;br /&gt;
&lt;br /&gt;
= The netTCR server =&lt;br /&gt;
&lt;br /&gt;
The [https://services.healthtech.dtu.dk/service.php?NetTCR-2.0 netTCR Server] NetTCR server predicts binding probability between a T-cell receptor CDR3 protein sequence and a MHC-I peptide binding to HLA-A*02:01. In this part we want to compare the ability of the netTCR server to assign scores versus that of the MAIT-match server.&lt;br /&gt;
&lt;br /&gt;
# Go to the [https://services.healthtech.dtu.dk/service.php?NetTCR-2.0 netTCR Server]&lt;br /&gt;
# Click the &amp;#039;&amp;#039;&amp;#039;Upload&amp;#039;&amp;#039;&amp;#039; file button and select a query file you created previously&lt;br /&gt;
# In the drop-down menu &amp;#039;&amp;#039;&amp;#039;Select peptides&amp;#039;&amp;#039;&amp;#039;, click the arrow down and select the target peptide your query file is based on&lt;br /&gt;
# Click the green &amp;#039;&amp;#039;&amp;#039;Submit&amp;#039;&amp;#039;&amp;#039; button&lt;br /&gt;
# Repeat the above such that you have predictions for alpha, beta and alpha+beta for both the positive and negative set.&lt;br /&gt;
&lt;br /&gt;
When the predictions are completed:&lt;br /&gt;
# Copy the results to a text editor and save files with meaningful names&lt;br /&gt;
# Upoad the results to this [https://colab.research.google.com/drive/1uyx3MSDTunvkrl8me8a41e-0Sj4lzzOv?usp=sharing notebook]&lt;br /&gt;
&lt;br /&gt;
Meaningful filenames:&lt;br /&gt;
# nettcr.cdr3a.pos.tsv&lt;br /&gt;
# nettcr.cdr3a.neg.tsv&lt;br /&gt;
# nettcr.cdr3b.pos.tsv&lt;br /&gt;
# nettcr.cdr3b.neg.tsv&lt;br /&gt;
# nettcr.cdr3ab.pos.tsv&lt;br /&gt;
# nettcr.cdr3ab.neg.tsv&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
If you reach this point and there is still time left for exercises, then&lt;br /&gt;
&lt;br /&gt;
* Redo the above analysis for another target peptide and re-enter the values you find in the google sheet&lt;br /&gt;
* From your sequence logos, you can see the clear conservation of the first and last 3 positions, adjust your above analysis to account for this&lt;br /&gt;
&lt;br /&gt;
= Exercise Summary =&lt;br /&gt;
&lt;br /&gt;
A student who has met the objectives of this exercise will be able to:&lt;br /&gt;
&lt;br /&gt;
# Extract peptide and allele specific T-cell epitopes from the IEDB&lt;br /&gt;
# Extract single cell immune profiling data from 10x genomics&lt;br /&gt;
# Upload data to RStudio cloud&lt;br /&gt;
# Create an analysis using rmarkdown and pre-specified code&lt;br /&gt;
# Calculate sequence similarity metrics using the [http://www.cbs.dtu.dk/services/MAIT_Match/ MAIT Match Server]&lt;br /&gt;
# Use similarity metrics to create a TCR-CDR3b database&lt;br /&gt;
# Use similarity metrics to query a TCR-CDR3b database&lt;br /&gt;
# Interpret score distributions for TCR-CDR3b sequences annotated as binders and non-binders&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>