Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
WebCvs | Raw content |
cigar_line | Description | Code |
dbID | Description | Code |
ditag | Description | Code |
ditag_id | Description | Code |
ditag_pair_id | Description | Code |
ditag_side | Description | Code |
end | Description | Code |
fetch_ditag | Description | Code |
get_ditag_location | Description | Code |
hit_end | Description | Code |
hit_start | Description | Code |
hit_strand | Description | Code |
new | Description | Code |
sequence | Description | Code |
slice | Description | Code |
start | Description | Code |
strand | Description | Code |
tag_count | Description | Code |
cigar_line | code | next | Top |
Arg [1] : (optional) value |
dbID | code | prev | next | Top |
Arg [1] : (optional) value |
ditag | code | prev | next | Top |
Arg [1] : (optional) ditag object |
ditag_id | code | prev | next | Top |
Arg [1] : (optional) value |
ditag_pair_id | code | prev | next | Top |
Arg [1] : (optional) value |
ditag_side | code | prev | next | Top |
Arg [1] : (optional) value |
end | code | prev | next | Top |
Arg [1] : (optional) value |
fetch_ditag | code | prev | next | Top |
Description: Deprecated, use ditag() instead |
get_ditag_location | code | prev | next | Top |
Arg [1] : none |
hit_end | code | prev | next | Top |
Arg [1] : (optional) value |
hit_start | code | prev | next | Top |
Arg [1] : (optional) value |
hit_strand | code | prev | next | Top |
Arg [1] : (optional) value |
new | code | prev | next | Top |
Arg [1] : (optional) int dbID |
sequence | code | prev | next | Top |
Arg [1] : (optional) value |
slice | code | prev | next | Top |
Arg [1] : (optional) value |
start | code | prev | next | Top |
Arg [1] : (optional) value |
strand | code | prev | next | Top |
Arg [1] : (optional) value |
tag_count | code | prev | next | Top |
Arg [1] : (optional) value |
cigar_line | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'cigar_line'} = shift; } return $self->{'cigar_line'};}
dbID | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'dbID'} = shift; } return $self->{'dbID'};}
ditag | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'ditag'} = shift; } elsif(!$self->{'ditag'}) { if($self->{'ditag_id'}) { #lazy load the ditag}
my $ditag_adaptor = $self->analysis->adaptor->db->get_DitagAdaptor; $self->{'ditag'} = $ditag_adaptor->fetch_by_dbID($self->ditag_id); } else{ throw "Could not get Ditag for DitagFeature ".$self->dbID; } } return($self->{'ditag'});
ditag_id | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'ditag_id'} = shift; } return $self->{'ditag_id'};}
ditag_pair_id | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'ditag_pair_id'} = shift; } return $self->{'ditag_pair_id'};}
ditag_side | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'ditag_side'} = shift; } return $self->{'ditag_side'};}
end | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'end'} = shift; } return $self->{'end'};}
fetch_ditag | description | prev | next | Top |
throw("Deprecated method, please use ditag() instead.\n")}
get_ditag_location | description | prev | next | Top |
my $self = shift; my ($start, $end, $strand); if($self->ditag_side eq "F"){ $start = $self->start; $end = $self->end; } else{ my ($ditag_a, $ditag_b, $more); eval{ ($ditag_a, $ditag_b, $more) = @{$self->adaptor->fetch_all_by_ditagID($self->ditag_id, $self->ditag_pair_id, $self->analysis->dbID)}; }; if($@ or !defined($ditag_a) or !defined($ditag_b)){ throw("Cannot find 2nd tag of pair (".$self->dbID.", ".$self->ditag_id.", ". $self->ditag_pair_id.", ".$self->analysis->dbID.")\n".$@); } else{ # if(defined $more){}
# throw("More than two DitagFeatures were returned for ".$self->dbID.", ".$self->ditag_id
# .", ".$self->ditag_pair_id);
# }
($ditag_a->start < $ditag_b->start) ? ($start = $ditag_a->start) : ($start = $ditag_b->start); ($ditag_a->end > $ditag_b->end) ? ($end = $ditag_a->end) : ($end = $ditag_b->end); if($ditag_a->strand != $ditag_b->strand){ throw('the strands of the two ditagFeatures are different! '.$ditag_a->strand.'/'.$ditag_b->strand); } } } return($start, $end, $self->strand);
hit_end | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'hit_end'} = shift; } return $self->{'hit_end'};}
hit_start | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'hit_start'} = shift; } return $self->{'hit_start'};}
hit_strand | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'hit_strand'} = shift; } return $self->{'hit_strand'};}
new | description | prev | next | Top |
my ($caller, @args) = @_; my ( $dbID, $adaptor, $start, $end, $strand, $slice, $analysis, $hit_start, $hit_end, $hit_strand, $ditag_id, $ditag_side, $cigar_line, $ditag_pair_id, $tag_count, $ditag ) = rearrange( [ 'dbid', 'adaptor' ,'start', 'end', 'strand', 'slice', 'analysis', 'hit_start', 'hit_end', 'hit_strand', 'ditag_id', 'ditag_side', 'cigar_line', 'ditag_pair_id' ,'tag_count', 'ditag'], @args ); my $class = ref($caller) || $caller; if($analysis) { if(!ref($analysis) || !$analysis->isa('Bio::EnsEMBL::Analysis')) { throw('-ANALYSIS argument must be a Bio::EnsEMBL::Analysis not '. $analysis); } } if(defined($strand)) { if(!($strand =~ /^-?\d$/) or !($strand == 1) && !($strand == -1) && !($strand == 0)) { throw('-STRAND argument must be 1, -1, or 0'); } } if(defined($hit_strand)) { if(!($hit_strand == 1) && !($hit_strand == -1) && !($hit_strand == 0)) { throw('-HIT_STRAND argument must be 1, -1, or 0 not '.$hit_strand); } } if(defined($start) && defined($end)) { if($end+1 < $start) { throw('Start must be less than or equal to end+1.'); } } else{ throw('Need start and end location.'); } if(!(defined($hit_start) && defined($hit_end))) { throw('Need hit start and hit end location.'); } if(!defined($tag_count) or (!$tag_count =~ /^[\d]+$/)){ $tag_count = 1; } my $self = bless( {'dbID' => $dbID, 'analysis' => $analysis, 'adaptor' => $adaptor, 'slice' => $slice, 'start' => $start, 'end' => $end, 'strand' => $strand, 'hit_start' => $hit_start, 'hit_end' => $hit_end, 'hit_strand' => $hit_strand, 'ditag_id' => $ditag_id, 'ditag_pair_id' => $ditag_pair_id, 'ditag_side' => $ditag_side, 'cigar_line' => $cigar_line, 'tag_count' => $tag_count, 'ditag' => $ditag, }, $class); return $self;}
sequence | description | prev | next | Top |
my $self = shift; $self->{'sequence'} = $self->adaptor->sequence($self->dbID()); return $self->{'sequence'};}
slice | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'slice'} = shift; } return $self->{'slice'};}
start | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'start'} = shift; } return $self->{'start'};}
strand | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'strand'} = shift; } return $self->{'strand'};}
tag_count | description | prev | next | Top |
my $self = shift; if(@_) { $self->{'tag_count'} = shift; } return $self->{'tag_count'}; } 1;}
LICENSE | Top |
Copyright (c) 1999-2009 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license. For license details, please see /info/about/code_licence.html
CONTACT | Top |
Please email comments or questions to the public Ensembl
developers list at <ensembl-dev@ebi.ac.uk>.
Questions may also be sent to the Ensembl help desk at <helpdesk@ensembl.org>.