This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Local Blast Error

I'm trying to use blast agains a de novo trinity assembled transcriptome.

blastn -query /trimmed_concat_trinity_assembly.fa \
-db nt \
-outfmt 11 \
-max_target_seqs 5 \
-num_threads 24 \
-out /trimmed_concat_trinity_assembled_blastn.nt_20210203.asn

It runs for quite a while (>60 hours) before I get the following error message:

Error: (802.4) [blastn] [Cannot close serializing output stream] Exception: basic_ios::clear: iostream error
BLAST failed to write output

However, the output file is present (and absolutely enormous! More than 4 x the assembled transcriptome, btu I haven't run out of space, so that doesn't seem to be it).

Any suggestions?

blast rna-seq blastn

My guess is that there is some kind of file size limit (4Gb? 64Gb?) that is either BLAST-dependent or OS-dependent. The actual size of your existing file may tell you what that limit is, assuming there is one.

I suggest you divide your input file into chunks and search them separately, or specify an -evalue that will limit the output size.

Why are you trying to write to ROOT/trimmed_concat_trinity_assembled_blastn.nt_20210203.asn? Is your query file really in ROOT/trimmed_concat_trinity_assembly.fa?

No, I trimmed the filepaths to make it more readable

Also double check if you really need the asn output format (it's not the most space efficient one).

And a word of caution: be careful when using the -max_target_seqs 5 parameter, it might not give you the result you expect.

This link is a great place to start, thanks so much! I had no idea it was so potentially problematic

0 answers

No answers yet.

Log in to answer this question.