<!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>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Using Sequence Ensembles for Seeding Alignments of MinION Sequencing Data</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Rastislav Rabatin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bronˇa Brejová</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tomáš Vinarˇ</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Mathematics</institution>
          ,
          <addr-line>Physics and Informatics</addr-line>
          ,
          <institution>Comenius University</institution>
          ,
          <addr-line>Mlynská dolina, 842 48 Bratislava</addr-line>
          ,
          <country country="SK">Slovakia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <volume>1885</volume>
      <fpage>48</fpage>
      <lpage>54</lpage>
      <abstract>
        <p>Sequence similarity search is in bioinformatics often solved by seed-and-extend heuristics: we first locate short exact matches (hits) by hashing or other efficient indexing techniques and then extend these hits to longer sequence alignments. Such approaches are effective at finding very similar sequences, but they quickly loose sensitivity when trying to locate weaker similarities. In this paper, we develop seeding strategies for data from MinION DNA sequencer. This recent technology produces sequencing reads which are prone to high error rates of up to 30%. Since most of these errors are insertions or deletions, it is difficult to adapt seed-and-extend algorithms to this type of data. We propose to represent each read by an ensemble of sequences sampled from a probabilistic model, instead of a single sequence. Using this extended representation, we were able to design a seeding strategy with 99.9% sensitivity and very low false positive rate. Our technique can be used to locate the part of the genome corresponding to a particular read, or even to find overlaps between pairs of reads.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Sequence alignment is one of the basic problems in
bioinformatics. The goal is to find regions of sequence
similarity between two sequences (usually DNA sequences
or proteins) or between a query sequence and a large
sequence database. Although the highest scoring alignment
can be found by a simple dynamic programming algorithm
        <xref ref-type="bibr" rid="ref18">(Smith and Waterman, 1981)</xref>
        , its quadratic running time
is too slow for large databases. Most sequence alignment
tools therefore follow the seed-and-extend paradigm,
wellknown from BLAST
        <xref ref-type="bibr" rid="ref7">(Altschul et al., 1990)</xref>
        . The first step
is to build an index of one of the sequences, and then use
it to efficiently identify short substrings that occur in both
sequences. Each such short exact match, called hit, forms
a seed of a potential alignment. In the extension phase,
sequences surrounding each hit are inspected, and the hit is
extended to a full alignment, or discarded, if no high
scoring alignment can be found. The sensitivity of such an
approach depends largely on how likely it is for a real
alignment to contain a hit. Without the hit, the extension phase
is never triggered, and the alignment cannot be identified.
On the other hand, the running time depends mainly on
how many false hits will trigger unnecessary extensions.
      </p>
      <p>
        The original BLAST
        <xref ref-type="bibr" rid="ref7">(Altschul et al., 1990)</xref>
        used 11
consecutive matches as a seed. Consecutive matches of a fixed
length are very easy to index by standard hashing
techniques. Several other more complex seeding strategies are
used in modern alignment tools
        <xref ref-type="bibr" rid="ref5">(Brown, 2008)</xref>
        .
      </p>
      <p>
        In this work, we consider read mapping, which is a
specific alignment task, where the query sequence is a read
produced by a DNA sequencing machine, and the database
consists of the known reference genome of the same or
very closely related organism to the one we are
sequencing. The goal is to find the region of the reference genome
from which a particular sequencing read was obtained.
This task is relatively simple for DNA sequencing
technologies with low error rates, because we are looking for
almost exact matches between the reads and the reference
genome; the goal is to map a large number of reads as
quickly as possible. However, in this paper we consider
reads produced by MinION sequencer
        <xref ref-type="bibr" rid="ref10">(Ip et al., 2015)</xref>
        ,
which can have up to 30% error rate, and thus pose a
challenge for read mappers. The main advantages of the
MinION sequencing device are its small size and portability,
and its ability to sequence very long reads (reads as long
as 100 kbp were reported).
      </p>
      <p>In this paper, we explore the use of simple seeding
strategies for mapping MinION reads to the reference
sequence. Instead of a single read sequence as a query, we
propose to use an ensemble of sequences sampled from a
hidden Markov model used for base calling. With such
an ensemble of sequences representing alternative
predictions of the true read sequence, we were able to achieve
very high sensitivity and a very small number of false hits
using a relatively simple alignment seeding strategy.</p>
      <p>To sequence DNA, MinION uses measurements of
electric current as a single-stranded fragment of DNA passes
through a nanopore. The electric current depends mostly
on the context of k bases of DNA passing through the pore
at the time of the measurement. As the DNA fragment
moves through the pore, this context changes and
measurements change accordingly.</p>
      <p>The raw measurements are processed by MinKnow
software from Oxford Nanopore. MinKnow first splits raw
measurements into events, where each event would
ideally correspond to a single-base shift of the DNA through
the pore. Each event is characterized by the mean and the
variance of the corresponding raw measurements. This
sequence of events is then uploaded to a cloud-based service
Metrichor for base calling.</p>
      <p>
        The exact details of the algorithms behind MinKnow
and Metrichor are not disclosed by Oxford Nanopore.
However, the whole process is naturally modelled by a
hidden Markov model (HMM) (Durbin et al., 1998,
Chapter 3) with hidden states corresponding to k-mers of the
underlying DNA sequence and observations representing
the mean value of the current in each event. In fact, data
provided by Oxford Nanopore include parameters of such
a model. Open-source base caller Nanocall based on this
idea was recently implemented by
        <xref ref-type="bibr" rid="ref8">David et al. (2016)</xref>
        ,
with accuracy similar to Metrichor. To decode a sequence
of observations, Nanocall uses the standard Viterbi
algorithm
        <xref ref-type="bibr" rid="ref21">(Viterbi, 1967)</xref>
        for finding the most probable state
path. Another open-source base caller DeepNano is based
on recurrent neural networks (
        <xref ref-type="bibr" rid="ref3">Boža et al., 2016</xref>
        ).
      </p>
      <p>
        Base calls produced by the Viterbi algorithm contain
many errors (David et al., 2016;
        <xref ref-type="bibr" rid="ref3">Boža et al., 2016</xref>
        ); a
typical error rate would be around 30%, dominated mostly by
insertions and deletions. Currently, two general-purpose
aligners are used in the community to map MinION reads:
BWA-MEM
        <xref ref-type="bibr" rid="ref12">(Li and Durbin, 2010)</xref>
        , and LAST
        <xref ref-type="bibr" rid="ref11">(Kielbasa
et al., 2011)</xref>
        . Both of these tools follow the
seed-andextend paradigm, but they use variable seed lengths,
indexed with FM-index
        <xref ref-type="bibr" rid="ref9">(Ferragina and Manzini, 2000)</xref>
        or
suffix arrays
        <xref ref-type="bibr" rid="ref14">(Manber and Myers, 1993)</xref>
        . By extending
seeds to the point of only a few occurrences, one can avoid
most costly false positives. The adjustments for MinION
reads in case of BWA-MEM and LAST include lowering
the minimum length of a seed to be considered as a valid
hit, and changes that make the extension phase less
stringent. GraphMap tool
        <xref ref-type="bibr" rid="ref16 ref19">(Sovic et al., 2016)</xref>
        , specifically
targeting MinION data, uses seeds allowing insertions and
deletions in the context of a complex multi-step algorithm
that goes well beyond a simple seed-and-extend
framework.
      </p>
      <p>
        All of these tools consider Metrichor base calls,
equivalent to the most probable state path in the HMM, as the
query sequence. Our approach to the challenges imposed
by MinION reads is to use an ensemble of sub-optimal
sequences instead of a single DNA sequence. To this end,
we have implemented a sampling algorithm that can
generate samples from the posterior distribution of state paths
in an HMM given the sequence of observations (see, e.g.
        <xref ref-type="bibr" rid="ref6">Cawley and Pachter (2003)</xref>
        ). We adapt common seeding
strategies to such ensembles of sequences and show that
on real data we can find a seed that is easy to index, 99.9%
sensitive, and yields only a small number of false positives
that would trigger extension phase unnecessarily.
      </p>
      <p>
        Sampling of suboptimal MinION base calls was also
considered by
        <xref ref-type="bibr" rid="ref20">Szalay and Golovchenko (2015)</xref>
        . They
use sampling from the base calling HMM to arrive at the
correct consensus sequence for an alignment of multiple
reads. Due to the nature of errors in MinION reads and
availability of a reasonable probabilistic model, we
consider sampling strategies to be a promising alternative in
many applications of MinION.
2
      </p>
      <p>
        HMM for Sampling MinION Base Calls
Both Oxford Nanopore Metrichor base caller and recently
released open-source base caller Nanocall
        <xref ref-type="bibr" rid="ref16 ref8">(David et al.,
2016)</xref>
        use hidden Markov models. Briefly, each hidden
state of the HMM represents one k-mer passing through
the pore, and the emission of the state is the value of the
electric current. Actual measurements of the current
provided by the device with high sampling rate are segmented
by the MinKnow software into discrete events, each
corresponding to the shift of the DNA sequence through the
pore by a single base. The base callers then use the HMM
to obtain the sequence of hidden states given the sequence
of events from the MinION read.
      </p>
      <p>Definition of the model. Our HMM follows the same
general idea. The set of states of our HMM is composed of
all 4k possible k-mers (we denote state for a k-mer x by
Sx) and the starting state S0. Different versions of
MinION use different values of k; in our experiments we have
used a data set with k = 5, while the newer chemistry uses
k = 6.</p>
      <p>Emission of state Sx is represented as a continuous
