def sf2metadata_record_to_dict(record):
    """Helper function to convert a record from the sf2metadata table to a dict"""

    return {
        "pid": record[5],
        "st": record[6],
        "ctp": record[7],
        "nsl": record[8],
        "di": record[9],
        "na": record[10],
        "hp": record[11],
        "np": record[12],
        "hc": record[13],
        "nc": record[14],
        "husl": record[15],
        "nusl": record[16],
        "nslp": record[17],
        "cm": record[18],
        "sampleOrLibraryStartIndex": str(record[19]),
        "unpooledSubmissionStartIndex": str(record[20]),
        "poolStartIndex": str(record[21]),
        "containerStartIndex": str(record[22])
    }