FAST

 view release on metacpan or  search on metacpan

doc/FAST_Cookbook.html  view on Meta::CPAN

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>FAST:Fast Analysis of Sequences Toolbox Cookbook</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="title" content="FAST:Fast Analysis of Sequences Toolbox Cookbook"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2015-01-07T13:40-0800"/>
<meta name="author" content="Katherine C.H. Amrine \&amp; David H. Ardell"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<style type="text/css">
 <!--/*--><![CDATA[/*><!--*/
  html { font-family: Times, serif; font-size: 12pt; }
  .title  { text-align: center; }
  .todo   { color: red; }
  .done   { color: green; }
  .tag    { background-color: #add8e6; font-weight:normal }
  .target { }
  .timestamp { color: #bebebe; }
  .timestamp-kwd { color: #5f9ea0; }
  .right  {margin-left:auto; margin-right:0px;  text-align:right;}
  .left   {margin-left:0px;  margin-right:auto; text-align:left;}
  .center {margin-left:auto; margin-right:auto; text-align:center;}
  p.verse { margin-left: 3% }
  pre {
	border: 1pt solid #AEBDCC;
	background-color: #F3F5F7;
	padding: 5pt;
	font-family: courier, monospace;
        font-size: 90%;
        overflow:auto;
  }
  table { border-collapse: collapse; }
  td, th { vertical-align: top;  }
  th.right  { text-align:center;  }
  th.left   { text-align:center;   }
  th.center { text-align:center; }
  td.right  { text-align:right;  }
  td.left   { text-align:left;   }
  td.center { text-align:center; }
  dt { font-weight: bold; }
  div.figure { padding: 0.5em; }
  div.figure p { text-align: center; }
  div.inlinetask {
    padding:10px;
    border:2px solid gray;
    margin:10px;
    background: #ffffcc;
  }
  textarea { overflow-x: auto; }
  .linenr { font-size:smaller }
  .code-highlighted {background-color:#ffff00;}
  .org-info-js_info-navigation { border-style:none; }
  #org-info-js_console-label { font-size:10px; font-weight:bold;
                               white-space:nowrap; }
  .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
                                 font-weight:bold; }
  /*]]>*/-->
</style>

doc/FAST_Cookbook.html  view on Meta::CPAN

for this subset of sequences as follows:
</p>



<pre class="example">for i in $(cat ids.txt); do fasgrep $i sequences.fas; done &gt; subset.fas
</pre>


<p>
Now we have a subest of sequences located in <i>subset.fas</i> that correspond
to the identifiers listed in <i>ids.txt</i>. 
</p>

</div>

<div id="outline-container-2-5-1" class="outline-4">
<h4 id="sec-2-5-1"><span class="section-number-4">2.5.1</span> Note on searching for identifiers</h4>
<div class="outline-text-4" id="text-2-5-1">

<p>Fasgrep works with perl regular expression syntax.It is often beneficial 
to code the identifiers in <i>ids.txt</i> with some sort of a line or a word 
anchor. For example, if you are looking for a complete identifier like
 <code>sequence_1</code>
but have sequences in your file named <code>sequence_11</code> and <code>sequence_12</code>, 
</p>



<pre class="example">fasgrep "sequence_1" sequences.fas
</pre>


<p>
will return all three sequences. If
you'd like to just look for <code>sequence_1</code>, adding a line anchor, such as:
</p>



<pre class="example">fasgrep "sequence_1$" sequences.fas
</pre>


<p>
will return <code>sequence_1</code> and skip <code>sequence_11</code> and <code>sequence_12</code>. This
only works if <code>sequence_1</code> is at the end of your identifier. If you are
looking for <code>sequence_1</code> within a larger identifier, you may need to 
take extra precautions to not retrieve other names that are more
specific to the structure of your identifiers.
</p></div>
</div>
</div>
</div>
</div>

<div id="postamble">
<p class="date">Date: 2015-01-07T13:40-0800</p>
<p class="author">Author: Katherine C.H. Amrine \&amp; David H. Ardell</p>
<p class="creator"><a href="http://orgmode.org">Org</a> version 7.9.3f with <a href="http://www.gnu.org/software/emacs/">Emacs</a> version 24</p>
<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>

</div>
</body>
</html>



( run in 2.165 seconds using v1.01-cache-2.11-cpan-119454b85a5 )