def generate_index(credentials, instance_config, instance_name,<EOL>script_dir, genome_file, output_dir, annotation_file=None,<EOL>splice_overhang=<NUM_LIT:100>,<EOL>num_threads=<NUM_LIT:8>, chromosome_bin_bits=<NUM_LIT>,<EOL>genome_memory_limit=<NUM_LIT>,<EOL>self_destruct=True,<EOL>**kwargs):
template = _TEMPLATE_ENV.get_template(<EOL>os.path.join('<STR_LIT>'))<EOL>startup_script = template.render(<EOL>script_dir=script_dir,<EOL>genome_file=genome_file,<EOL>annotation_file=annotation_file,<EOL>splice_overhang=splice_overhang,<EOL>output_dir=output_dir,<EOL>num_threads=num_threads,<EOL>chromosome_bin_bits=chromosome_bin_bits,<EOL>genome_memory_limit=genome_memory_limit,<EOL>self_destruct=self_destruct)<EOL>op_name = instance_config.create_instance(<EOL>credentials, instance_name, startup_script=startup_script, **kwargs)<EOL>return op_name<EOL>
Generates a STAR index.

    Recommended machine type: "n1-highmem-8" (52 GB of RAM, 8 vCPUs)

    TODO: docstring