Skip to content

Conversation

@Claptar
Copy link

@Claptar Claptar commented May 2, 2025

This PR is my attempt to stick to nf-core best practices as much as possible

The following changes were introduced:

  • Created a new tool anndatautils for any modules related to AnnData manipulations
  • Added anndatautils/toh5ad module
  • Created tests/data folder for test data
  • Created tests/configs folder for all test related configs
  • Created nf-test.config file

⚠️ TODO: add conversion of .zarr file

cellgeni added 16 commits April 30, 2025 16:08
- Added new binary files: pbmc_1k.h5, barcodes.tsv.gz, features.tsv.gz, and matrix.mtx.gz to the anndatautils directory.
- Updated the Nextflow test for the anndatautils/toh5ad module to validate the conversion of .h5 files to .h5ad format.
- Improved assertions in the test to check for successful process execution and correct output file generation.
- Added pbmc_1k.h5 file containing the PBMC 1K dataset.
- Included barcodes.tsv.gz, features.tsv.gz, and matrix.mtx.gz files in the raw_feature_bc_matrix directory for the dataset.
…ta paths to use params for improved flexibility
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces the new tool module "anndatautils/toh5ad" designed for converting AnnData-compatible files into AnnData objects saved as .h5ad files.

  • New meta file defines module metadata
  • Module configuration for input/output and authorship is added
Files not reviewed (7)
  • modules/sanger/anndatautils/toh5ad/Dockerfile: Language not supported
  • modules/sanger/anndatautils/toh5ad/main.nf: Language not supported
  • modules/sanger/anndatautils/toh5ad/module.config: Language not supported
  • modules/sanger/anndatautils/toh5ad/tests/main.nf.test: Language not supported
  • modules/sanger/anndatautils/toh5ad/tests/main.nf.test.snap: Language not supported
  • nf-test.config: Language not supported
  • tests/configs/nf-test.config: Language not supported

@Claptar
Copy link
Author

Claptar commented May 2, 2025

I still need to add .zarr file conversion

Copy link
Contributor

Choose a reason for hiding this comment

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

Dockerfile goes to dockage?

Copy link
Author

Choose a reason for hiding this comment

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

Docker file for this module is already on dockage. I think it would still be good to reference Dockerfile somehow. Either by putting it in the module directory or by leaving a link to dockage in meta.yml or README.md file

type: string
description: |
Sample ID to be used as obs_names in the AnnData object
- - input:
Copy link
Contributor

Choose a reason for hiding this comment

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

should be a single dash. Otherwise, it means sample_id, input and delimiter are the same level.
Also, maybe it's worth renaming input to be some thing more concrete? What type of data do you have in mind?

Copy link
Author

Choose a reason for hiding this comment

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

Fix dashes, thank you! Well, input can be either file or directory, so I struggled to come up with better name

params {
publish_dir_mode = "copy"
singularity_pull_docker_container = false
test_data_base = "${projectDir}/tests/data/"
Copy link
Contributor

Choose a reason for hiding this comment

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

we may need a collective decision on this.

Copy link
Author

Choose a reason for hiding this comment

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

Agreed. I added this just as a draft to enable testing

Claptar and others added 2 commits May 3, 2025 11:45
@Claptar Claptar self-assigned this May 3, 2025
@Claptar Claptar changed the title Anndatautils toh5ad A draft of a simple module to discuss nf-core May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants