Access model ids from specimen_id

Hello,

I am trying to programmatically download a set of GLIF models that correspond to cells with specific properties (in particular, SST-positive, layer2/3).

I can easily retrieve the specimen ids and run my search on the ‘cell_types_specimen_details.csv’ database. This way, I have a list of about 40 cells. Using:

specimen_ids = [id for id in ids_sst if cta.get_cell(id)[‘m__glif’]>0]

I verify which cells have a model and then … I am stuck. How can I retrieve the id of the model from the specimen_id?

My end goal is to have the model accessible by:

nm = glif_api.get_neuronal_models_by_id(model_id)

and follow your tutorial to retrieve the GLIF parameter from there!

Thanks ahead :slight_smile: