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
2158d0a4
Commit
2158d0a4
authored
12 years ago
by
Kieron Taylor
Browse files
Options
Downloads
Patches
Plain Diff
Caught a mini-blunder in the first loop.
parent
163e43ea
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
misc-scripts/xref_projection/submit_projections.pl
+8
-8
8 additions, 8 deletions
misc-scripts/xref_projection/submit_projections.pl
with
8 additions
and
8 deletions
misc-scripts/xref_projection/submit_projections.pl
+
8
−
8
View file @
2158d0a4
...
...
@@ -14,7 +14,7 @@ $Data::Dumper::Indent = 0;
my
$release
=
software_version
();
my
$base_dir
=
"
mypath
";
my
$base_dir
=
"
/home/ktaylor/projection_test
";
my
$conf
=
"
release_
${release}
.ini
";
# registry config file, specifies Compara location
...
...
@@ -237,8 +237,8 @@ my @execution_order = ( 'human', 'mouse', 'rat', 'zebrafish');
print
"
Deleting projected names (one to one)
\n
";
foreach
my
$species
(
keys
%names_1_1
)
{
foreach
my
$to
(
@
{
$species
})
{
system
"
perl project_display_xrefs.pl
$script_opts
-to
$to
-delete_names -delete_only
";
foreach
my
$to
(
@
{
$
names_1_1
{
$
species
}
}
)
{
system
"
perl project_display_xrefs.pl
$script_opts
-to
$to
-delete_names -delete_only
\n
";
};
}
...
...
@@ -251,14 +251,14 @@ foreach my $from (@execution_order) {
my
$n
=
substr
("
n_
${from}
_
$to
",
0
,
10
);
# job name display limited to 10 chars
my
$all
=
(
$from
eq
"
human
")
?
""
:
"
--all_sources
";
# non-human from species -> use all sources
print
"
Submitting name projection from
$from
to
$to
\n
";
system
"
bsub
$bsub_opts
-o
$o
-e
$e
-J
$n
perl project_display_xrefs.pl
$script_opts
-from
$from
-to
$to
-names -no_database
$all
";
system
"
bsub
$bsub_opts
-o
$o
-e
$e
-J
$n
perl project_display_xrefs.pl
$script_opts
-from
$from
-to
$to
-names -no_database
$all
\n
";
}
}
print
"
Deleting projected names (one to many)
\n
";
foreach
my
$from
(
keys
%names_1_many
)
{
foreach
my
$to
(
@
{
$names_1_many
{
$from
}})
{
system
"
perl project_display_xrefs.pl
$script_opts
-to
$to
-delete_names -delete_only
";
system
"
perl project_display_xrefs.pl
$script_opts
-to
$to
-delete_names -delete_only
\n
";
}
}
...
...
@@ -270,7 +270,7 @@ foreach my $from (@execution_order) {
my
$e
=
"
$dir
/names_
${from}
_
$to
.err
";
my
$n
=
substr
("
n_
${from}
_
$to
",
0
,
10
);
print
"
Submitting name projection from
$from
to
$to
(1:many)
\n
";
system
"
bsub
$bsub_opts
-o
$o
-e
$e
-J
$n
perl project_display_xrefs.pl
$script_opts
-from
$from
-to
$to
-names -no_database -one_to_many
";
system
"
bsub
$bsub_opts
-o
$o
-e
$e
-J
$n
perl project_display_xrefs.pl
$script_opts
-from
$from
-to
$to
-names -no_database -one_to_many
\n
";
}
}
...
...
@@ -282,7 +282,7 @@ $script_opts .= " -nobackup";
print
"
Deleting projected GO terms
\n
";
foreach
my
$from
(
keys
%go_terms
)
{
foreach
my
$to
(
@
{
$go_terms
{
$from
}})
{
system
"
perl project_display_xrefs.pl
$script_opts
-to
$to
-delete_go_terms -delete_only
";
system
"
perl project_display_xrefs.pl
$script_opts
-to
$to
-delete_go_terms -delete_only
\n
";
}
}
...
...
@@ -295,7 +295,7 @@ foreach my $from (@execution_order) {
my
$e
=
"
$dir
/go_
${from}
_
$to
.err
";
my
$n
=
substr
("
g_
${from}
_
$to
",
0
,
10
);
print
"
Submitting GO term projection from
$from
to
$to
\n
";
system
"
bsub
$bsub_opts
-q long -o
$o
-e
$e
-J
$n
perl project_display_xrefs.pl
$script_opts
-from
$from
-to
$to
-go_terms
";
system
"
bsub
$bsub_opts
-q long -o
$o
-e
$e
-J
$n
perl project_display_xrefs.pl
$script_opts
-from
$from
-to
$to
-go_terms
\n
";
}
}
...
...
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