Closed albodrug closed 5 months ago
Hi @albodrug, thank you for trying RI. First of all, I see you don't have the last version of RI, and although it shouldn't be the cause of your problems, you can update it if you wish to have the last "working version". Secondly, I see something strange in the final query you just threw, which are the biosampleId:
{'caseLevelData.biosampleId': '“MySample1”'}, {'caseLevelData.biosampleId': '”MySample2”'}, {'caseLevelData.biosampleId': '”MySample3”'}, {'caseLevelData.biosampleId': '”MySample4”'}, {'caseLevelData.biosampleId': '”MySample5”'}
As you say, you have to add the biosampleIds and individualIds to cohorts.yml and datasets.yml, and right now beacon is reading your ids like ”MySample4”
, are you also adding them like this? The string has to be the same!
Also, if you can make beacon read the biosampleId like a plain MySample4
it would be better for your beacon comprehension.
Tell me if this was the cause of your beacon not displaying any results.
Thanks, Oriol
Hi Oriol,
Many thanks! I have updated the ri. And the quotes were indeed the issue.
My raw files and the biosamples.json do no carry the quotes. The issue was resolved when I modified the .yml files deleteting the quotes from the biosampleId, but not from the individualId. My individualId and biosampleId are different (contrary to the CINECA data), do you think it may be related? Also in both cohorts.yml and datasets.yml files I have added both individualId and biosampleId.
Great, I'm glad this solved your problem. Indeed, it is related. For some collection, beacon RI will read the biosampleId and for others the individualId. If you don't add them all properly in cohorts.yml and datasets.yml the RI will not be able to relate the samples correctly to the dataset they belong.
Hello,
I have followed the beaconv2-ri-tools documentation to obtain the 7 json files making up the BFF format. Loading data into the beaconv2-ri-api worked fine. I can see the data in the mongo express ui. However, all my api requests return no result. I have modified the datasets.yml and the cohorts.yml so my new sample id appear to be looked up by g_variants.py script. Could you give me hints on what I am missing in order to make my data searchable by the ri-api?
Here is the return of a post request:
The docker logs:
Thanks for any tips! Alex