Friday 11 November 2011

Phenotype Ontology search resources

I just spent a while looking for these so I thought I'd share my findings.

This is a list of website URI's associated with ontologies, mouse/mammalian phenotype ontology term ids specifically. Where I couldn't find a specific website that shows the details of the ontology, I used the EBI's general ontology lookup search.

For each of the term types, replace the %s with a full term id like MP:0010053. You can use the sprintf() function to do this :-).

MP:
http://www.informatics.jax.org/searches/Phat.cgi?id=%s
BSPO:
http://www.ebi.ac.uk/ontology-lookup/?termId=%s
CHEBI:
http://www.ebi.ac.uk/chebi/searchId.do?chebiId=%s
CL:
http://www.ebi.ac.uk/ontology-lookup/?termId=%s
ENVO:
http://www.ebi.ac.uk/ontology-lookup/?termId=%s
GO:
http://amigo.geneontology.org/cgi-bin/amigo/term_details?term=%s
IMR:
http://www.ebi.ac.uk/ontology-lookup/?termId=%s
MA:
http://www.informatics.jax.org/searches/AMA.cgi?id=%s
PATO:
http://www.ebi.ac.uk/ontology-lookup/?termId=%s

Friday 4 November 2011

Quick JQuery expanding vertical menu

I'm just posting this as a reference for myself primarily, but if it helps anyone else then that's great. This is a super quick expanding vertical menu. You can animate it by passing 'slow' or 'fast' as an argument to the toggle() method.

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $('.branch').click(function(){
        $(this).children('.subbranch').each(function(){
            return $(this).toggle();
        });
    });
});
</script>


<ul class='tree'>
<li class='branch'><a href='#'>Super Title 1</a>
<ul class='subbranch' style='display:none'>
    <li><a href="#">Item 1</a></li>
    <li><a href="#">Item 2</a></li>
    <li><a href="#">Item 3</a></li>
</ul></li>
<li class='branch'><a href='#'>Super Title 2</a>
<ul class='subbranch' style='display:none'>
    <li><a href="#">Item 4</a></li>
    <li><a href="#">Item 5</a></li>
    <li><a href="#">Item 6</a></li>
</ul></li>
</ul>