def main(args=None):
if args is None:<EOL><INDENT>parser = get_argument_parser()<EOL>args = parser.parse_args()<EOL><DEDENT>series_matrix_file = args.series_matrix_file<EOL>output_file = args.output_file<EOL>encoding = args.encoding<EOL>accessions, titles, celfile_urls = read_series_matrix(<EOL>series_matrix_file, encoding=encoding)<EOL>write_sample_sheet(output_file, accessions, titles, celfile_urls)<EOL>return <NUM_LIT:0><EOL>
Script entry point.