Online BLAST search using R
0
1
Entering edit mode
3.4 years ago
accibio ▴ 20

Is there a way to incorporate online BLAST search using an R script which takes FASTA sequences as input and returns the BLAST hits?

BLAST R • 3.0k views
ADD COMMENT
0
Entering edit mode

Why do you wish to automate a web crawl on BLAST when blast has a command line utility with online search enabled?

ADD REPLY
0
Entering edit mode

I'm trying to develop an R package for extracting annotations for proteins based on results from BLAST searches. So I need to incorporate BLAST inside the R package.

ADD REPLY
2
Entering edit mode

Why not take BLAST results as input instead? Why not accept a FASTA file instead of a sequence? Use R for data processing, not reinventing the wheel on existing processes. For example, while an R package to parse BAM files is useful, an R package to call variants from BAM is not - not everything needs to be re-implemented in every language.

ADD REPLY
0
Entering edit mode

metablastr is probably what you're looking for. Or you could try using the BLAST API.

I agree with Ram though. You're probably better off telling your users to do their own sequence searches, and just bring your package the output in a standardized format (which you can prescribe). Especially if you're just going to end up telling them to run BLAST locally (in which case you should be telling them to use MMseqs2 at this point because it's faster and lightweight).

ADD REPLY
0
Entering edit mode

Check this R package (https://github.com/gschofl/blastr and https://rdrr.io/github/gschofl/blastr/man/). It looks like BLAST with R. But I failed to find any tutorials about this package.

ADD REPLY
0
Entering edit mode

It's possible with SequenceServer. We've made examples for blasting from within python. And for remote blasting in the unix command-line.

The same concept (i.e. server-side API) should be accessible from R too. But we have yet to make example code.

ADD REPLY

Login before adding your answer.

Traffic: 1601 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