conLSH: Context based Locality Sensitive Hashing for Mapping of noisy SMRT Reads
Angana Chakraborty, Sanghamitra Bandyopadhyay

TL;DR
This paper introduces conLSH, a novel context-based Locality Sensitive Hashing algorithm designed to efficiently align noisy SMRT sequencing reads to reference genomes, outperforming existing methods in speed and memory usage.
Contribution
The paper presents a new contextual LSH algorithm for noisy read alignment, improving speed and memory efficiency over existing methods like rHAT.
Findings
conLSH reduces processing time by approximately 24.2%.
conLSH decreases peak memory usage by about 70.3%.
The algorithm effectively aligns noisy SMRT reads to reference genomes.
Abstract
Single Molecule Real-Time (SMRT) sequencing is a recent advancement of Next Gen technology developed by Pacific Bio (PacBio). It comes with an explosion of long and noisy reads demanding cutting edge research to get most out of it. To deal with the high error probability of SMRT data, a novel contextual Locality Sensitive Hashing (conLSH) based algorithm is proposed in this article, which can effectively align the noisy SMRT reads to the reference genome. Here, sequences are hashed together based not only on their closeness, but also on similarity of context. The algorithm has space requirement, where is the number of sequences in the corpus and is a constant. The indexing time and querying time are bounded by and respectively, where , is a probability…
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9| Dataset | E.coli | H.sapiens | A.thaliana | S.cerevisiae | O.sativa | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Size(MB) | Time(S) | Size(MB) | Time(S) | Size(MB) | Time(S) | Size(MB) | Time(S) | Size(MB) | Time(S) | |
| conLSH | 1.38 | 0.01 | 724.32 | 49 | 29.87 | 1 | 3.03 | 0.01 | 93.18 | 7 |
| rHAT1 | 290 | 4 | 11755.34 | 785 | 742.84 | 35 | 316.91 | 3 | 1744.08 | 122 |
| rHAT2 | 4317 | 49 | 15806.77 | 1166 | 4770.16 | 115 | 4343.47 | 50 | 5804 | 253 |
| BWA | 9.7 | 8.7 | 4523 | 3904 | 209 | 114.7 | 21.3 | 10.16 | 652.4 | 543.3 |
| Methods | Working Parameters | Time Taken (Sec) | % of Reads Aligned | Peak Memory Footprint (MB) |
|---|---|---|---|---|
| rHAT1 | -l 11, -w 1000, -m 5, -k 13 | 210839 | 99.8 | 14562 |
| rHAT2 | -l 8, -w 1000, -m 5, -k 15 | 667280 | 100 | 15746 |
| conLSH | -l 8, -w 1000, -m 5, - 2, -K 2, -L 1 | 159888 | 99.8 | 4327 |
| BLASR | BWT | 724304 | 99.7 | 8100 |
| BLASR | SA | 848602 | 99.8 | 14700 |
| BWA-MEM | -x PACBIO | 372782 | 99.7 | 5200 |
| BWA-SW | -b 5, -q 2, -r 1, -z 20 | 1145150 | 99.76 | 7100 |
| Dataset | Methods | Working Parameters | Time Taken (Sec) | % of Reads Aligned | Peak Memory Footprint (MB) |
| E.coli_sim | rHAT1 | -l 11, -w 1000, -m 5, -k 13 | 6 | 94.8 | 294 |
| rHAT2 | -l 8, -w 1000, -m 5, -k 15 | 59 | 100 | 4225 | |
| conLSH | -l 8, -w 1000, -m 5, - 2, -K 2, -L 1 | 15 | 100 | 85 | |
| S.cerevisiae_sim | rHAT1 | -l 11, -w 1000, -m 5, -k 13 | 9 | 100 | 326 |
| rHAT2 | -l 8, -w 1000, -m 5, -k 15 | 85 | 100 | 4259 | |
| conLSH | -l 8, -w 1000, -m 5, - 2, -K 2, -L 1 | 45 | 100 | 156 | |
| A.thaliana_sim | rHAT1 | -l 11, -w 1000, -m 5, -k 13 | 89 | 100 | 849 |
| rHAT2 | -l 8, -w 1000, -m 5, -k 15 | 372 | 100 | 4781 | |
| conLSH | -l 8, -w 1000, -m 5, - 2, -K 2, -L 1 | 337 | 99.9 | 574 | |
| D.melanogaster_sim | rHAT1 | -l 11, -w 1000, -m 5, -k 13 | 139 | 100 | 1054 |
| rHAT2 | -l 8, -w 1000, -m 5, -k 15 | 223 | 98 | 4987 | |
| conLSH | -l 8, -w 1000, -m 5, - 2, -K 2, -L 1 | 395 | 99 | 705 |
| Concatenation | Context Size | L | conLSH_indexer | conLSH_aligner | |||
| Factor (K) | Time(s) | Hash_size(MB) | Time(s) | %of Reads Aligned | Peak Memory (MB) | ||
| 2 | 1 | 1 | 46 | 724.32 | 341 | 97.9 | 3811 |
| 2 | 1 | 2 | 57 | 1448.65 | 424 | 95.7 | 4542 |
| 2 | 3 | 1 | 49 | 724.32 | 391 | 98.3 | 3813 |
| 2 | 3 | 2 | 56 | 1448.65 | 390 | 98.4 | 4521 |
| 2 | 5 | 1 | 49 | 724.32 | 444 | 99 | 4327 |
| 2 | 5 | 2 | 55 | 1448.65 | 505 | 99.1 | 5050 |
| 3 | 1 | 1 | 79 | 724.32 | 439 | 99 | 3799 |
| 3 | 1 | 2 | 62 | 1448.65 | 441 | 99.1 | 4518 |
| 3 | 3 | 1 | 49 | 724.32 | 452 | 99.1 | 3932 |
| 3 | 3 | 2 | 58 | 1448.65 | 468 | 99.2 | 4651 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
conLSH: Context based Locality Sensitive Hashing for Mapping of noisy SMRT Reads
Angana Chakraborty
Department of Computer Science, Sister Nibedita Govt. General Degree College for Girls, Kolkata, India
Sanghamitra Bandyopadhyay
Machine Intelligence Unit, Indian Statistical Institute, Kolkata, India
Abstract
Single Molecule Real-Time (SMRT) sequencing is a recent advancement of Next Gen technology developed by Pacific Bio (PacBio). It comes with an explosion of long and noisy reads demanding cutting edge research to get most out of it. To deal with the high error probability of SMRT data, a novel contextual Locality Sensitive Hashing (conLSH) based algorithm is proposed in this article, which can effectively align the noisy SMRT reads to the reference genome. Here, sequences are hashed together based not only on their closeness, but also on similarity of context. The algorithm has space requirement, where is the number of sequences in the corpus and is a constant. The indexing time and querying time are bounded by and respectively, where , is a probability value. This algorithm is particularly useful for retrieving similar sequences, a widely used task in biology. The proposed conLSH based aligner is compared with rHAT, popularly used for aligning SMRT reads, and is found to comprehensively beat it in speed as well as in memory requirements. In particular, it takes approximately less processing time, while saving about in peak memory requirement for H.sapiens PacBio dataset.
Introduction
Locality Sensitive Hashing based algorithms are widely used for finding approximate nearest neighbors with constant error probability. The principle of locality sensitive hashing [1] originated from the idea to hash similar objects into the same or localized slots of the hash table. That is, the probability of collision of a pair of objects is, ideally, proportional to their similarity. The only things that need to be taken care of are the proper selection of hash functions and parameter values. Several hash functions have already been developed, like those for d-dimensional Euclidean space [2], p-stable distribution [3], distance [4], angular similarity [5], etc. Specialized versions of hashing schemes have been applied efficiently in image search [6, 7], multimedia analysis [8, 9], web clustering [10, 11], and active learning [12], etc. LSH based methods are not new to sequential data. They have profound applications in biological sequences, from large scale genomic comparisons [13, 14] to high throughput genome assembly of SMRT reads [15]. However, there are certain scenarios, as in sequential data, where the proximity of a pair of points cannot be captured without considering their surroundings or context. LSH has no mechanism to handle the contexts of the data points. In this article, a novel algorithm named Context based Locality Sensitive Hashing (conLSH) has been proposed to group similar sequences taking into account the contexts in the feature space. Here, the hash value of the th point in the sequence is computed based on the values of the and th strips, when context length is 3. This feature is best illustrated in 1.
Single Molecule Real-Time sequencing technology, developed by PacBio using zero-mode waveguides (ZMW) [16], is able to produce longer reads of length 20KB on average [17]. The increased read length is particularly useful for alignment of repetitive regions during genome assembly [18, 19]. Moreover, SMRT reads possess an inherent capability of detecting DNA methylation and kinetic variations by light pulses [16]. The lowest GC bias of SMRT reads makes them a popular choice for many downstream analysis [20, 21]. However, all these advantages are bundled with one major concern that SMRT reads come with a higher error probability of per base [17]. Unlike second generation of NGS technology, the errors here are mostly indels than mismatches [17]. This is the reason why the state of the art NGS read aligners [22, 23, 24] are not performing well with SMRT data. The speed of SMRT alignment is, in general, slower than traditional NGS reads [25]. The aligners designated for SMRT reads are BWA-SW [26], BLASR [25] and BWA-MEM [27]. All these three methods are based on seed and extension strategy using Burrows Wheel Transformation (BWT). BWA-SW performs suffix trie traversing where BWA-MEM uses exact short token matching for aligning reads to reference genome. BLASR designed a probability based error optimization model to find the alignment. However, these aligners suffer from huge seeding cost to ensure a desired level of sensitivity[28]. An effort has been made to overcome this bottleneck using regional Hash Table (rHAT [28]). The reference window(s) having most kmer matches, as obtained from rHAT index, are considered for extension using Sparse Dynamic Programming (SDP) based alignment. However, rHAT has huge memory footprint (13.70 Gigabytes for H. Sapiens dataset [28]) and produces large index file even with the default parameter setting of k=13. Long SMRT reads facilitate the use of longer seeds for sensitive alignment and repeat resolution [25]. However, the excessive memory requirement restricts rHAT from increasing kmer size. Herein, we propose a novel concept of Context based Locality Sensitive Hashing (conLSH) to align noisy PacBio data effectively within limited memory footprint.
Hashing is a popular approach of indexing objects for fast retrieval. In conLSH, sequences are hashed together if they share similar contexts. The probability of collision of two sequences is proportional to the number of common contexts between them. The contexts play an important role to group sequences having noisy bases like PacBio data. The workflow of indexing reference genome and alignment of SMRT reads using conLSH, is portrayed in the Figure 2. At the indexing phase, the reference genome is virtually split into several overlapping windows. For each window, a set of conLSH values has been computed and stored as a B-Tree index (for details refer Supplementary Note 1) to facilitate logarithmic index search. The aligner hashes the SMRT reads using the same conLSH functions and retrieves the window-list from B-Tree index that resulted into the same hash values as the read. This forms the list of candidate sites for possible alignment after extension. Finally, for each read, the best possible alignment(s) are obtained by Sparse Dynamic Programming (SDP).
The combined hashed value, as shown in Fig. 2, captures contexts from (concatenation factor) different locations, where each context is of size , ( is the context factor, Refer Methods Section). This increases the seed length to resolve repeats and thereby prevents false positive targets. Therefore, even if a kmer is repetitive, conLSH aligner can map it properly with the help of its contexts. The problem occurs when the repeat regions are longer than the reads. However, this is very unlikely due to the increased read length of SMRT data. The number of hash tables (), context factor () and concatenation factor () play an important role to make the aligner work at its best. An increase in and , will make the aligner more selective. Then, should be sufficiently large to ensure that the similar sequences are hashed together in at least one of the hash tables [2]. It may happen that a longer read could not be mapped to the reference genome by an end to end alignment. In that case, conLSH has a provision of chimeric read alignment where a read is split and rehashed to find the candidate sites for each split, and aligned accordingly.
Results
We have conducted exhaustive experiments on both simulated and real PacBio datasets to assess the performance of our proposed conLSH based aligner. The result is demonstrated in three categories: i)Performance on Reference Genome Indexing, ii)Results of SMRT read Alignments and iii)Robustness of conLSH aligner to different parameter settings. Five real (E.coli, A.thaliana, O.sativa, S.cerevisiae, H.sapiens) and four simulated SMRT datasets were used to benchmark the performance of conLSH and four other state-of-the-art aligners, rHAT[28], BLASR[25], BWA-MEM[27] and BWA-SW[26]. A detailed description of the datasets along with their accession link is included in Supplementary Table 1. A brief manual for different working parameters and a Quick Start guide can be found at Supplementary Note 3. The experiment has been conducted on an Intel® Core™ i7-6200U CPU @ 2.30GHz 8(cores), 64-bit machine with 16GB RAM.
Performance on Reference Genome Indexing
Indexing of reference genome is the first step of the pipeline. The index file generated in this phase tries to encompass the pattern lies in the entire genome, which is later used by the aligner to map the reads back to the reference. Table 1 portrays the performance of conLSH-indexer in comparison with two other state-of-the-art methods, rHAT and BWA. BLASR is not listed here, because it works better with BWT-index[25]. We executed rHAT for two different parameter settings, rHAT1 with -l 11, -w 1000, -m 5, -k 13 (default settings) and rHAT2 with -l 8, -w 1000, -m 5, -k 15 (settings similar to conLSH).
It can be observed from Table 1 that conLSH is the fastest one to produce the reference index, and that is too of the least size. conLSH yields a reduction of in index size, while saving of the time for H.sapiens genome, in comparison to rHAT (default). The gain in time and index size attained by conLSH increases for rHAT2. BWA, on the other hand, produces indexes of size smaller than that of rHAT, but at the cost of time.
Results of SMRT Read Alignments
We have used the PacBio P5/C3 release datasets respectively from H.sapiens, E.coli, S.cerevisiae, A.thaliana and O.sativa (Please refer Supplementary Table 1 for details) genomes to extensively study the performance of proposed conLSH-aligner for noisy and long SMRT reads. Table 2 summarizes the results for H.sapiens dataset by conLSH, rHAT, BWA-MEM, BWA-SW and BLASR, in terms of time taken, percentage of the reads aligned and the peak memory footprint. The working parameters of BWA-MEM, BWA-SW and BLASR, as found to be appropriate[28] for PacBio data, is mentioned in the table. conLSH operating at a default settings of -l 8, -w 1000, -m 5, - 2, -K 2, -L 1, generates patterns of length 16 (context size==5 and concatenation factor (K)=2) assuming a gap of 3 bases between the contexts. To make rHAT comparable with conLSH, a settings (rHAT2) with longer kmer (-k 15) has been used rather than the default kmer size of 13 (rHAT1).
Table 2 shows that conLSH aligns reads of the real H.sapiens dataset in least time, producing a time gain of and over rHAT1 and rHAT2 respectively. The smallest run-time memory requirement of 4.3GB, which is less than that of rHAT1, makes conLSH an attractive choice as SMRT aligner. The longer PacBio reads provide better repeat resolution by facilitating larger kmer match. However, the huge memory requirement of 15.7GB, even at a kmer size of 15, makes rHAT infeasible to work with longer stretches. Though, BWA-MEM , BWA-SW and BLASR yields lesser memory footprint in comparison to rHAT, the performance is limited by the alignment speed. A similar scenario is reflected in Figure 3, when studied with other PacBio datasets of E.coli, S.cerevisiae, A.thaliana and O.sativa. conLSH has been found to consistently outperform the state-of-the-art methods in terms of memory consumption, while maintains a high throughput at the same time.
Alignment on Simulated Datasets
In this section for simulated datasets, we have restricted our study to rHAT and conLSH only, as rHAT has been found to work better[28] than BWA and BLASR in terms of alignment speed and quality for SMRT reads. We used four different simulated datasets, E.coli, S,cerevisiae, A.thaliana and D.melanogaster, originally generated to test the performance of rHAT[28] using PBSim[29] with 1x coverage having average read length of 8000bp and 15% error probability (12% insertions, 2% deletions and 1% substitutions) resembling the PacBio P5/C3 dataset (Please refer Supplementary Table 1 for details).
The Table 3 describes the performance of rHAT1 (default settings), rHAT2 (settings similar to conLSH) in comparison with the proposed conLSH-aligner for simulated datasets. It is evident that conLSH has the lowest memory footprint for all the datasets. With similar kmer size, rHAT2 consumes more space, on average, than conLSH. The speed of rHAT aligner is achieved at the cost of huge memory requirement. The exhaustive hashing makes the search faster, but increases the index size. In spite of that, conLSH works faster than rHAT2 for most of the datasets, as can be seen from Table 3, except D.melanogaster. Though, rHAT1 works reasonably good in terms of memory footprint and alignment speed for these simulated datasets, it fails to take the advantage of longer SMRT reads due to the small size of kmers. An exhaustive study on simulated datasets for different working parameters of conLSH can be found at Supplementary Table 2.
0.0.1 Quality of Alignment
To assess the quality of the alignments, we have conducted an experiment to measure the number of reads aligned consecutively by the respective aligners. Figure 4 plots the % reads aligned with a specific amount of continuity for real H.sapiens and D.melanogaster datasets. It can be observed that conLSH has of the aligned reads with -consecutiveness. The amount is almost similar for rHAT and gradually decreases for BWA-MEM, BLASR and BWA-SW. This this due to the fact that after shortlisting the target sites for read mapping, conLSH adopts the same procedure of window expansion and SDP based alignment as done by rHAT. This makes the alignment quality of rHAT and conLSH quite similar, which is reflected in Figure 4.
Study of Robustness for different parameter values
To assess robustness of the proposed method, we have studied the performance of conLSH for different working parameters. The result of conLSH indexer and aligner on subread_m130928_232712_42213 of Human genome for different values of concatenation factor (), context size () and number of hash tables (), are comprehensively reported in Table 4. It is clear that the size of the reference index is directly proportional with the number of hash tables (). The parameters and , on the other hand, decide the kmer size for pattern matching and therefore, have a strong correlation with the memory footprint of the aligner. The parameters, and together control the size of the BTree index in memory for storing the hash values and the corresponding window lists. An increase in and makes the aligner more selective in finding the target sites and consequently, increases the sensitivity. To ensure a desired level of throughput, should be sufficiently large so that the similar sequences are hashed together into at least one of the hash tables. Maintaining a trade-off between the memory footprint and throughput, a settings of has been chosen as the default (marked as bold in Table 4). However, it is needless to mention that the performance of conLSH does not change severely with the change of parameters. Please note that, with , the context size becomes 1 and the algorithm works as normal LSH based method without looking for any contexts to match. It can be concluded from Table 4 that for a particular value of and , an increase in the context size enhances the sensitivity of the aligned reads as well as the throughput of the aligner. A similar study with different working parameters for four other real datasets has been included in Supplementary Table 3.
Discussion
In this article, we have conceived the idea of context based locality sensitive hashing and deployed it to align noisy and long SMRT reads. The strategy of grouping sequences based on their contextual similarity not only makes the aligner work faster, but also enhances the sensitivity of the alignment. The result is evident from the experimental study on different real and simulated datasets. It has been observed that larger seeds are helpful for aligning noisy and repetitive sequences [25]. The combined hash value, as obtained from the contexts of different locations of the sequence stream, makes conLSH work more accurately in comparison to rHAT, a recently developed state-of-the-art method. Having a 32-bit hash value, the maximum possible kmer size of rHAT is 16 (as, ). The PointerList of rHAT stores links to all possible hash values incurring a huge memory cost. As a result, rHAT has a memory requirement of 13.7GB and 17.48GB with kmer size of 13 and 15 respectively for H.sapiens dataset. The exponential growth of RAM space with the increase of kmer size prohibits rHAT from using larger seeds. Moreover, rHAT generates 256 auxiliary files during indexing of reference genomes. This huge space constraint restricted the utility of rHAT and demanded for a fast as well as memory efficient solution. conLSH is an effort in this direction. It efficiently reduces the search space by storing the hash values and the corresponding window lists dynamically on demand. B-tree index of the proposed aligner also facilitates efficient disk retrieval for huge genome, if could not be accommodated in memory. The selection of context size () adds extra flexibility to the aligner. An increase in and increases the seed size and makes the aligner more sensitive. This mode of operation is specially suitable for aligning repetitive stretches. Therefore, conLSH can serve as a drop-in replacement for current SMRT aligners.
conLSH also has some limitations to mention. The Sparse Dynamic Programming (SDP) based heuristic alignment is time consuming and may lead to false positive alignments [28]. As we have inherited the SDP based target site alignment from rHAT, the shortcomings of it are also there in conLSH. Though, the default parameter settings work reasonably good for most of the datasets studied, conLSH requires a understanding of context factor and LSH parameters in order to be able to use it. We have future plan to automate the parameter selection phase of the algorithm by studying the sequence distribution of the dataset. conLSH can be further enhanced by incorporating parallelization taking into account of the quality scores of the reads.
Methods
Nearest neighbor search is a classical problem of pattern analysis, where the task is to find the point nearest to a query from a collection of -dimensional data points. A less stringent version of exact nearest neighbor search is to find the -nearest neighbors, in which the algorithm finds all the neighbors within a certain distance of the query. It can be formally defined as follows:
**
Definition 1**.**
-Nearest Neighbor Search: [2]
Given a set of points = in -dimensional space and a query point , it reports all the points from the set which are at most distance away from , where .
Due to the “Curse of Dimensionality” the performance of most of the partitioning based algorithms, like kd-trees, degrades for higher dimensional data. However, there are few exceptions [30] where the authors have shown good results with priority search k-means tree based algorithm. A solution to this problem is approximate nearest neighbor search. These approximate algorithms return, with some probability, all points from the dataset which are at most times distance away from the query object. The standard definition of -approximate nearest neighbor search is:
**
Definition 2**.**
-approximate -near Neighbor Search: [2]
Given a set of points = in -dimensional space and a query point , it reports all the points from the set where with probability , , provided that there exists an -near neighbor of in , where and .
The advantage of using approximate algorithms is that they work very fast and the reported approximate neighbors are almost as good as the exact ones [2]. Locality Sensitive Hashing based approximate search algorithms are very popular for high dimensional data. LSH works on the principle that the probability of collision of two objects is proportional to their similarity. Therefore, after hashing all the points in the dataset, similar points will be clustered in the same or localized slots of the hash tables. LSH is defined as: [1]
Definition 3**.**
Locality Sensitive Hashing:
A family of hash functions is called -sensitive if
- •
if , then
- •
if , then , where, .
We have proposed the following definitions and theories to develop the framework of Context based Locality Sensitive Hashing(conLSH).
Definition 4**.**
Context based Locality Sensitive Hashing (conLSH):
A family of hash functions is defined as where the additional dimension denotes the context factor. is called -sensitive if
- •
if , then
- •
if , then , where, .
Here is the context based locality sensitive hash function and is the point associated with a context of size , where is the context factor. Let and are two sequences on which conLSH is being applied. Then, is actually a composition of standard LSH functions as defined below:
Definition 5**.**
:
, where .
From now onwards, the context based LSH function is shortened as . In the next subsection, we introduce the and parameter values in connection with the concatenation of hash functions to amplify the gap between and .
0.1 Gap Amplification
As the gap between the probability values and is very small, several locality sensitive hash functions are usually concatenated to obtain the desired probability of collision. This process of concatenation of hash functions to increase the gap is termed as “gap amplification”. Let there be hash functions, , such that is the concatenation of randomly chosen hash functions like, for . Therefore, the probability that is at least . Each point, , from the database is placed into the proper slots of the hash tables using the values respectively. Later when the query, comes, we search though the buckets .
Note that larger values of lead to larger gap between the LSH probabilities. As a consequence, the hash functions become more conservative in estimating the similarity between points. In that case, should be large enough to ensure that similar points collide with the query at least once. The context factor should also be chosen carefully because if it is too large it will overestimate the context, thereby making hash functions more stringent. A detailed theoretical discussion on the choice of the parameters and is included in Supplementary Note 2.
0.2 Algorithm and Analysis
Space Complexity
The space consumed by the algorithm is dominated by the hash tables and the data stored in it. Let there be a total of reads to be placed into different hash tables. Therefore, the space requirement is =
=, See Supplementary Note 2.
==
**Indexing Time:
**For each sequence, different hash values are computed for hash tables. Each hash function is composed of unit hash functions. Therefore, the time required to map a single read to its suitable positions in different hash tables is
Therefore, the total time requirement for sequences is
=, See Supplementary Note 2
==
**Query Time:
**The search for target windows from the sequences that are hashed together with the query, is usually stopped after reporting candidates. This ensures a reasonably good result with constant error probability[1]. In this case, the query time is bounded by =. However, if all the collided strings are checked, the query time can be as high as in the worst case. But, for many real data sets, the algorithm results in sublinear query time with proper selection of the parameter values [2].
Author contributions statement
A.C. conceived the idea, carried out the work, wrote the main text, prepared the Figures and the software tool for conLSH. S.B. planned the work, provided laboratory facilities and wrote the manuscript. Both authors reviewed the manuscript.
Additional information
Competing financial interests: The authors declare no competing financial interests.
Acknowledgment
SB acknowledges JC Bose Fellowship Grant No. SB/SJ/JCB-033/201.6 dated 01/02/2017 of DST, Govt. of India and DBT funded project Multi-dimensional Research to Enable Systems Medicine: Acceleration Using a Cluster Approach for partially supporting the study. A part of this work was done when SB was visiting ICTP, Trieste, Italy.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Indyk, P. & Motwani, R. Approximate nearest neighbors: towards removing the curse of dimensionality. In Proceedings of the thirtieth annual ACM symposium on Theory of computing , 604–613 (ACM, 1998).
- 2[2] Andoni, A. & Indyk, P. Near-optimal hashing algorithms for approximate nearest neighbor in high dimensions. In Communications of the ACM - 50th anniversary issue , 117–122 (ACM, 2008).
- 3[3] Datar, M., Immorlica, N., Indyk, P. & Mirrokni, V. S. Locality-sensitive hashing scheme based on p-stable distributions. In Proceedings of the twentieth annual symposium on Computational geometry , 253–262 (ACM, 2004).
- 4[4] Gorisse, D., Cord, M. & Precioso, F. Locality-sensitive hashing for chi 2 distance. \Journal Title Pattern Analysis and Machine Intelligence, IEEE Transactions on 34 , 402–409 (2012).
- 5[5] Ji, J. et al. Batch-orthogonal locality-sensitive hashing for angular similarity. \Journal Title Pattern Analysis and Machine Intelligence, IEEE Transactions on 36 , 1963–1974 (2014).
- 6[6] Ke, Y., Sukthankar, R. & Huston, L. Efficient near-duplicate detection and sub-image retrieval. In ACM Multimedia , vol. 4, 5 (2004).
- 7[7] Xia, H., Wu, P., Hoi, S. C. & Jin, R. Boosting multi-kernel locality-sensitive hashing for scalable image retrieval. In Proceedings of the 35th international ACM SIGIR conference on Research and development in information retrieval , 55–64 (ACM, 2012).
- 8[8] Ryynanen, M. & Klapuri, A. Query by humming of midi and audio using locality sensitive hashing. In Acoustics, Speech and Signal Processing, 2008. ICASSP 2008. IEEE International Conference on , 2249–2252 (IEEE, 2008).
