Skip to content

Local BLAST

Install local BALST in a Conda environment

mamba install bioconda::blast

Create a local BLAST database

makeblastdb -in algae.fasta -out algaedb -dbtype 'nucl' -hash_index

Install rBLAST

NCBI BLAST GitHub repo

install.packages('rBLAST', repos = 'https://mhahsler.r-universe.dev')

Search a local BLAST database using rBLAST

library(rBLAST)
bl <- blast(db = file.path(bdb), type = "blastp") # Create an rBLAST object
bl_res <- predict(bl, AAStringSet(aa_seq)) # Pass the sequence to search as an XStringSet object