Bio::EnsEMBL::DBSQL
AffyFeatureAdaptor
Toolbar
Summary
Bio::EnsEMBL::DBSQL::AffyFeatureAdaptor - A database adaptor for fetching and
storing AffyFeature objects.
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
my $afa = $db->get_AffyFeatureAdaptor();
my $features = $afa->fetch_all_by_AffyProbe($probe);
$features =
$afa->fetch_all_by_Slice_arrayname( $slice, 'Affy-1', 'Affy-2' );
Description
The AffyFeatureAdaptor is a database adaptor for storing and retrieving
AffyFeature objects.
Methods
Methods description
Args : None Example : None Description: PROTECTED implementation of superclass abstract method. Returns an additional table joining constraint to use for queries. Returntype : List of strings Exceptions : None Caller : Internal Status : Medium Risk |
Args : Hashref to be passed to AffyFeature->new_fast() Example : None Description: Construct an AffyFeature object using quick and dirty new_fast. Returntype : Bio::EnsEMBL::AffyFeature Exceptions : None Caller : _objs_from_sth Status : Medium Risk |
Arg [1] : Bio::EnsEMBL::AffyProbe Example : my $features = $afa->fetch_all_by_AffyProbe($probe); Description: Fetchs all features that a given probe creates. Returntype : Listref of Bio::EnsEMBL::AffyFeature objects Exceptions : None Caller : AffyProbe->get_all_AffyFeatures() Status : Medium Risk |
Args : None Example : my @feature_ids = @{$afa->list_dbIDs()}; Description: Gets an array of internal IDs for all AffyFeature objects in the current database. NOTE: In a multi-species database, this method will return the dbIDs of all AffyFeature objects, not just the ones associated with the current species. Returntype : List of ints Exceptions : None Caller : ? Status : Medium Risk |
Methods code
sub _default_where_clause
{ my $self = shift;
return "
of.oligo_probe_id = op.oligo_probe_id
AND op.oligo_array_id = oa.oligo_array_id
AND oa.type='AFFY'
"; } |
sub fetch_all_by_AffyProbe
{ my $self = shift;
my $probe = shift;
return $self->fetch_all_by_Probe($probe); } |
sub list_dbIDs
{ my $self = shift;
my @out;
my $sql = "
SELECT DISTINCT of.oligo_feature_id
FROM oligo_feature of, oligo_probe op, oligo_array oa
WHERE of.oligo_probe_id=op.oligo_probe_id
AND op.oligo_array_id=oa.oligo_array_id
AND oa.type='AFFY'
";
my $sth = $self->prepare($sql);
$sth->execute;
while (my ($id) = $sth->fetchrow() ) {
push @out, $id;
}
$sth->finish;
return\@ out;
}
1; } |
General documentation
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