-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_show.qmd
More file actions
1490 lines (863 loc) · 55.1 KB
/
test_show.qmd
File metadata and controls
1490 lines (863 loc) · 55.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
title: test_show
format:
html:
self-contained: true
toc: true
toc-location: left
toc-expand: 2
---
# Basic Overview
The data which was used for this analysis comes from: https://mixcr.com/mixcr/guides/milab-dna-multiplex-tcr/
This report was created to show the versatility of the pipeline and the report structure. Therefore, the associated binding data is completely virtually and was only created to show how it can be clustered in several plots with ExpoSeq.
## Theory
<h3>Rarefraction curves</h3>
<p>The x-axis of the plot shows the total number of sampled sequences, and the y-axis shows the total number of unique sequences.</p>
<p>The plot can be interpreted as follows:</p>
<ul>
<li>Samples with higher sequencing depth will have more unique sequences at each point on the x-axis.</li>
<li>Samples with lower sequencing depth will have fewer unique sequences at each point on the x-axis.</li>
</ul>
<p>This plot is useful for NGS because it can be used to assess the quality of the sequencing data and to determine whether the sequencing depth is sufficient for the desired application. For example, if you are trying to identify rare variants in a sample, you will need to have a high sequencing depth in order to be confident that the variants are real and not simply sequencing errors.</p>
<p>Here are some specific examples of how the plot could be used to interpret NGS data:</p>
<ol>
<li>If you are comparing two samples with different sequencing depths, you can use the plot to see which sample has more unique sequences at each point on the x-axis. This can help you to determine which sample is more likely to contain the variants of interest.</li>
<li>If you are trying to determine whether the sequencing depth of a sample is sufficient for a particular application, you can use the plot to compare the sample to other samples that have been used successfully for the same application.</li>
<li>If you are seeing a plateau in the number of unique sequences as the sequencing depth increases, this may indicate that you have reached a saturation point and that further sequencing will not yield much new information.</li>
</ol>
<h3>Alignment Quality Plot</h3>
<p>The barplot shows the total sequenced reads and aligned reads for each sample. The total sequenced reads is the number of reads that were generated by the NGS sequencer. The aligned reads is the number of reads that were successfully mapped to the reference genome.</p>
<p>The plot shows that the total sequenced reads is higher than the aligned reads for all samples. This is because some of the reads may be of low quality or may not map to the reference genome.</p>
<p>Furthermore, it shows that the difference between the total sequenced reads and aligned reads is larger for some samples than others. This may be due to a number of factors, such as the quality of the DNA sample, the sequencing platform used, and the alignment parameters used.</p>
<p>Use of the barplot for NGS:</p>
<p>The barplot can be used to assess the quality of the NGS data and to determine whether the alignment rate is sufficient for the desired application. </p>
<p>Specific examples:</p>
<ol>
<li>If you are comparing two samples, you can use the plot to see which sample has a higher alignment rate. This can help you to determine which sample is more likely to contain the variants of interest.</li>
<li>If you are trying to determine whether the alignment rate for a sample is sufficient for a particular application, you can compare the sample to other samples that have been used successfully for the same application.</li>
<li>If you are seeing a low alignment rate for a sample, this may indicate that there is a problem with the DNA sample, the sequencing platform used, or the mixcr parameters used.</li>
</ol>
<h3>Heatmap based on Morosita-Horn Index</h3>
<p>The heatmap shows a matrix which values are calculated based on the morosita horn index. This index captures the degree of identity between two samples which are composed of multiple values of different sizes. This is especially useful for comparing two samples which are composed of different numbers of clones and have a different number of aligned reads. In the context of this heatmap, identity means that two sequences have the same sequence length and the exact same amino acid sequence. </p>
<p>The heatmap has several possible applications during the quality control of the sequencing, which are:
1. identification of cross contamination between samples. This can be seen if a high degree of identity can be observed, although the samples were panned against different antigens.
2. Validation of the panning process. This can be seen if a high degree of identity can be observed between samples which were panned against the same antigen in different rounds.</p>
<p><em>Weaknesses</em>:
- the morosita horn becomes less accuracte if the number of elements (sequences) is very low in one of the samples</p>
<p><em>Alternatives</em>:</p>
<p>The user can analyse the identity between the samples based on:
- Jaccard Index
- Sorensen-Dice Index</p>
<p><em>The content generated in this section was writen by Nils Hofmann. The author does not guarantee the correctness of the content.</em></p>
## Identity between samples
### Identity based on Morosita Horn Index
::: {layout-ncol=1}

