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

Test support for counting genes by source(s)

parent 4c8ecac1
No related branches found
No related tags found
No related merge requests found
......@@ -519,15 +519,19 @@ $geneCount = $ga->count_all_by_biotype(['protein_coding', 'sRNA']);
ok($geneCount == 20);
#
# test TranscriptAdaptor::fetch_all_by_source
# test GeneAdaptor::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);
$geneCount = $ga->count_all_by_source('ensembl');
ok($geneCount == 18);
@genes = @{$ga->fetch_all_by_source(['havana','vega'])};
note "Got ".scalar(@genes)." (havana, vega) transcripts\n";
ok(@genes == 2);
$geneCount = $ga->count_all_by_source(['havana', 'vega']);
ok($geneCount == 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