Skip to content
Snippets Groups Projects
Commit 3ea2f366 authored by Daniel Rios's avatar Daniel Rios
Browse files

added new tests to check attributes db_name and db_display_name work properly...

added new tests to check attributes db_name and db_display_name work properly to retrieve the database_name and the displayable_name from the external database
parent e6864ed3
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ use strict; ...@@ -2,7 +2,7 @@ use strict;
BEGIN { $| = 1; BEGIN { $| = 1;
use Test; use Test;
plan tests => 25; plan tests => 27;
} }
...@@ -60,6 +60,8 @@ my $feat = $dafa->fetch_by_dbID(22171863); ...@@ -60,6 +60,8 @@ my $feat = $dafa->fetch_by_dbID(22171863);
debug('--- fetching by dbID ---'); debug('--- fetching by dbID ---');
ok($feat); ok($feat);
print_features([$feat]); print_features([$feat]);
ok($feat->db_name eq 'EMBL');
ok($feat->db_display_name eq 'EMBL');
$feat = $feat->transform('supercontig'); $feat = $feat->transform('supercontig');
......
BEGIN { $| = 1; BEGIN { $| = 1;
use Test; use Test;
plan tests => 24; plan tests => 26;
} }
...@@ -41,7 +41,6 @@ debug("Got " . scalar(@$feats) . " features back"); ...@@ -41,7 +41,6 @@ debug("Got " . scalar(@$feats) . " features back");
ok(@$feats == 2429); ok(@$feats == 2429);
print_features($feats); print_features($feats);
my $ctg_slice; my $ctg_slice;
$ctg_slice = $db->get_SliceAdaptor->fetch_by_region('contig', $ctg_slice = $db->get_SliceAdaptor->fetch_by_region('contig',
'AL031658.11.1.162976', 'AL031658.11.1.162976',
...@@ -61,7 +60,8 @@ my $feat = $pafa->fetch_by_dbID(5339568); ...@@ -61,7 +60,8 @@ my $feat = $pafa->fetch_by_dbID(5339568);
debug('--- fetching by dbID ---'); debug('--- fetching by dbID ---');
ok($feat); ok($feat);
print_features([$feat]); print_features([$feat]);
ok($feat->db_name eq 'EMBL');
ok($feat->db_display_name eq 'EMBL');
$feat = $feat->transform('supercontig'); $feat = $feat->transform('supercontig');
debug('--- transforming to supercontig coords ---'); debug('--- transforming to supercontig coords ---');
......
...@@ -4668,7 +4668,7 @@ ...@@ -4668,7 +4668,7 @@
22171726 317101 49842 49847 -1 279 284 1 BJ051203.1 12 276 5.7e-23 44 6M \N \N \N 22171726 317101 49842 49847 -1 279 284 1 BJ051203.1 12 276 5.7e-23 44 6M \N \N \N
22171809 317101 49842 49853 -1 170 181 1 BI508350.1 12 301 1.5e-25 44 12M \N \N \N 22171809 317101 49842 49853 -1 170 181 1 BI508350.1 12 301 1.5e-25 44 12M \N \N \N
22171813 317101 49842 49853 1 342 353 1 BM030446.1 12 282 2.8e-23 45 12M \N \N \N 22171813 317101 49842 49853 1 342 353 1 BM030446.1 12 282 2.8e-23 45 12M \N \N \N
22171863 317101 49842 49853 1 417 428 1 BG895852.1 12 326 4.1e-28 47 12M \N \N \N 22171863 317101 49842 49853 1 417 428 1 BG895852.1 12 326 4.1e-28 47 12M 2 \N \N
4789193 317101 49848 49853 1 163 168 1 BF149577.1 12 135 6e-06 31 6M \N \N \N 4789193 317101 49848 49853 1 163 168 1 BF149577.1 12 135 6e-06 31 6M \N \N \N
22171727 317101 49848 49853 -1 270 275 1 BJ051203.1 12 276 5.7e-23 44 6M \N \N \N 22171727 317101 49848 49853 -1 270 275 1 BJ051203.1 12 276 5.7e-23 44 6M \N \N \N
29482847 317101 51488 51610 1 491 613 1 BF346221.1 12 234 0 0 123M \N \N \N 29482847 317101 51488 51610 1 491 613 1 BF346221.1 12 234 0 0 123M \N \N \N
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
5339426 317101 49842 49853 1 432 435 Q9VZ97 5 302 2e-59 44 12M 5339426 317101 49842 49853 1 432 435 Q9VZ97 5 302 2e-59 44 12M
813631 317101 49845 49853 1 634 636 Q9VM91 5 147 1.6e-08 31 9M 813631 317101 49845 49853 1 634 636 Q9VM91 5 147 1.6e-08 31 9M
5339521 317101 49845 49853 1 227 229 Q922T0 5 203 1.6e-15 30 9M 5339521 317101 49845 49853 1 227 229 Q922T0 5 203 1.6e-15 30 9M
5339568 317101 49845 49850 1 287 288 Q9Y4R7 5 186 4.4e-16 35 6M 5339568 317101 49845 49850 1 287 288 Q9Y4R7 5 186 4.4e-16 35 6M 2
5339613 317101 49845 49850 1 499 500 Q9H876 5 184 1.7e-14 34 6M 5339613 317101 49845 49850 1 499 500 Q9H876 5 184 1.7e-14 34 6M
5339620 317101 49845 49850 1 227 228 Q9UI99 5 186 7e-17 35 6M 5339620 317101 49845 49850 1 227 228 Q9UI99 5 186 7e-17 35 6M
5339445 317101 49848 49853 1 384 385 Q9D5V3 5 172 7e-18 31 6M 5339445 317101 49848 49853 1 384 385 Q9D5V3 5 172 7e-18 31 6M
......
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