This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Retrieve genes with more than N paralogs on ensembl

Is there a way on ensembl (or biomart?) to retrieve a list of gene IDs from a species that have more than N paralogs in this species?

I tried with biomart online but I didn't find any filters adapted.

genome gene ensembl

1 answer

You'll have to use the perl API for this. Something like this:

my @homologs = @{$Ensgene->get_all_homologous_Genes()};
my @paralogs = grep { $_->[2] eq 'homo_sapiens' && $_->[1]->description=~/paralog/ } @homologs;

Log in to answer this question.