:::
### Identity based on Jaccard Index
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### Identity based on Sorensen Index
{{< pagebreak >}}
::: {layout-ncol=1}

:::
{{< pagebreak >}}
## Sequencing Quality of samples
::: {layout-ncol=2}


General Sequencing Quality
:::
{{< pagebreak >}}
## Sample specific quality analysis
### Quality analysis for GeneMind_1
::: {layout="[[1, 1], [1]]"}



:::
{{< pagebreak >}}
### Quality analysis for GeneMind_2
::: {layout="[[1, 1], [1]]"}



:::
{{< pagebreak >}}
### Quality analysis for GeneMind_3
::: {layout="[[1, 1], [1]]"}



:::
{{< pagebreak >}}
### Quality analysis for GeneMind_4
::: {layout="[[1, 1], [1]]"}



:::
{{< pagebreak >}}
### Quality analysis for GeneMind_5
::: {layout="[[1, 1], [1]]"}



:::
{{< pagebreak >}}
### Quality analysis for GeneMind_6
::: {layout="[[1, 1], [1]]"}



:::
{{< pagebreak >}}
### Quality analysis for GeneMind_7
::: {layout="[[1, 1], [1]]"}



:::
{{< pagebreak >}}
### Quality analysis for GeneMind_8
::: {layout="[[1, 1], [1]]"}



:::
{{< pagebreak >}}
## Sequence Logo Plots
### Logo Plot for sequences with length 16 for GeneMind_1
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### Logo Plot for sequences with length 16 for GeneMind_2
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### Logo Plot for sequences with length 16 for GeneMind_3
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### Logo Plot for sequences with length 16 for GeneMind_4
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### Logo Plot for sequences with length 16 for GeneMind_5
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### Logo Plot for sequences with length 16 for GeneMind_6
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### Logo Plot for sequences with length 16 for GeneMind_7
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### Logo Plot for sequences with length 16 for GeneMind_8
::: {layout-ncol=1}

