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
3ab94784
Commit
3ab94784
authored
18 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Added -new_assembly, -old_assembly options
parent
4e136372
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/regulatory_regions/load_regulatory.pl
+19
-12
19 additions, 12 deletions
misc-scripts/regulatory_regions/load_regulatory.pl
with
19 additions
and
12 deletions
misc-scripts/regulatory_regions/load_regulatory.pl
+
19
−
12
View file @
3ab94784
...
...
@@ -7,17 +7,19 @@ use RegulatoryFeatureParser::BaseParser;
use
Bio::EnsEMBL::DBSQL::
DBAdaptor
;
use
Getopt::
Long
;
my
(
$host
,
$user
,
$pass
,
$port
,
$dbname
,
$file
,
$del
,
$type
);
GetOptions
(
"
host=s
",
\
$host
,
"
user=s
",
\
$user
,
"
pass=s
",
\
$pass
,
"
port=i
",
\
$port
,
"
dbname=s
",
\
$dbname
,
"
type=s
",
\
$type
,
"
file=s
",
\
$file
,
"
delete
",
\
$del
,
"
help
",
\
&usage
my
(
$host
,
$user
,
$pass
,
$port
,
$dbname
,
$file
,
$del
,
$type
,
$old_assembly
,
$new_assembly
);
GetOptions
(
"
host=s
",
\
$host
,
"
user=s
",
\
$user
,
"
pass=s
",
\
$pass
,
"
port=i
",
\
$port
,
"
dbname=s
",
\
$dbname
,
"
type=s
",
\
$type
,
"
file=s
",
\
$file
,
"
delete
",
\
$del
,
"
help
",
\
&usage
,
"
old_assembly=s
",
\
$old_assembly
,
"
new_assembly=s
",
\
$new_assembly
);
my
$db_adaptor
=
new
Bio::EnsEMBL::DBSQL::
DBAdaptor
('
-host
'
=>
$host
,
...
...
@@ -50,7 +52,7 @@ if ($file) {
die
"
Can't find
$file
\n
"
if
(
!-
e
$file
);
my
$objects
=
$parser
->
parse
(
$db_adaptor
,
$file
);
my
$objects
=
$parser
->
parse
(
$db_adaptor
,
$file
,
$old_assembly
,
$new_assembly
);
$parser
->
upload_features_and_factors
(
$db_adaptor
,
$objects
);
...
...
@@ -81,6 +83,11 @@ Usage: perl $0 <options>
-delete Delete all data related to regulatory features of specified type before loading
-old_assembly, -new_assembly If *both* these options are specified, co-ordinates will be
projected from the old assembly to the new assembly before being stored. This
relies on a suitable mapping between the two assemblies having already been
carried out.
-help This message
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