Closed YojanaGadiya closed 1 year ago
Hi, I have tested the url and it works: https://www.ebi.ac.uk/chembl/api/data/activity.json?target_chembl_id=CHEMBL1075125&assay_type_iregex=(B|F)&limit=1000&only=pchembl_value,molecule_chembl_id,activity_id,target_pref_name
I think the issue is related with the extra [] when you are passing the only
function you are submitting a list inside another list.
You are doing the following call:
prot_activity_data = activity.filter(
target_chembl_id='CHEMBL1075125',
assay_type_iregex='(B|F)',
).only(
[
[
'pchembl_value',
'molecule_chembl_id',
'activity_id',
'target_pref_name',
'molecule_pref_name',
'standard_type',
'standard_units',
'standard_value',
'standard_relation'
]
])
If after removing the extra [] passing the list itself does not work I would try passing ','.join(ASSAY_METADATA_COLS)
Hope this helps, Juan
@juanfmx2 Ah, I see. I noticed it now. Thanks. That solves the issue :)
Dear Chembl community,
I am getting an error on the limit of bioactivity data I can extract using the client. With the code line:
I get the following error:
I suspect this is because of inconsistency between the number of bioactivities registered for this target (48) and the internal limit of the client (20). Is there any efficient way to retrieve such queries?
Thank You.