blast output using -6 format option
1
0
Entering edit mode
9.5 years ago
S ▴ 100

Hi,

I am running a local blast and save my output using -6 format (tabular). For one hit the result is displayed fine, however for more than one hit, for example when I have two hits, the second result gets appended right at end of the first result (one the same line), I would expect each hit to be on a separate line. How do I get each hit to start on a new line?

Thanks!

blast • 4.3k views
ADD COMMENT
1
Entering edit mode

Interesting problem! Could you maybe give us details on your OS and the text viewer you're using please? Thank you!

ADD REPLY
0
Entering edit mode

Thanks from your question, I figured out that the reason was a text viewer. I was viewing it using notepad, I don't know why in notepad it concatenates the lines. Thanks!

ADD REPLY
1
Entering edit mode

Notepad in Windows uses CRLF (\r\n) as the line separator. BLAST might be outputting lines split with just LF for same hits and with CRLF or LFLF for new hits.

ADD REPLY
1
Entering edit mode

I see....Thanks!

ADD REPLY
1
Entering edit mode

Notepad++ and TextPad are good text editors for Windows.

ADD REPLY
0
Entering edit mode

Did you see this?

ADD REPLY
1
Entering edit mode

I just checked it, I don't think that it answers my question. Thanks for the reply though. Please let me know if my question is not clear. Basically, my second hit result start at the end of the first hit result on the same line right after the first hit result, I would like each result to be on its own line. I am just wondering if this is how blast output the result or there is a parameter setting to solve this.

ADD REPLY
1
Entering edit mode
9.4 years ago
Peter 6.0k

Are you running BLAST on Linux/Mac OS but looking at the results on Windows?

If so, the different line ending characters may not be displayed properly. Try using a text editor like NotePad++ under Windows which understands Unix style new lines. See http://en.wikipedia.org/wiki/Newline

ADD COMMENT

Login before adding your answer.

Traffic: 2443 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6