386b5d76ae4c1625e3da1421d4f2a73628ef6048 kent Wed Feb 21 14:06:22 2024 -0800 Making cdwSubmit tag names against a schema file in the cdwSettings rather than hard-coded (and currently ifdefed out) tables. diff --git src/hg/cirm/cdw/lib/cdwValid.c src/hg/cirm/cdw/lib/cdwValid.c index ecd50f5..0eb54a5 100644 --- src/hg/cirm/cdw/lib/cdwValid.c +++ src/hg/cirm/cdw/lib/cdwValid.c @@ -199,30 +199,31 @@ if (sameString(name, cdwBedTypeTable[i].name)) return &cdwBedTypeTable[i]; } return NULL; } struct cdwBedType *cdwBedTypeFind(char *name) /* Return cdwBedType of given name. Abort if not found */ { struct cdwBedType *bedType = cdwBedTypeMayFind(name); if (bedType == NULL) errAbort("Couldn't find bed format %s", name); return bedType; } +#ifdef OLD char *cdwAllowedTags[] = { "access", "analyte", "analyte_detector", "analyte_reporter_fluorochrome", "assay", "assay_method", "assay_platform", "assay_seq", "average_insert_size", "biomaterial_provider", "biosample_ancestry_population", "biosample_cell_type", "biosample_characterization_protocol_id", "biosample_collectors_email", @@ -352,78 +353,30 @@ struct hash *cdwAllowedTagsHash() /* Get hash of all allowed tags */ { static struct hash *allowedHash = NULL; if (allowedHash == NULL) { allowedHash = hashNew(7); int i; for (i=0; i