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
b539fb76
Commit
b539fb76
authored
6 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
backport
ENSCORESW-2767
: multi-species support for protein feature
parent
89a73e1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
6 merge requests
!342
Feature/schema update 96
,
!273
Master
,
!269
backport ENSCORESW-2767: multi-species support for protein feature
,
!342
Feature/schema update 96
,
!273
Master
,
!269
backport ENSCORESW-2767: multi-species support for protein feature
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm
+1
-0
1 addition, 0 deletions
modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm
modules/t/proteinFeatureAdaptor.t
+13
-0
13 additions, 0 deletions
modules/t/proteinFeatureAdaptor.t
with
14 additions
and
0 deletions
modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm
+
1
−
0
View file @
b539fb76
...
...
@@ -522,6 +522,7 @@ sub _generate_sql {
# coord_system).
if
(
$self
->
is_multispecies
()
&&
$self
->
isa
('
Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor
')
&&
!
$self
->
isa
('
Bio::EnsEMBL::DBSQL::BaseAlignFeatureAdaptor
')
&&
!
$self
->
isa
('
Bio::EnsEMBL::DBSQL::UnmappedObjectAdaptor
')
)
{
# We do a check to see if there is already seq_region
...
...
This diff is collapsed.
Click to expand it.
modules/t/proteinFeatureAdaptor.t
+
13
−
0
View file @
b539fb76
...
...
@@ -38,9 +38,22 @@ my $pfa = $dba->get_ProteinFeatureAdaptor();
ok
(
$pfa
&&
ref
(
$pfa
)
&&
$pfa
->
isa
('
Bio::EnsEMBL::DBSQL::ProteinFeatureAdaptor
'));
my
$pfs
=
$pfa
->
fetch_all_by_translation_id
(
21724
);
ok
(
@$pfs
==
15
);
#check if the pfa is multispecies
isnt
(
$pfa
->
is_multispecies
(),
0
,
"
Adaptor is not multispecies
");
#set it to multispecies mode to test if it works for collection dbs
$pfa
->
is_multispecies
(
1
);
#check if the pfa is multispecies
is
(
$pfa
->
is_multispecies
(),
1
,
"
Adaptor is multispecies
");
$pfs
=
$pfa
->
fetch_all_by_translation_id
(
21724
);
ok
(
@$pfs
==
15
);
#set it back to single species mode
$pfa
->
is_multispecies
(
0
);
sub
print_features
{
my
$features
=
shift
;
foreach
my
$f
(
@$features
)
{
...
...
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