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
bafd611b
Commit
bafd611b
authored
14 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
In new(): When comparing slices, also take the coordinate system names
of the two slices into account. From Michael S.
parent
f7285f6e
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/Intron.pm
+24
-23
24 additions, 23 deletions
modules/Bio/EnsEMBL/Intron.pm
with
24 additions
and
23 deletions
modules/Bio/EnsEMBL/Intron.pm
+
24
−
23
View file @
bafd611b
...
...
@@ -54,45 +54,46 @@ use Bio::EnsEMBL::Utils::Argument qw( rearrange );
=cut
sub
new
{
my
(
$class
,
$e1
,
$e2
)
=
@_
;
my
(
$proto
,
$e1
,
$e2
)
=
@_
;
$class
=
ref
$class
||
$
class
;
$class
=
ref
$class
||
$
proto
;
my
$self
=
$class
->
SUPER::
new
();
if
(
$e1
->
strand
==
-
1
){
$self
->
{'
end
'}
=
(
$e1
->
start
)
-
1
;
$self
->
{'
start
'}
=
(
$e2
->
end
)
+
1
;
}
else
{
$self
->
{'
start
'}
=
(
$e1
->
end
)
+
1
;
$self
->
{'
end
'}
=
(
$e2
->
start
)
-
1
;
if
(
$e1
->
strand
()
==
-
1
)
{
$self
->
{'
end
'}
=
$e1
->
start
()
-
1
;
$self
->
{'
start
'}
=
$e2
->
end
()
+
1
;
}
else
{
$self
->
{'
start
'}
=
$e1
->
end
()
+
1
;
$self
->
{'
end
'}
=
$e2
->
start
()
-
1
;
}
if
(
$e1
->
strand
!=
$e2
->
strand
){
# throw("Exons on different strand. Not allowed");
}
else
{
$self
->
{'
strand
'}
=
$e1
->
strand
;
if
(
$e1
->
strand
()
!=
$e2
->
strand
()
)
{
# throw("Exons on different strand. Not allowed");
}
else
{
$self
->
{'
strand
'}
=
$e1
->
strand
();
}
if
(
$e1
->
slice
ne
$e2
->
slice
){
if
(
$e1
->
slice
->
seq_region_name
ne
$e2
->
slice
->
seq_region_name
){
if
(
$e1
->
slice
()
ne
$e2
->
slice
()
)
{
if
(
(
$e1
->
slice
()
->
seq_region_name
()
ne
$e2
->
slice
()
->
seq_region_name
()
)
&&
(
$e1
->
slice
()
->
coord_system_name
()
ne
$e2
->
slice
()
->
coord_system_name
()
)
)
{
throw
("
Exons on different slices. Not allowed
");
}
else
{
warn
(
"
Exons have different slice references
"
.
"
to the same seq_region
\n
"
);
}
else
{
warn
("
Exons have different slice references to the same seq_region
\n
");
}
}
else
{
$self
->
{'
slice
'}
=
$e1
->
slice
;
}
else
{
$self
->
{'
slice
'}
=
$e1
->
slice
();
}
$self
->
{'
prev
'}
=
$e1
;
$self
->
{'
next
'}
=
$e2
;
return
$self
;
}
}
## end sub new
=head2 prev_Exon
...
...
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