<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=830_-_MaqIndex%3A%3AGetWord%28%29</id>
	<title>830 - MaqIndex::GetWord() - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=830_-_MaqIndex%3A%3AGetWord%28%29"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=830_-_MaqIndex::GetWord()&amp;action=history"/>
	<updated>2026-09-29T03:04:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=830_-_MaqIndex::GetWord()&amp;diff=8895&amp;oldid=prev</id>
		<title>Goncalo: Created page with &quot;&lt;source lang=&quot;cpp&quot;&gt; long long MaqIndex::GetWord(String &amp; sequence, unsigned int position) { 	long long word = 0;  	if (position + mask.Length() &gt; sequence.Length()) 		return -...&quot;</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=830_-_MaqIndex::GetWord()&amp;diff=8895&amp;oldid=prev"/>
		<updated>2013-10-28T17:39:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; long long MaqIndex::GetWord(String &amp;amp; sequence, unsigned int position) { 	long long word = 0;  	if (position + mask.Length() &amp;gt; sequence.Length()) 		return -...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
long long MaqIndex::GetWord(String &amp;amp; sequence, unsigned int position)&lt;br /&gt;
{&lt;br /&gt;
	long long word = 0;&lt;br /&gt;
&lt;br /&gt;
	if (position + mask.Length() &amp;gt; sequence.Length())&lt;br /&gt;
		return -1;&lt;br /&gt;
&lt;br /&gt;
	for (unsigned int i = 0; i &amp;lt; mask.Length(); i++)&lt;br /&gt;
		if (mask[i] == &amp;#039;1&amp;#039;)&lt;br /&gt;
		{&lt;br /&gt;
			char base = sequence[position + i];&lt;br /&gt;
&lt;br /&gt;
			if (base &amp;lt; 1 || base &amp;gt; 4) return -1;&lt;br /&gt;
&lt;br /&gt;
			word = word * 4 + base - 1;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
	return word;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
long long MaqIndex::GetReferenceWord(unsigned int position)&lt;br /&gt;
{&lt;br /&gt;
	return GetWord(reference, position);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Goncalo</name></author>
	</entry>
</feed>