:::
{{< pagebreak >}}
# Sequence Clusters
## Theory
<h3>Clustering based on levenshtein distance</h3>
<p>The Levenshtein distance is a metric that measures the similarity between two strings. It is calculated by counting the minimum number of edits (insertions, deletions, and substitutions) required to transform one string into the other.</p>
<p>For example, the Levenshtein distance between the strings "CAT" and "DOG" is 2, because we need to insert the letter "D" and substitute the letter "C" with the letter "G" to transform "CAT" into "DOG".</p>
<p>The Levenshtein distance can be used to analyze peptide sequences in a variety of ways. For example, it can be used to:</p>
<ol>
<li>Identify similar CDR3 regions. This can be useful for identifying antibodies with similar antigen-binding specificities.</li>
<li>Detect mutations in CDR3 regions. This can be useful for identifying mutations that may affect the affinity or specificity of an antibody.</li>
<li>Cluster CDR3 regions into groups. This can be useful for identifying groups of CDR3 regions with similar antigen-binding specificities.</li>
</ol>
<p>The connected components in the plot (shown by a a network of lines) are groups of CDR3 sequences that are similar to each other, based on a threshold for a levenshtein distance (default = 2). The size of each circle in the plot represents the number of clones for the corresponding CDR3 sequence relative to the clone counts of other sequences.</p>
<p>Overall, the plot can be used to get a general overview of the diversity and similarity of the CDR3 sequences in the library.</p>
<p>Furthermore, a table is given which has the sorted sequences based on the clone count. That means the top 10 sequences represent the sequences with the highest clone fraction in that sample. This table, coming from a report can be used to identify specificity for a certain antigen based on a density of these sequences in certain clusters.</p>
<p>Disadvantages of the levenshtein distance</p>
<ul>
<li>Only captures global similarity of sequences and does not focues on specific regions</li>
<li>Does not take any chemical properties or structural properties into account</li>
</ul>
<h3>Sequence Cluster Dendrogram</h3>
<p>The dendrogram you provided is a visualization of the similarity between a set of CDR3 heavy chain sequences. The sequences are clustered together based on their Levenshtein distance, which is described in the previous section.</p>
<p>The dendrogram can be used to understand the diversity of the CDR3 sequences in a sample. For example, if the dendrogram shows that most of the sequences are clustered together in a few large clusters, this suggests that there is a relatively low level of diversity in the sample. On the other hand, if the dendrogram shows that the sequences are spread out in many small clusters, this suggests that there is a high level of diversity in the sample.</p>
<p>The dendrogram can also be used to identify groups of similar sequences. For example, if we want to identify a group of sequences that are likely to have similar antigen-binding specificities, we can look for a cluster of sequences that are close to each other on the dendrogram.</p>
<h3>Clustering based on t-SNE</h3>
<p>Addressing the limitations of using the levenshtein distance for clustering hcdr3 sequences, a plot which shows the sequences and their whole sequence relation was created to enable a more extensive analysis of the sequences and their binding. To be able to have the sequences as vectors the SGT embedding was applied.</p>
<p>This embedding does not capture any chemical properties of the amino acid strand but instead tries to recognize the characteristic relative position of letters within a sequence which enables an identification of patterns between sequences of different lengths. This addresses the variability of the cdr3 sequences and enables to capture the similarity of sequences. Therefore, the sgt embedder was initialized using the package sgt where the parameter length sensitive was set to True and the parameter kappa was assigned with 1 . After the initialization, the embedding creates an output of 400 dimensions per sequence which were reduced to 80 dimensions by using principal component analysis (PCA).</p>
<p>Subsequently t-SNE was implemented to show a representative arrangement of the 80 dimensions in the two dimensional space because a further dimension reduction to only two dimensions would insufficiently describe the data globally by using PCA. That is why t-SNE was introduced to be able to show a representative arrangement of the points without losing too much of its information. </p>
<p>The plot can be used in variety of ways, such as:
1. Identify similar CDR3 regions
2. learn about the differences between samples
3. identify specific sequence differences for samples which were panned against different antigens.</p>
<p><em>The content generated in this section was writen by Nils Hofmann. The author does not guarantee the correctness of the content.</em></p>
## Levenshtein distance based
### Relation of all samples
::: {layout-ncol=1}

:::
### Sequence Similarity based on Levenshtein Distance of GeneMind_1
::: {layout-ncol=2}


:::
| | Unnamed: 0 | Cluster No. | Sequences |
|---:|-------------:|--------------:|:----------------|
| 0 | 0 | 33 | CASSRLAGGTDTQYF |
| 1 | 1 | 1 | *GGADGLTF |
| 2 | 2 | 2 | CASSLGQYTGELFF |
| 3 | 3 | 3 | CAVTDQAGTALIF |
| 4 | 4 | 4 | CASSSGTEQFF |
| 5 | 5 | 5 | CASSPRGGANVLTF |
| 6 | 6 | 6 | CAVRDSGYSTLTF |
| 7 | 7 | 7 | CAVVTGGFKTIF |
| 8 | 8 | 8 | CASSPTTGFAGELFF |
| 9 | 9 | 9 | CASSLEAGSYNEQFF |
{{< pagebreak >}}
### Sequence Similarity based on Levenshtein Distance of GeneMind_2
::: {layout-ncol=2}


:::
| | Unnamed: 0 | Cluster No. | Sequences |
|---:|-------------:|--------------:|:-----------------|
| 0 | 0 | 0 | CASSRLAGGTDTQYF |
| 1 | 1 | 1 | CAVTDQAGTALIF |
| 2 | 2 | 2 | CASSPRGGANVLTF |
| 3 | 3 | 3 | CAVSEIGSGNTGKLIF |
| 4 | 4 | 4 | CAVRDSGYSTLTF |
| 5 | 5 | 5 | CASSSGTEQFF |
| 6 | 6 | 6 | CASSLEAGSYNEQFF |
| 7 | 7 | 7 | CAVVTGGFKTIF |
| 8 | 8 | 8 | CVVSLSGGSYIPTF |
| 9 | 9 | 9 | CASSWQGSPDTQYF |
{{< pagebreak >}}
### Sequence Similarity based on Levenshtein Distance of GeneMind_3
::: {layout-ncol=2}


