Skip to content

Instantly share code, notes, and snippets.

@benjeffery
Last active July 26, 2017 13:53
Show Gist options
  • Save benjeffery/c18271260bcfd8e9a929d39080297850 to your computer and use it in GitHub Desktop.
Save benjeffery/c18271260bcfd8e9a929d39080297850 to your computer and use it in GitHub Desktop.
regions <--- THIS NEEDS POPULATING!
id
lat
lng
name
description
num_samples
countries
id
lat
lng
name
num_samples
sites
id
lat
lng
name
num_samples
features
id
name
category
description
samples
id
site
country
region
site_lat
site_lng
country_lat
country_lng
region_lat
region_lng
date
process_type
run_accessions
(ART_resistant)
(CQ_resistant)
(PYR_resistant)
(SDX_resistant)
(MQ_resistant)
studies
AS EXISITING
study_people
AS EXISITING
study_publications
AS EXISITING
variants
AS EXISTING (but with added allele freqs when we get them)
@leehart
Copy link

leehart commented Jul 26, 2017

What do we need for featuretypes? I can set that up on the dev1 system too, if you like.

feature_id	character varying(50)
type_id	character varying(50)
description	text

@leehart
Copy link

leehart commented Jul 26, 2017

CREATE VIEW observatory.featuretypes_view AS
SELECT ft.feature_id
 , ft.type_id
 , ft.description
FROM observatory.featuretypes ft
;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment