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

added a couple of tests to check new column: pair_dna_align_feature_id

parent 2e1ee73e
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 => 27; plan tests => 29;
} }
...@@ -62,6 +62,7 @@ ok($feat); ...@@ -62,6 +62,7 @@ ok($feat);
print_features([$feat]); print_features([$feat]);
ok($feat->db_name eq 'EMBL'); ok($feat->db_name eq 'EMBL');
ok($feat->db_display_name eq 'EMBL'); ok($feat->db_display_name eq 'EMBL');
ok($feat->pair_dna_align_feature_id == 1449321);
$feat = $feat->transform('supercontig'); $feat = $feat->transform('supercontig');
...@@ -101,6 +102,7 @@ my $evalue = 23.2; ...@@ -101,6 +102,7 @@ my $evalue = 23.2;
my $cigar_string = '100M'; my $cigar_string = '100M';
my $hcoverage = 99.5; my $hcoverage = 99.5;
my $external_db_id = 2200; my $external_db_id = 2200;
my $pair_dna_align_feature_id = 10;
$feat = Bio::EnsEMBL::DnaDnaAlignFeature->new $feat = Bio::EnsEMBL::DnaDnaAlignFeature->new
(-START => $start, (-START => $start,
...@@ -117,7 +119,8 @@ $feat = Bio::EnsEMBL::DnaDnaAlignFeature->new ...@@ -117,7 +119,8 @@ $feat = Bio::EnsEMBL::DnaDnaAlignFeature->new
-P_VALUE => $evalue, -P_VALUE => $evalue,
-ANALYSIS => $analysis, -ANALYSIS => $analysis,
-HCOVERAGE => $hcoverage, -HCOVERAGE => $hcoverage,
-EXTERNAL_DB_ID => $external_db_id ); -EXTERNAL_DB_ID => $external_db_id,
-PAIR_DNA_ALIGN_FEATURE_ID => $pair_dna_align_feature_id );
ok(!$feat->is_stored($db)); ok(!$feat->is_stored($db));
...@@ -145,6 +148,7 @@ ok($feat->p_value == $evalue); ...@@ -145,6 +148,7 @@ ok($feat->p_value == $evalue);
ok($feat->analysis->logic_name eq $analysis->logic_name); ok($feat->analysis->logic_name eq $analysis->logic_name);
ok($feat->external_db_id == $external_db_id); ok($feat->external_db_id == $external_db_id);
ok($feat->hcoverage == $hcoverage); ok($feat->hcoverage == $hcoverage);
ok($feat->pair_dna_align_feature_id == $pair_dna_align_feature_id);
$multi->restore('core', 'dna_align_feature'); $multi->restore('core', 'dna_align_feature');
......
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