Hello, I need to run blastn on Bacteria to see if my sample really is nesseirai men, and didn't have been contaminated. I downloaded reference seq from ncbi for each bacteria. In a data folder, got many subfolders, each one contains a fasta file (.file), representing a genome.
subfolders
genome file
How can I build a db with this data? I tried the cmd makeblastdb for each genome but it doesn't seem to me the good way.
Thank you
2 answers
I tried the cmd makeblastdb for each genome but it doesn't seem to me the good way.
If you have made the individual databases then use blastdb_alias tool to create a common alias : https://www.ncbi.nlm.nih.gov/books/NBK569848/
Otherwise walk through the folder structure, cat the .fna files into one large fasta and then create one database.
If all of your databases have that identical name then you will need to rename/recreate them. At that point you may as well cat the .fna and re do the blastdb. If you used a script to make the 3500 db you could modify it so the output files gain unique names. You will have to tell us if the aliastool works for 3500 databases.
I'd recommend using some other tools:
They can both compute "signature" from the reads and genomes and analyze the microbial composition. Note that, for querying with genomes, small thresholds should be used.
Based on a different thread these are not metagenomic samples. OP is interested in checking if there is any contamination besides one expected genome (from what I gather it is not normally expected). We already discussed that none of the tools (including blast) are likely to be good for that purpose, especially if the "contamination" is from a close relative.
see if my sample really is nesseirai men, and didn't have been contaminated
OP might have some assemblies of supposed-to-be single-specie data, and they might be mixed with contigs from other species. So we can treat it as metagenomic data, in contigs rather than reads, where a metagenomic profiling tool might help.
We already discussed that none of the tools (including blast) are likely to be good for that purpose, especially if the "contamination" is from a close relative.
Yes, close relatives are hard to tell.
Log in to answer this question.