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

if (FALSE) { # \dontrun{
blastp_inst <- QuickBLAST::CreateQuickBLASTInstance(
  seq_type = 1,
  strand = 0,
  program = "blastp",
  save_sequences = F,
  save_hsp_sequences = F,
  num_threads=24
)
QuickBLAST::GetInstanceID(
  blastp_inst
)
} # }