Skip to content

Instantly share code, notes, and snippets.

@yannickwurm
Created October 17, 2011 07:58

Revisions

  1. yannickwurm created this gist Oct 17, 2011.
    19 changes: 19 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    "<h1>ERROR: incorrect number of sequences found.</h1
    <p>Dear user,</p>
    <p><strong>you requested #{sequenceids.length} sequences</strong>
    with the following identifiers:  <emph>#{sequenceids.join(', ')}</emph>,
    from the following databases:<emph>#{retrieval_databases.join(', ')}</emph>.
    </p>
    <p/>
    <p><strong>But we found #{found_sequences_count} sequences.</strong>.
    This is <em>#{found_sequences_count > sequenceids.length ? 'more' : 'less'}</em>
    sequences than expected.</p>
    <p>This is likely due to a problem with how databases are formatted.
    <strong>Please share this text with the person managing this website so
    they can resolve the issue.</strong>
    </p>
    <p/>
<p/>
    <p>If sequences were retrieved, you can find them below (but some may be incorrect, so be careful!):</p>
    <hr/>"