Abstract
Large-scale DNA sequencing of immunological repertoires offers an opportunity for the discovery of novel biomarkers for autoimmune disease. Available bioinformatics techniques however, are not adequately suited for elucidating possible biomarker candidates from within large immunosequencing datasets due to unsatisfactory scalability and sensitivity. Here, we present the Haystack Heuristic, an algorithm customized to computationally extract disease-associated motifs from next-generation-sequenced repertoires by contrasting disease and healthy subjects. This technique employs a local-search graph-theory approach to discover novel motifs in patient data. We apply the Haystack Heuristic to nine million B-cell receptor sequences obtained from nearly 100 individuals in order to elucidate a new motif that is significantly associated with multiple sclerosis. Our results demonstrate the effectiveness of the Haystack Heuristic in computing possible biomarker candidates from high throughput sequencing data and could be generalized to other datasets.
Introduction
Autoimmune diseases are a significant source of worldwide chronic illness, disability, and death. Early diagnosis is critical to limiting short-and long-term tissue destruction caused by autoimmunity1, and clinically actionable biomarkers based on understanding of fundamental pathological mechanisms allowing for timelier diagnoses or clear disease risk stratification may result in significantly improved outcomes2. For example, diagnostic certainty early in the disease has greatly improved the clinical care and outcomes of patients with neuromyelitis optica (NMO). NMO is an inflammatory demyelinating disease whose symptoms overlap with those of multiple sclerosis (MS). Prior to the identification of antibodies against aquaporin-4 (AQP4) being specific for NMO spectrum disorders3, distinguishing MS from NMO was mainly based on clinical decision-making4, and NMO specific treatment algorithms were not available. The discovery of anti-AQP4 antibodies led to the immediate development of blood-based assays for accurate NMO-IgG detection, allowing for earlier diagnosis and prompt initiation of disease-appropriate therapies5, 6.
Here, we were interested in developing a computational approach leveraging deep B-cell immune repertoire sequencing data from blood of patients with MS (and healthy donors) to identify disease-specific features that may, after further validation, be used as biomarkers for the early detection of MS. Multiple Sclerosis is an inflammatory autoimmune disease of the central nervous system that involves CNS demyelination and neuronal damage leading to a wide range of debilitating neurological symptoms7, 8. MS affects over 2.5 million people in the US and around the world, and there currently is no cure. Although possible causes of the disease include genetic and environmental factors, the actual cause of MS is currently unknown9. MS diagnosis presently rests entirely on clinical and MRI data and may include cerebrospinal fluid (CSF) analyses to test for the presence of clonal immunoglobulins, products of clonally expanded CSF B-cells10, 11. Increased B-cell levels within a patient’s CSF indicate that an inflammation process which is consistent with MS diagnosis might be ongoing12. Scientific evidence suggests that antigen-specific B-cells play a role in the onset and progression of the disease13. Antigen-specificity in turn would be encoded in the antigen-recognizing B cell receptor (BCR), surface expressed immunoglobulins, on a highly individual level. Therefore, certain sets of B-cells may serve as MS biomarkers for disease activity or even prediction. There has been some previous work exploring the B-cell and T-cell immune repertoire in MS, however most of the studies have been limited in sample size14–16. In our previous work, we showed that clonally related B-cells are present in the actual site of tissue injury17.
Any deep examination of a patient’s B-cell repertoire is complicated by the sheer diversity of the B-cell repertoire. On average, the blood of a human adult may contain an estimated 3–9 million distinct B-cell secreted antibodies18. The recent advent of high-throughput sequencing technologies has enabled researchers to sample and study the immune repertoire on a large scale19–23. These newly developed techniques can now extricate millions of antibody sequences, aiding in studies of lymphocyte malignancies, infectious disease, and autoimmunity24–27. In this work, we apply high-throughput sequencing to isolate and catalogue blood-based B-cell DNA from dozens of MS patients and healthy controls (HCs). We present a computational method to query and analyze these data for the purpose of pinpointing potential B-cell related disease biomarkers.
Currently, no protocol exists for calculating biomarker likelihood among a set of antibody sequences. Implicitly, a sequence-associated biomarker may take the form of an amino-acid pattern that correlates with disease diagnosis, and ideally, that pattern would be found exclusively in disease-afflicted patients. Any such ‘Disease-Only Motif’ (DOM) would make a good potential biomarker candidate. Immunoglobulin sequence datasets uniquely lend themselves to efforts directed at DOM determination, as features separating patients from non-patients might be present but deeply hidden in the vast diversity of the experimental data. However, presently available techniques are inadequate for DOM determination, and motif discovery algorithms used to date suffer from a twofold limitation of constrained scalability since algorithms cannot process large sequence quantities and surplus sensitivity to noise since motif quality decreases with increased sequence count28, as they are not built to process millions of sequences as input. Scalability issues arise from the dependence of the algorithms on computationally expensive multiple-alignments, while sensitivity errors are caused by the presence of random patterns in larger sequence sets. When both the input sequence dataset and queried motif length increase in size, the resulting random noise dilutes potential signals in the data28.
One tactic to surmount this limitation is to reframe motif elucidation as a combinatorial optimization problem, where all conceivable sequence combinations exist in a geometric space of disparately optimal motifs. Combinatorial techniques have been shown to more accurately detect subtle signals in noisy sequence datasets, though their use in discovering motifs has been quite limited thus far29, 30. With this in mind, we designed a combinatorial heuristic for uncovering hidden DOMs within the haystack of next-gen immune repertoire sequencing data.
Our “Haystack Heuristic” is a DOM discovery technique that is less sensitive to excessive sequence noise. The heuristic implements local search optimization31 to locate DOMs within large antibody datasets. Upon design, we tested the heuristic on an assembly of over nine million blood-extracted antibody sequences. The sequences contained the partial B-cell repertoire of 97 distinct individuals, 51 of whom are MS patients. We processed this data with the aforementioned Haystack Heuristic and discovered a DOM, which appears in two-thirds of all MS patients and in none of the healthy controls.
Materials and Methods
Generating the Input Sequence Dataset
We performed high-throughput sequencing of immunoglobulin heavy-chain variable-region (IgG-VH) transcripts on peripheral blood samples obtained from 51 multiple sclerosis patients and 46 healthy individuals. The samples were processed and sequenced using our previously published protocol25.
Sample Collection
We obtained peripheral blood from a total of 51 MS patients and 46 healthy control (HC) volunteers following informed consent. A diagnosis of MS was based on the latest diagnostic criteria for MS32. 46 out of 51 patients had relapsing remitting MS. 14 of the patients were treated with Copaxone; 11 were treated with Interferon. Four were treated with Tsyabiri; One was treated with Rituximab; 21 patients remained untreated. Peripheral blood was obtained via standard venipuncture. Peripheral blood mononuclear cells (PBMC) were isolated using a Ficoll gradient, red blood cells lysed and PBMC washed in phosphate buffered saline (PBS) containing 1% BSA. These studies were approved by the institutional review board of the University of California, San Francisco and informed consent was obtained from patients before CSF/PB collection. All methods were performed in accordance with the relevant guidelines and regulations.
Unbiased Ig mRNA amplification and Ig repertoire sequencing
In brief, Total RNA was isolated from PBMC (RNeasy mini kit, Qiagen) and RNA quality was assessed using an Agilent Bioanalyzer. Total isolated RNA was reverse transcribed (SMARTerTM RACE, Clontech), and approximately 27% of each cDNA reaction was used for IgG-VH amplification via PCR using SMARTerTM RACE 10X Universal primer mix (Clontech) and an IgG specific 3′ primer (5′-GGG AAG ACS GAT GGG CCC TTG GTG G-3′) for 31 cycles following the manufacturer’s recommendation. In addition to the IgG-specific portion, reverse primers also contained the Lib-L specific adaptor (454 sequencing, Roche) and barcode sequences. Barcoded IgM-VH (~715 bp) and IgG-VH (~640 bp) transcript libraries were purified using AMPure XP (Beckman Coulter Inc.), quantified using PicoGreen (Life Technologies) and normalized to 1 × 109 molecules/μl. Uniquely barcoded samples were combined in pools of normalized IgG-VH amplified libraries and subjected to emulsion PCR and unidirectional sequencing using the GS FLX Titanium Lib-L chemistry (454 Sequencing, Roche).
Analysis
The raw sequence output was analyzed using the VDJFasta algorithm20; each sequence was annotated with IGHV and IGHJ germline segments and the amino acid sequence of the Complementary Determining Regions (CDRs). The CDR3 amino acid sequence was used to pick a proper reading frame for nucleotide translation. All translated sequences with a v-gene, j-gene, and CDR3 assignment were stored in a MySQL database. Within that database, the total sequence count was equal to 9,212,022 (Supplementary Table S1 categorizes sequence counts by patient, Supplementary Table S7 shows the lane and run information for each individual). Among these 9 million sequences, 1,531,415 unique CDR3s were present. The MySQL dataset was used as direct input into the Haystack Heuristic.
The Haystack Heuristic
The overview of our approach is shown in Fig. 1. We start with a set of over 9 million immunoglobulin sequences in amino acid space. The sequences are then broken down to 8,000 (20^3) atomic vectors of size three. For each of the possible vectors we carry out up to three sequence and cardinality extension steps and apply a greedy algorithm to examine the presence of the motif in the MS and healthy individuals. The traversal is stopped if it is not promising based on a threshold.
Haystack Heuristic Overview
The Haystack Heuristic searches for position-specific gapped amino acid motifs, short subsequences that are present at specific sequence coordinates. Explicit Motif Subsequences (EMSs) within each gapped motif are linear sequence elements that are separated out by gaps of unspecified sequence characters. Position-specificity arises from the mapping of every EMS to a location in an antibody sequence. Thus, a gapped motif is a vector composed of the EMS itself and an associated antibody coordinate (Fig.1b), the presence of which can be assessed in an IgG-VH sequence at a specified location with respect to the beginning of the CDR3 region. If all the motif vector elements are found within an antibody sequence, then the sequence is treated as a match to the input motif.
For the purpose of our analyses we define an “atomic vector” as the shortest allowable motif. The atomic vector contains a single element, indicating that no gaps are present. That single atomic element is comprised of a sequence coordinate and a short EMS of length three, where three is the standard minimum length of a short linear motif. Thus, an atomic vector is an amino acid triplet that matches a unique antibody sequence location. The triplet may be extended by adding a single new character to either of its endpoints, resulting in quadruplet motif. Iteratively applying this “EMS extension” will eventually yield a new vector motif of length k and cardinality one. In this manner, we are able to transform any inputted atomic vector into a gapless motif of length k. Inserting a gap into that motif requires us to increase its vector dimension from one to two. The simplest way to carry out this “cardinality extension” is to append a new atomic vector to the existing vector motif. Thus, cardinally extending a gapless motif of length k will produce a single-gapped motif that contains two explicit subsequences of length three and k. Iteratively applying cardinality extension will eventually yield a motif containing n gaps and n + 1 dimensions. Afterwards, the length of all its n + 1 explicit subsequences may be expanded using EMS extension.
EMS extension and cardinality extension (Fig. 1b) allow us to construct complex motifs from simpler input. Starting with a plain atomic vector, we may apply a series of extensions to develop new motifs of higher complexity. Each step within that series represents a physical transition between a lower-order and higher-order motif. For example, suppose we initialize our motif as a singe atomic vector “CAT”, located at coordinate position one. The sequence and position of the vector can be encoded symbolically as (CAT, 1). Using a single EMS extension, a proline may be added to the right-most position of the vector, resulting in new motif of (CATP, 1). Afterwards, a cardinality extension is used to add an additional motif component, SSD at position eight, thus resulting in an updated motif of (CATP, 1), (SSD, 8). Next, an EMS extension extends an arginine to the left-most position of the triplet subsequence SSD, while a second CAT subsequence is cardinally extended at position 15 of the motif. The result is a newly created motif of (CATP, 1), (RSSD, 7), (CAT, 15). Thusly, only four extension operations are required to adequately construct a two-gapped 11 amino acid long motif. That entire process of construction may be represented as a series of physical transitions within a single pathway: (CAT, 1) = > (CATP, 1) = > (CATP, 1), (SSD, 8) = > (CATP, 1), (RSSD, 7) = > (CATP, 1), (RSSD, 7), (CAT, 15). These transitions directly correspond to a shift between neighboring vertices in a unidirectional network. In essence, all motifs exist as nodes within a network whose edges signify EMS and cardinality extensions. Therefore, progressively extending new motifs from simpler input is directly analogous to a directed traversal across a network of motifs.
Furthermore, we propose a network-based motif representation, which permits us to run a network search for DOM motifs. The search initializes at a single node exemplifying an atomic vector. Then, in a breadth-first-search (BFS) approach, the neighbors of the root node are inspected and evaluated. These neighboring motifs are tested against the central dataset of antibody sequences. The sequences matching to each neighbor are aggregated by the individual people from whom they were obtained. Next, all neighboring motifs are marked by the number of patients and healthy controls to which they are a match. If a given neighbor matches the majority of disease-afflicted patients, while also failing to match any of the healthy controls, then we have discovered a DOM and the search is over. Otherwise, the neighbors are assessed on their ability to differentiate disease-afflicted patients from healthy controls. Nodes whose differentiation score falls above a specified threshold undergo a BFS analysis of their own. New neighbors are iteratively obtained and the search space is gradually extended until a DOM is finally found or the search reaches a stipulated endpoint.
Network search capacity to uncover DOMs in data is dependent on the quality of our starting three-character motifs. Triplets situated closer to a DOM in network space serve as better starting nodes then other more isolated vertices. We may therefore enhance our DOM-detecting capabilities by traversing the network from several starting locations. Parallelized search execution on multiple inputs raises the overall yield of useful results. However, such useful results are contingent upon the proper selection of suitable starting motifs. Under ideal conditions, the set of initial motifs would match to every plausible atomic vector. Unfortunately, such breadth of coverage is not computationally viable. Instead, we may settle for an atomic vector subset that contains each conceivable three-character EMS. There exist 8,000 (20^3) three-character amino acid combinations, each of which can be transformed into a full atomic vector by assigning it an optimal coordinate using a preset optimization function. The resulting array of 8,000 vectors may then serve as input for a parallelized network search. The scope of that search should suffice to uncover DOMs hidden in the network.
Our Haystack Heuristic implements the network search procedures discussed above. Many of the outlined steps capitalize on built-in database infrastructures to swiftly match motifs against efficiently stored sequences in memory. Effectively, the Heuristic runs a network search using queries to the database in which the sequence data is deposited. This allows all users to integrate that search within their existing database schema.
The next two subsections discuss all preliminary input settings, as well as algorithmic steps for Heuristic execution.
Preliminary Input Settings
These specifications must be set prior to running the Heuristic.
Categorical Assignment
A “Diagnosis” column in the database categorizes people into individual diagnostic groups. The Haystack Heuristic specifies that all diagnosed individuals must fall into one of two categories; A or B. Categorical assignment is determined by the diagnosis column. Category A may be assigned to any diagnoses, including a lack of disease. All diagnoses not in category A will automatically fall into category B. The total count of people within each respective category is defined as |A| and |B|.
DOM-determining Threshold Selection
Given a motif M, we query the motif against the antibody sequences, grouping the results by the unique individuals from whom the matching sequences were obtained. Afterwards, we count the number of motif-matching individuals from each of the two categories A and B. These counts are represented by variables a and b, respectively. If b is equal to zero, then M may be considered a potential candidate for DOM categorization. Whether or not M is actually a DOM is determined by the DOM-determining threshold Dt. Motif M is considered a DOM only if a / |A| ≥ Dt and b = 0. Thus, threshold Dt must be assigned a value between zero and one prior to running the Heuristic. For the purposes of solving the base-case problem, we assume the motif only exists in the MS population. The possibility of a low-frequency motif match in the controls is discussed in final paragraph of Assessing the Statistical Significance of Discovered Dom Motifs, and is analyzed rigorously in Supplementary Materials S3.
Separation Threshold Selection
For any M, we define a separation score S M where S M = a − b. The S M parameter measures motif preference for category A over category B. We set a separation threshold, St, to evaluate a given S M. If S M > = St, then motif M remains a candidate for network search. Otherwise, neither that motif nor any of its neighbors will undergo additional analysis. St values are further discussed in the Testing the Heuristic of the Database section of Methods.
Gap Count Specification
We define Gc as the maximum number of gaps that can occur within our outputted motif. As a result, no starting motif may undergo more than Gc cardinality extensions. Gc values are further discussed in the Testing the Heuristic of the Database section of Methods.
Running the Haystack Heuristic
Once the preliminary input settings have been specified, the Heuristic is ready to be implemented using the following series of steps:
Triplet Extraction
The Heuristic scans all full antibody sequences in order to tally the total occurrence of every unique three-character triplet within the sequence database. Triplets occurring less than Dt*|A| instances are ignored. The remaining triplets are inputted into Step 2.
Atomic Vector Generation
Each triplet is transformed into a new atomic vector by selecting a coordinate that maximizes match variable a (for a detailed discussion of optimal coordinate selection, see Supplementary Materials S1). All vector position coordinates are defined relative to the endpoints of the CDR3 within the triplet-matching antibody sequences. Vectors whose separation score falls below the specified St do not undergo further analysis.
Non-gapped EMS Extension
The database is searched for all non-gapped four-character motifs whose sequences and positions overlap with existing atomic vectors. After St filtration, all remaining four-character motifs are appended to the atomic vector list. The result is list L, which contains short, non-gapped motifs.
Recursive Restriction
Each M in list L is queried against the database. All sequences matching a given M are transferred to a new, temporary database dM. Afterwards, Steps 1–3 are repeated on contents of dM. The resulting list L’ contains non-gapped motifs that may be merged together with M.
Motif Merging
Each motif M is associated with a non-gapped motif list L’. Every motif M’ in L’ contains a single motif vector element. That element may overlap with an existing element of M. If so, then the overlapping elements are merged to lengthen a subsequence of M. This is directly analogous to EMS extension. If there is no overlap, then the element of M’ may be appended to the other elements of M, thereby resulting in cardinality extension. If the merged motifs do not overlap, then this action is the same as the cardinality extension. If they do overlap, then this is analogous to the EMS extension.
Iteration
L is replaced by a list of all newly extended motifs. The Heuristic terminates if either a DOM is discovered or the maximum gap length in L corresponds to Gs. Otherwise, L is resubmitted to Step 4 of the Heuristic
Assessing the Statistical Significance of Discovered DOM Motifs
Suppose we encounter DOM D with a matches to |A| category A patients and zero matches to |B| category B patients. We might assume that if P A(D) is the probability of matching D to a category A patient, and if P B(D) is the probability of matching D to a category B patient, then P A(D) must be significantly greater than P B(D). However, this might not necessarily be the case. We must consider the possibility that D is a homogenous motif for which P A(D) is equal to P B(D). If D is homogenous, then it will match all patients will equal likelihood, regardless of category. Under such circumstances, the presence of D in the Heuristic results will be a purely random anomaly. Thus, in order to demonstrate statistical significance, we must show that the likelihood of encountering a homogenous DOM is significantly low for our results.
In order to do so, let us first assume that D is a homogeneous motif that matches all patients with an equal probability of p x. The probability that D is a DOM with a total matches may be represented by function P(p x, a, |A|, |B|). We are unable to compute P(p x, a, |A|, |B|) directly, because the value of p x is unknown. However, we are able to calculate the maximum possible value of P(p x, a, |A|, |B|), thereby representing maximum possible likelihood of encountering a homogenous DOM. Our calculations in Supplementary Materials S2 demonstrate that P(p x, a, |A|, |B|) ≤ ML(a, |A|, |B|), where ML(a, |A|, |B|) = (1 − w)a(1 / w − 1)w a and the variable w is equal to a /(|A| + |B|).
Using the formula ML(a, |A|, |B|), we are able to show that the likelihood of randomly encountering certain homogenous DOMs is exceedingly low. However, that in of itself is not enough to demonstrate significance. The Haystack Heuristic traverses across millions of antibody motifs, any of which may be a homogeneous DOM. Thus, we must show that E(C, a, |A|, |B|) < 1, where E(C, a, |A|, |B|) the expected count of random homogenous DOMs that match a or more patients across a set of C total motifs. Using our previous calculations it is trivial to show that E(C, a, |A|, |B|) ≤ C*. Thus, if the Heuristic traverses C motifs and elucidates a DOM defines by a, then we must calculate the Maximum Expected Value Mev where Mev = C* If the Mev is significantly less than one, then we may deem the DOM statistically significant. Otherwise, must we must discard the DOM as unreliable result.
A low Mev indicates that P A(D) is unlikely to equal P B(D). It does not however, indicates that P B(D) necessary equals zero. As discussed in Supplementary Materials S3.1, the presence of a statistically significant DOM simply indicates P A(D) > P B(D). Thus, the DOM might still appear within certain category B patients, though with a lesser frequency relative to all category A matches. Though P A(D) and P B(D) may not be computed directly, it is in our interest to show that P A(D) is significantly greater than P B(D). We have thusly developed a protocol for estimating the maximum value of P B(D)/ P A(D). That protocol is presented in Supplementary Materials S3.2. As presented in Supplementary Materials S1, optimizing on a category-blind selection function (total # of people matched – 51)^2 still leads to the prime motif getting discovered.
Testing the Heuristic on the Database
We ran the Heuristic on the sequence data stored within the MySQL database (statistics are shown in Supplementary Table S1) two times. In the preliminary run, MS patients were assigned to category A while Healthy Controls were assigned to category B. In the secondary run, these categorical assignments were reversed. The Mev was calculated for all discovered DOMs in order to evaluate significance. The input parameters for the both Heuristic runs were set as follows; Dt = 0.6, St = 15, Gc = 2.
Code and Data Availability
An optimized example implemented in python in order to make the methodology more reproducible is available at https://github.com/lapeltsin/HaystackHeuristic. The data is available at: http://www.immport.org/immport-open/public/study/study/displayStudyDetail/SDY1043.
Results
Searching for MS Specific Motifs using the Haystack Heuristic
The Heuristic traversed 2,743,571 motifs and identified 171 MS-specific DOMs, which are listed in Supplementary Table S2. The DOM patient match counts ranged from 30 to 35 MS patients (Table 1). The DOM Mev quantities ranged from 3.98E-06 to 7.49E-09, (Fig. 2), indicating that the DOM results were not occurring by random.
Table 1.
Patient Match Count | #Unique Motifs | Motif with Maximum Hit Count | Maximum Hit Count |
---|---|---|---|
35 | 6 | (TNE, 14), (DTA, 6), (CAR,0) | 104 |
34 | 55 | (TNE, 14), (VYYCAR, 3) | 93 |
33 | 1 | (SKN, 21), (YLT, 16), (PES, 10) | 62 |
32 | 6 | (YLTN, 16), (DTA, 6), (CAR, 0) | 87 |
31 | 37 | (YLTN, 16), (VYYCAR, 3) | 79 |
30 | 66 | (RDN, 24), (YLTN, 16), (CAR, 0) | 74 |
The patient match counts are listed in the first column. The second column contains the number of DOM motifs associated with each match count. The third column contains the DOM motif that matches the maximum number of sequences for a particular match count. The number of sequences matched by the third-column column motif is listed in the final column of the table. All motifs are stated in a parenthesis notation where (S, x) represents an non-gapped subsequence S that is located x amino acids to the left of the CDR3. The Prime Motif appears in row 1, column 3 of the table.
The 171 MS-specific motifs appeared to be similar in structure. All 171 motifs contained a threonine located 14 amino acids to the left of the CDR3. In addition, 66% of the motifs contained a cysteine followed by an alanine at the start of the CDR3. These similarities implied that all MS-specific motifs were matching to an overlapping set of sequences. In order to investigate motif-match sequence overlap, we examined the motif with the maximum number of sequence and patient matches. This “Prime Motif” matched to 35 patients and 104 antibody sequences. The Prime Motif matched sequences were analyzed for overlap between the matching sequences for the remaining 170 motifs. All 170 motifs matched to sequences that overlapped with 104 the Prime Motif antibody matches. The fraction of overlapping sequences ranged from 36% to 100% across all discovered motifs (Supplementary Table S2). On average, 75% of motif matches overlapped with the 104 Prime Motif-targeted sequences. Therefore, we concluded that the Prime Motif held properties that corresponded to the structure of all other motifs. As a result, the Prime Motif underwent additional analysis.
Exploring the Prime Motif
We characterized the Prime Motif as “(TNE,14),(DTA,6),(CAR,0)”, using the parenthesis notation introduced in Table 1. This motif was composed of three separate subsequences; TNE, DTA, and CAR. The subsequence starting coordinates were located respectively at 14, three, and zero positions to the left of the CDR3. Each of the 35 motif-associated repertoires held between one and ten Prime Motif matching sequences, the variable regions of which were all IGHV3 (Supplementary Table S3). The antibody sequence matches to the Prime Motif were not dependent on the total patient sequence counts or IGHV3 variable region usage (Fig. 3). Therefore, we had reason to believe that the presence of the Prime Motif was not merely an artifact and that its role in Multiple Sclerosis might somehow be physiologically significant.
We further probed the nature of the Prime Motif by investigating its individual subsequence components. Among the three subsequences, only CAR was found within the antigen-targeting loop CDR3. CAR, however, represented an unmodified germline segment known to commonly occur at the starting point of the CDR3 region33. Therefore, the CAR component did little to account for the uniqueness of the Prime Motif. Motif specificity appeared to be a product of subsequences TNE and DTA. Querying the database against matches to just these two components yielded a total of 204 antibody sequences. The 204 sequences were distributed across 46 individual repertoires (Supplementary Table S4). Four MS patients and seven Healthy Controls matched both to TNE and DTA, but not to the entire Prime Motif. Thus, 80% of the repertoires containing TNE and DTA mapped to an MS diagnosis, implying that the presence of the two components factored into MS selectivity. Also, as with the Prime Motif, the two selective components were not influenced by repertoire size or IGHV3 usage (Fig. 3).
We scrutinized more closely how the TNE and DTA components developed from nucleotide mutations. The nucleotide sequences of all 104 Prime Motif associated antibodies underwent analysis using igBlast, a computational tool for identifying the relationships between antibodies and their germline origins34. The inspection of a sample igBlast alignment revealed an adenine insertion in the nucleotides of the TNE component (Fig. 4). In addition, a deletion flanked the first position of the DTA component, which itself remained identical to its germline counterpart. Thus, it appeared that the two selective components marked the endpoints of a 24 base long frameshift mutation. The multiple alignment of a motif-matched sequence subset helped confirm that a localized reading frame shift was present in the framework three (FR3) region of the antibodies, relative to the IGHV3 gene (Fig. 5). FR3 insertions and deletions have previously been observed in B-cell sequences35, 36. These insertions and deletions are believed to be compatible with antigen-targeting antibody functions36.
Based on our alignment observations, we supplemented the initial Prime Motif with an additional indel requirement. The indel requirement stipulated that a TNE-adjoined insertion and a DTA-adjoined deletion must be present in all Prime Motif matching sequences. We tested this constraint on the 104 sequences obtained from the initial Prime Motif. 101 of the original 104 sequences complied with our indel requirement. These indel-associated sequences remained distributed across 35 unique patient repertoires (Supplementary Table S6).
Searching for HC Specific Motifs using the Haystack Heuristic
The Heuristic traversed 175,426 motifs aiming to find Healthy Control specific motifs. No DOM sequences were found in that traversal. Additionally, the Heuristic did not encounter any motifs that matched to zero MS patients. Instead, a total of 19,104 motifs matched to a single MS patient. Each of these single-MS motifs matched between 15 and 20 Healthy Controls. All match counts for the single-MS motifs fell below the DOM-determining threshold of 60%. Thus, further traversal of the single-MS motifs would not lead to eventual DOM discovery. We concluded that control-specific motifs were not present in our repertoire sequence dataset.
Comparison to Other Approaches
In our efforts to investigate alternate approaches to biomarker motif discovery, we used the HOMER (Hypergeometric Optimization of Motif EnRichment) Software Suite37 to search for nucleotide motifs that were over-represented in the patient sequence set relative to the healthy controls. The HOMER output contained 25 over-represented motifs, ranging from eight to twelve nucleotides in length. Plotting the percentage of MS sequences matched by each motif relative to the percentage of matched Healthy Controls revealed a strongly linear relationship (Fig. S2). The regression slope of 0.68 indicated that the HOMER motifs were not significantly over-represented in the MS data, thus limiting their potential diagnostic utility.
As a substitute approach to elucidating out a predictive signal from our sequence repertoires, we attempt to train a model to predict the presence of MS from sequence data. For model building purposes, we used the random forest learning algorithm, was shown to have the capability of handling a large number of input variables while avoiding model overfitting38. To generate the model, a feature set was constructed for each of the patients and healthy controls. Each set of features for each sample corresponded to the frequencies of amino acid occurrences relative to the residue positions used in the Haystack Heuristic motif vectors. The Scikit-Learn machine learning module39 was then used train a model to differentiate between patients and Healthy Controls based on the positional residue frequencies. Five-fold cross-validation was applied to evaluate the model’s predictive potential. The F-measure, a commonly used evaluation metric computed from the geometrical mean of precision and recall, was equal to 0.63, indicating that the random forest model itself had very little predictive power.
Discussion
The Haystack Heuristic proved successful at its fundamental task of uncovering disease-related patterns in a vast noise-prone sequence dataset. After processing millions of Ig-VH sequences, the Heuristic was able to detect an MS-associated motif matching to less than 0.01% of analyzed sequences. Based on the calculated Mev, this motif is unlikely to have occurred by random. Furthermore, a search for HC-specific motifs did not yield any viable results; thereby implying that the Heuristic is sensitive to input data and is not prone to random output. Our findings suggest that a genuine separating signal is present among MS B-cell repertoires.
Two separate runs of our Haystack Heuristic were performed. The first run, optimized for MS patient matches, traversed approximately 2.7 million nodes in motif network space. The second run, searching for motif enrichment in HC data, traversed approximately 175 thousand nodes within the network. Thus, there was a 15-fold variation in overall network coverage between the two Heuristic executions. However, both runs commenced from an equal of number of initial vertex positions, hence the starting conditions are unlikely to have influenced the final observed divergence. Rather, the results imply that differences in coverage may be caused by the difference in separation scores used to jettison nodes unsuitable for additional traversal. An elevated set of separation scores would account for the extended network scope of the primary Heuristic run. Since the separation scores represent the balance between the number of MS and Healthy Control matches, we can conclude that certain lopsided motifs are present in our processed B-cell repertoires. Such lopsided motifs are found in MS patients with an implicitly higher frequency relative to the Healthy Control data. Inversely, an HC-inclined imbalance does not appear to substantially occur, based on the limited network coverage of our second Heuristic execution. Consequently, we conclude that the observed motif disparity is an illness-related phenomenon. However, additional work such as B-cell repertoire sequencing of NMO patients will be necessary to determine whether the motif is an MS-specific feature able to differentiate one CNS autoimmune disease from another.
The Haystack Heuristic identified a set of motifs whose presence is more frequent within the blood of MS patients. Among that set, the Prime Motif particularly stands out. The total observed frequencies of Prime Motif occurrences within the MS patients and the Healthy Controls are respectively, 68% and 0%. However, the observed frequency of 0% does not guarantee that the Prime Motif is always absent from within all healthy repertoires. It is quite possible that the Prime Motif is occasionally present in Healthy Controls, but with a lower frequency relative to all MS-linked occurrences. Confirming the precise occurrence frequencies may be the goal of future studies on replication cohorts and with increased sequencing depth. Nevertheless, our calculations provide strong evidence that the Prime Motif itself is substantially more likely to occur within the repertoire of disease-afflicted patient (Supplementary Materials S3.3). Thus, the Prime Motif might serve as a useful biomarker for more nuanced or possibly earlier MS diagnosis. At the very least, the role of the Prime Motif in at risk populations and in context of autoimmune disease progression should be examined in more detail. Some extensions of this work would include applying machine learning classifier approaches for disease diagnosis, however further utility of such methods needs to be evaluated.
Our present understanding of the Prime Motif is limited to sequence-based interpretations and its biological relevance remains subject to future studies. However, it is conceivable that the Prime Motif resulting from a productive frame shift in the Ig-VH FR3 region may directly alter structural and consequently binding properties of BCR. Furthermore, the FR3 region has been proposed to be directly involved in immunoglobulin interaction with antigen targets, for example between Staphylococcal Protein A and FR3 region of IGHV3-enconded receptors36, 40. Thus, in an autoimmune disease with prominent B cell involvement, the Prime Motif may not only serve as biomarker but may also aid in the understanding of immune mechanisms involved in the etiology of demyelinating CNS pathology. In this regard, our findings raise additional questions. In our study, the overall count of motif-matched sequences is low, suggesting that none of the associated peripheral blood B cells were actively undergoing expansion during patient sample collection. While we cannot exclude the possibility that a Motif-triggered inflammatory response occurred at an earlier stage of disease onset, future studies with increased sequencing depth and at different stages of MS are necessary to address this question. Furthermore, alternate samples from non-MS autoimmune patients would help us examine the role of the Prime Motif described here or similar ones in more general autoimmune responses. We will continue to explore the validity of the Prime Motif as biomarker and pathway to biological explanations of autoimmunity.
While our Heuristic was successful at identifying a possible differentiating motif, this first-pass implementation may also lack in several aspects. For example, the search algorithm is dependent on a greedy, hill-climbing technique that may, or may not discover the most optimal differentiating motif. The addition of a stochastic search component would be a nice future extension of the approach presented here resulting in increased search-space coverage. Furthermore, our motif-vector model currently relies upon exact amino acid matches. Future iterations of the heuristic will need to take into account partial matches based on amino acid similarity and polarity. The current scoring function does not evaluate the quantity of motif-matching sequences within each sampled patient. Adding a per-patient sequence match component might help push the heuristic towards discovering more immunologically active disease motifs. Finally there are issues with detection limit that should be considered - at greater depth there will always be some false positives of any motif occurring in the negative control population. Likewise at too low a depth too many false-positive motifs will appear due to insufficient sampling saturation of the motif graph. Nonetheless, the current heuristic implementation serves as an adequate baseline for measuring improvements to the algorithm.
In this work, we present the “Haystack Heuristic”, a DOM discovery technique that uses local search optimization to locate motifs within large datasets of antibody sequences. Upon design, we tested the heuristic on an assembly of over nine million blood-extracted antibody sequences with partial B-cell repertoire of 97 distinct individuals, including 51 MS patients as well as healthy controls. The Haystack Heuristic was applied to discover a DOM, which appears in two-thirds of all MS patients studied here and in none of the healthy controls and might, after further necessary validation in replication cohorts, and in comparison to other systemic or CNS autoimmune diseases, serve a diagnostic biomarker for MS.
Electronic supplementary material
Acknowledgements
We are deeply grateful to our patients who have agreed to participate in this research study. We thank David R. Cox, Tracy Kuo, Steven J. Pitts, Purnima D. Sundar, Dilduz Telman, Lora Z. Zhao for help with generating the data and useful discussions.
Author Contributions
L.A. designed and implemented the algorithm and wrote the manuscript, S.W. helped with statistical analysis, H.C.B. and M.S. supervised the study providing clinical and computational oversight. All the authors edited the manuscript. These studies were supported by grants from the National Multiple Sclerosis Society (RG-4868 to H.-C.v.B.), the NIH/National Institute of Neurological Disorders and Stroke (K02NS072288 to H.-C.v.B.), and Pfizer Inc. H.-C.v.B. was also supported by an endowment from the Rachleff Family Foundation. MS is supported by K01LM012381 and 1P30AR070155-01.
Competing Interests
M.S. is a former employee at Pfizer, has consulted for N.G.M. Biopharmaceuticals and Novartis, M.S. is currently a scientific advisor to twoXAR. H.C.B. is currently an employee at Roche.
Footnotes
Electronic supplementary material
Supplementary information accompanies this paper at doi:10.1038/s41598-017-04439-5
Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.O’Dell JR. Therapeutic strategies for rheumatoid arthritis. The New England journal of medicine. 2004;350:2591–2602. doi: 10.1056/NEJMra040226. [DOI] [PubMed] [Google Scholar]
- 2.Maecker HT, et al. New tools for classification and monitoring of autoimmune diseases. Nature reviews. Rheumatology. 2012;8:317–328. doi: 10.1038/nrrheum.2012.66. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Lennon VA, Kryzer TJ, Pittock SJ, Verkman AS, Hinson SR. IgG marker of optic-spinal multiple sclerosis binds to the aquaporin-4 water channel. The Journal of experimental medicine. 2005;202:473–477. doi: 10.1084/jem.20050304. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.O’Riordan JI, et al. Clinical, CSF, and MRI findings in Devic’s neuromyelitis optica. Journal of neurology, neurosurgery, and psychiatry. 1996;60:382–387. doi: 10.1136/jnnp.60.4.382. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Waters, P. J. et al. Serologic diagnosis of NMO: a multicenter comparison of aquaporin-4-IgG assays. Neurology78, 665–671; discussion 669, doi:10.1212/WNL.0b013e318248dec1 (2012). [DOI] [PMC free article] [PubMed]
- 6.Lennon VA, et al. A serum autoantibody marker of neuromyelitis optica: distinction from multiple sclerosis. Lancet. 2004;364:2106–2112. doi: 10.1016/S0140-6736(04)17551-X. [DOI] [PubMed] [Google Scholar]
- 7.Compston A, Coles A. Multiple sclerosis. Lancet. 2008;372:1502–1517. doi: 10.1016/S0140-6736(08)61620-7. [DOI] [PubMed] [Google Scholar]
- 8.Compston A, Coles A. Multiple sclerosis. Lancet. 2002;359:1221–1231. doi: 10.1016/S0140-6736(02)08220-X. [DOI] [PubMed] [Google Scholar]
- 9.Gilden DH. Infectious causes of multiple sclerosis. Lancet neurology. 2005;4:195–202. doi: 10.1016/S1474-4422(05)70023-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.von Budingen HC, et al. Clonally expanded plasma cells in the cerebrospinal fluid of patients with central nervous system autoimmune demyelination produce “oligoclonal bands”. Journal of neuroimmunology. 2010;218:134–139. doi: 10.1016/j.jneuroim.2009.10.005. [DOI] [PubMed] [Google Scholar]
- 11.Obermeier B, et al. Related B cell clones that populate the CSF and CNS of patients with multiple sclerosis produce CSF immunoglobulin. Journal of neuroimmunology. 2011;233:245–248. doi: 10.1016/j.jneuroim.2011.01.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Freedman MS, et al. Recommended standard of cerebrospinal fluid analysis in the diagnosis of multiple sclerosis: a consensus statement. Archives of neurology. 2005;62:865–870. doi: 10.1001/archneur.62.6.865. [DOI] [PubMed] [Google Scholar]
- 13.Disanto G, Morahan JM, Barnett MH, Giovannoni G, Ramagopalan SV. The evidence for a role of B cells in multiple sclerosis. Neurology. 2012;78:823–832. doi: 10.1212/WNL.0b013e318249f6f0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Baranzini SE, et al. B cell repertoire diversity and clonal expansion in multiple sclerosis brain lesions. Journal of immunology. 1999;163:5133–5144. [PubMed] [Google Scholar]
- 15.Cepok S, et al. Identification of Epstein-Barr virus proteins as putative targets of the immune response in multiple sclerosis. The Journal of clinical investigation. 2005;115:1352–1360. doi: 10.1172/JCI200523661. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Goebels N, et al. Repertoire dynamics of autoreactive T cells in multiple sclerosis patients and healthy subjects: epitope spreading versus clonal persistence. Brain: a journal of neurology. 2000;123(Pt 3):508–518. doi: 10.1093/brain/123.3.508. [DOI] [PubMed] [Google Scholar]
- 17.Palanichamy A, et al. Immunoglobulin class-switched B cells form an active immune axis between CNS and periphery in multiple sclerosis. Science translational medicine. 2014;6:248ra106. doi: 10.1126/scitranslmed.3008930. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Arnaout R, et al. High-resolution description of antibody heavy-chain repertoires in humans. PloS one. 2011;6:e22365. doi: 10.1371/journal.pone.0022365. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Qi Q, et al. Diversity and clonal selection in the human T-cell repertoire. Proceedings of the National Academy of Sciences of the United States of America. 2014;111:13139–13144. doi: 10.1073/pnas.1409155111. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Glanville J, et al. Precise determination of the diversity of a combinatorial antibody library gives insight into the human immunoglobulin repertoire. Proceedings of the National Academy of Sciences of the United States of America. 2009;106:20216–20221. doi: 10.1073/pnas.0909775106. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.DeKosky BJ, et al. In-depth determination and analysis of the human paired heavy- and light-chain antibody repertoire. Nature medicine. 2015;21:86–91. doi: 10.1038/nm.3743. [DOI] [PubMed] [Google Scholar]
- 22.DeKosky BJ, et al. High-throughput sequencing of the paired human immunoglobulin heavy and light chain repertoire. Nature biotechnology. 2013;31:166–169. doi: 10.1038/nbt.2492. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Mathonet P, Ullman CG. The application of next generation sequencing to the understanding of antibody repertoires. Frontiers in immunology. 2013;4:265. doi: 10.3389/fimmu.2013.00265. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.von Budingen HC, et al. B cell exchange across the blood-brain barrier in multiple sclerosis. The Journal of clinical investigation. 2012;122:4533–4543. doi: 10.1172/JCI63842. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Glanville J, et al. Naive antibody gene-segment frequencies are heritable and unaltered by chronic lymphocyte ablation. Proceedings of the National Academy of Sciences of the United States of America. 2011;108:20066–20071. doi: 10.1073/pnas.1107498108. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Benichou J, Ben-Hamo R, Louzoun Y, Efroni S. Rep-Seq: uncovering the immunological repertoire through next-generation sequencing. Immunology. 2012;135:183–191. doi: 10.1111/j.1365-2567.2011.03527.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Robinson WH. Sequencing the functional antibody repertoire–diagnostic and therapeutic discovery. Nature reviews. Rheumatology. 2015;11:171–182. doi: 10.1038/nrrheum.2014.220. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Hu J, Li B, Kihara D. Limitations and potentials of current motif discovery algorithms. Nucleic acids research. 2005;33:4899–4913. doi: 10.1093/nar/gki791. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Pevzner PA, Sze SH. Combinatorial approaches to finding subtle signals in DNA sequences. Proceedings/… International Conference on Intelligent Systems for Molecular Biology; ISMB. International Conference on Intelligent Systems for Molecular Biology. 2000;8:269–278. [PubMed] [Google Scholar]
- 30.Zaslavsky E, Singh M. A combinatorial optimization approach for diverse motif finding applications. Algorithms for molecular biology: AMB. 2006;1:13. doi: 10.1186/1748-7188-1-13. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Lenstra, J. K. Local search in combinatorial optimization. (Princeton University Press, 2003).
- 32.Polman CH, et al. Diagnostic criteria for multiple sclerosis: 2010 revisions to the McDonald criteria. Annals of neurology. 2011;69:292–302. doi: 10.1002/ana.22366. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.D’Angelo S, et al. The antibody mining toolbox: an open source tool for the rapid analysis of antibody repertoires. mAbs. 2014;6:160–172. doi: 10.4161/mabs.27105. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Ye J, Ma N, Madden TL, Ostell JM. IgBLAST: an immunoglobulin variable domain sequence analysis tool. Nucleic acids research. 2013;41:W34–40. doi: 10.1093/nar/gkt382. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Briney BS, Willis JR, Crowe JE., Jr. Location and length distribution of somatic hypermutation-associated DNA insertions and deletions reveals regions of antibody structural plasticity. Genes and immunity. 2012;13:523–529. doi: 10.1038/gene.2012.28. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Wilson PC, et al. Somatic hypermutation introduces insertions and deletions into immunoglobulin V genes. The Journal of experimental medicine. 1998;187:59–70. doi: 10.1084/jem.187.1.59. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Heinz S, et al. Simple combinations of lineage-determining transcription factors prime cis-regulatory elements required for macrophage and B cell identities. Molecular cell. 2010;38:576–589. doi: 10.1016/j.molcel.2010.05.004. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Breiman L. Random Forests. Machine Learning. 2001;45.1:5–32. doi: 10.1023/A:1010933404324. [DOI] [Google Scholar]
- 39.Pedregosa, F. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research 2825–2830 (2011).
- 40.Potter KN, Li Y, Capra JD. Staphylococcal protein A simultaneously interacts with framework region 1, complementarity-determining region 2, and framework region 3 on human VH3-encoded Igs. Journal of immunology. 1996;157:2982–2988. [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.