Skip to content

Commit

Permalink
fixing get_biosamples_from_variants
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Oct 30, 2024
1 parent a91b85b commit 53515a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion beacon/connections/mongo/g_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_biosamples_of_variant(self, entry_id: Optional[str], qparams: RequestPar
try:
finalids=[]
for bioid in biosample_id:
finalids.append({"id": bioid})
finalids.append({"id": bioid["biosampleId"]})
except Exception:# pragma: no cover
finalids=[]
query = {"$and": [{"$or": finalids}]}
Expand Down
8 changes: 0 additions & 8 deletions beacon/connections/mongo/reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@
client.beacon.validate_collection("synonyms")
except Exception:
db=client.beacon.create_collection(name="synonyms")
try:
client.beacon.validate_collection("caseLevelData")
except Exception:
db=client.beacon.create_collection(name="caseLevelData")
try:
client.beacon.validate_collection("targets")
except Exception:
db=client.beacon.create_collection(name="targets")
try:
client.beacon.drop_collection("counts")
except Exception:
Expand Down

0 comments on commit 53515a7

Please sign in to comment.