-
Notifications
You must be signed in to change notification settings - Fork 941
New module - TD2 (added modules for td2.longorfs & td2.predict) #9475
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
Open
khersameesh24
wants to merge
8
commits into
master
Choose a base branch
from
9470-new-module-td2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f20472f
added modules for td2.longorfs & td2.predict
khersameesh24 34f9cb2
Merge branch 'master' into 9470-new-module-td2
khersameesh24 f36c6ed
Merge branch 'master' into 9470-new-module-td2
khersameesh24 74fea50
changes to version handling, updated snaps, and tests - resolving com…
khersameesh24 0f4a4fa
Merge branch 'master' into 9470-new-module-td2
khersameesh24 b1d83fe
added topics section in meta.yml
khersameesh24 9c4ba6e
fix topics section in meta.yml
khersameesh24 b483e0d
Merge branch 'master' into 9470-new-module-td2
khersameesh24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| channels: | ||
| - conda-forge | ||
| - bioconda | ||
| dependencies: | ||
| - "bioconda::td2=1.0.6" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| process TD2_LONGORFS { | ||
| tag "$meta.id" | ||
| label 'process_medium' | ||
|
|
||
| conda "${moduleDir}/environment.yml" | ||
| container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
| 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/41/4155bf3b720e1e32d0615a947696fb0287ee4e8cdbeb4ec784dd4da7bb5b2e86/data': | ||
| "community.wave.seqera.io/library/td2:1.0.6--ea3e5ac09443b677"}" | ||
|
|
||
| input: | ||
| tuple val(meta), path(fasta) | ||
|
|
||
| output: | ||
| tuple val(meta), path("${prefix}/longest_orfs.{cds,gff3,pep}"), emit: orfs | ||
| tuple val("${task.process}"), val('TD2.LongOrfs'), eval("echo td2: ${VERSION}"), emit: versions_td2, topic: versions | ||
khersameesh24 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| VERSION = 'v1.0.6' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. | ||
| prefix = task.ext.prefix ?: "${meta.id}" | ||
|
|
||
| """ | ||
| TD2.LongOrfs \\ | ||
| -t ${fasta} \\ | ||
| -O ${prefix} \\ | ||
khersameesh24 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| --threads ${task.cpus} \\ | ||
| ${args} | ||
| """ | ||
|
|
||
| stub: | ||
| VERSION = 'v1.0.6' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. | ||
| prefix = task.ext.prefix ?: "${meta.id}" | ||
|
|
||
| """ | ||
| mkdir -p ${prefix}/ | ||
| touch ${prefix}/longest_orfs.cds | ||
| touch ${prefix}/longest_orfs.gff3 | ||
| touch ${prefix}/longest_orfs.pep | ||
khersameesh24 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| name: "td2_longorfs" | ||
| description: TD2 identifies candidate coding regions within transcript | ||
| sequences, such as those generated by de novo RNA-Seq transcript assembly | ||
| keywords: | ||
| - td2 | ||
| - orfs | ||
| - longorfs | ||
| - transcripts | ||
| tools: | ||
| - td2: | ||
| description: "TD2 identifies candidate coding regions within transcript sequences, | ||
| such as those generated by de novo RNA-Seq transcript assembly" | ||
| homepage: "https://github.com/Markusjsommer/TD2" | ||
| documentation: "https://github.com/Markusjsommer/TD2" | ||
| tool_dev_url: "https://github.com/Markusjsommer/TD2" | ||
| licence: ["MIT"] | ||
| identifier: "" | ||
|
|
||
| input: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - fasta: | ||
| type: file | ||
| description: Fasta file containing the target transcript sequences | ||
| pattern: "*.{fasta}" | ||
| ontologies: [] | ||
| output: | ||
| orfs: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - ${prefix}/longest_orfs.{cds,gff3,pep}: | ||
| type: file | ||
| description: Files containing the longest ORFs predicted from the input | ||
| transcript sequences | ||
| pattern: "${prefix}/longest_orfs.{cds,gff3,pep}" | ||
| ontologies: [] | ||
| versions_td2: | ||
| - - ${task.process}: | ||
| type: string | ||
| description: The process the versions were collected from | ||
| - TD2.LongOrfs: | ||
| type: string | ||
| description: The tool name | ||
| - "echo td2: ${VERSION}": | ||
| type: string | ||
| description: The version of TD2 used | ||
| topics: | ||
| versions: | ||
| - - ${task.process}: | ||
| type: string | ||
| description: The process the versions were collected from | ||
| - TD2.LongOrfs: | ||
| type: string | ||
| description: The tool name | ||
| - "echo td2: ${VERSION}": | ||
| type: string | ||
| description: The version of TD2 used | ||
| authors: | ||
| - "@khersameesh24" | ||
| maintainers: | ||
| - "@khersameesh24" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| nextflow_process { | ||
|
|
||
| name "Test Process TD2_LONGORFS" | ||
| script "../main.nf" | ||
| process "TD2_LONGORFS" | ||
|
|
||
| tag "modules" | ||
| tag "modules_nfcore" | ||
| tag "td2" | ||
| tag "td2/longorfs" | ||
|
|
||
| test("td2.longorfs - transcriptome.fasta") { | ||
|
|
||
| when { | ||
| process { | ||
| """ | ||
| input[0] = [ | ||
| [ id:'test_td2_longorfs' ], | ||
| file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/transcriptome.fasta', checkIfExists: true), | ||
| ] | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assert process.success | ||
| assertAll( | ||
| { assert snapshot( | ||
| process.out, | ||
| process.out.findAll { key, val -> key.startsWith("versions")} | ||
| ).match() } | ||
| ) | ||
| } | ||
|
|
||
| } | ||
|
|
||
| test("td2.longorfs - transcriptome.fasta -stub") { | ||
|
|
||
| options "-stub" | ||
|
|
||
| when { | ||
| process { | ||
| """ | ||
| input[0] = [ | ||
| [ id:'test_td2_longorfs' ], | ||
| file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/transcriptome.fasta', checkIfExists: true), | ||
| ] | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assert process.success | ||
| assertAll( | ||
| { assert snapshot( | ||
| process.out, | ||
| process.out.findAll { key, val -> key.startsWith("versions")} | ||
| ).match() } | ||
| ) | ||
| } | ||
|
|
||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| { | ||
| "td2.longorfs - transcriptome.fasta": { | ||
| "content": [ | ||
| { | ||
| "0": [ | ||
| [ | ||
| { | ||
| "id": "test_td2_longorfs" | ||
| }, | ||
| [ | ||
| "longest_orfs.cds:md5,4226fe196a4527f938e25061ffe7eaf6", | ||
| "longest_orfs.gff3:md5,864ae9147b65d07eb9d79c0e42968e12", | ||
| "longest_orfs.pep:md5,0151dac6998be924139a4f5a5a0c590b" | ||
| ] | ||
| ] | ||
| ], | ||
| "1": [ | ||
| [ | ||
| "TD2_LONGORFS", | ||
| "TD2.LongOrfs", | ||
| "td2: v1.0.6" | ||
| ] | ||
| ], | ||
| "orfs": [ | ||
| [ | ||
| { | ||
| "id": "test_td2_longorfs" | ||
| }, | ||
| [ | ||
| "longest_orfs.cds:md5,4226fe196a4527f938e25061ffe7eaf6", | ||
| "longest_orfs.gff3:md5,864ae9147b65d07eb9d79c0e42968e12", | ||
| "longest_orfs.pep:md5,0151dac6998be924139a4f5a5a0c590b" | ||
| ] | ||
| ] | ||
| ], | ||
| "versions_td2": [ | ||
| [ | ||
| "TD2_LONGORFS", | ||
| "TD2.LongOrfs", | ||
| "td2: v1.0.6" | ||
| ] | ||
| ] | ||
| }, | ||
| { | ||
| "versions_td2": [ | ||
| [ | ||
| "TD2_LONGORFS", | ||
| "TD2.LongOrfs", | ||
| "td2: v1.0.6" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "meta": { | ||
| "nf-test": "0.9.3", | ||
| "nextflow": "25.10.2" | ||
| }, | ||
| "timestamp": "2025-12-04T21:11:35.499924547" | ||
| }, | ||
| "td2.longorfs - transcriptome.fasta -stub": { | ||
| "content": [ | ||
| { | ||
| "0": [ | ||
| [ | ||
| { | ||
| "id": "test_td2_longorfs" | ||
| }, | ||
| [ | ||
| "longest_orfs.cds:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
| "longest_orfs.gff3:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
| "longest_orfs.pep:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
| ] | ||
| ] | ||
| ], | ||
| "1": [ | ||
| [ | ||
| "TD2_LONGORFS", | ||
| "TD2.LongOrfs", | ||
| "td2: v1.0.6" | ||
| ] | ||
| ], | ||
| "orfs": [ | ||
| [ | ||
| { | ||
| "id": "test_td2_longorfs" | ||
| }, | ||
| [ | ||
| "longest_orfs.cds:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
| "longest_orfs.gff3:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
| "longest_orfs.pep:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
| ] | ||
| ] | ||
| ], | ||
| "versions_td2": [ | ||
| [ | ||
| "TD2_LONGORFS", | ||
| "TD2.LongOrfs", | ||
| "td2: v1.0.6" | ||
| ] | ||
| ] | ||
| }, | ||
| { | ||
| "versions_td2": [ | ||
| [ | ||
| "TD2_LONGORFS", | ||
| "TD2.LongOrfs", | ||
| "td2: v1.0.6" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "meta": { | ||
| "nf-test": "0.9.3", | ||
| "nextflow": "25.10.2" | ||
| }, | ||
| "timestamp": "2025-12-04T21:13:55.06359889" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| channels: | ||
| - conda-forge | ||
| - bioconda | ||
| dependencies: | ||
| - "bioconda::td2=1.0.6" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| process TD2_PREDICT { | ||
| tag "$meta.id" | ||
| label 'process_medium' | ||
|
|
||
| conda "${moduleDir}/environment.yml" | ||
| container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
| 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/41/4155bf3b720e1e32d0615a947696fb0287ee4e8cdbeb4ec784dd4da7bb5b2e86/data': | ||
| "community.wave.seqera.io/library/td2:1.0.6--ea3e5ac09443b677"}" | ||
|
|
||
| input: | ||
| tuple val(meta), path(fasta), path(orfs_dir, stageAs: 'orfs') | ||
khersameesh24 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| output: | ||
| tuple val(meta), path("${prefix}/*.TD2.{bed,cds,gff3,pep}"), emit: predictions | ||
| tuple val("${task.process}"), val('TD2.Predict'), eval("echo td2: ${VERSION}"), emit: versions_td2, topic: versions | ||
khersameesh24 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| VERSION = 'v1.0.6' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. | ||
| prefix = task.ext.prefix ?: "${meta.id}" | ||
|
|
||
| """ | ||
| mkdir -p ${prefix}/ | ||
|
|
||
| TD2.Predict \\ | ||
| -t ${fasta} \\ | ||
| -O ${orfs_dir} \\ | ||
| ${args} | ||
|
|
||
| mv *.TD2.{bed,cds,gff3,pep} ${prefix}/ | ||
khersameesh24 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
|
|
||
| stub: | ||
| VERSION = 'v1.0.6' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. | ||
| prefix = task.ext.prefix ?: "${meta.id}" | ||
|
|
||
| """ | ||
| mkdir -p ${prefix}/ | ||
| touch ${prefix}/fakefile.TD2.bed | ||
| touch ${prefix}/fakefile.TD2.cds | ||
| touch ${prefix}/fakefile.TD2.gff3 | ||
| touch ${prefix}/fakefile.TD2.pep | ||
| """ | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.