def mmseqs_phamerate_command(parameters, wd):
    """
    Builds MMseqs2 phameration command (base command + user args)
    :param parameters: dictionary of MMseqs2 parameters
    :param wd: the temporary working directory for phameration
    :return: command
    """
    command = f'mmseqs cluster {wd}/sequenceDB {wd}/clusterDB {wd}'
    for parameter in parameters.keys():
        command += f' {parameter} {parameters[parameter]}'
    return command
