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

Disallow TXT files #304

Merged
merged 4 commits into from
Oct 24, 2024
Merged

Disallow TXT files #304

merged 4 commits into from
Oct 24, 2024

Conversation

WackerO
Copy link
Collaborator

@WackerO WackerO commented Oct 21, 2024

Currently, the pipeline does not properly handle contrast files with the TXT extension; they are treated as comma-separated which results in an error. This behaviour is now fixed.

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

@WackerO WackerO requested a review from pinin4fjords October 21, 2024 12:33
Copy link

github-actions bot commented Oct 21, 2024

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

Posted for pipeline commit d37e870

+| ✅ 299 tests passed       |+
#| ❔   6 tests were ignored |#
!| ❗   4 tests had warnings |!

❗ Test warnings:

  • 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 main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
  • pipeline_todos - TODO string in base.config: Check the defaults for all processes

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 3.0.2
  • Run at 2024-10-23 06:55:05

Copy link
Member

@pinin4fjords pinin4fjords left a comment

Choose a reason for hiding this comment

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

I don't agree with this, you've just flipped the problem and created another one.

txt doesn't imply any particular separator- commas or tabs. Therefore we should just restrict the input to csv|tsv and disallow txt - not assume that txt has tabs.

@WackerO
Copy link
Collaborator Author

WackerO commented Oct 22, 2024

You're right, txt doesn't imply anything, but we have treated txt as a tab-separated file format for all the other files; your read_delim_flexible function makes the same assumption. I do think that we should treat this uniformly and either continue the same assumption here or disallow txt files in general.

@pinin4fjords
Copy link
Member

Yes, let's disallow!

@WackerO WackerO requested a review from pinin4fjords October 23, 2024 07:05
@WackerO WackerO changed the title Fix TXT contrast file bug Disallow TXT files Oct 23, 2024
@WackerO WackerO merged commit 3abee63 into nf-core:dev Oct 24, 2024
14 checks passed
@pinin4fjords pinin4fjords mentioned this pull request Nov 13, 2024
11 tasks
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.

2 participants