random variable. The probability of observing a measurement
e for a k-mer x is given as</p>
      <p>Pr(e | x) ∼ N (scale · μx + shift, σx · var),
(1)
where N (μ, σ ) is the normal distribution with mean μ
and standard deviation σ . Parameters μx, σx (specific for
each version of the chemistry and each k-mer x), and scale,
shift, var (scaling parameters specific for each read) are
provided by Oxford Nanopore and can be obtained from
the FAST5 file containing each read. Starting state S0 is
silent.</p>
      <p>
        Under ideal conditions, each event corresponds to a shift
by a single base in the DNA sequence. This corresponds
to four outgoing transitions from each state Sx to state Sy,
where x and y overlap by exactly k − 1 bases (i.e., SAACTG
has transitions to states SACTGA, SACTGC, SACTGG, and
SACTGT). This organization closely resembles de Bruijn
graphs commonly used in sequence assembly
        <xref ref-type="bibr" rid="ref15">(Pevzner
et al., 2001)</xref>
        . All four transitions have an equal
probability. From the starting state S0, we have a transition to each
possible Sx with equal probability 1/4k.
      </p>
      <p>Segmentation of raw measurements into events is
known to be error prone. In particular, two events with
similar measurements can be fused together, or a single
event can be split artificially into multiple events. Thus
the assumption that each event corresponds to a
singlenucleotide shift is unrealistic. To account for this fact, we
have introduced additional transitions to our model.</p>
      <p>First, we have added a self-transition (so called split
transition) to each state, which models splitting of a single
true event into multiple predicted events. Second, we have
also added so called skip transitions between all pairs of
states Sx and Sy, which correspond to shifts of the k-mer
by up to k bases instead of one.</p>
      <p>
        The transition probabilities for split and skip transitions
are not provided by MinION. We have estimated these
parameters directly from the data, as outlined in Section
3. Alternatively, we could employ a more elaborate error
model for Oxford Nanopore event segmentation process.
Inference in the model. A traditional way of decoding
HMMs is by finding the most probable sequence of states
by the Viterbi algorithm
        <xref ref-type="bibr" rid="ref21">(Viterbi, 1967)</xref>
        , which is the
approach taken both by Metrichor and Nanocall. The
resulting sequence of states (which is, in fact, a sequence of
k-mers corresponding to individual events) can be
translated into the DNA sequence. In most cases, the
neighbouring k-mers in the sequence should be shifted by one,
and thus each state in the sequence introduces one
additional base of the DNA sequence. However, split and skip
transitions may introduce between 0 and k bases for each
event. In these cases, the result is not necessarily unique:
for example state sequence SACTCTCSCTCTCA could
correspond to one of the sequences ACTCTCA, ACTCTCTCA,
ACTCTCTCTCA, or even ACTCTCCTCTCA. We have
decided to adopt the shortest possible interpretation, as is
done in Nanocall.
      </p>
      <p>
        Since the base calls produced by the Viterbi algorithm
contain many errors, we have decided to explore the use
of an ensemble of alternative sequences instead of a
single base call sequence. To this end, we have implemented
the stochastic traceback algorithm (see, e.g.
        <xref ref-type="bibr" rid="ref6">Cawley and
Pachter (2003)</xref>
        ) to generate samples from the posterior
distribution of state paths given the sequence of observations.
      </p>
      <p>
        Briefly, for a given sequence of observations e1e2 . . . en,
the algorithm starts by computing forward probabilities,
where F(i, s) is the probability of generating firsti
observations e1e2 . . . ei, and ending in state s
        <xref ref-type="bibr" rid="ref17">(Rabiner, 1989)</xref>
        .
The last state sn of the path is sampled proportionally to
the probabilities F(n, sn). When state sn is fixed, we can
sample state sn−1 proportionally to F(n − 1, sn−1) · tsn−1,sn ,
where ts,s0 is the transition probability from state s to state
s0. This can be continued, until we sample the complete
path s1 . . . sn. The running time of the algorithm is O(nm2),
where n is the length of the sequence and m is the number
of states. Forward probabilities need to be computed only
once if multiple samples are required for the same read.
      </p>
      <p>Figure 1 illustrates typical differences between
individual samples. Note that the samples are almost identical in
some regions, but these high-confidence regions are
interspersed by regions with very high uncertainty. This is a
typical pattern for MinION data.
3</p>
    </sec>
    <sec id="sec-2">
      <title>Experiments</title>
      <p>Our goal is to consider various seeding strategies for
seedand-extend algorithms. As discussed in Section 1, a
typical seed-and-extend algorithm first uses an index structure
to locate hits between the query sequence and the target.</p>
      <p>
        For example, the most basic BLAST strategy looks for
exact matches of length 11
        <xref ref-type="bibr" rid="ref7">(Altschul et al., 1990)</xref>
        . It then
tries to extend each cluster of hits to a full alignment. The
extension phase usually involves dynamic programming
and is therefore time consuming.
      </p>
      <p>The seed-and-extend algorithms cannot locate
alignments that do not contain a hit of the seed between the
query and the target sequence. We call these alignments
false negatives. Note that even a single hit is often
sufficient to locate the whole alignment, depending on the
particular extension strategy. On the other hand, spurious hits
between random locations can also trigger extension. We
call such spurious hits false positives. Unsuccessful
extension of spurious hits often dominates the running time
of the alignment algorithm, and consequently, we need to
minimize the number of false positives.</p>
      <p>In this section, we concentrate on the evaluation of a
trade-off between false positives and false negatives for a
variety of seeding strategies. We start from simple
strategies, e.g. k consecutive exact matches between the
reference sequence and the Viterbi base call, and we also
propose several novel seeding strategies using the sampling
framework and multiple hit requirement that greatly
improve the trade-off.</p>
      <p>Data preprocessing and model training. To evaluate
seeding strategies, we use a data set composed of real
sequencing reads from the model bacteria E. coli (strain MG1655)
with accession number ERR968968 produced by the Cold
Spring Harbor Laboratory by using MinION sequencer
with SQK-MAP005 kit. For simplicity, we have only
considered template reads (complement reads from the reverse
strand use different model parameters).</p>
      <p>
        Some of the MinION reads are of very low quality and
consequently it is impossible to map them to the reference
sequence even with the most sensitive tools available. To
filter out these low quality reads, we have mapped
Metrichor base calls to the reference genome by BWA-MEM
        <xref ref-type="bibr" rid="ref12">(Li
and Durbin, 2010)</xref>
        with -x ont2d parameters optimized
for mapping Oxford Nanopore reads. The reads that did
not map to the reference at all were discarded. We also
discarded reads where Metrichor predicted skips in the event
sequence longer than two. From the original 27,073 reads,
we were left with 25,162 reads.
      </p>
      <p>From these reads, we have randomly selected a training
set (693 reads) and a testing set (307 reads). The training
set was used to estimate the transition probabilities in our
HMM. In particular, we set the probability of each
transition to be proportional to the number of times the transition
was observed in the training data set. We added
pseudocount of 1 to avoid zero transition probabilities for rare
transitions.</p>
      <p>Preparing testing data. For each sequence in the testing
set, we have produced a Viterbi base call and 250
samples from the posterior distribution as outlined in Section
2. Figure 2 shows comparison of sequence identities of
individual base calls to the reference genome. Note that our
Viterbi base calls are not too different from Metrichor base
vit
sample0
sample1
sample2
sample3
vit
sample0
sample1
sample2
sample3</p>
      <p>
        CTTC−AAGCG TCTT−T−CAG −CCATTTCTT TTATTTCTCT TCTT−C−GTT GCCGTGCGTC GC−A−G−CGA
GGTC−AAGCG TCTT−T−CAG −CCATTTCTT TTGGTCTC−T TC−TTCGT−T GCCGTGCGTC CC−G−AGGCA
CTTC−GGGG− TCGTGTTCAG −CCATTTCTT TTGGTCTC−T TC−TTC−GTT GCCGTGCGTC GG−GAAGCGG
CTTC−CCTCG TGTG−TTCAG CC−ATTTCTT TTATTTCTCT TC−TTC−GTT GCCGTGCGTT GGCA−G−CAA
GGTCAA−GCG TGTG−TTCAG CC−ATTTCTT TTGGTCTG−G TCTT−C−GTT GCCGTGCGTC GC−A−G−CGA
−CCCA−G−AC GT−TCGTC−G TCAAGGCGTA G−AGGCTGTC −CAGGAAGTT ATCCGAAAGC TGCTGTGCTT
ATAGC−AGTA GGTTCGTC−T TCAG−GCGTG GCAC−AATTT −AAGGAAGTT ATCCGAAAGC TGCTGTGCTG
−GTGAAG−AC −GTTCATTTG TCGAACAGTG GCAC−AGTGT CCAGGAAGTT ATCCGAAAGC TGCTGTGCTG
−C−CA−G−AC −GTTCGTC−T TCGA−CAGTG GCTA−GATTT −AAGGAAGTT ATCCGAAATA TGCTGTGCTT
−CCCA−G−AC −GTTCGTC−G TCGAACAGTG GCAC−AATTT −AAGGAAATT ATCCGAAAGC TGCTGTGCTT
calls; slight decrease in the quality of calls is expected due
to simplicity of the model we have used (the decrease in
the sequence identity is similar to that observed by
        <xref ref-type="bibr" rid="ref8">David
et al. (2016)</xref>
        ). Sampled sequences have in general lower
sequence identity than the Viterbi base call, as can be
expected, since they correspond to sub-optimal paths through
the model. However, the difference from the Viterbi base
call identities is not very high.
      </p>
      <p>Experimental setup and evaluation. To evaluate
application of various seeding strategies in MinION data, we have
split the reads into windows, each corresponding to 500
events. These windows represent our query sequences.</p>
      <p>For each window we have an alignment of all samples and
the Viterbi base call. This alignment was based on event
boundaries: we have padded all sequences generated for
one event in individual samples by gap symbols so that
they have the same length (see also Figure 1).</p>
      <p>
        The Viterbi base call sequence from each
window was aligned to the reference genome by LAST
software
        <xref ref-type="bibr" rid="ref11">(Kielbasa et al., 2011)</xref>
        with parameters
-q 1 -a 1 -b 1 -T 1. We have kept only those
windows that aligned to a unique place in the genome, and
the alignment covered the entire length of the window.
      </p>
      <p>After this step, we were left with 3192 windows out of
4948. A randomly chosen subset of 143 windows was
used as a validation set for exploring various seeding
strategies, and the remaining 3049 windows were used for
final testing. The region of the reference covered by the
alignment to the window is considered to be the only true
alignment of the window to the reference sequence.</p>
      <p>When testing a seeding strategy, we locate hits of a
particular seed in both the query window and the reference
sequence. We represent each hit by the coordinates of the
left endpoints of the hit in the query window and in the
reference. The seed hit is considered to be valid, if the
endpoint in the reference is within the region covered by
the alignment of this particular window and on the correct
strand of DNA. The entire window of a read is considered
to be a true positive (TP), if it contains at least one valid
hit; we assume that the extension algorithm would be able
to recover the alignment within this window starting from
this hit. The sensitivity (Sn) of the seeding strategy is the
number of true positives divided by the total number of
windows.</p>
      <p>Many seed hits are invalid, and they contribute to the
false positive rate. Often we see clusters of hits with very
similar coordinates in both reference and the query
window. Presumably the extension algorithm would be called
only once for each such cluster. Therefore, we compute
the number of false positives by greedily selecting one hit
from each cluster so that each hit in the cluster differs in
both coordinates by at most 10 from the selected hit.
Simple seeding strategies. The simplest seeding strategy
is to consider k consecutive exact matches as a hit. The
traditional approach would create an index of all k-mers in
the reference genome and then scan all k-mers in the query
windows. Each cluster of matching k-mers would trigger
the extension phase.</p>
      <p>For example, if we consider the Viterbi base calls and
use 13 exact consecutive matches as a seed, we will be
able to map 98.8% windows to the correct region of the
reference (see Fig. 3), but we will also incur a substantial
number of false positives (more than 240,000 or about 80
per each query window).</p>
      <p>Our strategy of using sampling instead of Viterbi base
calls works as follows. In the basic version of our
approach (see t = 1 in Fig. 3), we consider k-mers from n
different samples from the given window. Each k-mer can
potentially form the seed triggering the extension phase of
the alignment. To match the sensitivity of the Viterbi base
calls for k = 13, we need only n = 3 samples. One
advantage of our approach is that we can increase the sensitivity
by increasing the number of samples n. For example with
8 samples we reach 99.9% sensitivity and with 14 samples
100% sensitivity. The cost for this very high sensitivity
is a high false positive rate; even with 3 samples we have
about 2.6× more false positives than the Viterbi.</p>
      <p>To improve the false positive rate, we use a simple
prefiltering step: at each position in the window we consider
only those k-mers that appear in at least t different
samples. Assuming that the true sequence has a high posterior
probability in the model, we expect that it will occur in
many samples, whereas most other variants would occur
rarely and thus be filtered out. Indeed, for t = 4 we can
reach the sensitivity of the Viterbi algorithm with about
20% reduction in the false positive rate, using n = 25
samples. Performance for other values of n and t can be found
in Figure 3.</p>
      <p>
        Multiple seed hits to trigger extension. We have also
considered a more complex seeding strategy, where we first
find matching 10-mers, and then we join them intochains
of length 3. This technique has previously proved to be
very effective for regular alignment tasks
        <xref ref-type="bibr" rid="ref2">(Altschul et al.,
1997)</xref>
        .
      </p>
      <p>Matching 10-mers in the chain are required to have
increasing coordinates in both the read and the reference
sequence, and the distance between starts of adjacent
matching k-mers in the chain must be at least 10 and at most 50
in both sequences. However, the distances of the two
10mer matches in the two sequences may differ,
accommodating insertions and deletions in the intervening regions.</p>
      <p>The entire chain is then again represented by its leftmost
