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
f323f563
Commit
f323f563
authored
16 years ago
by
Stefan Graef
Browse files
Options
Downloads
Patches
Plain Diff
additional rules added
parent
a4a486c4
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
misc-scripts/analysis_description/apply_rules.pl
+39
-1
39 additions, 1 deletion
misc-scripts/analysis_description/apply_rules.pl
with
39 additions
and
1 deletion
misc-scripts/analysis_description/apply_rules.pl
+
39
−
1
View file @
f323f563
...
...
@@ -301,6 +301,40 @@ foreach my $cdb (@$cdbs) {
}
# 6) There are two more rules for the logic_name 'ensembl' in core databases
# depending on the species:
# - all but mouse, human and anopheles, use definition file.
# - anopheles needs a display_label of 'VectorBase gene'
# - mouse and human need a different web_data column:
# '{'caption' => 'Ensembl/Havana gene','name' => 'Merged Ensembl and Havana Genes',
# 'label_key' => '[text_label] [display_label]',
# 'default' => {'contigviewbottom' => 'transcript_label',
# 'contigviewtop' => 'gene_label',
# 'cytoview' => 'gene_label'},'key' => 'ensembl'}'
my
$web_data
=
"
'{'caption' => 'Ensembl/Havana gene',
"
.
"
'name' => 'Merged Ensembl and Havana Genes',
"
.
"
'label_key' => '[text_label] [display_label]',
"
.
"
'default' => {'contigviewbottom' => 'transcript_label',
"
.
"
'contigviewtop' => 'gene_label',
"
.
"
'cytoview' => 'gene_label'},
"
.
"
'key' => 'ensembl'}'
";
print
"
<ensembl> Updating web_data
\n
";
update_analysis
(
$caa
,
'
ensembl
',
undef
,
undef
,
$web_data
);
}
if
(
$species
=~
m/^(anopheles_gambiae)/
)
{
print
"
<ensembl> Updating display_label to 'VectorBase gene'
\n
";
update_analysis
(
$caa
,
'
ensembl
',
undef
,
'
VectorBase gene
');
print
"
<anopheles_cdna_est> Switching displayable on
\n
";
update_analysis
(
$caa
,
'
anopheles_cdna_est
',
1
);
print
"
<anopheles_cdna_est> Updating display_label to 'RNA (best)'
\n
";
update_analysis
(
$ofaa
,
'
anopheles_cdna_est
',
undef
,
'
RNA (best)
');
}
...
...
@@ -318,7 +352,7 @@ sub get_af_logic_names{
sub
update_analysis
{
my
(
$aa
,
$logic_name
,
$displayable
,
$display_label
)
=
@_
;
my
(
$aa
,
$logic_name
,
$displayable
,
$display_label
,
$web_data
)
=
@_
;
my
$analysis
=
$aa
->
fetch_by_logic_name
(
$logic_name
);
throw
("
Analysis '
$logic_name
' is not defined
")
unless
defined
$analysis
;
...
...
@@ -331,6 +365,10 @@ sub update_analysis {
print
"
\t
[
"
.
$aa
->
db
->
dbc
->
dbname
.
"
] Updating '
$logic_name
' display_label from '
"
.
$analysis
->
display_label
()
.
"
' to '
"
.
$display_label
.
"
'
\n
";
$analysis
->
display_label
(
$display_label
);
}
if
(
defined
$web_data
)
{
print
"
\t
[
"
.
$aa
->
db
->
dbc
->
dbname
.
"
] Updating '
$logic_name
' web_data from
\"
"
.
$analysis
->
web_data
()
.
"
\"
to
\"
"
.
$web_data
.
"
\"\n
";
$analysis
->
web_data
(
$web_data
);
}
$aa
->
update
(
$analysis
)
if
$update
;
...
...
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