def METHOD_NAME(annotation_cols_path, seqs_file_list_path, config):
    sample_names = set()
    if workflow_configs.SAMPLE_IDS_PATH in config and config[workflow_configs.SAMPLE_IDS_PATH]:
        with open(config[workflow_configs.SAMPLE_IDS_PATH]) as f:
            sample_names = { f"{l.strip()}_primary.fasta.gz" for l in f}
    else:
        with open(seqs_file_list_path) as f:
            column_names = [f"{f.strip().rstrip('/').split('/')[-1]}" for f in
                            f.readlines()]
            duplicate_col_names = [grp_key for (grp_key, names_lst) in
                                   itertools.groupby(sorted(column_names)) if
                                   len(list(names_lst)) > 1]
            assert not duplicate_col_names, f"Found duplicate filenames: {', '.join(duplicate_col_names)}"
            if config[workflow_configs.PRIMARIZE_SAMPLES_SEPARATELY]:
                sample_names = {f"{get_sample_name(c)}_primary.fasta.gz" for c in column_names}
            else:
                sample_names = set(column_names)
    return [annotation_cols_path / f"{c}.column.annodbg" for c in
            sample_names]