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
70c11cf3
Commit
70c11cf3
authored
20 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
removed obsolete Bio::EnsEMBL::Tile module
parent
17009ada
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/Slice.pm
+1
-37
1 addition, 37 deletions
modules/Bio/EnsEMBL/Slice.pm
modules/Bio/EnsEMBL/Tile.pm
+0
-168
0 additions, 168 deletions
modules/Bio/EnsEMBL/Tile.pm
with
1 addition
and
205 deletions
modules/Bio/EnsEMBL/Slice.pm
+
1
−
37
View file @
70c11cf3
...
...
@@ -59,7 +59,6 @@ use vars qw(@ISA);
use
strict
;
use
Bio::EnsEMBL::
Root
;
# included for backwards compatibility
use
Bio::EnsEMBL::
Tile
;
# included for backwards compatibility
use
Bio::EnsEMBL::
Chromosome
;
# included for backwards compatibility
use
Bio::EnsEMBL::
RawContig
;
# included for backwards compatibility
...
...
@@ -2220,43 +2219,8 @@ sub assembly_type{
sub
get_tiling_path
{
my
$self
=
shift
;
deprecate
('
Use $slice->project("seqlevel") instead.
');
my
$csa
=
$self
->
adaptor
()
->
db
()
->
get_CoordSystemAdaptor
();
#assume that they want the tiling path to the sequence coord system
#this might not work well if this isn't a chromosomal slice
my
$projection
=
$self
->
project
('
seqlevel
');
my
@tiling_path
;
foreach
my
$segment
(
@$projection
)
{
my
(
$slice_start
,
$slice_end
,
$contig
)
=
@$segment
;
my
$contig_ori
=
$contig
->
strand
();
my
$contig_start
=
$contig
->
start
();
my
$contig_end
=
$contig
->
end
();
#the old get_tiling_path always gave back entire contigs in the forward
#strand
$contig
=
$contig
->
adaptor
->
fetch_by_region
('
seqlevel
',
$contig
->
seq_region_name
());
#bless contigs into contigs
$contig
=
bless
(
$contig
,
'
Bio::EnsEMBL::RawContig
');
push
@tiling_path
,
Bio::EnsEMBL::
Tile
->
new_fast
(
$self
,
$slice_start
,
$slice_end
,
$contig
,
$contig_start
,
$contig_end
,
$contig_ori
);
}
return
\
@tiling_path
;
return
[]
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Tile.pm
deleted
100644 → 0
+
0
−
168
View file @
17009ada
# Ensembl module for Bio::EnsEMBL::Tile
#
# Cared for by Arne Stabenau <ensembl-dev@ebi.ac.uk>
#
# Copyright EnsEMBL 2002
#
# You may distribute this module under the same terms as perl itself
# POD documentation - main docs before the code
=head1 NAME
Bio::EnsEMBL::Tile - DEPRECATED - You should not have to use this class.
The Bio::EnsEMBL::Slice::project method should be able
to construct any tiling path that you need.
=head1 AUTHOR - Arne Stabenau
=head1 CONTACT
This modules is part of the Ensembl project http://www.ensembl.org
Questions can be posted to the ensembl-dev mailing list:
ensembl-dev@ebi.ac.uk
=cut
package
Bio::EnsEMBL::
Tile
;
use
vars
qw(@ISA)
;
use
strict
;
use
Bio::EnsEMBL::
Root
;
use
Bio::EnsEMBL::Utils::
Exception
qw(deprecate)
;
@ISA
=
qw(Bio::EnsEMBL::Root)
;
### Only new_fast() is used by the EnsEMBL API
### Otter uses new()
sub
new
{
my
$class
=
shift
;
deprecate
("
Bio::EnsEMBL::Tile is a deprecated class.
\n
If you want a
"
.
'
tiling path it is best to use Bio::EnsEMBL::Slice::project
');
my
$self
=
bless
{},
$class
;
if
(
@
_
)
{
$self
->
throw
("
new does not take any arguments
");
}
return
$self
;
}
=head2 new_fast
Arg [1] : Bio::EnsEMBL::Slice $assembled_seq
The assembled sequence which assembly should be described in this Tile
Arg [2] : int $assembled_start
Arg [3] : int $assembled_end
Where on the sequence the tile starts and ends
Arg [4] : Bio::EnsEMBL::RawContig $component_seq
The sequence that is used to build up the assembled sequence.
Arg [5] : int $component_start
Arg [6] : int $component_end
Which component piece makes up the assembled piece
Arg [7] : int $orientation (+1 or -1)
Example : none
Description: Fast constructor for Tile object
Returntype : Bio::EnsEMBL::Tile
Exceptions : none
Caller : Slice::get_tiling_path()
=cut
sub
new_fast
{
deprecate
("
Bio::EnsEMBL::Tile is a deprecated class.
\n
If you want a
"
.
'
tiling path it is best to use Bio::EnsEMBL::Slice::project
');
# make it really fast
return
bless
{
'
assembled_Seq
'
=>
$_
[
1
],
'
assembled_start
'
=>
$_
[
2
],
'
assembled_end
'
=>
$_
[
3
],
'
component_Seq
'
=>
$_
[
4
],
'
component_start
'
=>
$_
[
5
],
'
component_end
'
=>
$_
[
6
],
'
component_ori
'
=>
$_
[
7
],
# compatibility zone
'
start
'
=>
$_
[
2
],
'
end
'
=>
$_
[
3
],
'
strand
'
=>
$_
[
7
],
'
contig
'
=>
$_
[
4
]
},
$_
[
0
];
}
sub
assembled_Seq
{
my
(
$self
,
$arg
)
=
@_
;
if
(
defined
$arg
)
{
$self
->
{'
assembled_Seq
'}
=
$arg
;
}
return
$self
->
{'
assembled_Seq
'};
}
sub
assembled_start
{
my
(
$self
,
$arg
)
=
@_
;
if
(
defined
$arg
)
{
$self
->
{'
assembled_start
'}
=
$arg
;
$self
->
{'
start
'}
=
$arg
;
}
return
$self
->
{'
assembled_start
'};
}
sub
assembled_end
{
my
(
$self
,
$arg
)
=
@_
;
if
(
defined
$arg
)
{
$self
->
{'
assembled_end
'}
=
$arg
;
$self
->
{'
end
'}
=
$arg
;
}
return
$self
->
{'
assembled_end
'};
}
sub
component_Seq
{
my
(
$self
,
$arg
)
=
@_
;
if
(
defined
$arg
)
{
$self
->
{'
component_Seq
'}
=
$arg
;
$self
->
{'
contig
'}
=
$arg
;
}
return
$self
->
{'
component_Seq
'};
}
sub
component_start
{
my
(
$self
,
$arg
)
=
@_
;
if
(
defined
$arg
)
{
$self
->
{'
component_start
'}
=
$arg
;
}
return
$self
->
{'
component_start
'};
}
sub
component_end
{
my
(
$self
,
$arg
)
=
@_
;
if
(
defined
$arg
)
{
$self
->
{'
component_end
'}
=
$arg
;
}
return
$self
->
{'
component_end
'};
}
sub
component_ori
{
my
(
$self
,
$arg
)
=
@_
;
if
(
defined
$arg
)
{
$self
->
{'
component_ori
'}
=
$arg
;
$self
->
{'
strand
'}
=
$arg
;
}
return
$self
->
{'
component_ori
'};
}
1
;
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