def get_cancer_types(sample_info_df, sample_ids):
    """Get cancer types from a list of sample ids"""
    return set(sample_info_df.loc[sample_info_df.index.intersection(sample_ids), :]
                 .cancer_type.values)