Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GSviral
    Member
    • Dec 2014
    • 38

    #1

    Windows Command Prompt FINDSTR

    Hello,

    I am currently working with the latest BLAST+ package configured to be a local BLAST nt database using Windows command prompt.

    I have set up the database to run BLAST which works without any bother.

    Subsequently, I wanted to create a new BLAST database using the makeblastdb command. My input FASTA file is the GenBank viral database.

    When I attempt to create the database the command runs however it reaches an error - "FASTA Reader - No residues found". Through forum searching I have deduced that this is due to there being an empty record in the FASTA file eg:

    >gi|xxxx|
    AGGATGCTAGCT

    >gi|xxxx|

    >gi|yyyyy|
    AGACCGATGACT

    My question is - is there a command on Windows command prompt that can automatically remove these empty headers and output a modified FASTA without them? I know of the FINDSTR command however I can't seem to get it to do what I want as I am not as familiar with command prompt on Windows compared to command line on Linux.

    If I were running Linux this would be no bother as this problem has been documented however the alternative Linux computer I am using simply will not carry out the makeblastdb command as it comes up with a segmentation fault right away, even when I type makeblastdb -help.

    Thanks for any help given.
  • WhatsOEver
    Senior Member
    • Apr 2012
    • 215

    #2
    Why not modifying the file on the linux machine and transferring it to windows?
    Alternatively, you can simply install cygwin on your windows computer which provides grep/sed/awk on default which should be sufficient to solve your problem.

    Comment

    • maubp
      Peter (Biopython etc)
      • Jul 2009
      • 1544

      #3
      You could use a scripting language like Perl or Python for this

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        You can also get rid of those with reformat:

        java -Xmx1g -cp path/to/bbmap/current jgi.ReformatReads in=file.fasta out=filtered.fasta minlen=1

        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
        18 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-13-2026, 09:56 AM
        0 responses
        22 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-09-2026, 11:14 AM
        0 responses
        28 views
        0 reactions
        Last Post SEQadmin2  
        Working...