Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
721103ef
Commit
721103ef
authored
11 years ago
by
Kieron Taylor
Browse files
Options
Downloads
Patches
Plain Diff
Updated to match new alt-allele error messages.
parent
24331721
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/t/gene.t
+8
-8
8 additions, 8 deletions
modules/t/gene.t
with
8 additions
and
8 deletions
modules/t/gene.t
+
8
−
8
View file @
721103ef
...
...
@@ -3,7 +3,7 @@ use warnings;
use
Test::
More
;
use
Test::
Exception
;
use
Data::
Dumper
;
use
Bio::EnsEMBL::
Registry
;
use
Bio::EnsEMBL::Test::
MultiTestDB
;
use
Bio::EnsEMBL::Test::
TestUtils
;
...
...
@@ -512,7 +512,7 @@ $gene = $ga->fetch_by_dbID(18256);
my
$alt_genes
=
$gene
->
get_all_alt_alleles
();
ok
(
$gene
->
is_reference
==
1
);
#diag Dumper($alt_genes);
ok
(
scalar
(
@$alt_genes
)
==
3
);
# expect the following alleles
...
...
@@ -522,7 +522,7 @@ for my $gene (@$alt_genes) {
$ok
=
$ok
&&
$gene_ids
{
$gene
->
dbID
()};
$ok
=
$ok
&&
!
(
$gene
->
is_reference
);
}
ok
(
$ok
);
ok
(
$ok
,
"
Retrieved alt alleles have correct dbIDs
"
);
#
# test storing a new allele group
...
...
@@ -544,13 +544,13 @@ push(@alt_genes, $ga->fetch_by_dbID(18270));
push
(
@alt_genes
,
$ga
->
fetch_by_dbID
(
18271
));
push
(
@alt_genes
,
$ga
->
fetch_by_dbID
(
18272
));
capture_std_streams
(
warns_like
(
sub
{
my
(
$stdout_ref
,
$stderr_ref
)
=
@_
;
#
my ($stdout_ref, $stderr_ref) = @_;
$ga
->
store_alt_alleles
(
\
@alt_genes
);
my
$check
=
qr/.+
alternative
.+
reference
sequence
.+
Ignoring/
;
like
(
$
{
$stderr_ref
},
$check
,
'
Checking we are still warning about multiple alt_alleles on refs
');
});
#
my $check = qr/.+alternative.+reference
\s
sequence.+Ignoring/;
#
like(${$stderr_ref}, $check, 'Checking we are still warning about multiple alt_alleles on refs');
}
,
qr/.+alternative.+reference\ssequence.+Ignoring/
,
'
Checking we are still warning about multiple alt_alleles on refs
'
);
$gene
=
$ga
->
fetch_by_dbID
(
18270
);
$alt_genes
=
$gene
->
get_all_alt_alleles
();
%gene_ids
=
(
18271
=>
1
,
18272
=>
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment