Skip to content
Snippets Groups Projects

export phenotype ontology accessions

Merged Marek Szuba requested to merge github/fork/ima23/feature/phenotype_accession into release/93
4 files
+ 10
1
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -221,6 +221,7 @@ sub fetch_features_by_gene {
unless (defined $gene_ad ) {Catalyst::Exception->throw("Species $species not found.");}
my $phenfeat_ad = $c->model('Registry')->get_adaptor($species,'variation', 'phenotypefeature');
$phenfeat_ad->_include_ontology(1);
    • Created by: nerdstrike

      On balance, perhaps _include_ontology() should not have an underscore prefix if it was intended to be called from outside the object. I won't ask you to change it here, but it is unconventional

    • Created by: ima23

      Thanks for checking @nerdstrike. Yes, well spotted and totally agree. Will sort this out in one of the future releases, as it involves deeper look into the API.

Please register or sign in to reply
my $slice_ad = $c->model('Registry')->get_adaptor($species, "core", "slice");
my $include_assoc = $c->request->parameters->{include_associated};
@@ -269,6 +270,7 @@ sub fetch_features_by_gene {
push @phenotype_features, $record;
}
}
$phenfeat_ad->_include_ontology(0);
return \@phenotype_features;
}