Skip to content

Change FILTER_DIFFTABLE to python because AWK does not correctly filter reliably#264

Merged
WackerO merged 8 commits intonf-core:devfrom
WackerO:fix_filter_difftable
Apr 24, 2024
Merged

Change FILTER_DIFFTABLE to python because AWK does not correctly filter reliably#264
WackerO merged 8 commits intonf-core:devfrom
WackerO:fix_filter_difftable

Conversation

@WackerO
Copy link
Copy Markdown
Collaborator

@WackerO WackerO commented Apr 23, 2024

This PR changes the FILTER_DIFFTABLE module to python with pandas; I noticed while working on #257 that the previous module sometimes filters out all the genes, not just the non-DE ones. I was not able to find where the issue is with AWK after a lot of trying out, so the module now uses python.
The module now also applies log2 to the threshold parameter so that the DE gene results are the same as in the report tables; I checked this and the tables now agree with each other (see attached zip).

filtered_results.zip

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 (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).

@WackerO WackerO mentioned this pull request Apr 23, 2024
10 tasks
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 23, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit d6f50cb

+| ✅ 268 tests passed       |+
#| ❔   3 tests were ignored |#
!| ❗   5 tests had warnings |!
Details

❗ Test warnings:

  • nextflow_config - Config manifest.version should end in dev: 1.5.0
  • pipeline_todos - TODO string in awsfulltest.yml: You can customise AWS full pipeline tests as required
  • 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!

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.13.1
  • Run at 2024-04-24 09:47:58

Copy link
Copy Markdown
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.

Just a typo (and maybe make the actual PR name match what's in the changelog), otherwise good.

@WackerO WackerO changed the title Fix filter difftable Change FILTER_DIFFTABLE to python because AWK does not correctly filter reliably Apr 24, 2024
@WackerO WackerO merged commit c2d7ed0 into nf-core:dev Apr 24, 2024
@WackerO WackerO deleted the fix_filter_difftable branch April 24, 2024 11:26
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