title: Lining up DNA base pairs in an array
body: <p>Trying to import a series of base pairs into an array.</p>
  
  <p>I want it in the form <code>['AA','AT','AG','AC'...]</code></p>
  
  <p>Here's my code:</p>
  
  <pre><code>paths = [str(x[4:7]) for x in mm_start]
  
  paths
  ['A A', 'A T', 'A G', 'A C', 'T A', 'T T', 'T G', 'T C', 'G A', 'G T', 'G G', 'G C', 'C A', 'C T', 'C G', 'C C']      
  </code></pre>
  
  <p>I get spaces in between the letters!
  This strip command isn't helping either.</p>
  
  <pre><code>paths = str(paths).replace(" ","")
  
  paths
  "['AA','AT','AG','AC','TA','TT','TG','TC','GA','GT','GG','GC','CA','CT','CG','CC']"
  </code></pre>
  
  <p>Now I get a (") at the beginning and end of this array.  </p>
  
  <p>Any ideas very welcome!</p>
  
  <p>The text file has the base pairs laid out</p>
  
  <pre><code>1 2 3 4 A A
  1 2 3 1 A T
  ...
  </code></pre>
  
  <p>Thanks</p>