Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • yogeshwar
    Junior Member
    • Apr 2013
    • 2

    sequence retrieval

    hello all , i have data around 500000 seq of a plant and i wanna fetch some 37000 seq from my database ,but what i have is the name of query seq is there any perl program to perform this task ,as i am very new in field of computational genomics and biology.plz help me
  • Rhizosis
    Member
    • Mar 2012
    • 41

    #2
    Could you exactly tell us what kind of data you have in your database?
    What columns are populated?

    If you have the names of the 37000 sequences you would like to extract, you can query the database (assuming its a generic SQL database) quite easily.

    Please provide a bit more info.

    Comment

    • Rhizosis
      Member
      • Mar 2012
      • 41

      #3
      If you have your names of the query sequences in a newline delimited txt file something like the following might help:

      Code:
      #!/usr/bin/perl -w
      use DBI;
      use strict;
      use warnings;
      
      my $dbh = DBI->connect('dbi:mysql:perltest','root','password')
       or die "Connection Error: $DBI::errstr\n";
      
      my $sql;
      
      while(<>){
       my $seq_name = chomp($_);
       $sql = "select seqColName from tableName where queryName='$seq_name'";
       $sth = $dbh->prepare($sql);
       $sth->execute
       or die "SQL Error: $DBI::errstr\n";
       
       print "Query Name: \t Sequence:";
       while (my @row = $sth->fetchrow_array) {
           print "$seq_name\t$row[0]\n";
       } 
      }
      Hope it helps. Otherwise you should provide more info.

      Comment

      • yogeshwar
        Junior Member
        • Apr 2013
        • 2

        #4
        well, i have large amount of fasta seq in my database, and i want to retrieve around 37000 seq of my interest from it , as i am a fresher in bioinformatics and genomics , i have very little idea to do this task using perl coding , that why i really want a perl code who can perform this task.
        And that's why i need ur help

        Comment

        • Rhizosis
          Member
          • Mar 2012
          • 41

          #5
          Well I can give you the answer without a problem. But its important to learn from it yourself too! Especially in the world of bioinformatics.

          Could you layout what your database structure is like? On the command line login to your Mysql database and then type:
          DESCRIBE name_of_table_with_fasta_seqs;

          Whats the structure like, what database are you running? What OS are you running?

          All kind of relevant here.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Originally posted by yogeshwar View Post
            well, i have large amount of fasta seq in my database, and i want to retrieve around 37000 seq of my interest from it
            Are your sequences in a real "database" or are you referring to a file/web accessible resource?

            Comment

            Latest Articles

            Collapse

            • 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
            • SEQadmin2
              Cancer Drug Resistance: The Lingering Barrier to Rising Survival
              by SEQadmin2



              Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

              There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
              07-08-2026, 05:17 AM
            • GATTACAT
              Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
              by GATTACAT
              Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
              07-01-2026, 11:43 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 07-13-2026, 10:26 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-09-2026, 10:04 AM
            0 responses
            31 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-08-2026, 10:08 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-07-2026, 11:05 AM
            0 responses
            34 views
            0 reactions
            Last Post SEQadmin2  
            Working...