Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

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

  • #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


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

      Comment


      • #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

        • seqadmin
          Current Approaches to Protein Sequencing
          by seqadmin


          Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
          04-04-2024, 04:25 PM
        • seqadmin
          Strategies for Sequencing Challenging Samples
          by seqadmin


          Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
          03-22-2024, 06:39 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        25 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        29 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        25 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-04-2024, 09:00 AM
        0 responses
        52 views
        0 likes
        Last Post seqadmin  
        Working...
        X