<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>problem of antibody grouping based on cross- inhibition index using hierarchical clustering methods</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Oleksandr Zelinskyi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vitaliy Horlatch</string-name>
          <email>vitaliy.horlatch@lnu.edu.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yuri Lebedin</string-name>
          <email>lebedin@xema.fi</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yaryna Paslavska</string-name>
          <email>p.yaryna@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Ivan Franko National University of Lviv</institution>
          ,
          <addr-line>1 Universytetska St., Lviv, 79000</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Xema OY</institution>
          ,
          <addr-line>Myllymäenkatu 21, Lappeenranta, 53550</addr-line>
          ,
          <country country="FI">Finland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Due to increasing number of viral diseases (including Covid-19) rapid research with the purpose of their detection, prevention, and treatment is crucial. This article considers a problem of finding two optimal antibodies to any virus that is important for detection of disease and development of tests but not for creation of vaccine. It is worth noting that the target protein (nucleoprotein), described in this article, is the only generally established target for SARSCoV-2 diagnostics, using antigen rapid tests or any other antigen detection tools. Possible ways of solving the aforementioned problem were described using hierarchical clustering algorithm with different linkage methods. Affirmative results of dividing antibodies into groups were achieved. Hierarchical clustering, SARS-CoV-2, antibodies, viruses IDDM-2022: 5th International Conference on Informatics &amp; Data-Driven Medicine, November 18-20, 2022, Lyon, France; ORCID: 0000-0003-1247-7511 (OZ); 0000-0001-5401-1731 (VH); 0000-0003-4250-4322 (YuL); 0000-0003-4834-9597 (YaP).</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>The Covid-19 epidemic has shown that it is still quite difficult for humanity to control and fight
acute respiratory viral infections. According to WHO, almost 613 million people worldwide have been
infected with COVID-19 and more than 6.5 million people have died due to the disease [3]. However,
this is not the first and probably not the last such pandemic.</p>
      <p>Therefore, it is crucial to conduct research as quickly as possible, so that the diseases could be easily
detected and treated. The next step is the development of vaccines, as well as tests that show the number
of antibodies to a particular virus. It is clear that rapid detection of the disease helps to isolate spreading
of the virus and treat a patient more effectively, and vaccination improves immunity to a particular virus
and reduces the likelihood of negative or even fatal consequences.</p>
      <p>Nowadays, computers are a very powerful tool that allows solving not only mathematical problems,
but also biological, chemical, and medical ones. Different types of models and algorithms including
machine learning algorithms are used for this purpose. Moreover, the usage of computers helps
scientists to reduce the number of experiments and routine work in laboratories around the world.</p>
      <p>The purpose of this work is to consider the problem of finding two optimal antibodies to any virus
(for example, the SARS-CoV-2) and propose possible ways to solve it using machine learning
algorithms, more precisely agglomerative clustering algorithms.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Formulation of the problem</title>
      <p>There is a molecule of the SARS-CoV-2 and a set of antibodies, which consists of 43 elements. The
task is to attach only two antibodies to the given virus molecule. In this article, the target molecule is</p>
      <p>2022 Copyright for this paper by its authors.
the molecule of protein (nucleoprotein). This protein is the only generally established target for
COVID19 diagnostics (not the vaccine) used by practically all antigen rapid tests [10] and other antigen
detection tools globally. Only two antibodies are required to form a "sandwich", which is a standard
way of the determination of any protein substance. The antibodies can be either different or the same
(to distinguish them, one of them is marked with "*").</p>
      <p>For simplicity, we will assume that the experiment happens in 2D, not 3D. Antibodies are two circles
of approximately the same size with a small "beak" for interaction with the virus. Antibodies attach to
the virus molecule, which is represented as a smaller circle. A schematic representation of this process
can be seen in Figure 1.</p>
      <p>In the case of the considered problem, the molar weight of the target protein molecule is 45 kDa and
the molar weight of the antibodies is 180 kDa. Since there is a need to attach two antibodies to a virus
molecule, the main task is to find two antibodies (they can be identical) that are located at an optimal
distance from each other. This means that they cannot overlap or locate too close to each other otherwise
they start to compete and one of them cannot be attached.</p>
      <p>It was discovered that this problem mostly can be solved by dividing the list of antibodies into groups
