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
35c77d47
Commit
35c77d47
authored
18 years ago
by
Daniel Rios
Browse files
Options
Downloads
Patches
Plain Diff
modified modules using StrainSlice to handle new database schema
parent
a4b8b7ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/StrainSlice.pm
+9
-9
9 additions, 9 deletions
modules/Bio/EnsEMBL/StrainSlice.pm
with
9 additions
and
9 deletions
modules/Bio/EnsEMBL/StrainSlice.pm
+
9
−
9
View file @
35c77d47
...
...
@@ -109,14 +109,14 @@ sub new{
my
$af_adaptor
=
$variation_db
->
get_AlleleFeatureAdaptor
;
if
(
$af_adaptor
)
{
#get the
Population
for the given strain
my
$
pop
_adaptor
=
$variation_db
->
get_
Population
Adaptor
;
if
(
$
pop
_adaptor
){
my
$
population
=
$pop
_adaptor
->
fetch_by_name
(
$self
->
{'
strain_name
'})
;
#check that the
population
returned is
a strain
if
(
(
defined
$
population
)
&&
(
$population
->
is_strain
)
){
my
$allele_features
=
$af_adaptor
->
fetch_all_by_Slice
_Population
(
$self
,
$population
);
#get the
Individual
for the given strain
my
$
ind
_adaptor
=
$variation_db
->
get_
Individual
Adaptor
;
if
(
$
ind
_adaptor
){
my
$
individual
=
shift
@
{
$ind
_adaptor
->
fetch_
all_
by_name
(
$self
->
{'
strain_name
'})
};
#the name should be unique for a strain
#check that the
individua
returned is
in the database
if
(
defined
$
individual
){
my
$allele_features
=
$af_adaptor
->
fetch_all_by_Slice
(
$self
,
$individual
);
$self
->
{'
alleleFeatures
'}
=
$allele_features
;
return
$self
;
}
...
...
@@ -126,7 +126,7 @@ sub new{
}
}
else
{
warning
("
Not possible to retrieve
Population
Adaptor from the variation database
");
warning
("
Not possible to retrieve
Individual
Adaptor from the variation database
");
return
'';
}
}
else
{
...
...
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