Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark integration #41

Merged
merged 9 commits into from
Jul 4, 2024
Merged

Benchmark integration #41

merged 9 commits into from
Jul 4, 2024

Conversation

bputzeys
Copy link
Collaborator

@bputzeys bputzeys commented Jul 4, 2024

No description provided.

as multi-dimensional observation (obsm) in the
anndata itself. This is quite useful for further
analysis later when calculating the batch correc.
coefficients for example.
Heavily based on how scGPT does it with scib.
@bputzeys bputzeys requested a review from maxiallard July 4, 2024 07:55
@@ -4,6 +4,7 @@ on:
pull_request:
branches:
- main
- release
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run GitHub Actions check on release branch

@@ -113,7 +114,7 @@ def process_data(self,
# map gene symbols to ensemble ids if provided
if gene_column_name != "ensembl_id":
mappings = pkl.load(open(files_config["mapping_path"], 'rb'))
data.var['ensembl_id'] = data.var[gene_column_name].apply(lambda x: mappings.get(x,{"id":None})['id'])
self.adata.var['ensembl_id'] = self.adata.var[gene_column_name].apply(lambda x: mappings.get(x,{"id":None})['id'])
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the next PR will do this outside the models!

@bputzeys bputzeys merged commit f1cbc42 into main Jul 4, 2024
1 check passed
@bputzeys bputzeys deleted the integration branch July 4, 2024 14:37
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