Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/BioData-PT/beacon2-ri-api in…
Browse files Browse the repository at this point in the history
…to dev
  • Loading branch information
FracassandoCasualmente committed Jun 11, 2024
2 parents 6728a3f + 8112b99 commit b6a14f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions beacon/reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
client.beacon.individuals.create_index([("$**", "text")])
client.beacon.runs.create_index([("$**", "text")])

# uncomment this if you want to test the performance of text index
#print("Ending reindex early!") and exit

# custom indexes
client.beacon.genomicVariations.create_index([
("_info.datasetId", ASCENDING),
Expand Down
3 changes: 0 additions & 3 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ services:
container_name: beacon-training-ui
ports:
- 9500:8080
environment:
USERNAME: root
PASSWORD: ${DB_PASSWD}
networks:
- beacon-priv

Expand Down
7 changes: 7 additions & 0 deletions performance-tests/genomic_variants.mongosh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
db.genomicVariations.find({'$and': [{'_position.refseqId': {'$eq': '1'}}, {'_position.start': {'$gte': [69000]}}, {'_position.start': {'$lte': [70000]}}, {'_info.datasetId': {'$eq': 'nature_colorectal_cancer_test'}}]}).explain('executionStats')
db.genomicVariations.find({'$and': [{'_position.refseqId': {'$eq': '2'}}, {'_position.start': 218860}, {'variation.referenceBases': 'G'}, {'variation.alternateBases': 'GT'}, {'_info.datasetId': {'$eq': 'nature_colorectal_cancer_test'}}]}).explain('executionStats')
db.genomicVariations.find({'$and': [{'_position.refseqId': {'$eq': '5'}}, {'_position.start': 692914}, {'variation.referenceBases': 'A'}, {'variation.alternateBases': 'G'}, {'_info.datasetId': {'$eq': 'nature_colorectal_cancer_test'}}]}).explain('executionStats')
db.genomicVariations.find({'$and': [{'_position.refseqId': {'$eq': '20'}}, {'_position.start': 63694303}, {'variation.referenceBases': 'G'}, {'variation.alternateBases': 'GC'}, {'_info.datasetId': {'$eq': 'nature_colorectal_cancer_test'}}]}).explain('executionStats')
db.genomicVariations.find({'$and': [{'_position.refseqId': {'$eq': '1'}}, {'_position.start': {'$gte': [69000]}}, {'_position.start': {'$lte': [70000]}}, {'_info.datasetId': {'$eq': 'nature_colorectal_cancer_test'}}]}).explain('executionStats')
db.genomicVariations.find({'$and': [{'_position.refseqId': {'$eq': '7'}}, {'_position.start': {'$gte': [6000000]}}, {'_position.start': {'$lte': [11000000]}}, {'_info.datasetId': {'$eq': 'nature_colorectal_cancer_test'}}]}).explain('executionStats')
db.genomicVariations.find({'$and': [{'_position.refseqId': {'$eq': '19'}}, {'_position.start': {'$gte': [15000000]}}, {'_position.start': {'$lte': [35000000]}}, {'_info.datasetId': {'$eq': 'nature_colorectal_cancer_test'}}]}).explain('executionStats')

0 comments on commit b6a14f7

Please sign in to comment.