title: How can I subset a DNAStringSet object by name?
body: <p>Suppose I have this DNAStringSet (as example)</p>
  
  <pre><code>dataset1
  
    A DNAStringSet instance of length 38874
          width seq names                  
      [1]  2617 GGC yellow
      [2]  4306 ACG blue
      [3]  1070 CTC red
      [4]  1870 CAC white
      [5]  3732 CAC brown
      ...   ... ...
  [38870]   390 TGC black
  [38871]  1970 CAG orange
  </code></pre>
  
  <p>and the I have a vector containing the names of some of these sequences: </p>
  
  <pre><code>dataset2 &lt;- c("blue","black","red","brown")
  </code></pre>
  
  <p>How can I subset those sequences from <code>dataset1</code> that have the names in <code>dataset2</code>?    </p>