Thanks Ketil. I found that code yesterday. Yet to implement. Will do it soon and let you know if it works...
Implementing Blastall Locally With E Value Using Blast Database Using Java
Dear all, I am a PhD student in Bioinformatics. I am looking for a piece of code to run something similar to blastall (linux command) locally (in a client machine) from a downloaded NCBI database and annotate gene on the basis of e value using JAVA API and store results in a output file. Any leads? Many thanks.
Sincere Regards, Alinda
• 4,881 views
•
link
2 answers
Depending on the complexity of your use case, you might want to have a look at BioJava.
Your use case is a bit vague, but it looks to me like like:
- Given a list of sequences
- run blast against a custom/ or whatever, or multiple databases
- "annotate sequences:" by e.g. "Best blast hit" (e-value or more complex strategy) (this step involves parsing the blast-result)
- generate an annotation file: e.g. in GFF format
While you can run the blast command just fine as pointed out by Ketil, the following steps might involve parsing the blast result, have a look at the Cookbook in this case.
• 0 views
•
link
Log in to answer this question.
Your post has great many problems. Why would you want to re-implement blastall when it is available in binary form? Also it highly unclear what you want to get out as well. The question needs to be fixed and when you do so make a comment here.
Thank you Albert for your kind reply. Let's make it precise... I want to execute following string (String cmd) in java and want to store results in a .blast or .fs file. I would like to run the whole process locally in my machine using database downloaded from NCBI in my local machine.
Hope that helps.
Sincere Regards, Alinda
Why do you want to execute blast in java? Can't you just run it from the command line?
Did this method work?Please let me know the process