-
Notifications
You must be signed in to change notification settings - Fork 1k
Add metamap for input/output in stringtie/merge #11108
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
bec367a
Add metamap for input/output in stringtie/merge
f43fb02
Merge branch 'master' into master
Odulhin d865788
Add corrections
e482726
Update input
282dc67
Tests corrections
e25e2de
Change input format
4e9a250
Merge branch 'master' into master
Odulhin a509bb3
Update modules/nf-core/stringtie/merge/tests/main.nf.test
Odulhin cb9d43f
Update modules/nf-core/stringtie/merge/meta.yml
Odulhin 601aed3
Update modules/nf-core/stringtie/merge/main.nf
Odulhin 6c04c4b
input correction
59b9e3d
update tests and snapshots
ac5eb52
Update modules/nf-core/stringtie/merge/tests/main.nf.test
Odulhin 0737621
Update modules/nf-core/stringtie/merge/tests/main.nf.test
Odulhin 4fd0b87
Update subworkflows/nf-core/bam_stringtie_merge/main.nf
Odulhin eea0e3f
Update subworkflows/nf-core/bam_stringtie_merge/main.nf
Odulhin 433572b
update snapshots
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
Some comments aren't visible on the classic Files Changed page.
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 |
|---|---|---|
| @@ -1,37 +1,41 @@ | ||
| process STRINGTIE_MERGE { | ||
| tag "${meta.id}" | ||
| label 'process_medium' | ||
|
|
||
| // Note: 2.7X indices incompatible with AWS iGenomes. | ||
| conda "${moduleDir}/environment.yml" | ||
| container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
| 'https://depot.galaxyproject.org/singularity/stringtie:2.2.1--hecb563c_2' : | ||
| 'biocontainers/stringtie:2.2.1--hecb563c_2' }" | ||
| container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container | ||
| ? 'https://depot.galaxyproject.org/singularity/stringtie:2.2.1--hecb563c_2' | ||
| : 'biocontainers/stringtie:2.2.1--hecb563c_2'}" | ||
|
|
||
| input: | ||
| path stringtie_gtf | ||
| path annotation_gtf | ||
| tuple val(meta), path(gtf) | ||
| tuple val(meta2), path(annotation_gtf) | ||
|
|
||
| output: | ||
| path "stringtie.merged.gtf", emit: gtf | ||
| tuple val(meta), path("${prefix}.gtf"), emit: merged_gtf | ||
| tuple val("${task.process}"), val('stringtie'), eval('stringtie --version'), emit: versions_stringtie, topic: versions | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def reference = annotation_gtf ? "-G $annotation_gtf" : "" | ||
| def args = task.ext.args ?: '' | ||
| prefix = task.ext.prefix ?: "${meta.id}" | ||
| def reference = annotation_gtf ? "-G ${annotation_gtf}" : "" | ||
| """ | ||
| stringtie \\ | ||
| --merge $stringtie_gtf \\ | ||
| $reference \\ | ||
| -o stringtie.merged.gtf \\ | ||
| $args | ||
|
|
||
| --merge \\ | ||
| ${gtf} \\ | ||
| ${reference} \\ | ||
| -o ${prefix}.gtf \\ | ||
| -p ${task.cpus} \\ | ||
| ${args} | ||
| """ | ||
|
|
||
| stub: | ||
| prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| touch stringtie.merged.gtf | ||
|
|
||
| touch ${prefix}.gtf | ||
| """ | ||
| } |
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
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
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
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 |
|---|---|---|
| @@ -1,33 +1,28 @@ | ||
| include { STRINGTIE_STRINGTIE } from '../../../modules/nf-core/stringtie/stringtie/main' | ||
| include { STRINGTIE_MERGE } from '../../../modules/nf-core/stringtie/merge/main' | ||
| include { STRINGTIE_MERGE } from '../../../modules/nf-core/stringtie/merge/main' | ||
|
|
||
|
|
||
| workflow BAM_STRINGTIE_MERGE { | ||
|
|
||
| take: | ||
| bam_sorted // channel: [ meta, bam ] | ||
| ch_chrgtf // channel: [ meta, gtf ] | ||
| ch_chrgtf // channel: [ meta, gtf ] | ||
|
|
||
| main: | ||
| ch_versions = channel.empty() | ||
| ch_stringtie_gtfs = channel.empty() | ||
|
|
||
| STRINGTIE_STRINGTIE( | ||
| bam_sorted, | ||
| ch_chrgtf.map { _meta, gtf -> [ gtf ] } | ||
| ch_chrgtf.map { _meta, gtf -> [gtf] }, | ||
| ) | ||
|
|
||
| STRINGTIE_STRINGTIE.out.transcript_gtf | ||
| .map { _meta, gtf -> [ gtf ] } | ||
| .set { stringtie_gtfs } | ||
| STRINGTIE_STRINGTIE.out.transcript_gtf.set { stringtie_gtfs } | ||
|
|
||
| STRINGTIE_MERGE( | ||
| stringtie_gtfs, | ||
| ch_chrgtf.map { _meta, gtf -> [ gtf ] } | ||
| ch_chrgtf | ||
| ) | ||
| ch_stringtie_gtfs = STRINGTIE_MERGE.out.gtf | ||
| ch_stringtie_gtfs = STRINGTIE_MERGE.out.merged_gtf | ||
|
|
||
| emit: | ||
| stringtie_gtf = ch_stringtie_gtfs // channel: [ meta, gtf ] | ||
| versions = ch_versions // channel: [ path(versions.yml) ] | ||
| } |
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
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
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.