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
55dc0470
Commit
55dc0470
authored
21 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
Die instead of throw.
parent
a037ae98
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/das_client/Guzzle/Mapper.pm
+9
-9
9 additions, 9 deletions
misc-scripts/das_client/Guzzle/Mapper.pm
with
9 additions
and
9 deletions
misc-scripts/das_client/Guzzle/Mapper.pm
+
9
−
9
View file @
55dc0470
...
...
@@ -68,7 +68,7 @@ sub new {
bless
$self
,
$class
;
if
(
!
defined
$to
)
{
$self
->
throw
("
Must supply from and to tags
");
die
("
Must supply from and to tags
");
}
$self
->
{"
_pair_
$from
"}
=
{};
...
...
@@ -110,7 +110,7 @@ sub map_coordinates{
unless
(
defined
(
$id
)
&&
defined
(
$start
)
&&
defined
(
$end
)
&&
defined
(
$strand
)
&&
defined
(
$type
)
)
{
$self
->
throw
("
Must start,end,strand,id,type as coordinates
");
die
("
Must start,end,strand,id,type as coordinates
");
}
...
...
@@ -127,7 +127,7 @@ sub map_coordinates{
}
unless
(
defined
$hash
)
{
$self
->
throw
("
Type
$type
is neither to or from coordinate systems
");
die
("
Type
$type
is neither to or from coordinate systems
");
}
if
(
$self
->
{'
_is_sorted
'}
==
0
)
{
...
...
@@ -265,7 +265,7 @@ sub fastmap {
}
my
$hash
=
$self
->
{"
_pair_
$type
"}
or
$self
->
throw
("
Type
$type
is neither to or from coordinate systems
");
die
("
Type
$type
is neither to or from coordinate systems
");
if
(
$self
->
{'
_is_sorted
'}
==
0
)
{
$self
->
_sort
();
...
...
@@ -333,11 +333,11 @@ sub add_map_coordinates{
unless
(
defined
(
$contig_id
)
&&
defined
(
$contig_start
)
&&
defined
(
$contig_end
)
&&
defined
(
$contig_ori
)
&&
defined
(
$chr_name
)
&&
defined
(
$chr_start
)
&&
defined
(
$chr_end
))
{
$self
->
throw
("
7 arguments expected
");
die
("
7 arguments expected
");
}
if
(
(
$contig_end
-
$contig_start
)
!=
(
$chr_end
-
$chr_start
)
)
{
$self
->
throw
("
Cannot deal with mis-lengthed mappings so far
");
die
("
Cannot deal with mis-lengthed mappings so far
");
}
my
$pair
=
Guzzle::Mapper::
Pair
->
new
();
...
...
@@ -394,11 +394,11 @@ sub list_pairs{
if
(
!
defined
$type
)
{
$self
->
throw
("
Must start,end,id,type as coordinates
");
die
("
Must start,end,id,type as coordinates
");
}
if
(
$start
>
$end
)
{
$self
->
throw
("
Start is greater than end for id
$id
, start
$start
, end
$end
\n
");
die
("
Start is greater than end for id
$id
, start
$start
, end
$end
\n
");
}
# perhaps a little paranoid/excessive
...
...
@@ -420,7 +420,7 @@ sub list_pairs{
}
unless
(
defined
$hash
)
{
$self
->
throw
("
Type
$type
is neither to or from coordinate systems
");
die
("
Type
$type
is neither to or from coordinate systems
");
}
my
@list
;
...
...
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