Skip to content

Commit

Permalink
move of installers & housekeepers
Browse files Browse the repository at this point in the history
... from byconaut
  • Loading branch information
mbaudis committed Sep 19, 2024
1 parent ea58d7a commit 95d84fb
Show file tree
Hide file tree
Showing 70 changed files with 374,791 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ properties:
examples:
- breast carcinoma
- adenocarcinoma [cell line HeLa]
- rectal adenocarcinoma [MSI, grade 3, metastasized]
- rectal adenocarcinoma [MSI, brain metastasis]
externalReferences:
type: array
items:
Expand Down
2 changes: 1 addition & 1 deletion bycon/services/ontologymaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def ontologymaps():
c_g = [ ]
u_c_d = { }
mongo_client = MongoClient(host=DB_MONGOHOST)
mongo_coll = mongo_client["progenetix"]["ontologymaps"]
mongo_coll = mongo_client["_byconServicesDB"]["ontologymaps"]
for o in mongo_coll.find( query, { '_id': False } ):
for c in o["code_group"]:
pre, code = re.split("[:-]", c["id"], maxsplit=1)
Expand Down
4 changes: 2 additions & 2 deletions bycon/services/publications.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def publications():
BeaconErrorResponse().response(422)

mongo_client = MongoClient(host=DB_MONGOHOST)
pub_coll = mongo_client[ "progenetix" ][ "publications" ]
pub_coll = mongo_client[ "_byconServicesDB" ][ "publications" ]
p_re = re.compile( f_d_s["pubmed"]["pattern"] )
d_k = set_selected_delivery_keys(s_c.get("method_keys"))
p_l = [ ]
Expand Down Expand Up @@ -134,7 +134,7 @@ def _create_filters_query():
if BYC["TEST_MODE"] is True:
test_mode_count = int(BYC_PARS.get('test_mode_count', 5))
mongo_client = MongoClient(host=DB_MONGOHOST)
data_coll = mongo_client[ "progenetix" ][ "publications" ]
data_coll = mongo_client[ "_byconServicesDB" ][ "publications" ]

rs = list(data_coll.aggregate([{"$sample": {"size": test_mode_count}}]))
query = {"_id": {"$in": list(s["_id"] for s in rs)}}
Expand Down
4 changes: 4 additions & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ While changes are documented for individual point versions we actually do not
push releases out for all of them; they serve more as internal development
milestones.

### 2023-09-13 (v.1.9.3)

* services moved to bycon from byconaut

### 2023-09-12 (v.1.9.2)

* mostly `byconaut` additions (housekeeping scripts etc. and map plot fix)
Expand Down
Loading

0 comments on commit 95d84fb

Please sign in to comment.