title: How can I create a FASTQ sequence file?
body: <p>I have a genomic database, which contains a simple character sequence (like <code>&gt;chr1 AGTGTCA.....</code>). Now, I want to convert it to the standard <a href="http://en.wikipedia.org/wiki/FASTQ_format" rel="nofollow">FASTQ format</a> like this:</p>
  
  <pre><code>@HWUSI-EAS594-R:1:3:1453:1350#0/1 
  CCCAGTTCCGACGATCGATTTGCACGTCAGAATCGCTACGGACCTCCATCAGGGTTTCCCCTGACTTCGTCCTGACCAGG
  +   
  ea^cdfdffgggggggggggeggggdggdffgdbdgddgggg`g^dfbfgdggcfbgfffcb]gffbfcfcefbbBBBB
  </code></pre>
  
  <p>As I have no clear idea about this type of format, I am not able to convert it.  How can I convert a simple character sequence to the FASTQ format (as in the above example)?</p>
  
  <p>Specifically, I am asking:</p>
  
  <ol>
  <li>Is there any existing code to do the encoding?</li>
  <li>If not, how can I encode the character sequence in FASTQ? What does this format imply and how can I create it?</li>
  </ol>