From 58b49e0d294794bccae7f4a9bd77fcc74c05d40b Mon Sep 17 00:00:00 2001 From: Jessica Britton Date: Mon, 6 Nov 2023 15:40:05 -0800 Subject: [PATCH] AG-1293: Update local data scripts to import and index data into new proteomicssrm collection --- scripts/mongo-create-Indexes.js | 6 ++++++ scripts/mongo-import.sh | 1 + 2 files changed, 7 insertions(+) diff --git a/scripts/mongo-create-Indexes.js b/scripts/mongo-create-Indexes.js index 67b3c7ba..54f4e577 100644 --- a/scripts/mongo-create-Indexes.js +++ b/scripts/mongo-create-Indexes.js @@ -46,6 +46,12 @@ const collections = [ { ensembl_gene_id: 1 } ] }, + { + name: 'proteomicssrm', + indexes: [ + { ensembl_gene_id: 1 } + ] + }, { name: 'genesbiodomains', indexes: [ diff --git a/scripts/mongo-import.sh b/scripts/mongo-import.sh index c73a829f..2148594c 100644 --- a/scripts/mongo-import.sh +++ b/scripts/mongo-import.sh @@ -20,6 +20,7 @@ mongoimport --db agora --collection genesoverallscores --jsonArray --drop --file mongoimport --db agora --collection rnaboxdistribution --jsonArray --drop --file ./rna_distribution_data.json mongoimport --db agora --collection proteomicsboxdistribution --jsonArray --drop --file ./proteomics_distribution_data.json mongoimport --db agora --collection proteomicstmt --jsonArray --drop --file ./proteomics_tmt.json +mongoimport --db agora --collection proteomicssrm --jsonArray --drop --file ./proteomics_srm.json mongoimport --db agora --collection genesbiodomains --jsonArray --drop --file ./genes_biodomains.json mongoimport --db agora --collection biodomaininfo --jsonArray --drop --file ./biodomain_info.json