def is_fastq(in_file):
fastq_ends = ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]<EOL>zip_ends = ["<STR_LIT>", "<STR_LIT>"]<EOL>base, first_ext = os.path.splitext(in_file)<EOL>second_ext = os.path.splitext(base)[<NUM_LIT:1>]<EOL>if first_ext in fastq_ends:<EOL><INDENT>return True<EOL><DEDENT>elif (second_ext, first_ext) in product(fastq_ends, zip_ends):<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
copy from bcbio package