Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SDPA_Pet
    Senior Member
    • Apr 2013
    • 222

    #1

    How create a db for NCBI BLASTN

    Hello, I have some metagenomic contigs and I want to use blastn against Silva SSU and LSU database to get taxa information.

    I download the Silva RDP database from here in fasta format



    I try to use blastn to blast it directly. However, it doesn't work. Someone told me I have to convert it to NCBI format, but I don't know how to do it.

    Also, the Silva database sequences are RNA seqs. I think I need to convert it to DNA first. I don't know how to do it.

    I know after I convert it to DNA seqs, I can use "makeblastdb" to convert make the database. However, I don't know how to set "makeblastdb" parameters.

    Can anyone help me. Post the scripts I should use.

    Thanks,
    Ben
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    See this page for the BLAST help: http://www.ncbi.nlm.nih.gov/books/NBK1763/. If you search for "makeblastdb" (you will need to find the 3rd or 4th occurrence) then you will see this command line example:

    Code:
    $ makeblastdb -in hs_chr –input_type blastdb -dbtype nucl -parse_seqids \
     -mask_data hs_chr_mask.asnb -out hs_chr -title \
     "Human Chromosome, Ref B37.1"
    If you type
    Code:
    makeblastdb -help
    in your terminal window you will be able to get detailed program options.

    What OS are you using?

    Comment

    • mastal
      Senior Member
      • Mar 2009
      • 666

      #3
      How create a db for NCBI BLASTN

      Here is an example of the makeblastdb command,

      $ makeblastdb -in hs_chr.fa -dbtype nucl -parse_seqids \
      -out hs_chr -title "Human chromosomes, Ref B37.1"

      taken from the 'Cookbook' section of the BLAST Command Line Applications User Manual



      You may also want to look at some of the previous threads here on SEQanswers, for example,

      Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc




      Best wishes,
      Maria

      Comment

      • SDPA_Pet
        Senior Member
        • Apr 2013
        • 222

        #4
        I use windows7 blastn.

        I try "$ makeblastdb -in hs_chr –input_type blastdb -dbtype nucl -parse_seqids
        -mask_data hs_chr_mask.asnb -out hs_chr -title \
        "Human Chromosome, Ref B37.1"

        It didn't work. I need to convert Silva RDP fasta database to NCBI database.

        I don't think I need a title. what is mask_data for.

        I run this


        D:\ME>makeblastdb -in LSURef_111_tax_silva.fasta -dbtype nucl -parse_seqids -out LSURef_111_tax_silva.ncbi.db


        Building a new DB, current time: 04/04/2013 10:41:10
        New DB name: LSURef_111_tax_silva.ncbi.db
        New DB title: LSURef_111_tax_silva.fasta
        Sequence type: Nucleotide
        Keep Linkouts: T
        Keep MBits: T
        Maximum file size: 1000000000B
        Adding sequences from FASTA; added 29306 sequences in 3.68226 seconds.

        It looks successful, but I can't use the output file for blastn.

        If anyone can leave your dropbox account for me, I can share my file to you.

        So you can try it, you will know it won't work.

        Here is the link that I download the fasta format database from Silva RDP



        LSURef_111_tax_silva.fasta.tgz is the file that I want to convert to NCBI format

        Ben
        Last edited by SDPA_Pet; 04-04-2013, 11:17 AM.

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #5
          Originally posted by SDPA_Pet View Post

          It looks successful, but I can't use the output file for blastn.


          Ben
          What exactly is happening? Are you getting no results/error messages?

          Comment

          • SDPA_Pet
            Senior Member
            • Apr 2013
            • 222

            #6
            Originally posted by GenoMax View Post
            What exactly is happening? Are you getting no results/error messages?
            I run "makeblastdb -in LSURef_111_tax_silva.fasta -dbtype nucl -out LSURef_111_tax_silva.ncbi.db"

            I have got three output files:

            LSURef_111_tax_silva.ncbi.db.nhr
            LSURef_111_tax_silva.ncbi.db.nin
            LSURef_111_tax_silva.ncbi.db.nsq

            I try all of them for blastn

            Run:
            blastn -query test.fna -db LSURef_111_tax_silva.ncbi.db.nhr -out out_test -evalue 1e-6

            I got this

            BLAST Database error: No alias or index file found for nucleotide database [LSURef_111_tax_silva.ncbi.db.nhr] in search path [D:\ME;;]

            I don't know what happened.

            Ben

            Comment

            • yzzhang
              Member
              • Jan 2013
              • 67

              #7
              you should run command
              blastn -query test.fna -db LSURef_111_tax_silva.ncbi.db -out out_test -evalue 1e-6
              try it to see if it works
              Regards

              Comment

              • kmcarr
                Senior Member
                • May 2008
                • 1181

                #8
                Originally posted by SDPA_Pet View Post
                Run:
                blastn -query test.fna -db LSURef_111_tax_silva.ncbi.db.nhr -out out_test -evalue 1e-6

                I got this

                BLAST Database error: No alias or index file found for nucleotide database [LSURef_111_tax_silva.ncbi.db.nhr] in search path [D:\ME;;]

                I don't know what happened.

                Ben
                Don't add ".nhr" to the name of your blastdb in the command, just use the base blastdb name, which in this case would be LSURef_111_tax_silva.ncbi.db

                BLASTN will find the specific files it needs from the basename.
                Last edited by kmcarr; 04-04-2013, 12:13 PM. Reason: Crossed replies with yzzhang

                Comment

                • SDPA_Pet
                  Senior Member
                  • Apr 2013
                  • 222

                  #9
                  Originally posted by yzzhang View Post
                  you should run command
                  blastn -query test.fna -db LSURef_111_tax_silva.ncbi.db -out out_test -evalue 1e-6
                  try it to see if it works
                  Regards
                  The point is that I don't have this output "LSURef_111_tax_silva.ncbi.db"

                  I only got three output files:
                  LSURef_111_tax_silva.ncbi.db.nhr
                  LSURef_111_tax_silva.ncbi.db.nin
                  LSURef_111_tax_silva.ncbi.db.nsq

                  It looks I didn't convert my db correctly at the first step.

                  Comment

                  • kmcarr
                    Senior Member
                    • May 2008
                    • 1181

                    #10
                    Originally posted by SDPA_Pet View Post
                    The point is that I don't have this output "LSURef_111_tax_silva.ncbi.db"

                    I only got three output files:
                    LSURef_111_tax_silva.ncbi.db.nhr
                    LSURef_111_tax_silva.ncbi.db.nin
                    LSURef_111_tax_silva.ncbi.db.nsq

                    It looks I didn't convert my db correctly at the first step.
                    The point is you aren't supposed to provide a full filename as the blastdb, only its base file name which in your case is "LSURef_111_tax_silva.ncbi.db". BLAST figures out the rest.

                    Trust us, we know what we're talking about.

                    Comment

                    • SDPA_Pet
                      Senior Member
                      • Apr 2013
                      • 222

                      #11
                      Originally posted by kmcarr View Post
                      The point is you aren't supposed to provide a full filename as the blastdb, only its base file name which in your case is "LSURef_111_tax_silva.ncbi.db". BLAST figures out the rest.

                      Trust us, we know what we're talking about.
                      Thank you. You are right.

                      BTW, the parameters that I used are enough to create a good database file?

                      makeblastdb -in LSURef_111_tax_silva.fasta -dbtype nucl -out LSURef_111_tax_silva.ncbi.db

                      I just use "-dbtype nucl ". Anything else I should include?

                      Ben

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #12
                        Originally posted by SDPA_Pet View Post

                        BTW, the parameters that I used are enough to create a good database file?

                        Ben
                        If you did get output that makes sense then those parameters were adequate.

                        Did you manage to get the search to work?

                        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, Today, 10:13 AM
                        0 responses
                        10 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-31-2026, 02:55 AM
                        0 responses
                        23 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-24-2026, 12:17 PM
                        0 responses
                        19 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-23-2026, 11:41 AM
                        0 responses
                        18 views
                        0 reactions
                        Last Post SEQadmin2  
                        Working...