Runs BLAST using the ptr
BLASTFile2DB(
ptr,
query,
subject,
out_file = NULL,
out_format = NULL,
num_threads = 0L,
return_values = TRUE,
min_batch_size = 0L
)(Rcpp::XPtr<QuickBLAST>) or (unsigned int) Pointer/ID of QuickBLAST instance
(string) Query DB
(string) Subject DB
(string) Ouput file (Optional)
(string) Ouput Format. 'ipc'/'csv'/'parquet' (Optional) (Default: 'parquet').
(unsigned int) Number of threads. (Optional)
(bool) Return BLAST Hits as Rcpp::List (Default: TRUE) (Optional)
(unsigned int) Minimum batch size - Size of file write buffer (Optional).
(SEXP) Rcpp::List - if return_values == TRUE, out_file - Otherwise.
Calls makeblastdb to create a BLAST DB of subject if it is not a DB
blastp_inst <- QuickBLAST::CreateQuickBLASTInstance(
seq_type = 1,
strand = 0,
program = "blastp",
save_sequences = FALSE,
save_hsp_sequences = FALSE
)
#> Using blastp Defaults...
QuickBLAST::MakeBLASTDB(
blastp_inst,
system.file(
"extdata",
"protein_subject.fasta",
package = "QuickBLAST",
mustWork = TRUE
),
"protein_subject.db"
)
#> [MakeBLASTDB] Executing command: /home/runner/work/_temp/Library/QuickBLAST/bin//makeblastdb -in /home/runner/work/_temp/Library/QuickBLAST/extdata/protein_subject.fasta -dbtype prot -out protein_subject.db
#> makeblastdb finished successfully
#> [1] "protein_subject.db"
QuickBLAST::BLASTFile2DB(
ptr=blastp_inst,
query=system.file(
"extdata",
"protein_query.fasta",
package = "QuickBLAST",
mustWork = TRUE
),
subject="protein_subject.db",
num_threads=24,
out_file="test.db.arrow",
return_values = TRUE
)
#> [1] FALSE
unlink("protein_subject.db.*")
unlink("test.db.arrow")