def rows_are_iem_samplesheet(rows):
"""
Determine whether the rows comprise an Illumina Experiment Manager (IEM)
sample sheet by checking for the presence of a [Data] section with
sample header.
:type rows: list[list[string]]
:rtype: bool
"""
# criteria: has to have [Data] section with recognized sample index.
section_gen = rows_iem_section_generator(rows)
for section in section_gen:
if section_is_valid_data(section):
if not iem_rows_all_have_sample_id(section.rows):
logging.warning("Blank Sample_ID entries detected in data section")
return False
else:
return True
return False
评论列表
文章目录