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

Tcoffee tcs #5288

Merged
merged 11 commits into from
Mar 20, 2024
Merged

Tcoffee tcs #5288

merged 11 commits into from
Mar 20, 2024

Conversation

alessiovignoli
Copy link
Contributor

PR checklist

Closes #XXX

  • 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:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

@alessiovignoli alessiovignoli requested a review from a team as a code owner March 19, 2024 16:59
@alessiovignoli alessiovignoli requested review from LeuThrAsp and removed request for a team March 19, 2024 16:59
@alessiovignoli alessiovignoli added the enhancement New feature or request label Mar 19, 2024
@alessiovignoli
Copy link
Contributor Author

Description:

This module uses t_coffee to compute the Transient Consistency Score (TCS). A metric used to assest the quality and conservation of the given MSA. It expects a msa as input and optionally a msa library. It outputs the TCS file in the score_ascii format of t_coffee and a simple csv reporting the overall TCS value for the given msa.

Copy link
Contributor

@itrujnara itrujnara left a comment

Choose a reason for hiding this comment

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

Looking good, just some minor remarks


input:
tuple val(meta), path(msa)
tuple val(meta2), path(lib)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 2 input channels? It seems meta2 is not even used in the script

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can optionally pass a lib file. And if you doyou pass it through a channel that created such library in an alignment step before, so it will have it is own meta anyway. It is not used because not needed. But it will be passed in case with the lib file.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, should be fine as is

def lib_arg = lib ? "-lib ${lib}" : ""
def header = meta.keySet().join(",")
def values = meta.values().join(",")
def unzipped_name = msa.toString() - '.gz'
Copy link
Contributor

Choose a reason for hiding this comment

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

Align equal signs

@lrauschning
Copy link
Contributor

Hm weird, locally prettier runs without any issues.

Copy link
Contributor

@itrujnara itrujnara left a comment

Choose a reason for hiding this comment

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

I see everything's fixed, good to go.

@alessiovignoli alessiovignoli added this pull request to the merge queue Mar 20, 2024
@alessiovignoli alessiovignoli mentioned this pull request Mar 20, 2024
4 tasks
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 20, 2024
@lrauschning lrauschning added this pull request to the merge queue Mar 20, 2024
Merged via the queue into nf-core:master with commit 2d5ea49 Mar 20, 2024
11 checks passed
jvfe added a commit to jvfe/modules that referenced this pull request Mar 20, 2024
* master:
  Tcoffee tcs (nf-core#5288)
  Add and update - picard/gatk4 - addorreplacereadgroups (nf-core#5302)
  New module svtypersso (nf-core#5311)
jvfe added a commit that referenced this pull request Mar 20, 2024
* master:
  Add module nanofilt (#5290)
  Tcoffee tcs (#5288)
  Add and update - picard/gatk4 - addorreplacereadgroups (#5302)
  New module svtypersso (#5311)
tucano pushed a commit to tucano/modules that referenced this pull request Mar 20, 2024
* right ater execution of nf-core modules create

* added compression compatibility

* allocated for otional lib file and created scores csv file based on tcs output

* compiled the meta.yml

* added the test for msa and msa compressed

* removed lib only option

* fixed issue with filename extension after ungzip, wrote test for input lib and modified test for compressed

* added direct export of TEMP dir, hopefully fixes error ongithub singularity

* fixing trailing whitespaces
jennylsmith pushed a commit to RSC-RP/modules that referenced this pull request Mar 20, 2024
* right ater execution of nf-core modules create

* added compression compatibility

* allocated for otional lib file and created scores csv file based on tcs output

* compiled the meta.yml

* added the test for msa and msa compressed

* removed lib only option

* fixed issue with filename extension after ungzip, wrote test for input lib and modified test for compressed

* added direct export of TEMP dir, hopefully fixes error ongithub singularity

* fixing trailing whitespaces
alexnater pushed a commit to alexnater/nf-core-modules that referenced this pull request Mar 21, 2024
* right ater execution of nf-core modules create

* added compression compatibility

* allocated for otional lib file and created scores csv file based on tcs output

* compiled the meta.yml

* added the test for msa and msa compressed

* removed lib only option

* fixed issue with filename extension after ungzip, wrote test for input lib and modified test for compressed

* added direct export of TEMP dir, hopefully fixes error ongithub singularity

* fixing trailing whitespaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants