1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (1.8.0_191) on Thu Mar 28 11:26:59 PDT 2019 -->
6 <title>SequenceAlignment</title>
7 <meta name="date" content="2019-03-28">
8 <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
9 <script type="text/javascript" src="../../../../../script.js"></script>
12 <script type="text/javascript"><!--
14 if (location.href.indexOf('is-external=true') == -1) {
15 parent.document.title="SequenceAlignment";
21 var methods = {"i0":10};
22 var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
23 var altColor = "altColor";
24 var rowColor = "rowColor";
25 var tableTab = "tableTab";
26 var activeTableTab = "activeTableTab";
29 <div>JavaScript is disabled on your browser.</div>
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <div class="topNav"><a name="navbar.top">
35 <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
36 <a name="navbar.top.firstrow">
39 <ul class="navList" title="Navigation">
40 <li><a href="../../../../../overview-summary.html">Overview</a></li>
41 <li><a href="package-summary.html">Package</a></li>
42 <li class="navBarCell1Rev">Class</li>
43 <li><a href="package-tree.html">Tree</a></li>
44 <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
45 <li><a href="../../../../../index-files/index-1.html">Index</a></li>
46 <li><a href="../../../../../help-doc.html">Help</a></li>
51 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SampleIntegerAlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment"><span class="typeNameLink">Prev Class</span></a></li>
52 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceExtraction.html" title="class in edu.uci.iotproject.comparison.seqalignment"><span class="typeNameLink">Next Class</span></a></li>
55 <li><a href="../../../../../index.html?edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" target="_top">Frames</a></li>
56 <li><a href="SequenceAlignment.html" target="_top">No Frames</a></li>
58 <ul class="navList" id="allclasses_navbar_top">
59 <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
62 <script type="text/javascript"><!--
63 allClassesLink = document.getElementById("allclasses_navbar_top");
65 allClassesLink.style.display = "block";
68 allClassesLink.style.display = "none";
74 <ul class="subNavList">
75 <li>Summary: </li>
76 <li>Nested | </li>
77 <li>Field | </li>
78 <li><a href="#constructor.summary">Constr</a> | </li>
79 <li><a href="#method.summary">Method</a></li>
81 <ul class="subNavList">
82 <li>Detail: </li>
83 <li>Field | </li>
84 <li><a href="#constructor.detail">Constr</a> | </li>
85 <li><a href="#method.detail">Method</a></li>
88 <a name="skip.navbar.top">
91 <!-- ========= END OF TOP NAVBAR ========= -->
92 <!-- ======== START OF CLASS DATA ======== -->
94 <div class="subTitle">edu.uci.iotproject.comparison.seqalignment</div>
95 <h2 title="Class SequenceAlignment" class="title">Class SequenceAlignment<ALIGNMENT_UNIT></h2>
97 <div class="contentContainer">
98 <ul class="inheritance">
99 <li>java.lang.Object</li>
101 <ul class="inheritance">
102 <li>edu.uci.iotproject.comparison.seqalignment.SequenceAlignment<ALIGNMENT_UNIT></li>
106 <div class="description">
107 <ul class="blockList">
108 <li class="blockList">
110 <dt><span class="paramLabel">Type Parameters:</span></dt>
111 <dd><code>ALIGNMENT_UNIT</code> - The <em>unit of the alignment</em>, or, in other words, the <em>granularity</em> of the
112 alignment. For example, for 'classical' string alignment (as in sequence alignment where we
113 try to align two strings character by character -- the example most often used in books on
114 algorithms) this would be a <code>Character</code>. As a second example, by specifying
115 <code>String</code>, one can decrease the granularity so as to align <em>blocks</em> of characters
116 (e.g., if one wants to align to two string arrays).</dd>
120 <pre>public class <span class="typeNameLabel">SequenceAlignment<ALIGNMENT_UNIT></span>
121 extends java.lang.Object</pre>
122 <div class="block">A generic implementation of the sequence alignment algorithm given in Kleinberg's and Tardos' "Algorithm Design".
123 This implementation is the basic version. There is a more complex version which significantly reduces the space
124 complexity at a slight cost to time complexity.</div>
128 <div class="summary">
129 <ul class="blockList">
130 <li class="blockList">
131 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
132 <ul class="blockList">
133 <li class="blockList"><a name="constructor.summary">
136 <h3>Constructor Summary</h3>
137 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
138 <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
140 <th class="colOne" scope="col">Constructor and Description</th>
142 <tr class="altColor">
143 <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html#SequenceAlignment-edu.uci.iotproject.comparison.seqalignment.AlignmentPricer-">SequenceAlignment</a></span>(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment">AlignmentPricer</a><<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>> alignmentPricer)</code>
144 <div class="block">Constructs a new <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="class in edu.uci.iotproject.comparison.seqalignment"><code>SequenceAlignment</code></a>.</div>
150 <!-- ========== METHOD SUMMARY =========== -->
151 <ul class="blockList">
152 <li class="blockList"><a name="method.summary">
155 <h3>Method Summary</h3>
156 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
157 <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
159 <th class="colFirst" scope="col">Modifier and Type</th>
160 <th class="colLast" scope="col">Method and Description</th>
162 <tr id="i0" class="altColor">
163 <td class="colFirst"><code>int</code></td>
164 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html#calculateAlignment-ALIGNMENT_UNIT:A-ALIGNMENT_UNIT:A-">calculateAlignment</a></span>(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>[] sequence1,
165 <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>[] sequence2)</code>
166 <div class="block">Calculates the cost of aligning <code>sequence1</code> with <code>sequence2</code>.</div>
170 <ul class="blockList">
171 <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
174 <h3>Methods inherited from class java.lang.Object</h3>
175 <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
182 <div class="details">
183 <ul class="blockList">
184 <li class="blockList">
185 <!-- ========= CONSTRUCTOR DETAIL ======== -->
186 <ul class="blockList">
187 <li class="blockList"><a name="constructor.detail">
190 <h3>Constructor Detail</h3>
191 <a name="SequenceAlignment-edu.uci.iotproject.comparison.seqalignment.AlignmentPricer-">
194 <ul class="blockListLast">
195 <li class="blockList">
196 <h4>SequenceAlignment</h4>
197 <pre>public SequenceAlignment(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment">AlignmentPricer</a><<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>> alignmentPricer)</pre>
198 <div class="block">Constructs a new <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="class in edu.uci.iotproject.comparison.seqalignment"><code>SequenceAlignment</code></a>. The new instance relies on the provided <code>alignmentPricer</code> to
199 provide the cost of aligning two <code>ALIGNMENT_UNIT</code>s as well as the cost of aligning an
200 <code>ALIGNMENT_UNIT</code> with a gap.</div>
202 <dt><span class="paramLabel">Parameters:</span></dt>
203 <dd><code>alignmentPricer</code> - An <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment"><code>AlignmentPricer</code></a> that provides the cost of aligning two <code>ALIGNMENT_UNIT</code>s
204 with one another as well as the cost of aligning an <code>ALIGNMENT_UNIT</code> with a gap.</dd>
210 <!-- ============ METHOD DETAIL ========== -->
211 <ul class="blockList">
212 <li class="blockList"><a name="method.detail">
215 <h3>Method Detail</h3>
216 <a name="calculateAlignment-java.lang.Object:A-java.lang.Object:A-">
218 </a><a name="calculateAlignment-ALIGNMENT_UNIT:A-ALIGNMENT_UNIT:A-">
221 <ul class="blockListLast">
222 <li class="blockList">
223 <h4>calculateAlignment</h4>
224 <pre>public int calculateAlignment(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>[] sequence1,
225 <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>[] sequence2)</pre>
226 <div class="block">Calculates the cost of aligning <code>sequence1</code> with <code>sequence2</code>.</div>
228 <dt><span class="paramLabel">Parameters:</span></dt>
229 <dd><code>sequence1</code> - A sequence that is to be aligned with <code>sequence2</code>.</dd>
230 <dd><code>sequence2</code> - A sequence that is to be aligned with <code>sequence1</code>.</dd>
231 <dt><span class="returnLabel">Returns:</span></dt>
232 <dd>The cost of aligning <code>sequence1</code> with <code>sequence2</code>.</dd>
242 <!-- ========= END OF CLASS DATA ========= -->
243 <!-- ======= START OF BOTTOM NAVBAR ====== -->
244 <div class="bottomNav"><a name="navbar.bottom">
247 <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
248 <a name="navbar.bottom.firstrow">
251 <ul class="navList" title="Navigation">
252 <li><a href="../../../../../overview-summary.html">Overview</a></li>
253 <li><a href="package-summary.html">Package</a></li>
254 <li class="navBarCell1Rev">Class</li>
255 <li><a href="package-tree.html">Tree</a></li>
256 <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
257 <li><a href="../../../../../index-files/index-1.html">Index</a></li>
258 <li><a href="../../../../../help-doc.html">Help</a></li>
263 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SampleIntegerAlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment"><span class="typeNameLink">Prev Class</span></a></li>
264 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceExtraction.html" title="class in edu.uci.iotproject.comparison.seqalignment"><span class="typeNameLink">Next Class</span></a></li>
267 <li><a href="../../../../../index.html?edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" target="_top">Frames</a></li>
268 <li><a href="SequenceAlignment.html" target="_top">No Frames</a></li>
270 <ul class="navList" id="allclasses_navbar_bottom">
271 <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
274 <script type="text/javascript"><!--
275 allClassesLink = document.getElementById("allclasses_navbar_bottom");
277 allClassesLink.style.display = "block";
280 allClassesLink.style.display = "none";
286 <ul class="subNavList">
287 <li>Summary: </li>
288 <li>Nested | </li>
289 <li>Field | </li>
290 <li><a href="#constructor.summary">Constr</a> | </li>
291 <li><a href="#method.summary">Method</a></li>
293 <ul class="subNavList">
294 <li>Detail: </li>
295 <li>Field | </li>
296 <li><a href="#constructor.detail">Constr</a> | </li>
297 <li><a href="#method.detail">Method</a></li>
300 <a name="skip.navbar.bottom">
303 <!-- ======== END OF BOTTOM NAVBAR ======= -->