scout/parse/clinvar.py
def set_submission_objects(form_fields):
    """Creates a list of submission objects (variant and case-data) from the clinvar submission form in blueprints/variants/clinvar.html.

        Args:
             form_fields(dict): it's the submission form dictionary. Keys have the same names as CLINVAR_HEADER and CASEDATA_HEADER

        Returns:
             submission_objects(list): a list of variant and case-data submission objects, ready to be included in the clinvar database collection
    """
    variant_ids = get_submission_variants(form_fields) # A list of variant IDs present in the submitted form

    # Extract list of variant objects to be submitted
    variant_objs = get_objects_from_form(variant_ids, form_fields, 'variant')

    # Extract list of casedata objects to be submitted
    casedata_objs = get_objects_from_form(variant_ids, form_fields, 'casedata')

    return (variant_objs, casedata_objs)
def set_submission_objects(form_fields):
    """Creates a list of submission objects (variant and case-data) from the clinvar submission form in blueprints/variants/clinvar.html.

        Args:
             form_fields(dict): it's the submission form dictionary. Keys have the same names as CLINVAR_HEADER and CASEDATA_HEADER

        Returns:
             submission_objects(list): a list of variant and case-data submission objects, ready to be included in the clinvar database collection
    """
    variant_ids = get_submission_variants(form_fields) # A list of variant IDs present in the submitted form

    # Extract list of variant objects to be submitted
    variant_objs = get_objects_from_form(variant_ids, form_fields, 'variant')

    # Extract list of casedata objects to be submitted
    casedata_objs = get_objects_from_form(variant_ids, form_fields, 'casedata')

    return (variant_objs, casedata_objs)
Creates a list of submission objects (variant and case-data) from the clinvar submission form in blueprints/variants/clinvar.html.

        Args:
             form_fields(dict): it's the submission form dictionary. Keys have the same names as CLINVAR_HEADER and CASEDATA_HEADER

        Returns:
             submission_objects(list): a list of variant and case-data submission objects, ready to be included in the clinvar database collection