<div dir="ltr"><div>Hi Anja,</div><div><br></div><div>Thanks for clarifying this!</div><div><br></div><div>Cheers, RM</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 18 Jul 2019 at 10:20, Anja Thormann <<a href="mailto:anja@ebi.ac.uk">anja@ebi.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Ramiro,<div><br></div><div>this is not a bug as such because we did not intend to keep the order of the input variants which we loose in our internal LD calculations. But I absolutely agree that this is causing confusions and we will update the endpoint to retain the order of the input variants in the output. This will be updated for our 98 release planned to be out in September.</div><div><br></div><div>Best wishes,</div><div>Anja</div><div><br></div><div><div><br><blockquote type="cite"><div>On 17 Jul 2019, at 17:41, Ramiro Magno <<a href="mailto:ramiro.magno@gmail.com" target="_blank">ramiro.magno@gmail.com</a>> wrote:</div><br class="gmail-m_8905558107380382355Apple-interchange-newline"><div><div dir="ltr">Hi<div><br></div><div>It seems that the response returned by this endpoint:</div><div><br></div><div><a href="http://rest.ensembl.org/documentation/info/ld_pairwise_get" target="_blank">http://rest.ensembl.org/documentation/info/ld_pairwise_get</a></div><div><br></div><div>does not always respect what is variant id1 and variant id2.</div><div><br></div><div>Example:</div><div><br></div><div><a href="https://rest.ensembl.org/ld/human/pairwise/rs1042779/rs62255400?population_name=1000GENOMES:phase_3:CEU;d_prime=0;r2=0" target="_blank">https://rest.ensembl.org/ld/human/pairwise/rs1042779/rs62255400?population_name=1000GENOMES:phase_3:CEU;d_prime=0;r2=0</a><br></div><div><br></div><div>As per the documentation, I was expecting variant1 = rs1042779, and variant2 = rs62255400 but the actual response is:</div><div><br></div><div>  d_prime: '0.999977'<br>  population_name: 1000GENOMES:phase_3:CEU<br>  r2: '0.271200'<br>  variation1: rs62255400<br>  variation2: rs1042779<br></div><div><br></div><div>The two variants are swapped.</div><div><br></div><div>Can you confirm this is a bug?</div><div><br></div><div>Cheers, Ramiro</div><div><br></div></div>
_______________________________________________<br>Dev mailing list    <a href="mailto:Dev@ensembl.org" target="_blank">Dev@ensembl.org</a><br>Posting guidelines and subscribe/unsubscribe info: <a href="https://lists.ensembl.org/mailman/listinfo/dev_ensembl.org" target="_blank">https://lists.ensembl.org/mailman/listinfo/dev_ensembl.org</a><br>Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank">http://www.ensembl.info/</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>
Dev mailing list    <a href="mailto:Dev@ensembl.org" target="_blank">Dev@ensembl.org</a><br>
Posting guidelines and subscribe/unsubscribe info: <a href="https://lists.ensembl.org/mailman/listinfo/dev_ensembl.org" rel="noreferrer" target="_blank">https://lists.ensembl.org/mailman/listinfo/dev_ensembl.org</a><br>
Ensembl Blog: <a href="http://www.ensembl.info/" rel="noreferrer" target="_blank">http://www.ensembl.info/</a><br>
</blockquote></div>