You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Victor Lin edited this page Feb 24, 2021
·
1 revision
biosample created by extraction step (Lambda)
biosample_geocode created by geocoding step (EC2)
biosample_geo_coordinates:
CREATE MATERIALIZED VIEW biosample_geo_coordinates ASselect biosample_id,
coordinate_x,
coordinate_y,
b.geo_text_extractedas from_text
from biosample b
inner join biosample_geocode bgeo
on (b.geo_text_extracted=bgeo.geo_text_extracted)
where coordinate_x is not nullunion allselect biosample_id,
geo_coordinate_x as coordinate_x,
geo_coordinate_y as coordinate_y,
NULLas from_text
from biosample
where geo_coordinate_x is not nullCREATEINDEXbiosample_geo_coordinates_biosample_id_indexON biosample_geo_coordinates (biosample_id);
srarun_geo_coordinates:
CREATE MATERIALIZED VIEW srarun_geo_coordinates ASselect run as sra_id,
bio_sample as biosample_id,
release_date,
coordinate_x, coordinate_y, from_text
from srarun
inner join biosample_geo_coordinates bgeo
on (srarun.bio_sample=bgeo.biosample_id)
CREATEINDEXsrarun_geo_coordinates_sra_id_indexON srarun_geo_coordinates (sra_id);