Skip to content
Snippets Groups Projects
Commit a2faffcc authored by premanand17's avatar premanand17
Browse files

Updated POD for fetch_all_by_Transcript

parent 2765408f
No related branches found
No related tags found
2 merge requests!147Updated fetch_all_by_Transcript method to optionally filter by featur…,!147Updated fetch_all_by_Transcript method to optionally filter by featur…
......@@ -63,8 +63,8 @@ use vars qw(@ISA);
Arg [1] : Bio::EnsEMBL::Transcript $transcript
The transcript to fetch supporting features for
Arg [2] : String (optional)
Feature type to filter upon (either 'dna_align_feature' or 'protein_align_feature')
Arg [2] : String (optional)
Feature type to filter upon (either 'dna_align_feature' or 'protein_align_feature')
Example : @sfs = @{$supporting_feat_adaptor->fetch_all_by_Transcript($transcript)};
@sfs = @{$supporting_feat_adaptor->fetch_all_by_Transcript($transcript, $feature_type)};
Description: Retrieves supporting features (evidence) for a given transcript.
......@@ -105,12 +105,13 @@ sub fetch_all_by_Transcript {
my $feature;
while(my ($type, $feature_id) = $sth->fetchrow){
if($type eq 'protein_align_feature'){
$feature = $prot_adp->fetch_by_dbID($feature_id);
} elsif($type eq 'dna_align_feature'){
$feature = $dna_adp->fetch_by_dbID($feature_id);
if ($type eq 'protein_align_feature') {
$feature = $prot_adp-> fetch_by_dbID($feature_id);
}
elsif($type eq 'dna_align_feature') {
$feature = $dna_adp-> fetch_by_dbID($feature_id);
} else {
warning("Unknown feature type [$type]\n");
warning("Unknown feature type [$type]\n");
}
if(!$feature) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment