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
          Recent Advances in Sequencing Analysis Tools
          by seqadmin


          The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
          Today, 07:48 AM
        • seqadmin
          Essential Discoveries and Tools in Epitranscriptomics
          by seqadmin




          The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
          04-22-2024, 07:01 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Today, 07:17 AM
        0 responses
        11 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-02-2024, 08:06 AM
        0 responses
        19 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-30-2024, 12:17 PM
        0 responses
        20 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-29-2024, 10:49 AM
        0 responses
        28 views
        0 likes
        Last Post seqadmin  
        Working...
        X