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

Cell type annotation: scGPT integration/KNN workflow #875

Open
wants to merge 41 commits into
base: main
Choose a base branch
from

Conversation

dorien-er
Copy link
Contributor

@dorien-er dorien-er commented Sep 9, 2024

Changelog

  • Small fixes in scGPT integration component (src/scgpt/embedding) and workflow (src/workflows/intgration/scgpt_leiden)
  • Workflow for cell type annotation based on scGPT integration followed by KNN label transfer

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code

  • Conforms to the Contributor's guide

  • Check the correct box. Does this PR contain:

    • Breaking changes
    • New functionality
    • Major changes
    • Minor changes
    • Documentation
    • Bug fixes
  • Proposed changes are described in the CHANGELOG.md

  • CI tests succeed!

@dorien-er dorien-er changed the title scGPT integration - KNN workflow Cell type annotation: scGPT integration/KNN workflow Sep 10, 2024
@dorien-er dorien-er marked this pull request as ready for review September 10, 2024 06:46
src/workflows/annotation/scgpt_integration_knn/main.nf Outdated Show resolved Hide resolved
src/workflows/annotation/scgpt_integration_knn/main.nf Outdated Show resolved Hide resolved
"input_var_key": "input_var_gene_names"
],
args: [
"output_var_key": "gene_symbols"
Copy link
Member

Choose a reason for hiding this comment

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

Question: what happens if this column already exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adjusted now: by default it will raise, but this behavior can be undone by enabling the --overwrite_existing_key param

"input_obs_key": "reference_obs_batch_label",
],
args: [
"output_obs_key": "batch_label"
Copy link
Member

Choose a reason for hiding this comment

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

Question: what happens if this column already exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By default it will raise, to be disabled with newly added flag "--overwrite_existing_key"

src/workflows/annotation/scgpt_integration_knn/main.nf Outdated Show resolved Hide resolved
src/workflows/annotation/scgpt_integration_knn/main.nf Outdated Show resolved Hide resolved
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.

6 participants