point in both the read and the reference for the purpose of
determining if it is valid.</p>
      <p>As we see in Figure 4, this seeding strategy is too
stringent for the Viterbi base calls, achieving only 71.3%
sensitivity. On the other hand, false positives are extremely
rare, totaling only 136 in all 3049 windows.</p>
      <p>When using samples, different 10-mer matches in the
chain may come from different samples. The chaining of
weaker hits helps to accommodate regions with high
uncertainty present in the MinION data. Some settings of
our strategy can achieve the same sensitivity as the Viterbi
algorithm with even lower false positives, but more
importantly, by considering more samples, we can increase
sensitivity while keeping the false positives quite low (Figure
4). For example, for t = 2 and n = 43 our strategy can
reach 99.9% sensitivity with only 6407 false positives.
4</p>
    </sec>
    <sec id="sec-3">
      <title>Conclusions and Future Work</title>
      <p>In this paper, we have examined the problem of mapping
MinION reads to the reference sequence. The error rate
of MinION is high, with many insertions and deletions.
Consequently the standard alignment techniques do not
achieve sufficient mapping sensitivity.</p>
      <p>Instead of representing the read by a single base called
sequence, we have proposed to use an ensemble of
sequences generated from the posterior distribution defined
by the HMM capturing the properties of the MinION
sequencing. We have adapted the standard k-mer based
techniques for alignment seeding to ensembles of sequences
and identified a seed (three 10-mer hits spaced by at most
50 bases) that achieved 99.9% sensitivity with an
extremely small number of false positives. With such a low
false positive rate, we could investigate more precise (and
slower) algorithms for the extension phase as the next step
towards sensitive alignment of MinION reads.</p>
      <p>
        An obvious extension of our approach would be to
consider spaced seeds
        <xref ref-type="bibr" rid="ref13">(Ma et al., 2002)</xref>
        . Our experiments
suggest that a typical MinION read consists of short
regions of high-confidence sequence (often under 15 bases)
interspersed with regions of high uncertainty with many
insertions and deletions. The spaced seeds would have to
target mainly the high-confidence regions; however, these
regions seem to be too short to admit complex seeds of
any significant weight. One possibility would be to build
a probabilistic model capturing high-confidence and
highuncertainty regions and transitions between them, and
attempt to design optimized spaced seeds, for example by
techniques suggested by
        <xref ref-type="bibr" rid="ref4">Brejova et al. (2004)</xref>
        .
      </p>
      <p>
        Another option would be to use seeds that also allow
indels at do not care positions. These types of seeds were
successfully used by
        <xref ref-type="bibr" rid="ref19">Sovic et al. (2016)</xref>
        for MinION read
mapping, but the overall algorithm was much more
complicated than a simple seed-and-extend. Moreover, these
types of seeds are much more difficult to index than
continuous or spaced seeds and we believe, that our sampling
approach together with multiple chained seed hits provides
an elegant answer to the problem.
      </p>
      <p>
        In this work, we have only considered template reads
from MinION. However, MinION attempts to read both
strands of the same DNA molecule and these two readouts
can be combined in postprocessing to a single sequence
e
v
iit
s
o
p
e
u
r
T
0
0
5
0 ●
called 2D read. Since 2D reads are much more accurate
(typical error rate is about 15%), most researchers use only
2D reads in further analysis. Accurate 1D read mapping
would allow researchers to consider all data; usually there
is about 4 − 5× more 1D reads than 2D reads
        <xref ref-type="bibr" rid="ref10">(Ip et al.,
2015)</xref>
        . Moreover, recent application of MinION to
monitoring disease outbreaks
        <xref ref-type="bibr" rid="ref16">(Quick et al., 2016)</xref>
        require that
reads are analyzed on-the-fly as they are produced, and at
this stage 2D reads are not available.
      </p>
      <p>In this paper, we have evaluated seeding strategies
for mapping reads to the reference genome. In future
work, we would like to investigate the seed-and-extend
approaches for read-to-read alignment. With our sampling
approach, we would not need to commit to a single
interpretation of either of the sequences, potentially
increasing the sensitivity of detecting overlaps between reads in a
given data set. Sensitive read-to-read alignment is
essential for de novo genome assembly.</p>
      <p>Acknowledgements. This research was funded by APVV