:::
| | Unnamed: 0 | Cluster No. | Sequences |
|---:|-------------:|--------------:|:-----------------|
| 0 | 0 | 0 | CASSYRGTGELFF |
| 1 | 1 | 1 | CALALYNQGGKLIF |
| 2 | 2 | 2 | CAMRGYYGNNRLAF |
| 3 | 3 | 3 | CASSKWTGELFF |
| 4 | 4 | 4 | CAASMSKAAGNKLTF |
| 5 | 5 | 5 | CAVRAPYGGATNKLIF |
| 6 | 6 | 16 | CAALWGGKLIF |
| 7 | 7 | 1 | CAVKVGNQGGKLIF |
| 8 | 8 | 7 | CAVNSGNTPLVF |
| 9 | 9 | 0 | CASSYSMNTEAFF |
{{< pagebreak >}}
### Sequence Similarity based on Levenshtein Distance of GeneMind_4
::: {layout-ncol=2}


:::
| | Unnamed: 0 | Cluster No. | Sequences |
|---:|-------------:|--------------:|:-----------------|
| 0 | 0 | 0 | CASSYRGTGELFF |
| 1 | 1 | 1 | CASSLEGTGIGNTIYF |
| 2 | 2 | 2 | CALALYNQGGKLIF |
| 3 | 3 | 0 | CASSKWTGELFF |
| 4 | 4 | 2 | CAALWGGKLIF |
| 5 | 5 | 0 | CASSYSMNTEAFF |
| 6 | 6 | 2 | CAVKVGNQGGKLIF |
| 7 | 7 | 4 | CASSLEGEQFF |
| 8 | 8 | 5 | CVVSDRGSTLGRLYF |
| 9 | 9 | 0 | CASSTRGTGELFF |
{{< pagebreak >}}
### Sequence Similarity based on Levenshtein Distance of GeneMind_5
::: {layout-ncol=2}


:::
| | Unnamed: 0 | Cluster No. | Sequences |
|---:|-------------:|--------------:|:-----------------|
| 0 | 0 | 0 | CASSLI*GTEAFF |
| 1 | 1 | 1 | CA*ETSGSRLTF |
| 2 | 2 | 2 | CAVMDSSYKLIF |
| 3 | 3 | 3 | CAARVSGGYNKLIF |
| 4 | 4 | 4 | CASSLGQPSYNEQFF |
| 5 | 5 | 5 | CASSEVLSEKLFF |
| 6 | 6 | 6 | CAVSDGTGGFKTIF |
| 7 | 7 | 7 | CASSQGRGALYNEQFF |
| 8 | 8 | 8 | CAESMTTDSWGKLQF |
| 9 | 9 | 6 | CAVDGGFKTIF |
{{< pagebreak >}}
### Sequence Similarity based on Levenshtein Distance of GeneMind_6
::: {layout-ncol=2}


:::
| | Unnamed: 0 | Cluster No. | Sequences |
|---:|-------------:|--------------:|:----------------|
| 0 | 0 | 0 | CASSPGTGTYGYTF |
| 1 | 1 | 1 | CASSLI*GTEAFF |
| 2 | 2 | 2 | CA*ETSGSRLTF |
| 3 | 3 | 3 | CAVMDSSYKLIF |
| 4 | 4 | 4 | CAVRSNFGNEKLTF |
| 5 | 5 | 5 | CAVSNAGNMLTF |
| 6 | 6 | 6 | CAARVSGGYNKLIF |
| 7 | 7 | 7 | CASSLVLEETQYF |
| 8 | 8 | 8 | CASSLGLNSGNTIYF |
| 9 | 9 | 9 | CASSLGQPSYNEQFF |
{{< pagebreak >}}
### Sequence Similarity based on Levenshtein Distance of GeneMind_7
::: {layout-ncol=2}


