Skip to content

Commit

Permalink
adding new_count and Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Jun 6, 2024
1 parent b311fc5 commit 5f02454
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions beacon/request/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ async def wrapper(request: Request):
datasets_docs={}
datasets_count={}
#LOG.debug(response_datasets)
new_count=0
loop = asyncio.get_running_loop()
for dataset in response_datasets:
with ThreadPoolExecutor() as pool:
Expand Down
16 changes: 16 additions & 0 deletions deploy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,21 @@ build:
docker exec rimongo mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/biosamples.json --collection biosamples
docker exec rimongo mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/runs.json --collection runs
docker exec rimongo mongoimport --jsonArray --uri "mongodb://root:[email protected]:27017/beacon?authSource=admin" --file /tmp/genomicVariations.json --collection genomicVariations
docker cp /data/vault/bio-scratch/arnau/beacon/beacon2-ri-tools-v2_test_anot/tcga-coad/analyses.json mongoega:tmp/analyses.json
docker cp /data/vault/bio-scratch/arnau/beacon/beacon2-ri-tools-v2_test_anot/tcga-coad/biosamples.json mongoega:tmp/biosamples.json
docker cp /data/vault/bio-scratch/arnau/beacon/beacon2-ri-tools-v2_test_anot/tcga-coad/cohorts.json mongoega:tmp/cohorts.json
docker cp /data/vault/bio-scratch/arnau/beacon/beacon2-ri-tools-v2_test_anot/tcga-coad/datasets.json mongoega:tmp/datasets.json
docker cp /data/vault/bio-scratch/arnau/beacon/beacon2-ri-tools-v2_test_anot/tcga-coad/genomicVariations.json mongoega:tmp/genomicVariations.json
docker cp /data/vault/bio-scratch/arnau/beacon/beacon2-ri-tools-v2_test_anot/tcga-coad/individuals.json mongoega:tmp/individuals.json
docker cp /data/vault/bio-scratch/arnau/beacon/beacon2-ri-tools-v2_test_anot/tcga-coad/runs.json mongoega:tmp/runs.json
docker cp /data/vault/bio-scratch/arnau/beacon/beacon2-ri-tools-v2_test_anot/tcga-coad/filtering_terms.json mongoega:tmp/filtering_terms.json
docker exec mongoega mongoimport --jsonArray --uri "mongodb://root:[email protected]:27020/beacon?authSource=admin" --file /tmp/datasets.json --collection datasets
docker exec mongoega mongoimport --jsonArray --uri "mongodb://root:[email protected]:27020/beacon?authSource=admin" --file /tmp/individuals.json --collection individuals
docker exec mongoega mongoimport --jsonArray --uri "mongodb://root:[email protected]:27020/beacon?authSource=admin" --file /tmp/cohorts.json --collection cohorts
docker exec mongoega mongoimport --jsonArray --uri "mongodb://root:[email protected]:27020/beacon?authSource=admin" --file /tmp/analyses.json --collection analyses
docker exec mongoega mongoimport --jsonArray --uri "mongodb://root:[email protected]:27020/beacon?authSource=admin" --file /tmp/biosamples.json --collection biosamples
docker exec mongoega mongoimport --jsonArray --uri "mongodb://root:[email protected]:27020/beacon?authSource=admin" --file /tmp/runs.json --collection runs
docker exec mongoega mongoimport --jsonArray --uri "mongodb://root:[email protected]:27020/beacon?authSource=admin" --file /tmp/genomicVariations.json --collection genomicVariations
docker exec mongoega mongoimport --jsonArray --uri "mongodb://root:[email protected]:27020/beacon?authSource=admin" --file /tmp/filtering_terms.json --collection filtering_terms
docker exec beacon python beacon/reindex.py
docker exec beacon python beacon/db/extract_filtering_terms.py

0 comments on commit 5f02454

Please sign in to comment.