Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fireLog2
    Member
    • Jul 2013
    • 10

    #1

    BLASTp parameter -dbsize problems (blastall -z)

    Hello all,
    I'm stuck at a blastp problem. I want to use the parameter -dbsize to incrementally add sequences to a blast output. Same option is available in blastall with the parameter -z.

    I did several tests before I wrote this posting. I'm trying to use this parameter. But I don't get the right e-values.

    Here an example:
    - I have a FASTA file with 33 sequences: original_seqs.fasta
    - I create a sequence database: makeblastdb -in original_seqs.fasta -dbtype prot -out blast_db
    - output: 33 sequences added
    1. Question: Does this means the database size is: 33? I think so.
    - blast the sequences against each other: blastp -db blast_db -query original_seqs.fasta -outfmt 6 -out all-vs-all_dbSize_default.tsv -evalue 1e-5

    - first use of dbsize: blastp -db blast_db -query original_seqs.fasta -outfmt 6 -out all-vs-all_dbSize_10000.tsv -evalue 1e-5 -dbsize 10000

    - next use of dbsize: blastp -db blast_db -query original_seqs.fasta -outfmt 6 -out all-vs-all_dbSize_33.tsv -evalue 1e-5 -dbsize 33

    2. Question:
    In all three outputs is a different e-value for the same compared sequences. It's clear that the output for dbsize=10000 is different. But why for dbsize=33 (as in the original by default)? Or do I have a false understanding of this blast parameter?

    Later I want to include new sequences. But the evalue should be comparable.
    Last edited by fireLog2; 12-11-2013, 10:05 AM.
  • rhinoceros
    Senior Member
    • Apr 2013
    • 372

    #2
    The E-value is a parameter that describes the number of hits one can “expect” to see by chance when searching a database of a particular size.


    From biostars:

    I don't know the answer yet, but for one, the -dbsize parameter in the blast command line is supposed to be the cumulative length of all the sequences in the database, rather than the number of sequences in the database.
    Last edited by rhinoceros; 12-11-2013, 12:02 PM.
    savetherhino.org

    Comment

    • fireLog2
      Member
      • Jul 2013
      • 10

      #3
      Thank you rhinoceros for helping.

      But I already read that post and tried the cumulative length. In my example they are 13581 aminoacids in all 33 sequences. And with try and error I found that the dbsize must be around 11809 to get the same e-values.

      It should be working somehow. I read it here:
      [...]
      -z db_size is the number of proteins in the set (see “Incrementally add a genome” below)
      [...]
      Incrementally add a genome:
      Once a large all-versus-all BLAST has been completed, you may need to “incrementally” add a new proteome, without re-running the large all-versus-all BLAST. To do so:
      (1) Prepare the new proteome’s FASTA file as you did for the previous ones (Steps 4 and 5);
      (2) Make a new BLAST database that includes all the previous proteins plus the new FASTA file.;
      (3) Use the -z argument of BLAST to simulate the size of the all database, so that the statistics and scoring is compatible with the original all-v-all BLAST. Use the same -z value as was used in the original BLAST.
      [...]
      Source: Fischer, S. (2011), Using OrthoMCL to assign proteins to OrthoMCL-DB groups or to cluster proteomes into new ortholog groups. Curr Protoc Bioinformatics (https://www.ncbi.nlm.nih.gov/pmc/art...report=classic)

      Comment

      • rhinoceros
        Senior Member
        • Apr 2013
        • 372

        #4
        Make a db with 33 sequences
        Make another db with 32 sequences
        Use the same db_size parameter, e.g. 10000 for blasts against both of these dbs. Are the evalues of the hits the same?
        savetherhino.org

        Comment

        • fireLog2
          Member
          • Jul 2013
          • 10

          #5
          Thanks for the idea. Here is the result:
          If I use the same value for db_size for different blast-db, I get same evalues.

          Now is the problem partially solved. Next time, I will set at the beginning a fix value for the db-size, if I will extend it later.

          But how is the db size defined, if you want to know it afterwards?

          Comment

          • dsenalik
            Carrot Scientist
            • Nov 2009
            • 42

            #6
            I found this year-old thread quite helpful. I did my own experiments, 22 sequences of 7723 amino acids.
            I counted amino acids this way:
            Code:
            cat goodProteins.fasta | grep -v '>' | tr -d "\n" | wc -c
            Setting -dbsize 7723 gave the exact same e-values as when -dbsize was not specified.
            Setting -dbsize 7713 gave 2 different e-values
            Setting -dbsize 7600 gave 33 different e-values
            So for me, -dbsize was the total number of amino acids.

            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-15-2026, 10:52 AM
            0 responses
            30 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            37 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            31 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            29 views
            0 reactions
            Last Post SEQadmin2  
            Working...