Skip to content

updated module: xengsort/index - #12494

Open
LeonHornich wants to merge 13 commits into
nf-core:masterfrom
LeonHornich:xengsort_index
Open

updated module: xengsort/index#12494
LeonHornich wants to merge 13 commits into
nf-core:masterfrom
LeonHornich:xengsort_index

Conversation

@LeonHornich

Copy link
Copy Markdown
Contributor

Updated existing xengsort/index module with the following changes:

  • tool version: now latest version -> 2.2.1: this adds support for --bisulfite mode
  • adjusted input and output handling to be more in-line with nf-core standards
  • added thread parameters as according to tool handling
  • extended testing cases: default, bisulfite, stub

PR checklist

Closes #XXX

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda

Comment on lines +37 to +42
{ assert path(process.out.hash[0][1]).exists() },
{ assert path(process.out.info[0][1]).exists() },
{ assert snapshot(
path(process.out.hash[0][1]).getFileName().toString(),
path(process.out.info[0][1]).getFileName().toString(),
process.out.findAll { key, val -> key.startsWith("versions") }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This could probably all be sanitizeOutput(process.out, unstableKeys: ["hash", "info"])

Comment on lines +28 to +40
def subtables = Math.max([(cpus / 2) as int - 1, cpus - 3, 19].min(), 1)
if ((subtables % 2) == 0) {
subtables += 1
}

def read_threads = Math.ceil(subtables / 10) as int

def split_threads = 2 * read_threads

if ((subtables + read_threads + split_threads) >= cpus) {
read_threads = 1
split_threads = 2
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where is all this coming from?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have had a similar discussion here. The values and logic is taken from the tools source code.

description: The expression to obtain the version of the tool

authors:
- "@diegomscoelho"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Still was the original author. You can add yourself though.

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.

2 participants