def check_read_lengths(ribo_file, read_lengths):
<EOL>valid_lengths = list(set(read_lengths))<EOL>if len(valid_lengths) == <NUM_LIT:1> and valid_lengths[<NUM_LIT:0>] == <NUM_LIT:0>:<EOL><INDENT>return<EOL><DEDENT>for read_length in valid_lengths:<EOL><INDENT>if read_length < <NUM_LIT:0>:<EOL><INDENT>msg = '<STR_LIT>'<EOL>log.error(msg)<EOL>raise ArgumentError(msg)<EOL><DEDENT><DEDENT>
Check if read lengths are valid (positive).