Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sammy07
    Member
    • Nov 2010
    • 20

    #1

    Blast problem

    Hi everybody, I am a bit desperate and hope someone can help me. I need to create a subset of the nr-database (for blastx) using a negative or positive gi list. There are several possibilities to do this (are there more??):

    1) read the multifasta nr-file and remove some entries; however, the file is almost 8 GB in size and this takes a lot of time (and you have to create the database afterwards)
    2) use blast+ which has a "negative_gi" option; however, another program's parser expects the old output format which seems to differ from blast+
    3) formatdb has a -L option to create a subset of the database based on a file with a positive gi-list
    4) blastall has a -l option to perform the search based on a file with a positive gi-list, which should produce the same result

    Now, the possibilities 3) and 4) seem to be what I need. Unfortunately, they don't work. The problem looks like this:

    my@computer:/tmp/blast/bin$ ls
    . blastclust drosoph.aa.phr fastacmd impala query.fa
    .. blastpgp drosoph.aa.pin formatdb makemat rpsblast
    bl2seq copymat drosoph.aa.psq formatdb.log megablast seedtop
    blastall drosoph.aa drosoph.gi.txt formatrpsdb .ncbirc
    my@computer:/tmp/blast/bin$ ./formatdb -i drosoph.aa -F drosoph.gi.txt -L subset
    [formatdb] FATAL ERROR: Unable to find drosoph.gi.txt

    my@computer:/tmp/blast/bin$ ./formatdb -i drosoph.aa -F ./drosoph.gi.txt -L subset
    [formatdb] FATAL ERROR: Unable to find ./drosoph.gi.txt

    my@computer:/tmp/blast/bin$ ./formatdb -i drosoph.aa -F /tmp/blast/bin/drosoph.gi.txt -L subset
    [formatdb] FATAL ERROR: Unable to find /tmp/blast/bin/drosoph.gi.txt

    my@computer:/tmp/blast/bin$ ./formatdb -i drosoph.aa -F whatever -L subset
    [formatdb] FATAL ERROR: Unable to find whatever

    my@computer:/tmp/blast/bin$ ./blastall -p blastx -d drosoph.aa -l drosoph.gi.txt -i query.fa

    Searching[blastall] ERROR: query1[protein_gi:7290028]: Unable to open file drosoph.gi.txt
    [blastall] WARNING: query1[protein_gi:7290028]: Intersection of gilist and BLAST database ID's empty
    I tried the latest blast version (2.2.25) as well as some other ones, on Fedora and on Ubuntu. Can someone reproduce this behavior?
  • DZhang
    Senior Member
    • Jun 2010
    • 177

    #2
    Hi,

    Both formatdb and blastall complained about drosoph.gi.txt. Can you double check the file? You may post "ls -l" output here.

    Comment

    • sammy07
      Member
      • Nov 2010
      • 20

      #3
      my@computer:/tmp/blast/bin$ ls -l
      total 94040
      ...
      -rwxr-xr-x 1 me me 8 2011-08-07 15:12 drosoph.gi.txt
      ...
      my@computer:/tmp/blast/bin$ head drosoph.gi.txt
      7290028
      The file contains only one line, which is a gi number. I tried setting permissions to 777 for this file, didn't help.

      Comment

      • DZhang
        Senior Member
        • Jun 2010
        • 177

        #4
        1) This is a strange problem. The file belongs to me/me but the login is my. Do you know why. It should not contribute to your problem but I am just curious.
        2) Can you successfully run blast+ in this case? As to the output format, blast+ allows you to customize output fields. You may pursue this as an alternative.

        Comment

        • sammy07
          Member
          • Nov 2010
          • 20

          #5
          1) Well, that's because I changed my true name and did it inconsistently.
          2) Is it possible to change the blast+ output in a way that a parser written for the plain-text blast output can read it?? If would be really happy if this was the case. Otherwise I can't use it. (Anyway, I didn't try a blast+ run with a negative gi-list until now; will do tomorrow.)

          Comment

          • DZhang
            Senior Member
            • Jun 2010
            • 177

            #6
            2) yes. You can specify the fields in tab-delimited format. Check the blast+ manual.

            Comment

            • sammy07
              Member
              • Nov 2010
              • 20

              #7
              Dear DZhang, thank you very much for your replies! But as far as I can see the program I use expects plain-text blast output, and not the tab-delimited format. And the plain-text blast+ output cannot be parsed.

              So I would like to use the old blast version, as it offers the option I need (according to the documentation, the -l parameter for blastall or the -L parameter for formatdb). Can someone reproduce my problem and make any suggestions?

              Comment

              • sammy07
                Member
                • Nov 2010
                • 20

                #8
                Ok, we got it. It almost drove me crazy. Finally, my colleague found out by using the - since today my very favorite - command "strace".

                So, here is the solution: the .ncbirc file has to contain the following lines.

                [BLAST]
                BLASTDB=/path/to/db
                Then the environmental variable is properly set and

                formatdb -i drosoph.aa -F drosoph.gil -L subset
                works like a charm.
                Last edited by sammy07; 08-09-2011, 05:39 AM.

                Comment

                • DZhang
                  Senior Member
                  • Jun 2010
                  • 177

                  #9
                  sammy07, thank you for sharing the solution.

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