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
105fc708
Commit
105fc708
authored
13 years ago
by
Gautier Koscielny
Browse files
Options
Downloads
Patches
Plain Diff
LSF dependencies removed. Correction of sql statement to get the list of cores.
parent
2a4087a9
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/alternative_splicing/as_event_computations.sh
+16
-10
16 additions, 10 deletions
misc-scripts/alternative_splicing/as_event_computations.sh
with
16 additions
and
10 deletions
misc-scripts/alternative_splicing/as_event_computations.sh
+
16
−
10
View file @
105fc708
...
...
@@ -89,9 +89,9 @@ then
## Find a core database for this species on the specified server.
if
[[
-n
"
$password
"
&&
$password
!=
""
]]
then
core
=
`
mysql
-h
${
host
}
-P
${
port
}
-u
${
user
}
-p
${
password
}
-s
--skip-column-names
-e
"show databases like '
${
species
}
_core_%'"
`
db
=
`
mysql
-h
${
host
}
-P
${
port
}
-u
${
user
}
-p
${
password
}
-s
--skip-column-names
-e
"show databases like '
${
species
}
\
_
core
\
_
%'"
`
else
core
=
`
mysql
-h
${
host
}
-P
${
port
}
-u
${
user
}
-s
--skip-column-names
-e
"show databases like '
${
species
}
_core_%'"
`
db
=
`
mysql
-h
${
host
}
-P
${
port
}
-u
${
user
}
-s
--skip-column-names
-e
"show databases like '
${
species
}
\
_
core
\
_
%'"
`
fi
else
echo
"Species or/and database name are required."
;
...
...
@@ -99,7 +99,7 @@ then
exit
1
;
fi
else
core
=
${
db
}
;
echo
"Using
${
db
}
as core database."
;
fi
else
echo
"Hostname and username are required."
...
...
@@ -111,7 +111,7 @@ fi
y
=
0
;
for
X
in
${
core
}
for
X
in
${
db
}
do
y
=
$[$y
+1]
;
done
...
...
@@ -126,31 +126,37 @@ fi
if
[[
${
y
}
-gt
1
]]
then
echo
"Check your parameters, there are
${
y
}
databases matching species '
${
species
}
':"
;
echo
"
$
core
"
;
echo
"
$
{
db
}
"
;
exit
1
;
fi
echo
"Using
${
db
}
as core database."
;
# Otherwise, start the pipeline
NOW
=
$(
date
+
"%Y-%m-%d-%H-%M-%S"
)
echo
"Starting pipeline with timestamp '
${
NOW
}
'"
;
echo
"Fetch the gene models from
${
db
}
..."
if
[
-n
"
$password
"
]
then
bsub
-q
normal
-o
${
output_dir
}
/as_gff_
${
species
}
_
${
NOW
}
.out
-e
${
output_dir
}
/as_gff_
${
species
}
_
${
NOW
}
.err
-J
as_gff_
${
species
}
_
${
NOW
}
"
perl Fetch_gff.pl -dbname
${
db
}
-dbhost
${
host
}
-dbport
${
port
}
-dbuser
${
user
}
-dbpass
${
password
}
-o
${
output_dir
}
/
${
species
}
_
${
NOW
}
_variants.gff
"
perl Fetch_gff.pl
-dbname
${
db
}
-dbhost
${
host
}
-dbport
${
port
}
-dbuser
${
user
}
-dbpass
${
password
}
-o
${
output_dir
}
/
${
species
}
_
${
NOW
}
_variants.gff
else
bsub
-q
normal
-o
${
output_dir
}
/as_gff_
${
species
}
_
${
NOW
}
.out
-e
${
output_dir
}
/as_gff_
${
species
}
_
${
NOW
}
.err
-J
as_gff_
${
species
}
_
${
NOW
}
"
perl Fetch_gff.pl -dbname
${
db
}
-dbhost
${
host
}
-dbport
${
port
}
-dbuser
${
user
}
-o
${
output_dir
}
/
${
species
}
_
${
NOW
}
_variants.gff
"
perl Fetch_gff.pl
-dbname
${
db
}
-dbhost
${
host
}
-dbport
${
port
}
-dbuser
${
user
}
-o
${
output_dir
}
/
${
species
}
_
${
NOW
}
_variants.gff
fi
bsub
-q
small
-o
${
output_dir
}
/as_compute_
${
species
}
_
${
NOW
}
.out
-e
${
output_dir
}
/as_compute_
${
species
}
_
${
NOW
}
.err
-w
"done(
\"
as_gff_
${
species
}
_
${
NOW
}
\"
)"
-J
as_compute_
${
species
}
_
${
NOW
}
"altSpliceFinder -i
${
output_dir
}
/
${
species
}
_
${
NOW
}
_variants.gff -o
${
output_dir
}
/
${
species
}
_
${
NOW
}
_events.gff --relax --statistics"
echo
"Compute the Alternative Splicing events"
;
altSpliceFinder
-i
${
output_dir
}
/
${
species
}
_
${
NOW
}
_variants.gff
-o
${
output_dir
}
/
${
species
}
_
${
NOW
}
_events.gff
--relax
--statistics
echo
"Populate
${
db
}
with alternative splicing information"
;
if
[
-n
"
$password
"
]
then
bsub
-q
normal
-o
${
output_dir
}
/as_populate_
${
species
}
_
${
NOW
}
.out
-e
${
output_dir
}
/as_populate_
${
species
}
_
${
NOW
}
.err
-w
"done(
\"
as_compute_
${
species
}
_
${
NOW
}
\"
)"
-J
as_populate_
${
species
}
_
${
NOW
}
"
perl load_alt_splice_gff.pl -file
${
output_dir
}
/
${
species
}
_
${
NOW
}
_events.gff -host
${
host
}
-user
${
user
}
-pass
${
password
}
-dbname
${
core
}
"
perl load_alt_splice_gff.pl
-file
${
output_dir
}
/
${
species
}
_
${
NOW
}
_events.gff
-host
${
host
}
-user
${
user
}
-pass
${
password
}
-dbname
${
db
}
else
echo
"Sorry, you did not provide any password. The script can't populate the database with the Alternative splicing information."
;
echo
"However, the results are available in
${
output_dir
}
/
${
species
}
_
${
NOW
}
_events.gff"
;
fi
echo
"All done."
exit
0
;
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