def METHOD_NAME(testapp, reference_epigenome_1,
                                                  reference_experiment_RNA_seq,
                                                  reference_experiment_RRBS,
                                                  reference_experiment_WGBS,
                                                  reference_experiment_chip_seq_control,
                                                  reference_experiment_chip_seq_H3K27me3,
                                                  reference_experiment_chip_seq_H3K36me3,
                                                  reference_experiment_chip_seq_H3K4me1,
                                                  reference_experiment_chip_seq_H3K4me3,
                                                  reference_experiment_chip_seq_H3K27ac,
                                                  reference_experiment_chip_seq_H3K9me3,
                                                  ):
    testapp.patch_json(reference_epigenome_1['@id'], {'related_datasets':
                                                      [reference_experiment_RNA_seq['@id'],
                                                       reference_experiment_RRBS['@id'],
                                                       reference_experiment_WGBS['@id'],
                                                       reference_experiment_chip_seq_control['@id'],
                                                       reference_experiment_chip_seq_H3K27me3[
                                                       '@id'],
                                                       reference_experiment_chip_seq_H3K36me3[
                                                       '@id'],
                                                       reference_experiment_chip_seq_H3K4me1['@id'],
                                                       reference_experiment_chip_seq_H3K4me3['@id'],
                                                       reference_experiment_chip_seq_H3K27ac['@id'],
                                                       reference_experiment_chip_seq_H3K9me3['@id']
                                                       ]})
    testapp.patch_json(reference_experiment_RNA_seq['@id'], {'status': 'in progress'})
    res = testapp.get(reference_epigenome_1['@id'] + '@@index-data')
    errors = res.json['audit']
    errors_list = []
    for error_type in errors:
        errors_list.extend(errors[error_type])
    assert any(error['category'] == 'partial reference epigenome' for error in errors_list)
    testapp.patch_json(reference_experiment_RNA_seq['@id'], {'status': 'released'})
    res = testapp.get(reference_epigenome_1['@id'] + '@@index-data')
    errors = res.json['audit']
    errors_list = []
    for error_type in errors:
        errors_list.extend(errors[error_type])
    assert all(error['category'] != 'partial reference epigenome' for error in errors_list)