Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • detq182
    Member
    • Feb 2012
    • 20

    Make my own blast DB

    Hi everyone

    I have a question about how to make my own BLASTdb using the result of my Ref-seq work before the annotation step, i mean not like this

    >CL1Contig1
    ACGGGGGAGGCACCATTATTTGGGCTGCAGACAACAAACTGAAATTCTGGCGGCCCGA

    I want it like this with the annotation of the sequennce
    >CL1Contig1 Nascent polypeptide associated complex alpha
    ACGGGGGAGGCACCATTATTTGGGCTGCAGACAACAAACTGAAATTCTGGCGGCCCGA

    Any script of bioperl that could help for my question? or any different solution.

    Note: I known that i have to use format db or makeblastdb to meke the DB

    Thanks you all
  • detq182
    Member
    • Feb 2012
    • 20

    #2
    Any sugestion

    Please help me with that

    Comment

    • maubp
      Peter (Biopython etc)
      • Jul 2009
      • 1544

      #3
      It sounds like you are asking for help in generating a FASTA file with a useful description line (which you can then turn into a BLAST database). How are you making the FASTA file at the moment?

      Comment

      • detq182
        Member
        • Feb 2012
        • 20

        #4
        using perl

        Im using a perl script but i cant get the original query (cDNA) insted im getting out the the protein query (blastx), i don want the protein sequence.

        Code:
        #!/usr/bin/perl  
        use Bio::SearchIO;
        $report_obj = new Bio::SearchIO(-format => 'blast',                                   
                                          -file   => 'C:\blast-2.2.25+\Lib3_consensus_dbUp.xml');   
        while( $result = $report_obj->next_result ) {     
            while( $hit = $result->next_hit ) {       
              while( $hsp = $hit->next_hsp ) {
                 if ( $hsp->evalue < 0.0001 ) {            
                   print $result->query_name(),"\t",$hit->description(),"\n",$hsp->seq_str('query'),
                   "\n";         
                 }       
               }     
             }   
        }
        How can i put this simbol ">" before the query name?

        Comment

        • detq182
          Member
          • Feb 2012
          • 20

          #5
          anyone try to make a Db with the description+sequence?

          Comment

          • westerman
            Rick Westerman
            • Jun 2008
            • 1104

            #6
            Originally posted by detq182 View Post
            anyone try to make a Db with the description+sequence?
            Of course. Just not in the way you are doing it. It is the weekend. The question you are posing is both simple yet so specific to how you are approaching it that I do not think that anyone wanted to take the time over the weekend to try solving your problem. Especially when you post something like:

            How can i put this simbol ">" before the query name?
            Ah. Did you even try a
            Code:
            print '>'
            ???? People generally help others who show some initiative in solving their own problems.

            Comment

            • detq182
              Member
              • Feb 2012
              • 20

              #7
              Originally posted by westerman View Post
              Of course. Just not in the way you are doing it. It is the weekend. The question you are posing is both simple yet so specific to how you are approaching it that I do not think that anyone wanted to take the time over the weekend to try solving your problem. Especially when you post something like:



              Ah. Did you even try a
              Code:
              print '>'
              ???? People generally help others who show some initiative in solving their own problems.
              Im sorry if i dont show some initiative in solving my problem, im in finals on the college and i started just a few days ago learning "Unix and Perl Primer for Biologists", im new in this just 2 month doing some bioinformatics, if the question is stupid im really sorry, im just starting.

              hope that we are OK.

              Comment

              • phoss
                Member
                • Aug 2011
                • 12

                #8
                Hi detq182,
                Why not delimit your fasta header with a special character such as colon or vertical bar?
                For example:
                >header | supplemental-info

                This way, you can embed many annotations adjacent to your fasta header.
                If I'm not mistaken, EBI-GOA follows the above convention.

                Comment

                • detq182
                  Member
                  • Feb 2012
                  • 20

                  #9
                  thanks

                  Im going to try that

                  Comment

                  • SES
                    Senior Member
                    • Mar 2010
                    • 275

                    #10
                    Originally posted by detq182 View Post
                    Im using a perl script but i cant get the original query (cDNA) insted im getting out the the protein query (blastx), i don want the protein sequence.

                    Code:
                    #!/usr/bin/perl  
                    use Bio::SearchIO;
                    $report_obj = new Bio::SearchIO(-format => 'blast',                                   
                                                      -file   => 'C:\blast-2.2.25+\Lib3_consensus_dbUp.xml');   
                    while( $result = $report_obj->next_result ) {     
                        while( $hit = $result->next_hit ) {       
                          while( $hsp = $hit->next_hsp ) {
                             if ( $hsp->evalue < 0.0001 ) {            
                               print $result->query_name(),"\t",$hit->description(),"\n",$hsp->seq_str('query'),
                               "\n";         
                             }       
                           }     
                         }   
                    }
                    How can i put this simbol ">" before the query name?
                    This is a great start, but you will need to add a couple of steps if are trying to add annotations to your original fasta file of sequences. What I mean is that printing the HSP string for the query and hit will not be the entire sequence, just the part involved in the match. If you are only interested in the match part, then just add

                    Code:
                    ">".
                    to the beginning of your print string (following the word "print" of course). Spaces outside of the quotes don't matter, but spaces inside the quotes are important. One more thing is that you will want to delimit your header with something other than a tab, as was previously suggested. That is as easy as replacing the "\t" in the print string with "|".

                    Comment

                    Latest Articles

                    Collapse

                    • 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
                    • 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

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Yesterday, 12:17 PM
                    0 responses
                    11 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-23-2026, 11:41 AM
                    0 responses
                    11 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-20-2026, 11:10 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-13-2026, 10:26 AM
                    0 responses
                    37 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...