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
7cdcfc14
Commit
7cdcfc14
authored
20 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
pass xref to method xref and no longer pass it as an argument in other methods
parent
9dda83a5
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
+16
-4
16 additions, 4 deletions
misc-scripts/xref_mapping/xref_mapper.pl
with
16 additions
and
4 deletions
misc-scripts/xref_mapping/xref_mapper.pl
+
16
−
4
View file @
7cdcfc14
...
...
@@ -3,6 +3,7 @@ use warnings;
use
Getopt::
Long
;
use
Cwd
;
use
XrefMapper::
db
;
use
vars
qw(@INC)
;
...
...
@@ -27,6 +28,7 @@ open(FILE, $file) or die("Could not open input file '$file'");
my
@all_species
;
my
$xref
;
#my $output=undef;
my
$new
=
undef
;
my
$type
;
while
(
my
$line
=
<
FILE
>
)
{
...
...
@@ -42,6 +44,9 @@ while( my $line = <FILE> ) {
if
(
$type
eq
"
species
"){
push
@all_species
,
$new
;
}
# elsif($type eq "output"){
# $output = $new;
# }
else
{
$xref
=
$new
;
}
...
...
@@ -66,9 +71,11 @@ while( my $line = <FILE> ) {
$new
->
species
(
$value
);
}
}
# elsif($key eq "output"){
# $type= "output";
# $new = new XrefMapper::db();
# }
else
{
my
$module
=
"
db
";
use
XrefMapper::
db
;
$type
=
"
xref
";
$new
=
new
XrefMapper::
db
();
}
...
...
@@ -82,6 +89,9 @@ if(defined($new)){ #save last one
if
(
$type
eq
"
species
"){
push
@all_species
,
$new
;
}
# elsif($type eq "output"){
# $output= $new;
# }
else
{
$xref
=
$new
;
}
...
...
@@ -89,8 +99,10 @@ if(defined($new)){ #save last one
}
for
my
$species
(
@all_species
)
{
$species
->
dump_seqs
(
$xref
);
$species
->
run_matching
(
$xref
);
$species
->
xref
(
$xref
);
# $species->output($output);
$species
->
dump_seqs
();
$species
->
run_matching
();
$species
->
store
();
}
...
...
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