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
726be5d5
Commit
726be5d5
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
reinstated deprecated invert method, by request of pipeline
parent
c3b8d77c
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/FeaturePair.pm
+20
-9
20 additions, 9 deletions
modules/Bio/EnsEMBL/FeaturePair.pm
with
20 additions
and
9 deletions
modules/Bio/EnsEMBL/FeaturePair.pm
+
20
−
9
View file @
726be5d5
...
...
@@ -435,38 +435,49 @@ sub feature2 {
=head2 invert
Description: DEPRECATED do not use
Arg [1] : (optional) Bio::EnsEMBL::Slice $newslice
Example : $feature->invert();
Description: This method is used to swap the hit and query sides of this
feature in place. A new slice may optionally provided which
this feature will be placed on. If no slice is provided the
feature slice will be set to undef.
Returntype : none
Exceptions : none
Caller : pipeline (BlastMiniGenewise)
=cut
sub
invert
{
my
(
$self
)
=
@_
;
deprecated
('
Do not use this method - it should not be needed
');
my
(
$self
,
$slice
)
=
@_
;
my
$hstart
=
$self
->
{'
hstart
'};
my
$hend
=
$self
->
{'
hend
'};
my
$hstrand
=
$self
->
{'
hstrand
'};
my
$hspecies
=
$self
->
{'
hspecies
'};
my
$hseqname
=
$self
->
{'
hseqname
'};
my
$start
=
$self
->
{'
start
'};
my
$end
=
$self
->
{'
end
'};
my
$strand
=
$self
->
{'
strand
'};
my
$slice
=
$self
->
{'
slice
'};
my
$species
=
$self
->
{'
species
'};
my
$seqname
=
$self
->
seqname
();
$self
->
{'
start
'}
=
$hstart
;
$self
->
{'
end
'}
=
$hend
;
$self
->
{'
strand
'}
=
$hstrand
;
$self
->
{'
species
'}
=
$hspecies
;
$self
->
{'
seqname
'}
=
$hseqname
if
(
defined
(
$hseqname
));
$self
->
{'
hstart
'}
=
$
h
start
;
$self
->
{'
hend
'}
=
$
h
end
;
$self
->
{'
hstrand
'}
=
$
h
strand
;
$self
->
{'
hseqname
'}
=
(
$s
lice
)
?
$slice
->
seq_region_name
:
''
;
$self
->
{'
hstart
'}
=
$start
;
$self
->
{'
hend
'}
=
$end
;
$self
->
{'
hstrand
'}
=
$strand
;
$self
->
{'
hseqname
'}
=
$s
eqname
;
$self
->
{'
hspecies
'}
=
$species
;
$self
->
{'
slice
'}
=
$slice
;
}
...
...
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