Hello, thank you so much for your response. I am now running a blastn of the sequences to NCBI nt. Here is an example of my code:
blastn -query /nas2/blue_crab_chunglab/mingli_data/RNA/trinity_out_dir.Trinity.fasta
-db /nas2/blast_db/nt -outfmt ‘6 std qlen slen sframe stitle’ -evalue 1e-6 -max_target_seqs 1 -num_threads 24 -out FLRNAtrinity_nt.txt
In an effort to reduce the tremendous amount of data that we have, I've limited the search to the #1 match. In the past, another student in my lab aligned the sequences using blastx to the nr database so I have code for that as well. She did the top 5 matches:
blastx -query /data1/minglizhao/Trinity.tmp.fasta -db /nas2/blast_db/nr -outfmt '6 std qlen slen qframe stitle' -evalue 1e-6 -max_target_seqs 5 -num_threads 24 >~/trinitynr.txt
I have an excel sheet of the blastx results (blastn is still running) and when I sort based on percent identity, my best hits are to bacterial organisms or different crab species. Given that I don't want any host RNA in there or even any other microbes that are not viruses, I'll likely want to remove these transcripts. The thing is, I don't know how to automate the process. I know that there are plenty of non-viral sequences in my assembly, and I'd like to remove contamination by starting off with host RNA (and then bacteria, protozoans, and so on) but I do not know how to incorporate that into my code. I've never used NCBI taxonomy but can try to work with it now. Any example codes will be greatly appreciated, thank you so much.