:::
| | Unnamed: 0 | Cluster No. | Sequences |
|---:|-------------:|--------------:|:-----------------|
| 0 | 0 | 0 | CAVNLDTGNQFYF |
| 1 | 1 | 1 | CASYYGGSQGNLIF |
| 2 | 2 | 2 | CASSFGGNQPQHF |
| 3 | 3 | 3 | CASSLGASGGADTQYF |
| 4 | 4 | 4 | CAVILPTGGFKTIF |
| 5 | 5 | 5 | CASSEGPSSGNTIYF |
| 6 | 6 | 6 | CAVYNQGGKLIF |
| 7 | 7 | 7 | CASSYRPSSYNEQFF |
| 8 | 8 | 4 | CAVDTGGFKTIF |
| 9 | 9 | 0 | CAGVPLDTGNQFYF |
{{< pagebreak >}}
### Sequence Similarity based on Levenshtein Distance of GeneMind_8
::: {layout-ncol=2}


:::
| | Unnamed: 0 | Cluster No. | Sequences |
|---:|-------------:|--------------:|:-----------------|
| 0 | 0 | 0 | CASSYQGATEAFF |
| 1 | 1 | 1 | CAVNLDTGNQFYF |
| 2 | 2 | 2 | CASSFGGNQPQHF |
| 3 | 3 | 3 | CASYYGGSQGNLIF |
| 4 | 4 | 4 | CASSLGASGGADTQYF |
| 5 | 5 | 5 | CAVILPTGGFKTIF |
| 6 | 6 | 6 | CAVRKPGGSYIPTF |
| 7 | 7 | 7 | CAVIIAGNMLTF |
| 8 | 8 | 8 | CAVYNQGGKLIF |
| 9 | 9 | 9 | CASSEGPSSGNTIYF |
{{< pagebreak >}}
## Sequence Similarity between samples
### SGT Embedder
#### Global Sequence similarity for GeneMind_1
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_2
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_3
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_4
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_5
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_6
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_7
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_8
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### ProtBert Embedder
#### Global Sequence similarity for GeneMind_1
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_2
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_3
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_4
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_5
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_6
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_7
::: {layout-ncol=1}

:::
{{< pagebreak >}}
#### Global Sequence similarity for GeneMind_8
::: {layout-ncol=1}

:::
{{< pagebreak >}}
### T5 Embedder
#### Global Sequence similarity for GeneMind_1
::: {layout-ncol=1}

:::
{{< pagebreak >}}
# Cluster Antigens
## Theory
<h3>Sequence embedding and T-SNE - REPORT</h3>
<p>Additionally to the plot, a report was created which contains the results of the t-SNE embedding. This report contains the following columns:
- tsne1: Contains the coordinates for the first dimension (x-axis) of the plot
- tsne2: Contains the coordinates for the second dimension (y-axis) of the plot
- experiments_factorized: Contains a factorized form for the experiment column. You can ignore this column
- experiments_string: Contains the sample name from the NGS data, used for this plot.
- binding: Contains the binding value which was taken from the binding data with the corresponding antigen. NGS sequences have the value 0
- sequences: Amino Acid sequence for the given coordinates and binding value
- sequence_id: Can be used to identify the position of the sequence in the right plot with the numbers</p>
<p>The plot can be used to identify sequences which could have a potential high binding based on the values of neighboring sequences. Further, cluster may be identified which have a high local binding and sequence attributes may be derived based on this.</p>
<p><strong>Levenshtein Distance based Clustering - REPORT</strong></p>
<p>The Report for this plots can be used to localize sequence in the network plots. The report contains the following columns:
- Clusters_[YOUR_SAMPLENAME]<em>No: Contains the cluster number for the given sequence. This is useful if you want to see the sequences which are localized in the same cluster and thus have a high sequence similarity.
- Sequences</em>[YOUR_SAMPLE_NAME]: The sequences for the corresponding cluster number</p>
<p>This plot can be particular useful if you look for potential high binders only based on point mutations.</p>
<p><em>The content generated in this section was writen by Nils Hofmann. The author does not guarantee the correctness of the content.</em></p>
## Cluster with embedding
### Sequence embedding of GeneMind_1
::: {layout-ncol=1}

