Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
WebCvs | Raw content |
use Bio::EnsEMBL::Analysis::Tools::GeneBuildUtils qw(coord_string id
empty_Object);
or use Bio::EnsEMBL::Analysis::Tools::GeneBuildUtils to get all methods
coord_string | Description | Code |
empty_Object | Description | Code |
id | Description | Code |
lies_inside_of_slice | Description | Code |
coord_string | code | next | Top |
Arg [1] : Bio::EnsEMBL::Feature |
empty_Object | code | prev | next | Top |
Arg [1] : Bio::EnsEMBL::Storeable or an object which inherits from it |
id | code | prev | next | Top |
Arg [1] : Bio::EnsEMBL::Feature |
lies_inside_of_slice | code | prev | next | Top |
Arg [1] : Bio::EnsEMBL::Feature |
coord_string | description | prev | next | Top |
my $feature = shift; my ($p, $f, $l) = caller; throw("Must be passed a feature") if(!$feature); my $string = $feature->start."\t".$feature->end."\t".$feature->strand."\t".$feature->slice->seq_region_name; return $string;}
empty_Object | description | prev | next | Top |
my ($object, $include_stable_id) = @_; $object->adaptor(undef); $object->dbID(undef); $object->stable_id(undef) if($object->can("stable_id") && $include_stable_id); return $object;}
id | description | prev | next | Top |
my $feature = shift; my $id; if($feature->can('stable_id') && $feature->stable_id){ $id = $feature->stable_id; }elsif($feature->can('dbID') && $feature->dbID) { $id = $feature->dbID; }else{ $id = 'no-id'; } if($feature->can('biotype') && $feature->biotype){ $id .= "_".$feature->biotype; } return $id;}
lies_inside_of_slice | description | prev | next | Top |
my ($feature, $slice) = @_; if($feature->start > $slice->length || $feature->end < 1){ warning(id($feature)." lies off edge if slice ". $slice->name); return 0; } if($feature->start < 1 && $feature->end > 1){ warning(id($feature)." lies over lower boundary". " of slice ".$slice->name); return 0; } return 1; } 1;}
CONTACT | Top |