Skip to content

Update nfcore modules in spatialaxe#184

Open
khersameesh24 wants to merge 11 commits into
nf-core:devfrom
khersameesh24:update-nfcore-modules
Open

Update nfcore modules in spatialaxe#184
khersameesh24 wants to merge 11 commits into
nf-core:devfrom
khersameesh24:update-nfcore-modules

Conversation

@khersameesh24

@khersameesh24 khersameesh24 commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator
  • minor template v4.0.2 changes
  • included nf-core module Baysor - Bayor run, segfree, preview
  • included nf-core module Proseg - proseg, proseg2baysor
  • included nf-core module & subworkflow for OPT - flip, track, stat
  • linting fixes, changes to reduce lint warnings
  • data flow to channels handled
  • added missing meta.yml files
  • updated nf-test snapshot
  • other misc changes

closes #178

@khersameesh24 khersameesh24 changed the title Update nfcore modules - placeholder PR Update nfcore modules in spatialaxe Jun 27, 2026
an-altosian and others added 3 commits June 27, 2026 14:41
XENIUM_PATCH_STITCH failed with 'unrecognized arguments:
--min-transcripts-per-cell 50'. When stitch_transcripts.py was split into
xenium_patch_stitch_transcripts.py + xenium_patch_stitch_postprocess.py, the
--min-transcripts-per-cell argument and its small-cell filter were dropped from
the transcripts script, but conf/modules.config still injects the flag.

- restore the argument + post-stitch small-cell filter (reassign transcripts of
  sub-threshold cells to noise, drop their polygons)
- repoint tests/test_xenium_patch/test_stitch_transcripts.py from the deleted
  modules/.../resources/usr/bin path to bin/ (broken since the PR nf-core#154 refactor)
- add TestMinTranscriptsFilter: filter behaviour, no-op control, and a
  subprocess CLI test reproducing the exact production invocation
- remove the orphan bin/stitch_transcripts.py (superseded, unused)

Validated in the module's sopa container: 15 passed.
fix(xenium_patch): restore --min-transcripts-per-cell in stitch script
@khersameesh24 khersameesh24 linked an issue Jun 27, 2026 that may be closed by this pull request
Comment thread .nf-core.yml
Comment on lines 4 to 5
- .github/workflows/awsfulltest.yml
- .github/workflows/awstest.yml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this should be added back, so we can test/make sure that it runs in the cloud

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@mashehu , these files are still in the repo, these were just generating warnings while linting runs, should i remove it from the .nf-core.yml?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

yes.
let's see what kind of warnings you get with them in 🙂

Comment thread .nf-core.yml
@@ -1,8 +1,10 @@
lint:
actions_ci: false

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change

this one should also not be skipped

Comment thread conf/modules.config
withName: PROSEG {
publishDir = [
path: "${params.outdir}/${params.mode}/proseg/preset",
path: "${params.outdir}/${params.mode}/proseg/proseg",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why the double proseg folder? I would find it better to keep then just once proseg/


// Step 2b: Convert parquet to CSV (Baysor Julia Parquet.jl incompatibility)
PARQUET_TO_CSV ( ch_patches )
PARQUET2CSV ( ch_patches, ".csv" )

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would remove ".csv". The script has as default anyway ".csv" extension.


// convert parquet to csv
PARQUET_TO_CSV(ch_transcripts_file, ".csv")
PARQUET2CSV(ch_transcripts_parquet, ".csv")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same here. Remove the argument ".csv"

@heylf heylf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some minor comments also from me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update existing nf-core modules

4 participants