according to how much they interfere with each other, or in other words, whether they can attach to the
virus in the same region. If two antibodies belong to different groups, there is a very high probability
that they will bind in different areas and interact better than if they were from the same group. However,
in some cases, antibodies still will not be able to attach to the virus molecule.</p>
      <p>The data considered in this paper are obtained from the experiment performed by Xema OY,
Lappeenranta, Finland which consisted of several parts:
1. Conjugation of HRP to monoclonal antibodies</p>
      <p>One of the most popular methods of conjugation HRP (Faizyme, SAR) to antibodies was used.
Periodate oxidized HRP formed a covalent linkage with mAbs after the reduction of the Schiff base
by sodium borohydride [9].
2. Direct binding of mAbs to N-Ag variants</p>
      <p>N-Ag preparations were diluted to 0,1 ug/ml by carbonate buffer pH 9,5. One hundred microliters
of the solution were placed into the wells of high adsorption capacity polystyrene microplate (KHB,
China) and incubated overnight at +4 °C. After removing the microwell content by vacuum, the
microwells were washed once by ELISA [8] washing solution - 0,1% Tween 20 (Serva, Germany)
in 0,9% sodium chloride (Merck, Germany) and filled with ELISA blocking solution (0,1M
phosphate buffer containing 0.9% NaCl and 0,5% hydrolyzed casein) for 2 hours at ambient
temperature, and then dried at ambient temperature for 48 hours.</p>
      <p>The mAbs were diluted by ELISA buffer (0,1M phosphate buffer containing 0,9% NaCl and
0,1% hydrolyzed casein) at a uniform concentration of 1 ug/ml. One hundred ul of mAb solution
was incubated in the wells for 30 minutes at 37 °C. The wells were washed thrice with ELISA
washing solution, and HRP-conjugated sheep anti-mouse Ig-HRP conjugate (Cat# AS302-HRP,
Xema) in working dilution was added to the wells for another 30 minutes at 37 °C. After 5 washing
with ELISA washing solution, the TMB chromogenic substrate (Cat#R055, Xema) was added into
the wells for 15 minutes, the reaction was stopped by the addition of 5% sulfuric acid and optical
density at 450 nm (OD450) was measured on HiPo microplate reader (Biosan, Latvia)
3. Cross-inhibition of mAbs by direct binding to solid phase N-Ag.</p>
      <p>Full-length N-Ag was coated onto the surface of polystyrene wells at 0,5 ug/ml (see the previous
paragraph). In the preliminary test, each HRP-conjugated mAb was serially diluted (10x) in the
microwells from 1:100 to 1:1 million and incubated for 30 minutes at 37 °C. Then the reaction was
finalized by washing, TMB substrate, and stop solution as described in the previous paragraph. The
dilution factor of each conjugate giving the OD450 within the range 1,0-1,5 was used as working
dilution for the main cross-inhibition experiment as follows.</p>
      <p>Fifty microliters of the working dilution of each HRP-conjugated mAb were added into the
antigencoated microwells concurrently with the equal volume of ELISA buffer (reference wells) or all mAbs
diluted to 10 ug/ml in the same buffer. After 30 minutes of incubation at 37 °C, the reaction was
finalized as described above. All the combinations were run in duplicates. The data for each
combination of HRP labeled and unlabeled mAbs are shown as the inhibition percentage: (average
OD450 of actual combination – average OD450 of reference wells)/average OD450 of reference wells.</p>
      <p>Data are presented in the form of a table with 43 rows that represent antibodies and 32 columns that
represent marked antibodies, where each cell is the cross-inhibition index of the marked antibody and
unmarked. In the row labeled as "blank", the maximum values of the cross-inhibition index for the
corresponding marked antibody are given. The value in each cell ranges from zero to the value in the
"blank" cell of the corresponding column. An example of data is shown in Figure 2.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Solutions for the problem</title>
      <p>Eventually, the problem, described in this article, is the dataset elements grouping problem, which
is considered to be a problem of clustering. That is why it was decided to apply one of the most popular
types of clustering – the hierarchical algorithms, namely its agglomerative subspecies. There were
chosen several linkage methods [1]:
•
•
•
•</p>
      <p>Ward linkage – the increase in variance for the cluster being merged
Complete linkage – the maximum distance between elements of each cluster
Average linkage – the mean distance between elements of each cluster</p>
      <p>
        Single linkage – the minimum distance between elements of each cluster
In addition, it was decided to use the simplest Euclidean distance (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) as a metric
      </p>
      <p>( ,  ) = √∑(  −   )2,
   , =
−(</p>
      <p>),

  ,</p>
      <p>
        Before applying any algorithm, equation (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) was applied to each cell except the “blank” row.
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
      </p>
      <p>The new values represent the percentage ratio between the value in the cell and the maximum value
for the corresponding column. The new values are in the range of 0 to 1.</p>
      <p>To develop an application for solving the described problem, the Python programming language was
used. In particular, the “pandas” library was used to work with data and the “scikit-learn” library was
used for clustering [4, 7].</p>
      <p>The threshold was selected using the Elbow method based on the vector of distances between
clusters [5, 6].</p>
    </sec>
    <sec id="sec-4">
      <title>4. Results</title>
      <p>The expected results are shown in Table 1. Based on it we aim to obtain 11 groups (or 7 large groups)
with different numbers of antibodies in each of them. From the experiment, it is known that the best
interaction will be between antibodies from the group 3B (X155, X41, X213, X32) and 4A (NP3706)
or 4B (X211).</p>
      <p>As a result, 4 different outputs for each linkage method were received. The dendrogram in Figure 3
shows results for the usage of Ward linkage with a distance threshold equal to 1.5.</p>
      <p>As a result of this algorithm, 7 clusters were identified. Table 2 shows the result of clustering where
each column contains a list of antibodies that belong to the corresponding cluster.</p>
      <p>From the result, it is obvious that cluster number 1 matches group 3B, cluster 5 completely matches
group 2B/3, and cluster 7 matches group 1A (they are marked in green). Also, cluster 3 combines groups
1B, and 2, and cluster 4 corresponds to group 3A without the element NP1527, which is in cluster 6,
which also contains groups 4A and 4B (they are marked in yellow and orange).</p>
      <p>The dendrogram in Figure 4 shows the results of the usage of complete linkage with a distance
threshold equal to 1.2.</p>
      <p>As a result of this algorithm, 9 clusters were identified. Table 3 shows the result of clustering. As
shown, cluster number 4 matches group 1A and cluster 8 completely matches group 2B/3 (they are
marked in green). Also, cluster 2 combines groups 1B and 2, cluster 5 corresponds to group 3A without
the element NP1527, which is in cluster 3, which also contains groups 4A and 4B, in addition, cluster
6 and cluster 9 contain the elements from group 3B (they are marked in yellow and orange).
Table 3
Result for agglomerative clustering with complete linkage
1</p>
      <p>2</p>
      <p>The dendrogram in Figure 5 shows the results of the usage of average linkage with a distance
threshold equal to 0.97.</p>
      <p>As a result of this algorithm, 11 clusters were identified. Table 4 shows the result of clustering. As
shown, cluster number 2 matches group 3B, cluster 5 completely matches group 1A, and cluster 8
matches group 2B/3 (they are marked in green). Also, cluster 6 combines groups 1B, and 2, and clusters
9, 10, and 11 correspond to group 3A without the element NP1527, which is in cluster 6, which also
contains groups 4A and 4B (they are marked in yellow and orange).</p>
      <p>The dendrogram in Figure 6 shows the results of the usage of a single linkage with a distance
threshold equal to 0.75.</p>
      <p>As a result of this algorithm, 13 clusters were identified. Table 5 shows the result of clustering. As
shown, cluster number 2 matches group 3B, cluster 3 completely matches group 1A and cluster 6
matches group 1A, and cluster 13 matches group 4B (they are marked in green). Also, cluster 4
combines groups 1B, and 2, and cluster 6 and 11 contains items from group 5 (they are marked in yellow
and orange).</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>As a metric of accuracy, the total amount of elements in the clusters, which fully correspond to the
expected result, was taken. Based on this metric, it is obvious that the algorithm, which used a single
linkage method, gives the best result. However, the algorithms that used ward linkage and average
linkage methods are not much worse. Surprisingly, the algorithm, which used the complete linkage
method is the worst.</p>
      <p>Even though the amount of data may seem to be small (40x30 matrix), the developed application
does the amount of work in a short time (1-2 minutes), that would take a person several days to
complete. Moreover, as the sample data size increases, the amount of time it takes for the computer to
execute the algorithm will remain small compared to the time it would take a person to perform the
same task.</p>
      <p>In conclusion, hierarchical clustering methods have shown themselves to be quite suitable for a
given problem. However, they do not take into account the order in which it forms the clusters yet (the
order of the clusters is not the same as the order of the groups in the expected result), but it is also a key
aspect of this problem.</p>
    </sec>
    <sec id="sec-6">
      <title>6. References</title>
      <p>[5] Kneed documentation, Parameter Example, 2020, URL: https://kneed.readthedocs.io/
en/stable/parameters.html
[6] I. D. Baruah, Cheat sheet for implementing 7 methods for selecting the optimal number of clusters
in Python, 2020, URL:
https://towardsdatascience.com/cheat-sheet-to-implementing-7-methodsfor-selecting-optimal-number-of-clusters-in-python-898241e1d6ad
[7] B. Alam, Implementation of Hierarchical Clustering using Python, 2022, URL:
https://handson.cloud/implementation-of-hierarchical-clustering-using-python/
[8] JM. Anaya, Y. Shoenfeld, A. Rojas-Villarraga, Autoimmunity: From Bench to Bedside, 2018,</p>
      <p>Bogota, Colombia), URL: https://www.ncbi.nlm.nih.gov/books/NBK459443/
[9] PK. Nakane, A. Kawaoi, Peroxidase-labeled antibody. A new method of conjugation, Journal of</p>
      <p>Histochemistry &amp; Cytochemistry, 1974; 22(12), 1084-1091. https://doi.org/10.1177/22.12.1084
[10] R.Yu. Hrytsko, H.I. Bila, R.O. Bilyy, Test for coronavirus – what does it really means for the
patient?, , Infectious Diseases, I.Horbachevsky Ternopil National Medical University, 2020,
6572, URL: https://ojs.tdmu.edu.ua/index.php/inf-patol/article/download/11287/10737/41013
[11] G. Lippi, A.-M. Simundic, M.Plebani, Potential preanalytical and analytical vulnerabilities in the
laboratory diagnosis of coronavirus disease 2019 (COVID-19), Clinical Chemistry and Laboratory
Medicine (CCLM), 2020, 58 (7), 1070-1076. https://doi.org/10.1515/cclm-2020-0285</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F.</given-names>
            <surname>Nielsen</surname>
          </string-name>
          ,
          <article-title>Introduction to HPC with MPI for Data Science</article-title>
          , Chapter 8:
          <string-name>
            <surname>Hierarchical</surname>
            <given-names>Clustering</given-names>
          </string-name>
          , Springer, Switzerland,
          <year>2016</year>
          ,
          <fpage>195</fpage>
          -
          <lpage>211</lpage>
          . https://www.doi.org/10.1007/978-3-
          <fpage>319</fpage>
          -21903-
          <issue>5</issue>
          _
          <fpage>8</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>O.</given-names>
            <surname>Zelinskyi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Horlatch</surname>
          </string-name>
          , Yu. Lebedin,
          <article-title>Development of antibody clusterization system based on coefficient of cross-inhibition</article-title>
          ,
          <source>International Student Scientific Conference of Applied Mathematics and Computer Science (ISSCAMCS - 2022), May 5-6</source>
          ,
          <year>2022</year>
          , Lviv, Ukraine,
          <fpage>8</fpage>
          -
          <lpage>12</lpage>
          , URL: https://ami.lnu.edu.ua/wp-content/uploads/2022/05/ISSCAMCS-2022.pdf
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>WHO</given-names>
            <surname>Coronavirus (COVID-19) Dashboard</surname>
          </string-name>
          , 28
          <source>September</source>
          <year>2022</year>
          , URL: https://covid19.who.int/
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <article-title>[4] Scikit-learn documentation</article-title>
          ,
          <source>AgglomerativeClustering</source>
          ,
          <year>2022</year>
          , URL: https://scikitlearn.org/stable/modules/generated/sklearn.cluster.AgglomerativeClustering.
          <article-title>html?highlight=ag#s klearn.cluster</article-title>
          .AgglomerativeClustering
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>