<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    HI Pontus<br>
    <br>
    I did in fact run out of memory every time! I wasn't aware of any
    sort of iterator on the api. Are they new as i don't remember them
    when i read teh tutorials late last year?<br>
    <br>
    Do you have any comments about which of my 2 approaches is best? I
    presume you can use an iterator on the second approach as that is
    basically the code you supplied (minus an iterator). Could you use
    an iterator on the first approach?<br>
    <br>
    thanks<br>
    <br>
    On 02/03/2011 15:22, Pontus Larsson wrote:
    <blockquote
      cite="mid:AANLkTik6DLcvpB+zenZA4Scz3P4x-5DC_rvAz7P2QB40@mail.gmail.com"
      type="cite">Hi Chris,
      <div><br>
      </div>
      <div>Andrea is right, we have grouped these variations together
        into various variation sets. For example, you can get all
        variations belonging to the different pilots from the sets '1000
        genomes - Low coverage', '1000 genomes - High coverage - Trios'
        and '1000 genomes - High coverage exons' for pilot 1,2 and 3,
        respectively. You'll need to use the VariationSet and
        VariationSetAdaptor modules for this. It is not possible to
        retrieve the variations conditional on submission date. </div>
      <div><br>
      </div>
      <div>As Andrea points out, if you call the 'get_all_Variations'
        method on a VariationSet object, the API will create all
        variation objects and return them. For large sets like these,
        this can easily cause you to run out of memory but you can use
        the 'get_Variation_Iterator' method to get an Iterator object
        and iterate over the variations instead. </div>
      <div><br>
      </div>
      <div>/Pontus</div>
      <div><br>
      </div>
      <div><span class="Apple-style-span" style="font-family: 'courier
          new',monospace;">  </span></div>
      <div><br>
        <div class="gmail_quote">2011/3/2 <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:cj5@sanger.ac.uk"
              target="_blank">cj5@sanger.ac.uk</a>></span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            Hi,<br>
            Is it possible using the variations API to get a list of
            SNPS which have<br>
            been submitted from the 1000 Genomes project?<br>
            <br>
            I have a vague idea that it should be possible to retrieve
            such a list<br>
            using the SS (submission) ID and/or the validation status,
            however I am<br>
            unsure of the details and what version of the API should be
            used.<br>
            <br>
            The latest 100 genomes pilot release (2010_07) would be
            great, but any<br>
            earlier release would also be useful.<br>
            <br>
            Thanks<br>
            Chris<br>
            <br>
            <br>
            _______________________________________________<br>
            Dev mailing list<br>
            <a moz-do-not-send="true" href="mailto:Dev@ensembl.org"
              target="_blank">Dev@ensembl.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.ensembl.org/mailman/listinfo/dev"
              target="_blank">http://lists.ensembl.org/mailman/listinfo/dev</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dev@ensembl.org">Dev@ensembl.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ensembl.org/mailman/listinfo/dev">http://lists.ensembl.org/mailman/listinfo/dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>