-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from Plant-Food-Research-Open/fix/short_intron
Fixed a crash due to short introns
- Loading branch information
Showing
9 changed files
with
2,134 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 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 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
39 changes: 39 additions & 0 deletions
39
subworkflows/local/tests/gxf_fasta_agat_spaddintrons_spextractsequences/main.nf.test
This file contains 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,39 @@ | ||
nextflow_workflow { | ||
|
||
name "Test Subworkflow GXF_FASTA_AGAT_SPADDINTRONS_SPEXTRACTSEQUENCES" | ||
script "../../../gallvp/gxf_fasta_agat_spaddintrons_spextractsequences/main.nf" | ||
workflow "GXF_FASTA_AGAT_SPADDINTRONS_SPEXTRACTSEQUENCES" | ||
config './nextflow.config' | ||
|
||
tag "subworkflows" | ||
tag "subworkflows_gallvp" | ||
tag "subworkflows/gxf_fasta_agat_spaddintrons_spextractsequences" | ||
tag "modules/nf-core/gunzip" | ||
tag "agat/spextractsequences" | ||
tag "agat/spaddintrons" | ||
|
||
test("scaffold_4 - fasta - gff3") { | ||
|
||
when { | ||
workflow { | ||
""" | ||
input[0] = Channel.of ( [ | ||
[ id:'test' ], | ||
file("$baseDir" + '/subworkflows/local/tests/gxf_fasta_agat_spaddintrons_spextractsequences/testdata/scaffold_4.gff', checkIfExists: true) | ||
] ) | ||
input[1] = Channel.of ( [ | ||
[ id:'test' ], | ||
file("$baseDir" + '/subworkflows/local/tests/gxf_fasta_agat_spaddintrons_spextractsequences/testdata/scaffold_4.fasta', checkIfExists: true) | ||
] ) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert workflow.success}, | ||
{ assert snapshot(workflow.out).match()} | ||
) | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
subworkflows/local/tests/gxf_fasta_agat_spaddintrons_spextractsequences/main.nf.test.snap
This file contains 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,53 @@ | ||
{ | ||
"scaffold_4 - fasta - gff3": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.motifs.tsv:md5,b0a99a7a7bf598bbf1e25ca3690567c6" | ||
] | ||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.marked.gff3:md5,f464b2e0dc24238e69c3e9e1419c1b3b" | ||
] | ||
], | ||
"2": [ | ||
"versions.yml:md5,1befbe41bc7abbf49767b8dc68877bc7", | ||
"versions.yml:md5,65042e008b2466984150cb219a05291c" | ||
], | ||
"marked_gff3": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.marked.gff3:md5,f464b2e0dc24238e69c3e9e1419c1b3b" | ||
] | ||
], | ||
"motifs_tsv": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.motifs.tsv:md5,b0a99a7a7bf598bbf1e25ca3690567c6" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,1befbe41bc7abbf49767b8dc68877bc7", | ||
"versions.yml:md5,65042e008b2466984150cb219a05291c" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.3" | ||
}, | ||
"timestamp": "2024-12-20T12:00:17.861955" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
subworkflows/local/tests/gxf_fasta_agat_spaddintrons_spextractsequences/nextflow.config
This file contains 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,6 @@ | ||
process { | ||
|
||
withName: AGAT_SPEXTRACTSEQUENCES { | ||
ext.args = '-t intron' | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...s/local/tests/gxf_fasta_agat_spaddintrons_spextractsequences/testdata/README.md
This file contains 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 @@ | ||
This test data is from an _Actinidia_ genome. To minify the data, the gene coordinates have been shifted back by 630000. The Gff file has a single bp intron which is not flagged by `agat_sp_flag_short_introns.pl` from version `quay.io/biocontainers/agat:1.4.1--pl5321hdfd78af_0`. See issue <https://github.com/NBISweden/AGAT/issues/516> for further details. |
Oops, something went wrong.