3 See the NOTICE file distributed with
this work
for additional information
4 regarding copyright ownership.
6 Licensed under the Apache License, Version 2.0 (the
"License");
7 you may not use
this file except in compliance with the License.
8 You may obtain a copy of the License at
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an
"AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License
for the specific language governing permissions and
16 limitations under the License.
23 Please email comments or questions to the
public Ensembl
24 developers list at <http:
26 Questions may also be sent to the Ensembl help desk at
34 project
function calls
39 $sa->fetch_by_region(
'chromosome',
'X', 1_000_000, 2_000_000 );
41 my $projection = $slice->project(
"clone");
43 foreach my $projection_segment (@$projection) {
44 print(
" from_start ", $projection_segment->from_start(),
"\n" );
45 print(
" from_end ", $projection_segment->from_end(),
"\n" );
47 $projection_segment->to_Slice()->name(),
"\n" );
53 project more accessible. Instead of writing $segment->[0], $segment->[1]
54 or $segment->[2] its possible to use the more descriptive notation of
55 $segment->
from_start(), $segement->from_end(), $segment->to_Slice().
61 package Bio::EnsEMBL::ProjectionSegment;
67 # WARNING: THIS CLASS IS REPRESENTED BY A BLESSED ARRAY REFERENCE
68 # NOT A HASH REFERENCE
78 Example : $coord_in_fetaure_start = $segment->from_start()
79 Description: First element in projects returned segment lists
97 Example : $coord_in_feature_end = $segment->from_end()
98 Description: Second element in projects returned segment lists
117 Example : $target_slice = $segment->to_Slice()
118 Description: Third element in projects returned segment lists