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

Add skeleton for samplesheet generation #47

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

Conversation

jfy133
Copy link
Member

@jfy133 jfy133 commented Oct 10, 2024

Closes #15

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 pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/createtaxdb branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

Copy link

github-actions bot commented Oct 10, 2024

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 488fcda

+| ✅ 194 tests passed       |+
#| ❔   2 tests were ignored |#
!| ❗  22 tests had warnings |!

❗ Test warnings:

  • files_exist - File not found: conf/igenomes.config
  • files_exist - File not found: conf/igenomes_ignored.config
  • readme - README contains the placeholder zenodo.XXXXXXX. This should be replaced with the zenodo doi (after the first release).
  • pipeline_todos - TODO string in nextflow.config: Specify your pipeline's command line flags
  • pipeline_todos - TODO string in README.md: TODO nf-core:
  • pipeline_todos - TODO string in README.md: Include a figure that guides the user through the major workflow steps. Many nf-core
  • pipeline_todos - TODO string in README.md: Describe the minimum required steps to execute the pipeline, e.g. how to prepare samplesheets.
  • pipeline_todos - TODO string in README.md: update the following command to include all required parameters for a minimal example
  • pipeline_todos - TODO string in README.md: If applicable, make list of people who have also contributed
  • pipeline_todos - TODO string in README.md: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file.
  • pipeline_todos - TODO string in README.md: Add bibliography of tools and data used in your pipeline
  • pipeline_todos - TODO string in output.md: Write this documentation describing your workflow's output
  • 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 test_full.config: Specify the paths to your full test data ( on nf-core/test-datasets or directly in repositories, e.g. SRA)
  • pipeline_todos - TODO string in test_full.config: Give any required params for the test so that command line flags are not needed
  • pipeline_todos - TODO string in test.config: Specify the paths to your test data on nf-core/test-datasets
  • pipeline_todos - TODO string in test.config: Give any required params for the test so that command line flags are not needed
  • pipeline_todos - TODO string in base.config: Check the defaults for all processes
  • pipeline_todos - TODO string in base.config: Customise requirements for specific processes.
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline
  • pipeline_todos - TODO string in awsfulltest.yml: You can customise AWS full pipeline tests as required

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 3.0.2
  • Run at 2024-10-22 11:12:40

@jfy133 jfy133 marked this pull request as draft October 10, 2024 09:04
@jfy133 jfy133 linked an issue Oct 10, 2024 that may be closed by this pull request
@CarsonJM CarsonJM self-assigned this Oct 10, 2024
Comment on lines 18 to 19
format = 'csv'
format_sep = ','

Choose a reason for hiding this comment

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

Does this need to be defined twice?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I was leaving it in as an example but can remove this now :)

@jfy133
Copy link
Member Author

jfy133 commented Oct 11, 2024

Thanks for adding the test @CarsonJM !

@jfy133
Copy link
Member Author

jfy133 commented Oct 12, 2024

  • TODO:
    • Add TAR support to generate tar.gz versions (partly addresses Generate taxprofiler samplesheet #15)
    • Make the nf-test of generate_samplesheet properly using remote test data (use outpt from previous tep)
    • Test output samplehseet against taxprofielr

@jfy133 jfy133 marked this pull request as ready for review October 14, 2024 12:38
@jfy133
Copy link
Member Author

jfy133 commented Oct 14, 2024

OK tested, and a createtaxdb generated samplesheet is accepted with taxprofiler!

Copy link
Contributor

@Joon-Klaps Joon-Klaps left a comment

Choose a reason for hiding this comment

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

A minor suggestion regarding the new subworkflow which will allow easier integration of more downstream pipelines for samplesheet generation

Copy link
Contributor

@Joon-Klaps Joon-Klaps left a comment

Choose a reason for hiding this comment

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

Minor suggestions.

conf/test_nothing.config Outdated Show resolved Hide resolved
workflows/createtaxdb.nf Show resolved Hide resolved
workflows/createtaxdb.nf Outdated Show resolved Hide resolved
@jfy133 jfy133 requested review from Joon-Klaps and CarsonJM October 15, 2024 07:17
Copy link
Contributor

@Joon-Klaps Joon-Klaps left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Joon-Klaps Joon-Klaps left a comment

Choose a reason for hiding this comment

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

Nice tutorial - I think its clear.

Copy link

@CarsonJM CarsonJM left a comment

Choose a reason for hiding this comment

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

This looks really good! Nice idea using the tar outputs 🎉

}
}

def channelToSamplesheet(ch_list_for_samplesheet, path, format) {

Choose a reason for hiding this comment

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

This looks really clean now!

Choose a reason for hiding this comment

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

I think this looks good 👍

nextflow.config Show resolved Hide resolved
@jfy133
Copy link
Member Author

jfy133 commented Oct 25, 2024

TODO: complete tutorial (double check commands, outputs etc.)

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.

Generate taxprofiler samplesheet
3 participants