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

Standardize conversion workflow #369

Draft
wants to merge 23 commits into
base: dev
Choose a base branch
from

Conversation

fmalmeida
Copy link
Contributor

@fmalmeida fmalmeida commented Sep 16, 2024

Summary

Hi,
This work relates to #310 and discussion that is happening in slack.

Currently, the implementation as been done only for Star aligner so I am opening the PR so we can have a proper discussion and alignment over what the code should look like, before I can apply the same for the other aligners.

PoC overview

  • Only Star aligner
  • Moved mtx_to_h5ad module to aligner sub-workflow so it is aligner specific and avoid having a gigantic module with multiple conditions
  • added a copy of cellbender subworkflow from scdownstream to perform a more straightforward empty drops filter that keeps format of h5ad input
    • Thus, not requiring further work after filter, since it will keep the format of its input, which should be the standardized h5ad
  • Moved h5ad to Rds conversion to use anndataR package so to keep it simple

TODOs summary

  • Define where (and what) h5ad format standardization should happen
    • Should it happen directly in the alinger-specific module (would be the most straightforward) or should it be in a separate (maybe the anndataR conversion) module that will perform the standardization and generate a new h5ad for all aligners?
  • Create the anndataR docker container within nf-core (currently is using my personal repo)
    • e.g. if done in the anndataR module, it would generate as output a h5ad and a rds file.
  • Define what is the desired standardization for h5ad
    • which commands should be executed?
  • After defined, should be implemented for other aligners
  • Cleanup repo (remove old modules currently as backup, documentation, etc.)

@fmalmeida fmalmeida requested a review from grst September 16, 2024 08:46
@fmalmeida fmalmeida self-assigned this Sep 16, 2024
@fmalmeida fmalmeida linked an issue Sep 16, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Sep 16, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 7c304cc

+| ✅ 205 tests passed       |+
#| ❔   4 tests were ignored |#
!| ❗   3 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in main.nf: Optionally add in-text citation tools to this list.
  • pipeline_todos - TODO string in main.nf: Optionally add bibliographic entries to this list.
  • pipeline_todos - TODO string in main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.14.1
  • Run at 2024-09-16 08:48:11

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.

Clean up mtx conversion code
1 participant