Skip to content

Add dict input support to sc.queries.enrich - #1488

Merged
gokceneraslan merged 2 commits into
masterfrom
enrich_dict
Nov 10, 2020
Merged

gokceneraslan merged 2 commits into
masterfrom
enrich_dict

Conversation

@gokceneraslan

@gokceneraslan gokceneraslan commented Nov 10, 2020 •

Copy link
Copy Markdown
Contributor

Adds support for using dictionary inputs to sc.queries.enrich to make bulk queries:

So instead of

df1 = sc.queries.enrich(['KLF4', 'PAX5'])
df2 = sc.queries.enrich(['SOX2', 'NANOG'])
...concat...

we can now do

df = sc.queries.enrich({'set1':['KLF4', 'PAX5'], 'set2':['SOX2', 'NANOG']})

(I mean this was already supported by gprofiler, but it was simply broken due to an explicit list conversion)

@gokceneraslan gokceneraslan changed the title Add dict support to sc.queries.enrich Add dict input support to sc.queries.enrich Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant