def is_casava_v180_or_later(header_line):
 assert header_line.startswith('@'), "Bad fastq file passed as input. Header line must start with '@'."
 fields = header_line.split(':')
 if ((len(fields) == 10) and (fields[7] in 'YN')):
  return True
 return False

def is_casava_v180_or_later ( header_line ) : assert header_line . startswith ( '@' ) , "Bad fastq file passed as input. Header line must start with '@'." fields = header_line . split ( ':' ) if ( ( len ( fields ) == 10 ) and ( fields [ 7 ] in 'YN' ) ) : return True return False
true if this file is generated by illumina software post-casava 1 .