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
352290d9
Commit
352290d9
authored
20 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Added note about unsetting display_xrefs as well.
parent
4812e670
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
+22
-15
22 additions, 15 deletions
misc-scripts/xref_mapping/xref_mapper.pl
with
22 additions
and
15 deletions
misc-scripts/xref_mapping/xref_mapper.pl
+
22
−
15
View file @
352290d9
...
...
@@ -22,6 +22,7 @@ my $use_existing_mappings=undef;
my
$maxdump
=
undef
;
my
$help
;
my
$upload
=
undef
;
my
$deleteexisting
;;
GetOptions
('
file=s
'
=>
\
$file
,
'
verbose
'
=>
\
$verbose
,
...
...
@@ -29,6 +30,7 @@ GetOptions ('file=s' => \$file,
'
useexistingmappings
'
=>
\
$use_existing_mappings
,
'
maxdump=n
'
=>
\
$maxdump
,
'
upload
'
=>
\
$upload
,
'
deleteexisting
'
=>
\
$deleteexisting
,
'
help
'
=>
sub
{
&show_help
();
exit
1
;}
);
usage
("
-file option is required
")
if
(
!
$file
);
...
...
@@ -110,7 +112,7 @@ for my $species ( @all_species ) {
$species
->
parse_mappings
();
$species
->
do_upload
()
if
(
defined
(
$upload
));
$species
->
do_upload
(
$deleteexisting
)
if
(
defined
(
$upload
));
}
...
...
@@ -122,26 +124,31 @@ sub usage {
print
STDERR
"
$msg
\n\n
"
if
(
$msg
);
print
STDERR
<<EOF;
usage:
perl xref_mapper <options>
usage: perl xref_mapper <options>
options: -file <input_file> input file with keyword pairs for 'species',
'host', 'port', 'dbname' ,'user', 'password' and 'directory'
-maxdump <int> dump only <int> sequences.
options:
-dumpcheck only dump if files do not exist.
-file <input_file> input file with keyword pairs for 'species','host',
'port', 'dbname' ,'user', 'password' and 'directory'
-useexistingmapping use existing *.map fil
es
-maxdump <int> dump only <int> sequenc
es
.
-upload upload xref, object_xref, identity_xref data, and set
display_xrefs for genes and transcripts. Data is written
to xref.txt etc regardless of whether this option is used.
-dumpcheck only dump if files do not exist.
-help display this message
example: perl xref_mapper.pl -file mapper.input \\
-verbose
-useexistingmapping use existing *.map files
-upload upload xref, object_xref, identity_xref data, and set
display_xrefs for genes and transcripts. Data is written
to *.txt etc regardless of whether this option is used.
-deleteexisting delete existing data from xref, object_xref,
identity_xref and external synonym tables. Also set all
existing display_xref_id columns in gene and transcript
to null.
-help display this message
example: perl xref_mapper.pl -file mapper.input
EOF
exit
;
...
...
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