Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rbruenn
    Junior Member
    • Oct 2015
    • 5

    #1

    New member with a blast database problem

    Hello!

    I am a graduate student at UC Berkeley currently working with raw reads of several transcriptomes in an attempt to find and assemble reads that match a couple of genes I'm studying. This site has already been very useful to me (Thank you!!!!), but I haven't found any answers pertaining to my current problem.

    I was hoping I could get some help with a BLAST problem I'm having. I am working with standalone blast, and am building blast databases from fasta files of transcriptome raw reads. I have successfully used the command:

    makeblastdb -in COST_1_final.fasta -input_type fasta -dbtype nucl -out COST_1_final for several fasta files of raw reads (with varying names of course) but a few of the files result in multiple sets of database files, marked for example <filename>.00.nhr and <filename>.01.nhr with what I believe is an alias file <filename>.nal

    The command as it runs give the usual message:
    Building a new DB, current time: 10/15/2015 10:49:55
    New DB name: COST_u_final
    New DB title: COST_u_final.fasta
    Sequence type: Nucleotide
    Keep Linkouts: T
    Keep MBits: T
    Maximum file size: 1000000000B
    Adding sequences from FASTA; added 16313457 sequences in 937.429 seconds.

    but then results in multiple sets of files.

    Any ideas about how I can make just one set of database files, as has successfully happened with the rest of my fasta files? I would really appreciate any help!!
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    It is normal to get multiple files per blast database. That is how makeblastdb is supposed to work. Just make sure files for a database stay together in the same directory and you use the "basename" for the database (a suggestion: name your database some thing other than your input file name) when you run your searches.

    Comment

    • rbruenn
      Junior Member
      • Oct 2015
      • 5

      #3
      I've always gotten multiple files in the sense of .nhr, .nin, .nsq files, but I am getting 2 of each, like .00.nhr and .01.nhr. Why would that only happen some of the time?

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        That is probably dependent of the size of the input fasta file. e.g. nt database has 32 fragment files now.

        There should a database_name.nal file that enumerates all the file pieces if there are more than one.

        Comment

        • rbruenn
          Junior Member
          • Oct 2015
          • 5

          #5
          Ahhh, interesting! So if I search using the command

          blastn -db COST_u_final.fasta -query Genefiles -outfmt 6 -out BLASTresults.txt

          will it search all of the files that were made?

          Thank you for your help! I had no idea this wasn't a problem since I've never seen this happen before.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Yes that is correct.

            Just to make things less confusing (to others, if needed later on) don't use the fasta file name as the -out database basename.

            Comment

            • rbruenn
              Junior Member
              • Oct 2015
              • 5

              #7
              Thank you for the advice, I will change that practice.

              Comment

              • westerman
                Rick Westerman
                • Jun 2008
                • 1104

                #8
                Hum. I often use the fast file name as the blastDB name. Keeps them together. The extensions are going to be different so there should be no confusion. @GenoMax: what do you use?

                Comment

                • GenoMax
                  Senior Member
                  • Feb 2008
                  • 7142

                  #9
                  I generally drop the .fasta/.fa part when naming a blast db. (Like NCBI. They don't call their db's nt.fa or nr.fa).

                  The idea of using just the "basename" when specifying a db index is a new for some. I suppose keeping the .fasta/.fa may be more logical for them.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                    by SEQadmin2



                    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                    ...
                    10-14-2026, 09:55 AM
                  • SEQadmin2
                    New Genomics Technologies Take Aim at Long-Standing Limits
                    by SEQadmin2


                    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                    ...
                    09-28-2026, 10:25 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 10-22-2026, 11:13 AM
                  0 responses
                  23 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-22-2026, 10:48 AM
                  0 responses
                  20 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-15-2026, 10:52 AM
                  0 responses
                  36 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-14-2026, 05:39 AM
                  0 responses
                  42 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...