Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • utagenomics
    Junior Member
    • Apr 2013
    • 4

    Making a Blast Script for FASTA files

    Hi I am trying to BLAST one large genome file with a specific set of sequences and I cannot figure out what is wrong with my script (I am obviously new to scripting). Any help would be greatly appreciated.

    This is my script:

    -in P.reformat.CDS.transcripts.fa -out p.full dbtype=nucl

    blastn -query=NGF.fasta -db=p.full -outfmt="6" -out=blast


    I want to search the "P.reformat.CDS.transcripts.fa" file for anything similar to the sequences in the "NGF.fasta" file.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Are you referring to a script (that may contain multiple lines of code/options) or a command line where you are providing multiple options?

    What you have posted above does not quite look like either (perhaps there is something missing from the copy/paste). Seems like you are creating the database on the first line and the searching on the second?

    What seems to be the error (if any) that you are getting? Are you sure the database was created successfully?
    Last edited by GenoMax; 04-22-2013, 11:23 AM.

    Comment

    • Ciaran
      Junior Member
      • Sep 2011
      • 9

      #3
      In your blast call you do not need the "=" characters

      Comment

      • utagenomics
        Junior Member
        • Apr 2013
        • 4

        #4
        Hey everyone,

        So I successfully made my database in the correct folder, but then when I actually try to run my blast, it isn't working...

        #I used the following to make the db

        makeblastdb -in supercontigs.fasta.txt -dbtype 'nucl' -out p.full

        #I then tried to run this the next step, with and without the '=' sign

        query=NGF.fasta -db=p.full -outfmt="6" -out=blast

        Any ideas how I can change my second step to successfully run the blast search?

        Thanks,
        Kyle

        Comment

        • mastal
          Senior Member
          • Mar 2009
          • 666

          #5
          Making a Blast Script for FASTA files

          Have a look at the blast commandline applications manual,



          particularly the sample queries in the Cookbook section,

          and the use of the 'blastdbcmd' command for checking that
          the database you created is OK, and that your computer knows
          where to find the blast databases.

          Comment

          • kbradnam
            Member
            • May 2011
            • 54

            #6
            It always helps to provide the error message that you get when something "isn't working". The more information you provide, the more likely that someone can help you.

            Comment

            • utagenomics
              Junior Member
              • Apr 2013
              • 4

              #7
              When I posted the above command to run the blast search I received the following error message.


              Command line argument error: Argument "out". File is not accessible: `blast'

              Comment

              • kbradnam
                Member
                • May 2011
                • 54

                #8
                This suggests that you might not have permission to create output files in whatever directory you are running this command in.

                Comment

                • GenoMax
                  Senior Member
                  • Feb 2008
                  • 7142

                  #9
                  Originally posted by utagenomics View Post
                  When I posted the above command to run the blast search I received the following error message.


                  Command line argument error: Argument "out". File is not accessible: `blast'
                  Check the command line examples from the link Maria posted in #5.

                  Please post the entire command line when asking for help. So something like this will work.

                  Code:
                  blast(n/p/x) -query NGF.fasta -db p.full -outfmt 6 -out blast_output_file
                  What kind (nucleotide/protein/translated) of blast search are you trying to run?

                  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
                  10 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...