def prep_rg_names(item, config, fc_name, fc_date):
    """Generate read group names from item inputs.
    """
    if fc_name and fc_date:
        lane_name = "%s_%s_%s" % (item["lane"], fc_date, fc_name)
    else:
        lane_name = item["description"]
    return {"rg": item["description"],
            "sample": item["description"],
            "lane": lane_name,
            "pl": (tz.get_in(["algorithm", "platform"], item)
                   or tz.get_in(["algorithm", "platform"], item, "illumina")).lower(),
            "lb": tz.get_in(["metadata", "library"], item),
            "pu": tz.get_in(["metadata", "platform_unit"], item) or lane_name}
def prep_rg_names ( item , config , fc_name , fc_date ) : if fc_name and fc_date : lane_name = "%s_%s_%s" % ( item [ "lane" ] , fc_date , fc_name ) else : lane_name = item [ "description" ] return { "rg" : item [ "description" ] , "sample" : item [ "description" ] , "lane" : lane_name , "pl" : ( tz . get_in ( [ "algorithm" , "platform" ] , item ) or tz . get_in ( [ "algorithm" , "platform" ] , item , "illumina" ) ) . lower ( ) , "lb" : tz . get_in ( [ "metadata" , "library" ] , item ) , "pu" : tz . get_in ( [ "metadata" , "platform_unit" ] , item ) or lane_name }
Generate read group names from item inputs.