:::
| | tsne1 | tsne2 | binding | sequences | sequence_id |
|---:|---------:|----------:|-----------------:|:----------------|--------------:|
| 8 | -2.81362 | 25.5781 | 1.08003e+06 | CASSSGTEQFF | 7 |
| 10 | -5.6064 | 3.2838 | 700032 | CASSPRGGANVLTF | 9 |
| 3 | -1.01123 | 4.71494 | 509403 | CASSPGTGTYGYTF | 2 |
| 9 | -2.27191 | 13.2591 | 393000 | CASSLEAGSYNEQFF | 8 |
| 4 | 9.19538 | -15.4826 | 140030 | CAVMDSSYKLIF | 3 |
| 5 | -4.12407 | 12.5336 | 60300 | CASSLEGEQFF | 4 |
| 6 | 3.84862 | -17.4211 | 40300 | CAALWGGKLIF | 5 |
| 11 | 3.12499 | -18.5399 | 30403 | CAVIIAGNMLTF | 10 |
| 2 | 1.48415 | -11.4624 | 10450 | CAVYNQGGKLIF | 1 |
| 7 | 8.86475 | -6.86168 | 10030 | CAASMSKAAGNKLTF | 6 |
### Sequence embedding of GeneMind_2
::: {layout-ncol=1}

:::
| | tsne1 | tsne2 | binding | sequences | sequence_id |
|---:|-----------:|----------:|-----------------:|:----------------|--------------:|
| 8 | 13.3534 | 13.4245 | 1.08003e+06 | CASSSGTEQFF | 7 |
| 10 | -3.55645 | 8.66756 | 700032 | CASSPRGGANVLTF | 9 |
| 3 | 0.449737 | 3.59158 | 509403 | CASSPGTGTYGYTF | 2 |
| 9 | 0.927137 | 13.5509 | 393000 | CASSLEAGSYNEQFF | 8 |
| 4 | -16.7241 | -2.28946 | 140030 | CAVMDSSYKLIF | 3 |
| 5 | 2.97523 | 11.1632 | 60300 | CASSLEGEQFF | 4 |
| 6 | 9.55936 | -13.9243 | 40300 | CAALWGGKLIF | 5 |
| 11 | 12.7672 | -13.9412 | 30403 | CAVIIAGNMLTF | 10 |
| 2 | 5.34285 | -19.2417 | 10450 | CAVYNQGGKLIF | 1 |
| 7 | -8.19522 | -5.17954 | 10030 | CAASMSKAAGNKLTF | 6 |
### Sequence embedding of GeneMind_3
::: {layout-ncol=1}

:::
| | tsne1 | tsne2 | binding | sequences | sequence_id |
|---:|----------:|-----------:|-----------------:|:----------------|--------------:|
| 2 | -11.6365 | -6.71831 | 1.604e+06 | CASSRLAGGTDTQYF | 1 |
| 9 | -9.73683 | -12.9966 | 1.08003e+06 | CASSSGTEQFF | 8 |
| 11 | -8.92439 | -3.50094 | 700032 | CASSPRGGANVLTF | 10 |
| 4 | -6.99139 | 14.0796 | 509403 | CASSPGTGTYGYTF | 3 |
| 10 | -15.659 | -1.47393 | 393000 | CASSLEAGSYNEQFF | 9 |
| 5 | 10.0569 | 5.19933 | 140030 | CAVMDSSYKLIF | 4 |
| 6 | -15.6888 | -0.332381 | 60300 | CASSLEGEQFF | 5 |
| 7 | 10.459 | 8.73661 | 40300 | CAALWGGKLIF | 6 |
| 12 | 12.7342 | 9.93005 | 30403 | CAVIIAGNMLTF | 11 |
| 3 | 9.76606 | 0.72657 | 10450 | CAVYNQGGKLIF | 2 |
### Sequence embedding of GeneMind_4
::: {layout-ncol=1}

