Luca, thank you for reaching out with this qestion.
At this time, it is not possible to use a list of PatientIDs to build a cohort in IDC Portal.
Can you tell us more about what you would like to do with the cohort? What is your ultimate goal?
If you want to be able to download the images for the specific list of patients, it is possible with a little bit of coding, and I am happy to help with that.
Thank you for your response.
My ultimate goal is to be able to see how much data there is in the IDC given a set of PatientIDs, and download those images / request to have access to them if there is any governance layer before the download can happen.
In an ideal scenario I would also like some metadata about those images.
Thank you for your offer, I would love some guidance in to downloading the images for a specific list of patients.
Luca, thank you for the clarification! I will follow up.
Also, note that I moved this discussion into a public section of the IDC forum, since I believe your question is of general interest, and does not contain any sensitive information. I see you are communicating via email, and I wanted to make sure you recognize this.
Sorry for the delay in replying - travels/deadlines!
Here’s the basic recipe - happy to expand based on your feedback/questions:
Install the prerequisite idc-index python package - this will give you interface to navigate basic metadata accompanying IDC content:
$ pip install --upgrade idc-index
Instantiate IDCClient that provides API/metadata tables:
from idc_index import IDCClient
client = IDCClient()
IDCClient provides access to a pandas dataframe documented here, corresponding to the current release of IDC data, which you can use to select items for the given patient identifiers:
Great to hear that @Luca_Graglia! I will then mark the earlier reply as solution, but please let me know if you have any further comments or questions related to this.