[ensembl-dev] how to get all gene members belonging to a tree node

Will Spooner whs at eaglegenomics.com
Wed Oct 13 15:07:10 BST 2010


Hi Emily,

Have you looked at the API docs here?
http://www.ensembl.org/info/docs/Pdoc/ensembl-compara/index.html

Basically, you call ProteinTreeAdaptor->fetch_node_by_node_id, and then call ProteinTree->get_all_leaves to get the leaf nodes, and then Member->get_Gene on each of the returned leaves.

Best,

Will

On 13 Oct 2010, at 03:36, Emily Wong wrote:

> Hello,
> 
> I am wondering what is the quickest way to retrieve all genes that derive from a given tree node id?
> 
> Many thanks,
> Emily
> 
> 
> 
> Emily Wong, PhD | Postdoctoral Research Associate
> Faculty of Veterinary Science
> 
> THE UNIVERSITY OF SYDNEY
> Rm 313, RMC Gunn (B19)| The University of Sydney | NSW | 2006  
> T +61 2 9351 7083
> E  emily.wong at sydney.edu.au
> 
> _______________________________________________
> Dev mailing list
> Dev at ensembl.org
> http://lists.ensembl.org/mailman/listinfo/dev

--
William Spooner
whs at eaglegenomics.com
http://www.eaglegenomics.com







More information about the Dev mailing list