:::
| | tsne1 | tsne2 | binding | sequences | sequence_id |
|---:|----------:|-----------:|-----------------:|:----------------|--------------:|
| 2 | -13.158 | 3.37895 | 1.604e+06 | CASSRLAGGTDTQYF | 1 |
| 9 | -13.9523 | 5.37201 | 1.08003e+06 | CASSSGTEQFF | 8 |
| 11 | -4.92456 | 0.595963 | 700032 | CASSPRGGANVLTF | 10 |
| 4 | 2.48044 | -13.6071 | 509403 | CASSPGTGTYGYTF | 3 |
| 10 | -9.97752 | -2.91278 | 393000 | CASSLEAGSYNEQFF | 9 |
| 5 | 13.3271 | 17.2177 | 140030 | CAVMDSSYKLIF | 4 |
| 6 | -8.86293 | -2.32666 | 60300 | CASSLEGEQFF | 5 |
| 7 | 13.2121 | 2.03496 | 40300 | CAALWGGKLIF | 6 |
| 12 | -5.37406 | -17.3975 | 30403 | CAVIIAGNMLTF | 11 |
| 3 | 6.55099 | 7.56039 | 10450 | CAVYNQGGKLIF | 2 |
### Sequence embedding of GeneMind_5
::: {layout-ncol=1}

:::
| | tsne1 | tsne2 | binding | sequences | sequence_id |
|---:|----------:|----------:|-----------------:|:----------------|--------------:|
| 2 | 11.1622 | -6.68973 | 1.604e+06 | CASSRLAGGTDTQYF | 1 |
| 9 | 12.7642 | -11.8674 | 1.08003e+06 | CASSSGTEQFF | 8 |
| 11 | 6.84346 | -2.93172 | 700032 | CASSPRGGANVLTF | 10 |
| 4 | 4.60303 | -11.0927 | 509403 | CASSPGTGTYGYTF | 3 |
| 10 | 15.8303 | 1.51701 | 393000 | CASSLEAGSYNEQFF | 9 |
| 5 | -13.9576 | 13.1687 | 140030 | CAVMDSSYKLIF | 4 |
| 6 | 11.4019 | 6.30659 | 60300 | CASSLEGEQFF | 5 |
| 7 | -18.5941 | -5.7488 | 40300 | CAALWGGKLIF | 6 |
| 12 | -19.2897 | -7.06993 | 30403 | CAVIIAGNMLTF | 11 |
| 3 | -8.26526 | -2.59342 | 10450 | CAVYNQGGKLIF | 2 |
### Sequence embedding of GeneMind_6
::: {layout-ncol=1}

:::
| | tsne1 | tsne2 | binding | sequences | sequence_id |
|---:|----------:|----------:|-----------------:|:----------------|--------------:|
| 2 | 4.19497 | 3.54675 | 1.604e+06 | CASSRLAGGTDTQYF | 1 |
| 9 | 18.977 | 4.64954 | 1.08003e+06 | CASSSGTEQFF | 8 |
| 11 | 10.0321 | -1.39943 | 700032 | CASSPRGGANVLTF | 10 |
| 4 | 11.002 | -8.21706 | 509403 | CASSPGTGTYGYTF | 3 |
| 10 | 5.29697 | 10.7443 | 393000 | CASSLEAGSYNEQFF | 9 |
| 5 | -4.00156 | -20.6722 | 140030 | CAVMDSSYKLIF | 4 |
| 6 | 6.96238 | 8.75441 | 60300 | CASSLEGEQFF | 5 |
| 7 | -13.2817 | -11.9341 | 40300 | CAALWGGKLIF | 6 |
| 12 | -14.0234 | -12.4237 | 30403 | CAVIIAGNMLTF | 11 |
| 3 | -6.24732 | -11.7237 | 10450 | CAVYNQGGKLIF | 2 |
### Sequence embedding of GeneMind_7
::: {layout-ncol=1}

:::
| | tsne1 | tsne2 | binding | sequences | sequence_id |
|---:|----------:|-----------:|-----------------:|:----------------|--------------:|
| 2 | -12.6219 | 6.46699 | 1.604e+06 | CASSRLAGGTDTQYF | 1 |
| 9 | 6.0008 | -15.546 | 1.08003e+06 | CASSSGTEQFF | 8 |
| 11 | -5.5028 | 0.312424 | 700032 | CASSPRGGANVLTF | 10 |
| 4 | 2.94409 | 14.5411 | 509403 | CASSPGTGTYGYTF | 3 |
| 10 | -10.909 | -1.27156 | 393000 | CASSLEAGSYNEQFF | 9 |
| 5 | -1.62621 | 17.9219 | 140030 | CAVMDSSYKLIF | 4 |