Bio::EnsEMBL::ExternalData::SNPSQL DBAdaptor
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::ExternalData::SNPSQL::DBAdaptor - Class for a sequence
variation database providing external features for EnsEMBL
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::DBSQL::DBAdaptor
Inherit
Bio::EnsEMBL::DBSQL::DBAdaptor
Synopsis
  use Bio::EnsEMBL::External::SNPSQL::DBAdaptor;
$snpdb = Bio::EnsEMBL::ExternalData::SNPSQL::DBAdaptor->new( -dbname => 'snp'
-user => 'root'
);
# accessing sequence variations by id # $snp is a Bio::EnsEMBL::ExternalData::Variation object # the method call returns an array of Variation objects; # one for each location my @snps = $snpdb->get_SNPAdaptor->fetch_by_refsnp_id("578"); my $snp = pop @snps;
Description
This object is an abstraction over the EnsEMBL SNP database. Adaptors can
be obtained for the database to allow for the storage or retrival of objects
stored within the database.
Methods
get_Ensembl_SeqFeatures_clone
No description
Code
get_Ensembl_SeqFeatures_clone_web
No description
Code
get_Ensembl_SeqFeatures_contig
No description
Code
get_Hitcount
No description
Code
get_SeqFeature_by_id
No description
Code
get_available_adaptors
No description
Code
get_max_refsnpid
No description
Code
get_snp_info_between_two_internalids
No description
Code
get_snp_info_by_refsnpid
No description
Code
Methods description
None available.
Methods code
get_Ensembl_SeqFeatures_clonedescriptionprevnextTop
sub get_Ensembl_SeqFeatures_clone {
  my ($self, @args) = @_;
 
  $self->warn("get_Ensembl_SeqFetures_clone is deprecated. " .
      "Use:\$ db_adaptor->get_SNPAdaptor()->fetch_by_clone_" .
      "accession_version(\$acc,\$ ver) instead\n");
  
  return $self->get_SNPAdaptor()->fetch_by_clone_accession_version(@args);
}
get_Ensembl_SeqFeatures_clone_webdescriptionprevnextTop
sub get_Ensembl_SeqFeatures_clone_web {
  my ($self, @args) = @_;

  $self->warn("get_Ensembl_SeqFeatures_clone_web is deprecated. " .
       "To draw web features the Lite database should be used instead. " .
       "Try using: " .
       "\$lite_dbadaptor->get_SNPAdaptor()->fetch_by_Slice(\$slice)");
}
get_Ensembl_SeqFeatures_contigdescriptionprevnextTop
sub get_Ensembl_SeqFeatures_contig {
  my $self = shift;

  $self->throw("get_Ensembl_SeqFeatures_contig is deprecated\n");

  return ();
}
get_HitcountdescriptionprevnextTop
sub get_Hitcount {
    my ($self) = @_;
    my $sth=$self->prepare("select count(*) from RefSNP");
    my $res=$sth->execute();

    my ($count) = $sth->fetchrow_array();
   
    return $count;
}
get_SeqFeature_by_iddescriptionprevnextTop
sub get_SeqFeature_by_id {
  my ($self, @args) = @_;

  $self->warn("get_SeqFeature_by_id is deprecated. " .
     "Use\$ db_adaptor->get_SNPAdaptor()->fetch_by_SNP_id(\$id) instead\n");

  return $self->get_SNPAdaptor()->fetch_by_SNP_id(@args);
}
get_available_adaptorsdescriptionprevnextTop
sub get_available_adaptors {
  my %pairs = ("SNP", "Bio::EnsEMBL::ExternalData::SNPSQL::SNPAdaptor");
  return (\%pairs);
}


#######################################################################
#
# BEGIN DEPRECATED FUNCTIONS
#
#######################################################################
}
get_max_refsnpiddescriptionprevnextTop
sub get_max_refsnpid {
    my ($self) = @_;
    my $sth=$self->prepare("select max(id) from RefSNP");
    my $res=$sth->execute();

    my ($count) = $sth->fetchrow_array();
   
    return $count;
}
get_snp_info_between_two_internalidsdescriptionprevnextTop
sub get_snp_info_between_two_internalids {
  my ($self, @args) = @_;

  $self->warn("get_snp_info_between_two_internalids is deprecated. Use: " .
     "\$db_adaptor->get_SNPAdaptor()->fetch_between_refsnpids(\$id1,\$ id2)");

  return $self->get_SNPAdaptor()->fetch_between_refsnpids(@args);
}
get_snp_info_by_refsnpiddescriptionprevnextTop
sub get_snp_info_by_refsnpid {
  my($self, @args) = @_;
  
  $self->warn("get_snp_info_by_refsnpid is deprecated.  Use: " .
        "\$db_adaptor->get_SNPAdaptor()->fetch_by_refsnpid(\$id)");

  return $self->get_SNPAdaptor()->fetch_by_refsnpid(@args);
}

1;
}
General documentation
FEEDBACKTop
Mailing ListsTop
  User feedback is an integral part of the evolution of this
and other Ensebl modules. Send your comments and suggestions preferably
to one of the Bioperl mailing lists.
Your participation is much appreciated.
vsns-bcd-perl@lists.uni-bielefeld.de - General discussion vsns-bcd-perl-guts@lists.uni-bielefeld.de - Technically-oriented discussion http://bio.perl.org/MailList.html - About the mailing lists
Reporting BugsTop
  Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution.
Bug reports can be submitted via email or the web:
ensembl-dev@ebi.ac.uk - General discussion
AUTHOR - Heikki LehvaslaihoTop
  Email heikki@ebi.ac.uk
Address:
     EMBL Outstation, European Bioinformatics Institute
Wellcome Trust Genome Campus, Hinxton
Cambs. CB10 1SD, United Kingdom
APPENDIXTop
The rest of the documentation details each of the object
methods. Internal methods are usually preceded with a _