Project

General

Profile

1 10245 aaronmk
SELECT util.search_path_append('util');
2 7249 aaronmk
3 10245 aaronmk
SELECT create_if_not_exists($$CREATE INDEX "Specimen.acronym" ON $$||:table_str||$$ (acronym)$$);
4
5 7249 aaronmk
-- Remove institutions that we have direct data for
6
DELETE FROM :table
7
WHERE acronym IN (
8 7250 aaronmk
    -- Comments are from e-mail from Brad Boyle on 2013-1-16
9
    'MO' -- "all MO records in REMIB are also available from MO's own website"
10
    --, 'ARIZ' -- Some REMIB ARIZ specimens not yet in ARIZ itself
11
    --, 'NY' -- Some REMIB NY specimens not yet in NY itself
12 9502 aaronmk
    , 'TEX'
13 7249 aaronmk
)
14 9502 aaronmk
/* list obtained using the following on r9459:
15 9501 aaronmk
SELECT DISTINCT dataprovider
16 7249 aaronmk
FROM sourcelist
17 9501 aaronmk
JOIN provider_count ON provider_count.dataprovider = sourcelist.name
18 7249 aaronmk
WHERE source_id = source_by_shortname('REMIB')
19 9501 aaronmk
ORDER BY dataprovider
20 7249 aaronmk
*/
21
;