def trim_fastq(credentials, instance_config, instance_name,<EOL>script_dir, input_file, output_file,<EOL>trim_crop, trim_headcrop=<NUM_LIT:0>, self_destruct=True,<EOL>**kwargs):
template = _TEMPLATE_ENV.get_template('<STR_LIT>')<EOL>startup_script = template.render(<EOL>script_dir=script_dir,<EOL>input_file=input_file,<EOL>output_file=output_file,<EOL>trim_crop=trim_crop,<EOL>trim_headcrop=trim_headcrop,<EOL>self_destruct=self_destruct)<EOL>if len(startup_script) > <NUM_LIT>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>instance_config.create_instance(<EOL>credentials, instance_name, startup_script=startup_script, **kwargs)<EOL>
Trims a FASTQ file.

    TODO: docstring