Skip to content
Snippets Groups Projects
Commit 0cd74f60 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Added test for fetch_coded_for_regulatory_factors()

parent 543a69af
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ use warnings;
BEGIN { $| = 1;
use Test;
plan tests => 65;
plan tests => 66;
}
use Bio::EnsEMBL::Test::MultiTestDB;
......@@ -628,3 +628,9 @@ $multi->restore();
my $rf_gene = $ga->fetch_by_dbID(18256);
#ok(@{$rf_gene->get_all_regulatory_features()} == 1); # non-recursive
ok(@{$rf_gene->get_all_regulatory_features(1)} == 12); # recursive
# test getting coded-for regualtory factors
$gene = $ga->fetch_by_dbID(18271);
my @factors = @{$gene->fetch_coded_for_regulatory_factors()};
ok($factors[0]->dbID() == 5);
......@@ -4,7 +4,7 @@ use vars qw( $verbose );
BEGIN { $| = 1;
use Test;
plan tests => 138;
plan tests => 139;
}
use Bio::EnsEMBL::Test::MultiTestDB;
......@@ -609,7 +609,11 @@ sub test_trans_mapper_edits {
print_coords(\@coords);
}
# test getting coded-for regualtory factors
my $transcript_adaptor = $db->get_TranscriptAdaptor();
my $transcript = $transcript_adaptor->fetch_by_dbID(21717);
my @factors = @{$transcript->fetch_coded_for_regulatory_factors()};
ok($factors[0]->dbID() == 2);
......
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