def label_vector_from_samples(samples):
    """
    Produce a vector of labels for the sample vector provided

    :param list(str) samples: List of samples to derive labels for
    :return: Label vector
    :rtype: list(str)
    """
    vector = []
    for x in samples:
        if x.startswith('TCGA'):
            if x.endswith('11'):
                vector.append('tcga-normal')
            elif x.endswith('01'):
                vector.append('tcga-tumor')
            else:
                vector.append('tcga-other')
        else:
            vector.append('gtex')
    return vector