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
74f677cc
Commit
74f677cc
authored
12 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
Stricter checking semantics.
parent
472a146c
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
modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm
+8
-8
8 additions, 8 deletions
modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm
with
8 additions
and
8 deletions
modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm
+
8
−
8
View file @
74f677cc
...
...
@@ -245,21 +245,21 @@ sub build_overlap_scores {
$self
->
logger
->
info
(
"
Scoring...
\n
",
1
,
'
stamped
'
);
while
(
$source_ec
or
$target_ec
)
{
while
(
defined
(
$source_ec
)
||
defined
(
$target_ec
)
)
{
my
$add_source
=
0
;
my
$add_target
=
0
;
# compare exon containers
if
(
$source_ec
&&
$target_ec
)
{
if
(
defined
(
$source_ec
)
&&
defined
(
$target_ec
)
)
{
my
$cmp
=
$self
->
compare_exon_containers
(
$source_ec
,
$target_ec
);
if
(
$cmp
<=
0
)
{
$add_source
=
1
}
if
(
$cmp
>=
0
)
{
$add_target
=
1
}
}
elsif
(
$source_ec
)
{
elsif
(
defined
(
$source_ec
)
)
{
$add_source
=
1
;
}
elsif
(
$target_ec
)
{
elsif
(
defined
(
$target_ec
)
)
{
$add_target
=
1
;
}
else
{
...
...
@@ -267,7 +267,7 @@ sub build_overlap_scores {
}
if
(
$add_source
)
{
if
(
$source_overlap
{
$source_ec
->
[
0
]
}
)
{
if
(
exists
(
$source_overlap
{
$source_ec
->
[
0
]
}
)
)
{
# remove exon from list of overlapping source exons to score
# target against
delete
$source_overlap
{
$source_ec
->
[
0
]
};
...
...
@@ -290,14 +290,14 @@ sub build_overlap_scores {
$self
->
calc_overlap_score
(
$source_ec
->
[
0
],
$target_exon
,
$matrix
);
}
}
## end else [ if ( $source_overlap{ ...})]
}
# get next source exon container
$source_ec
=
shift
(
@source_exons
);
}
## end if ($add_source)
if
(
$add_target
)
{
if
(
$target_overlap
{
$target_ec
->
[
0
]
}
)
{
if
(
exists
(
$target_overlap
{
$target_ec
->
[
0
]
}
)
)
{
# remove exon from list of overlapping target exons to score
# source against
delete
$target_overlap
{
$target_ec
->
[
0
]
};
...
...
@@ -325,7 +325,7 @@ sub build_overlap_scores {
# get next target exon container
$target_ec
=
shift
(
@target_exons
);
}
## end if ($add_target)
}
## end while ( $source_ec
or $target_ec
)
}
## end while (
defined(
$source_ec
...)
)
$self
->
logger
->
info
(
"
Done.
\n
",
1
,
'
stamped
'
);
...
...
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