This function fetches the ID/Index of a QuickBLAST instance of a Rcpp::XPtr<QuickBLAST> stored in C++ side.

GetInstanceID(ptr)

Arguments

ptr

(Rcpp::XPtr<QuickBLAST>) or (unsigned int) Pointer/ID of QuickBLAST instance

Value

(unsigned int) ID/Index of the QuickBLAST instance pointer, FALSE otherwise

Examples

blastp_inst <- QuickBLAST::CreateQuickBLASTInstance(
  seq_type = 1,
  strand = 0,
  program = "blastp",
  save_sequences = FALSE,
  save_hsp_sequences = FALSE
)
#> Using blastp Defaults...
QuickBLAST::GetInstanceID(
  blastp_inst
)
#> [1] 7