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

Universc module update #3493

Closed
wants to merge 18 commits into from

Conversation

adamrtalbot
Copy link
Contributor

  • Moves parameters from meta map to ext.args
  • Directs logs to stdout and stderr for proper handling by Nextflow
  • Catches if there are not 2 files (which would not work)
  • Removes modifications of containerOptions
  • FIxes bug where parameters were being added as an array (e.g. ["option"])
  • Updates tests to work with current test-datasets repo

PR checklist

  • 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 you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • 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:
    • PROFILE=docker pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
    • PROFILE=singularity pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
    • PROFILE=conda pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware

@adamrtalbot adamrtalbot mentioned this pull request Jun 7, 2023
14 tasks
--reference ${reference_name} \\
--description ${sample_arg} \\
--id ${meta.id} \\
--read1 ${reads[0]} --read2 ${reads[1]} \\
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be on the next line

Suggested change
--read1 ${reads[0]} --read2 ${reads[1]} \\
--read1 ${reads[0]} \\
--read2 ${reads[1]} \\


# save log files
echo !! > sample-${meta.id}/outs/_invocation
Copy link
Contributor

Choose a reason for hiding this comment

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

What bash magic is this?

Copy link
Member

Choose a reason for hiding this comment

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

!! stands for the last executed command

Copy link
Member

Choose a reason for hiding this comment

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

do we need it? If someone wants to debug they can look into .command.sh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Trying to write around Nextflow is a major bugbear of mine.

"--per-cell-data",
"--verbose",
].join(" ").trim()
}
container = "nf-core/universc:1.2.5.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the container being set in here still?

container = "nf-core/universc:1.2.5.1"
}

withName: CELLRANGER_MKGTF {
container = "nf-core/universc:1.2.5.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

And here

container = "nf-core/universc:1.2.5.1"
}

withName: CELLRANGER_MKGTF {
container = "nf-core/universc:1.2.5.1"
}
withName: CELLRANGER_MKREF{
container = "nf-core/universc:1.2.5.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

And here

mkdir -p "${meta.id}/"
mkdir -p "${meta.id}/SC_RNA_COUNTER_CS"
mkdir -p "${meta.id}/journal"
touch ${meta.id}/_log.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this log file still being made?

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.

None yet

3 participants