def _repr_tty_(self) -> str:
header_description = ['<STR_LIT>', '<STR_LIT>']<EOL>header_samples = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT:index>',<EOL>'<STR_LIT>',<EOL>]<EOL>header = SingleTable([], '<STR_LIT>')<EOL>setting = SingleTable([], '<STR_LIT>')<EOL>sample_main = SingleTable([header_samples], '<STR_LIT>')<EOL>sample_desc = SingleTable([header_description], '<STR_LIT>')<EOL>max_header_width = max(MIN_WIDTH, sample_desc.column_max_width(-<NUM_LIT:1>))<EOL>for key in self.Header.keys():<EOL><INDENT>if '<STR_LIT>' in key:<EOL><INDENT>value = '<STR_LIT:\n>'.join(<EOL>wrap(getattr(self.Header, key), max_header_width)<EOL>)<EOL><DEDENT>else:<EOL><INDENT>value = getattr(self.Header, key)<EOL><DEDENT>header.table_data.append([key, value])<EOL><DEDENT>for key in self.Settings.keys():<EOL><INDENT>setting.table_data.append((key, getattr(self.Settings, key) or '<STR_LIT>'))<EOL><DEDENT>setting.table_data.append(('<STR_LIT>', '<STR_LIT:U+002CU+0020>'.join(map(str, self.Reads))))<EOL>description_width = max(MIN_WIDTH, sample_desc.column_max_width(-<NUM_LIT:1>))<EOL>for sample in self.samples:<EOL><INDENT>sample_main.table_data.append(<EOL>[getattr(sample, title) or '<STR_LIT>' for title in header_samples]<EOL>)<EOL>sample_desc.table_data.append(<EOL>(<EOL>sample.Sample_ID,<EOL>'<STR_LIT:\n>'.join(<EOL>wrap(sample.Description or '<STR_LIT>', description_width)<EOL>),<EOL>)<EOL>)<EOL><DEDENT>header.inner_heading_row_border = False<EOL>setting.inner_heading_row_border = False<EOL>table = '<STR_LIT:\n>'.join(<EOL>[header.table, setting.table, sample_main.table, sample_desc.table]<EOL>)<EOL>return table<EOL>
Return a summary of this sample sheet in a TTY compatible codec.