grant APVV-14-0253 and VEGA grants 1/0719/14 (TV)
and 1/0684/16 (BB).
0
0
0
3
0
● ● ●
for Oxford Nanopore sequencing data. Technical
Report bioRxiv:046086, Cold Spring Harbor Laboratory.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <source>Journal of Molecular Biology</source>
          ,
          <volume>215</volume>
          (
          <issue>3</issue>
          ):
          <fpage>403</fpage>
          -
          <lpage>410</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Altschul</surname>
            ,
            <given-names>S. F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Madden</surname>
            ,
            <given-names>T. L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schaffer</surname>
            ,
            <given-names>A. A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miller</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Lipman</surname>
            ,
            <given-names>D. J.</given-names>
          </string-name>
          (
          <year>1997</year>
          ).
          <article-title>Gapped BLAST and PSI-BLAST: a new generation of protein database search programs</article-title>
          .
          <source>Nucleic Acids Research</source>
          ,
          <volume>25</volume>
          (
          <issue>17</issue>
          ):
          <fpage>3389</fpage>
          -
          <lpage>3392</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Boža</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brejová</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          , and Vinarˇ,
          <string-name>
            <surname>T.</surname>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>DeepNano: Deep recurrent neural networks for base calling in MinION nanopore reads</article-title>
          .
          <source>Technical Report arXiv:1603.09195</source>
          , arXiv.org.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Brejova</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brown</surname>
          </string-name>
          , D. G., and
          <string-name>
            <surname>Vinar</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          (
          <year>2004</year>
          ).
          <article-title>Optimal spaced seeds for homologous coding regions</article-title>
          .
          <source>Journal of Bioinformatics and Computational Biology</source>
          ,
          <volume>1</volume>
          (
          <issue>4</issue>
          ):
          <fpage>595</fpage>
          -
          <lpage>610</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>Brown</surname>
            ,
            <given-names>D. G.</given-names>
          </string-name>
          (
          <year>2008</year>
          ).
          <article-title>A survey of seeding for sequence alignment</article-title>
          .
          <source>In Bioinformatics algorithms: techniques and applications</source>
          , pages
          <fpage>126</fpage>
          -
          <lpage>152</lpage>
          . John Wiley &amp; Sons, Inc.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>Cawley</surname>
            ,
            <given-names>S. L.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Pachter</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          (
          <year>2003</year>
          ).
          <article-title>HMM sampling and applications to gene finding and alternative splicing</article-title>
          .
          <source>Bioinformatics</source>
          ,
          <volume>19</volume>
          (
          <issue>S2</issue>
          ):
          <fpage>ii36</fpage>
          -
          <lpage>41</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <surname>Altschul</surname>
            ,
            <given-names>S. F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gish</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miller</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Myers</surname>
            ,
            <given-names>E. W.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Lipman</surname>
            ,
            <given-names>D. J.</given-names>
          </string-name>
          (
          <year>1990</year>
          ).
          <article-title>Basic local alignment search tool</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <surname>David</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dursi</surname>
            ,
            <given-names>L. J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yao</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boutros</surname>
            ,
            <given-names>P. C.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Simpson</surname>
            ,
            <given-names>J. T.</given-names>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Nanocall: An open source basecaller Durbin</article-title>
          ,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Eddy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. R.</given-names>
            ,
            <surname>Krogh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            , and
            <surname>Mitchison</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          (
          <year>1998</year>
          ).
          <article-title>Biological Sequence Analysis: Probabilistic Models of Proteins and Nucleic Acids</article-title>
          . Cambridge University Press.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <surname>Ferragina</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Manzini</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          (
          <year>2000</year>
          ).
          <article-title>Opportunistic data structures with applications</article-title>
          .
          <source>In Foundations of Computer Science (FOCS)</source>
          , pages
          <fpage>390</fpage>
          -
          <lpage>398</lpage>
          . IEEE.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <surname>Ip</surname>
            ,
            <given-names>C. L. C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Loose</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tyson</surname>
            ,
            <given-names>J. R.</given-names>
          </string-name>
          , de Cesare,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Brown</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. L.</given-names>
            ,
            <surname>Jain</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Leggett</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. M.</given-names>
            ,
            <surname>Eccles</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. A.</given-names>
            ,
            <surname>Zalunin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            ,
            <surname>Urban</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            ,
            <surname>Piazza</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Bowden</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. J.</given-names>
            ,
            <surname>Paten</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Mwaigwisya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Batty</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. M.</given-names>
            ,
            <surname>Simpson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. T.</given-names>
            ,
            <surname>Snutch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. P.</given-names>
            ,
            <surname>Birney</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Buck</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            ,
            <surname>Goodwin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Jansen</surname>
          </string-name>
          ,
          <string-name>
            <surname>H. J.</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O</given-names>
            <surname>'Grady</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            , and
            <surname>Olsen</surname>
          </string-name>
          ,
          <string-name>
            <surname>H. E.</surname>
          </string-name>
          (
          <year>2015</year>
          ).
          <article-title>MinION Analysis and Reference Consortium: Phase 1 data release and analysis</article-title>
          .
          <source>F1000Research</source>
          ,
          <volume>4</volume>
          :
          <fpage>1075</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>Kielbasa</surname>
            ,
            <given-names>S. M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wan</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sato</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horton</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Frith</surname>
            ,
            <given-names>M. C.</given-names>
          </string-name>
          (
          <year>2011</year>
          ).
          <article-title>Adaptive seeds tame genomic sequence comparison</article-title>
          .
          <source>Genome Research</source>
          ,
          <volume>21</volume>
          (
          <issue>3</issue>
          ):
          <fpage>487</fpage>
          -
          <lpage>493</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <article-title>and</article-title>
          <string-name>
            <surname>Durbin</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          (
          <year>2010</year>
          ).
          <article-title>Fast and accurate long-read alignment with Burrows-Wheeler transform</article-title>
          .
          <source>Bioinformatics</source>
          ,
          <volume>26</volume>
          (
          <issue>5</issue>
          ):
          <fpage>589</fpage>
          -
          <lpage>595</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <surname>Ma</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tromp</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          (
          <year>2002</year>
          ).
          <article-title>PatternHunter: faster and more sensitive homology search</article-title>
          .
          <source>Bioinformatics</source>
          ,
          <volume>18</volume>
          (
          <issue>3</issue>
          ):
          <fpage>440</fpage>
          -
          <lpage>445</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <surname>Manber</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Myers</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          (
          <year>1993</year>
          ).
          <article-title>Suffix arrays: a new method for on-line string searches</article-title>
          .
          <source>SIAM Journal on Computing</source>
          ,
          <volume>22</volume>
          (
          <issue>5</issue>
          ):
          <fpage>935</fpage>
          -
          <lpage>948</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <string-name>
            <surname>Pevzner</surname>
            ,
            <given-names>P. A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tang</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Waterman</surname>
            ,
            <given-names>M. S.</given-names>
          </string-name>
          (
          <year>2001</year>
          ).
          <article-title>An Eulerian path approach to DNA fragment assembly</article-title>
          .
          <source>Proceedings of the National Academy of Sciences of the USA</source>
          ,
          <volume>98</volume>
          (
          <issue>17</issue>
          ):
          <fpage>9748</fpage>
          -
          <lpage>9753</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          <string-name>
            <surname>Quick</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          et al. (
          <year>2016</year>
          ).
          <article-title>Real-time, portable genome sequencing for Ebola surveillance</article-title>
          .
          <source>Nature</source>
          ,
          <volume>530</volume>
          (
          <issue>7589</issue>
          ):
          <fpage>228</fpage>
          -
          <lpage>232</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          <string-name>
            <surname>Rabiner</surname>
            ,
            <given-names>L. R.</given-names>
          </string-name>
          (
          <year>1989</year>
          ).
          <article-title>A tutorial on hidden Markov models and selected applications in speech recognition</article-title>
          .
          <source>Proceedings of the IEEE</source>
          ,
          <volume>77</volume>
          (
          <issue>2</issue>
          ):
          <fpage>257</fpage>
          -
          <lpage>286</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          <string-name>
            <surname>Smith</surname>
            ,
            <given-names>T. F.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Waterman</surname>
            ,
            <given-names>M. S.</given-names>
          </string-name>
          (
          <year>1981</year>
          ).
          <article-title>Identification of common molecular subsequences</article-title>
          .
          <source>Journal of Molecular Biology</source>
          ,
          <volume>147</volume>
          (
          <issue>1</issue>
          ):
          <fpage>195</fpage>
          -
          <lpage>197</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          <string-name>
            <surname>Sovic</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sikic</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wilm</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fenlon</surname>
            ,
            <given-names>S. N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Nagarajan</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Fast and sensitive mapping of nanopore sequencing reads with GraphMap</article-title>
          .
          <source>Nature Communications</source>
          ,
          <volume>7</volume>
          :
          <fpage>11307</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          <string-name>
            <surname>Szalay</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Golovchenko</surname>
            ,
            <given-names>J. A.</given-names>
          </string-name>
          (
          <year>2015</year>
          ).
          <article-title>De novo sequencing and variant calling with nanopores using PoreSeq</article-title>
          .
          <source>Nature Biotechnology</source>
          ,
          <volume>33</volume>
          (
          <issue>10</issue>
          ):
          <fpage>1087</fpage>
          -
          <lpage>1091</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          <string-name>
            <surname>Viterbi</surname>
            ,
            <given-names>A. J.</given-names>
          </string-name>
          (
          <year>1967</year>
          ).
          <article-title>Error bounds for convolutional codes and an asymptotically optimum decoding algorithm</article-title>
          .
          <source>IEEE Transactions on Information Theory</source>
          ,
          <volume>13</volume>
          (
          <issue>2</issue>
          ):
          <fpage>260</fpage>
          -
          <lpage>269</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>