Skip to content
Snippets Groups Projects
Commit 0c2da0a1 authored by Alessandro Vullo's avatar Alessandro Vullo
Browse files

[ENSCORESW-777]. Tests GeneAdaptor support for fetching by source(s).

parent d0ace81b
No related branches found
No related tags found
No related merge requests found
......@@ -518,6 +518,17 @@ ok($geneCount == 20);
$geneCount = $ga->count_all_by_biotype(['protein_coding', 'sRNA']);
ok($geneCount == 20);
#
# test TranscriptAdaptor::fetch_all_by_source
#
note("Test fetch_all_by_source");
@genes = @{$ga->fetch_all_by_source('ensembl')};
note "Got ".scalar(@genes)." ensembl genes\n";
ok(@genes == 18);
@genes = @{$ga->fetch_all_by_source(['havana','vega'])};
note "Got ".scalar(@genes)." (havana, vega) transcripts\n";
ok(@genes == 2);
#
# test Gene: get_all_alt_alleles
#
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment