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
a449408d
Commit
a449408d
authored
16 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
help and a bug fix
parent
29507fb0
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/xref_mapping/xref_mapper.pl
+58
-20
58 additions, 20 deletions
misc-scripts/xref_mapping/xref_mapper.pl
with
58 additions
and
20 deletions
misc-scripts/xref_mapping/xref_mapper.pl
+
58
−
20
View file @
a449408d
...
...
@@ -35,18 +35,11 @@ GetOptions ('file=s' => \$file,
'
dumpcheck
'
=>
\
$dumpcheck
,
'
upload
'
=>
\
$upload
,
'
verbose
'
=>
\
$verbose
,
'
nofarm
'
=>
\
$nofarm
);
'
nofarm
'
=>
\
$nofarm
,
'
help
'
=>
sub
{
usage
();
exit
(
0
);
}
);
my
$mapper
=
XrefMapper::
SubmitMapper
->
process_file
(
$file
);
########################TEST########################
#my $core_info = XrefMapper::CoreInfo->new($mapper);
#$core_info->test_return_codes();
#exit;
####################################################
my
$mapper
=
XrefMapper::
BasicMapper
->
process_file
(
$file
,
$verbose
);
if
(
defined
(
$dumpcheck
)){
...
...
@@ -67,21 +60,21 @@ my $status = $mapper->xref_latest_status($mapper->verbose);
print
"
current status is
$status
\n
"
if
(
$mapper
->
verbose
);
my
$submitter
=
XrefMapper::
SubmitMapper
->
new
(
$mapper
);
if
(
$status
eq
"
parsing_finished
"){
print
"
\n
Dumping xref & Ensembl sequences
\n
"
if
(
$mapper
->
verbose
);
$mapper
->
dump_seqs
();
$status
=
$mapper
->
xref_latest_status
();
$submitter
->
dump_seqs
();
}
else
{
$
mapp
er
->
no_dump_xref
()
$
submitt
er
->
no_dump_xref
()
}
$status
=
$mapper
->
xref_latest_status
();
if
(
$status
eq
"
core_fasta_dumped
"){
$
mapp
er
->
build_list_and_map
();
$
submitt
er
->
build_list_and_map
();
$status
=
$mapper
->
xref_latest_status
();
}
else
{
...
...
@@ -120,7 +113,6 @@ if($status eq "prioritys_flagged"){ # process the inferred pairs and interpro x
my
$inter
=
XrefMapper::
Interpro
->
new
(
$mapper
);
$inter
->
process
();
}
#$mapper->biomart_test();
# Biomart test each external_db on one ensembl type only and fix it
...
...
@@ -132,13 +124,10 @@ if($status eq "processed_pairs"){
# species specific processing
# i.e. for mouse and human add MGI_curated_gene and HGNC_curated_gene
#$mapper->biomart_test();
$status
=
$mapper
->
xref_latest_status
();
if
(
$status
eq
"
processed_pairs
"){
$mapper
->
official_naming
();
}
#$mapper->biomart_test();
# Coordinate xrefs
...
...
@@ -161,11 +150,14 @@ if($status eq "tests_finished" and $upload){
my
$coord
=
XrefMapper::
CoordinateMapper
->
new
(
$mapper
);
$coord
->
run_coordinatemapping
(
$upload
);
}
$status
=
$mapper
->
xref_latest_status
();
if
(
$status
eq
"
coordinate_xref_finished
"
and
$upload
){
my
$loader
=
XrefMapper::
XrefLoader
->
new
(
$mapper
);
$loader
->
update
();
}
# generate display_xrefs and descriptions for gene and transcripts.
...
...
@@ -178,6 +170,52 @@ if(($status eq "core_loaded" or $status eq "display_xref_done") and $upload){
}
sub
usage
{
print
<<
"
EOF
";
xref_mapper
.
pl
-
file
{
config_file
}
-
verbose
-
upload
-
nofarm
-
file
Name
of
configuration
file
.
For
more
info
on
this
file
see
end
of
help
.
-
dumpcheck
Check
if
the
fasta
files
already
exist
.
If
so
do
not
redump
them
.
-
upload
Write
data
from
xref
database
to
core
database
.
-
verbose
Give
information
about
progress
and
possible
warnings
.
(
Very
much
recomended
)
-
nofarm
Run
the
exonerate
jobs
locally
and
not
on
the
compute
farm
.
Below
is
an
example
of
the
configuration
file
####################################################
xref
host
=
host1
port
=
3306
dbname
=
hedgehog_xref_54
user
=
user1
password
=
pass1
dir
=./
xref
species
=
erinaceus_europaeus
host
=
host2
port
=
3306
dbname
=
erinaceus_europaeus_core_54_1e
user
=
user2
password
=
pass2
dir
=./
ensembl
####################################################
host1
can
be
the
same
as
host2
.
user1
can
be
the
same
as
user2
but
user2
must
have
write
access
and
user1
must
have
at
least
read
access
.
The
directorys
set
by
dir
=
must
already
exist
.
EOF
}
...
...
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