code: def make_blastcmd_builder(
      mode, outdir, format_exe=None, blast_exe=None, prefix="ANIBLAST"
  ):
      
      if mode == "ANIb":  # BLAST/formatting executable depends on mode
          blastcmds = BLASTcmds(
              BLASTfunctions(construct_makeblastdb_cmd, construct_blastn_cmdline),
              BLASTexes(
                  format_exe or pyani_config.MAKEBLASTDB_DEFAULT,
                  blast_exe or pyani_config.BLASTN_DEFAULT,
              ),
              prefix,
              outdir,
          )
      else:
          blastcmds = BLASTcmds(
              BLASTfunctions(construct_formatdb_cmd, construct_blastall_cmdline),
              BLASTexes(
                  format_exe or pyani_config.FORMATDB_DEFAULT,
                  blast_exe or pyani_config.BLASTALL_DEFAULT,
              ),
              prefix,
              outdir,
          )
      return blastcmds
docs: Returns BLASTcmds object for construction of BLAST commands.