def clinvar_submission_lines(submission_objs, submission_header):
submission_lines = []<EOL>for submission_obj in submission_objs: <EOL><INDENT>csv_line = []<EOL>for header_key, header_value in submission_header.items(): <EOL><INDENT>if header_key in submission_obj: <EOL><INDENT>csv_line.append('<STR_LIT:">'+submission_obj.get(header_key)+'<STR_LIT:">')<EOL><DEDENT>else: <EOL><INDENT>csv_line.append('<STR_LIT>')<EOL><DEDENT><DEDENT>submission_lines.append('<STR_LIT:U+002C>'.join(csv_line))<EOL><DEDENT>return submission_lines<EOL>
Create the lines to include in a Clinvar submission csv file from a list of submission objects and a custom document header

        Args:
            submission_objs(list): a list of objects (variants or casedata) to include in a csv file
            submission_header(dict) : as in constants CLINVAR_HEADER and CASEDATA_HEADER, but with required fields only

        Returns:
            submission_lines(list) a list of strings, each string represents a line of the clinvar csv file to be doenloaded