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
13e51acd
Commit
13e51acd
authored
12 years ago
by
Kieron Taylor
Browse files
Options
Downloads
Patches
Plain Diff
Missed the multiple mapping behaviour. Moved code inside the loop.
parent
64e00f69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc-scripts/xref_projection/project_display_xrefs.pl
+24
-19
24 additions, 19 deletions
misc-scripts/xref_projection/project_display_xrefs.pl
misc-scripts/xref_projection/submit_projections.pl
+3
-0
3 additions, 0 deletions
misc-scripts/xref_projection/submit_projections.pl
with
27 additions
and
19 deletions
misc-scripts/xref_projection/project_display_xrefs.pl
+
24
−
19
View file @
13e51acd
...
...
@@ -173,30 +173,15 @@ if ($compara) {
}
# Determine if source and target species are both mammals or not: class Mammalia in meta
# table, meaning full GO projection is allowable
# Platypus is not treated as a mammal here, but "is_therian" doesn't mean anything.
my
$from_mammal
=
is_mammal
(
$from_species
);
my
$to_mammal
=
is_mammal
(
$to_species
);
my
%forbidden_terms
;
if
(
$from_mammal
&&
!
$to_mammal
)
{
# Determine GO terms that are not applicable for the present non-mammalian species.
# Consult ontology for list of descendent terms.
# Using a temporary list of general forbidden terms. Presently consists of four GO terms
# recommended by GOA. e.g. "walks on legs" should not be projected to fish
%forbidden_terms
=
get_ontology_terms
('
GO:0032501
','
GO:0007610
','
GO:0048856
','
GO:0051704
');
# The forbidden_terms list is used in unwanted_go_term();
}
#######
my
$from_ga
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$from_species
,
'
core
',
'
Gene
');
my
%projections_by_evidence_type
;
my
%projections_by_source
;
my
%forbidden_terms
;
my
$from_mammal
;
my
$to_mammal
;
foreach
my
$local_to_species
(
@to_multi
)
{
...
...
@@ -205,6 +190,26 @@ foreach my $local_to_species (@to_multi) {
die
("
Can't get gene adaptor for
$to_species
- check database connection details; make sure meta table contains the correct species alias
\n
")
if
(
!
$to_ga
);
my
$to_dbea
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$to_species
,
'
core
',
'
DBEntry
');
# Determine if source and target species are both mammals or not: class Mammalia in meta
# table, meaning full GO projection is allowable
# Platypus is not treated as a mammal here, but "is_therian" doesn't mean anything.
$from_mammal
=
is_mammal
(
$from_species
);
$to_mammal
=
is_mammal
(
$to_species
);
if
(
$from_mammal
&&
!
$to_mammal
)
{
# Determine GO terms that are not applicable for the present non-mammalian species.
# Consult ontology for list of descendent terms.
# Using a temporary list of general forbidden terms. Presently consists of four GO terms
# recommended by GOA. e.g. "walks on legs" should not be projected to fish
%forbidden_terms
=
get_ontology_terms
('
GO:0032501
','
GO:0007610
','
GO:0048856
','
GO:0051704
');
# The forbidden_terms list is used in unwanted_go_term();
}
#######
write_to_projection_db
(
$to_ga
->
dbc
(),
$release
,
$from_species
,
$from_ga
->
dbc
(),
$to_species
)
unless
(
$no_database
);
backup
(
$to_ga
)
if
(
!
$no_backup
);
...
...
This diff is collapsed.
Click to expand it.
misc-scripts/xref_projection/submit_projections.pl
+
3
−
0
View file @
13e51acd
...
...
@@ -233,6 +233,9 @@ $go_terms{'xenopus'} = [qw(zebrafish)];
# order to run projections in, just in case they are order-sensitive.
my
@execution_order
=
(
'
human
',
'
mouse
',
'
rat
',
'
zebrafish
');
# except of course order is irrelevant to the job queue. Consider provisional for when
# someone desires jobs that wait for others to finish.
# ----------------------------------------
# Display names
...
...
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