<html><head><base href="x-msg://1851/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Henry,</div><div><br></div><div>maybe you could have a look at our code conventions: <a href="http://www.ensembl.org/info/docs/api/core/core_tutorial.html#conventions">http://www.ensembl.org/info/docs/api/core/core_tutorial.html#conventions</a></div><div><br></div><div>They explain in detail how we name methods in our API and what can be derived from the naming about how results look like.</div><div><br></div><div>Thanks,</div><div>Anja</div><div><br></div><div><div>On 22 Jul 2014, at 23:42, Gong, Henry wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div ocsi="0" fpstyle="1"><div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt; ">Hi Anja,<br><br>It looks like I had assumed that simply calling VariationSet would produce a name, similar to<span class="Apple-converted-space"> </span><br>my @vstates = @{$tva->variation_feature->get_all_validation_states()};<br>print<br>        "\t",join(",", @vstates); #evidence<br>Though I see now that an evidence value is qualitatively different from a variation set.<br>I don't intend on calling all the variations per set; my application is only looking at potentially hundreds (per transcript or per gene), but I'll consider using iterators to save a little memory.<br><br>I added your suggestion as<br>    foreach my $tva(@{$tvas}) {<br>        my @vsets = @{$vs_adaptor->fetch_all_by_Variation($tva->variation_feature->variation)};<br>        print $tva->variation_feature->display_id, "\t";<br>        foreach my $vs(@vsets) {<br>            my $set_name = $vs->name();<br>            print $set_name,",";<br>        }<br>        print "\n";<br>    }<br>and it does indeed work!<br><br>Thanks,<br>Henry Gong<br>Junior Specialist<br>UCSF Dept of Neuro Surgery<br></div>_______________________________________________<br>Dev mailing list    <a href="mailto:Dev@ensembl.org">Dev@ensembl.org</a><br>Posting guidelines and subscribe/unsubscribe info:<span class="Apple-converted-space"> </span><a href="http://lists.ensembl.org/mailman/listinfo/dev">http://lists.ensembl.org/mailman/listinfo/dev</a><br>Ensembl Blog:<span class="Apple-converted-space"> </span><a href="http://www.ensembl.info/">http://www.ensembl.info/</a><br></div></span></blockquote></div><br></body></html>