コード例 #1
0
def prepare_run(segments, force=False):
    """Prepare MIP output."""
    if not force:
        validate(segments['family'])

    fam_key = segments['config']['familyID']
    mip_version = segments['family'].get('MIPVersion', 'v2.x')
    outdata_dir = segments['family']['ArchivePath']
    qcped_path = os.path.join(outdata_dir, fam_key, 'qc_pedigree.yaml')
    customer = segments['family']['InstanceTag'][0]
    case_name = "{}-{}".format(customer, fam_key)
    meta_output = build_meta(case_name, segments['family'], qcped_path,
                             version=mip_version, strict=False)
    write_meta(meta_output, outdata_dir)
コード例 #2
0
def prepare_run(segments, force=False):
    """Prepare MIP output."""
    if not force:
        validate(segments['family'])

    outdata_dir = segments['config']['outDataDir']
    qcped_path = segments['family']['PedigreeFileAnalysis']['Path']
    fam_key = segments['config']['familyID']
    customer = segments['family']['InstanceTag'][0]
    case_name = "{}-{}".format(customer, fam_key)
    mip_version = segments['family'].get('MIPVersion', 'v2.x')
    meta_output = build_meta(case_name, segments['family'], qcped_path,
                             version=mip_version, strict=False)
    write_meta(meta_output, outdata_dir)