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 new parameters --reference and --protospacer #45

Merged
merged 6 commits into from
Jun 28, 2023

Conversation

mirpedrol
Copy link
Member

Add new parameters --reference and --protospacer.
Close #43

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/crisprseq branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile 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).

@github-actions
Copy link

github-actions bot commented Jun 27, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit ea4319a

+| ✅ 154 tests passed       |+
#| ❔  17 tests were ignored |#
!| ❗   3 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in README.md: If applicable, make list of people who have also contributed
  • pipeline_todos - TODO string in WorkflowMain.groovy: Add Zenodo DOI for pipeline after first release
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your prefered methods description, e.g. add publication citation for this pipeline

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.7.2
  • Run at 2023-06-27 13:05:14

@mirpedrol
Copy link
Member Author

@nf-core-bot fix linting please!

.join(INPUT_CHECK.out.protospacer
.map {
meta, fastq ->
[ meta - meta.subMap('id') + [id: meta.id.split('_')[0..-2].join('_')], fastq ]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what line 150 does?

Copy link
Member Author

Choose a reason for hiding this comment

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

When reading the input sample sheet, we add a _T<number> suffix to the sample name (see https://github.com/nf-core/crisprseq/blob/master/bin/check_samplesheet.py#L120). We use this to concatenate the fastq files if one sample has more than fastq file. Here we are removing this suffix so that the meta map in other channels matches the one of reads.

@mirpedrol mirpedrol merged commit 46760d5 into nf-core:dev Jun 28, 2023
@mirpedrol mirpedrol deleted the reference-param branch June 28, 2023 11:06
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.

3 participants