Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • firozsiwan
    Junior Member
    • Oct 2012
    • 3

    #1

    setting GBrowse database and query GFF3

    (1) I have uploaded the genome fasta and GFF annotation in the mysql data using following command of Bio:B::SeqFeature::Store database

    ./bp_seqfeature_load.pl -c -d WS240 -u xxx -p xxx c_elegans.PRJNA13758.WS240.genomic.fa c_elegans.PRJNA13758.WS240.annotations.gff3

    (2) Following tables are inserted into my database WS240
    +-----------------+
    | Tables_in_WS240 |
    +-----------------+
    | attribute |
    | attributelist |
    | feature |
    | locationlist |
    | meta |
    | name |
    | parent2child |
    | sequence |
    | typelist |
    +-----------------+

    (3) Now I want to make query in the mysql to extract the sequence and its feature using following commands:

    #!/usr/bin/perl
    use strict;


    use Bio:B::GFF;

    my $db = Bio:B::GFF->new(-dsn => 'dbi:mysql:database=WS240',
    -user => 'XXX',
    -pass => 'XXX',
    -aggregators => 'gene_model{coding_exon,5_UTR,3_UTR/CDS}');

    my $gene_stream = $db->get_seq_stream('gene_model:curated');

    while (my $gene = $gene_stream->next_seq) {
    print $gene->name,"\n";
    for my $part ($gene->get_SeqFeatures) {
    print "\t",join("\t",$part->method,$part->start,$part->end),"\n";
    }
    print "\n";
    }



    (4) I am getting following error:
    ------------- EXCEPTION: Bio::Root::Exception -------------
    MSG: Couldn't execute query SELECT fref,fstart,fstop,fsource,fmethod,fscore,fstrand,fphase,gclass,gname,ftarget_start,ftarget_stop,fdata.fid,fdata.gid
    FROM fdata,ftype,fgroup
    WHERE fgroup.gid = fdata.gid
    AND ftype.ftypeid = fdata.ftypeid
    AND ((fmethod = ? AND fsource = ?) OR (fmethod = ? AND fsource = ?) OR (fmethod = ? AND fsource = ?) OR (fmethod = ? AND fsource = ?))
    ORDER BY fgroup.gname:
    Table 'WS240.fdata' doesn't exist

    STACK: Error::throw
    STACK: Bio::Root::Root::throw /usr/local/share/perl/5.10.0/Bio/Root/Root.pm:368
    STACK: Bio:B::GFF::Adaptor::dbi::caching_handle::do_query /usr/local/share/perl/5.10.0/Bio/DB/GFF/Adaptor/dbi/caching_handle.pm:123
    STACK: Bio:B::GFF::Adaptor::dbi::range_query /usr/local/share/perl/5.10.0/Bio/DB/GFF/Adaptor/dbi.pm:627
    STACK: Bio:B::GFF::Adaptor::dbi::get_features_iterator /usr/local/share/perl/5.10.0/Bio/DB/GFF/Adaptor/dbi.pm:1008
    STACK: Bio:B::GFF::_features /usr/local/share/perl/5.10.0/Bio/DB/GFF.pm:3476
    STACK: Bio:B::GFF::features /usr/local/share/perl/5.10.0/Bio/DB/GFF.pm:1091
    STACK: Bio:B::GFF::get_seq_stream /usr/local/share/perl/5.10.0/Bio/DB/GFF.pm:1132
    STACK: ./aa.pl:12


    (5) Could you kindly suggest me what is wrong with the script (3), what is the best approach to make query with mysql. I also used the bp_bulk_load_gff.pl (Bio:B::GFF) to upload the GFF file into mysql but not working well.

    Thanks
  • emanlee
    Member
    • Apr 2013
    • 15

    #2
    What is between "use Bio:" and "B::GFF;" in the perl script "use Bio: icon B::GFF;" ?

    Comment

    • firozsiwan
      Junior Member
      • Oct 2012
      • 3

      #3
      sorry, it was automatic converted into symbol. it is Bio then :: then DB then :: then GFF
      so "icon" is ":"D

      Thanks
      Last edited by firozsiwan; 05-19-2014, 03:18 PM.

      Comment

      • emanlee
        Member
        • Apr 2013
        • 15

        #4
        REF:

        Comment

        • kmcarr
          Senior Member
          • May 2008
          • 1181

          #5
          You created a Bio:B::SeqFeature database but then are trying to query it with the Bio:B::GFF adapter. This won't work because the database schemas are entirely different. Build your script to use Bio:B::SeqFeature adapter to query the database.

          BTW Bio:B::GFF is deprecated in favor of Bio:B::SeqFeature.

          (How many grins was that?)

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
            by SEQadmin2



            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

            Despite this, “CRISPR helped turn genome editing from a specialized technique into
            ...
            07-31-2026, 11:01 AM
          • SEQadmin2
            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
            by SEQadmin2


            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

            The systematic characterization of the human proteome has
            ...
            07-20-2026, 11:48 AM
          • SEQadmin2
            Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by SEQadmin2



            Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
            ...
            07-09-2026, 11:10 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 08-06-2026, 07:41 AM
          0 responses
          13 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-03-2026, 10:13 AM
          0 responses
          30 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-31-2026, 02:55 AM
          0 responses
          40 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-24-2026, 12:17 PM
          0 responses
          26 views
          0 reactions
          Last Post SEQadmin2  
          Working...