-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting to implement GPU support for polishing
- add test cases - add gpu parameters - add functionality to test for gpu availability
- Loading branch information
1 parent
7e381b6
commit c13cf3f
Showing
11 changed files
with
208 additions
and
9 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
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
80 changes: 80 additions & 0 deletions
80
tests/input/polish_cluster/barcode03/smolecule0sub12.fastq
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
nextflow_process { | ||
|
||
name "Test Process POLISH_CLUSTER_minimal" | ||
script "lib/processes/polish_cluster.nf" | ||
process "POLISH_CLUSTER" | ||
|
||
test("Should use gpu") { | ||
when { | ||
params{ | ||
use_gpu = true | ||
} | ||
process { | ||
""" | ||
input[0] = Channel.of(["barcode03", "raw", "$baseDir/tests/input/polish_cluster/barcode03/smolecule0sub12.fastq"]) | ||
input[1] = "Consensus" | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assert process.success | ||
assert snapshot(process.out).match() | ||
} | ||
|
||
} | ||
|
||
} |
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,27 @@ | ||
{ | ||
"Should use gpu": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
"barcode03", | ||
"raw", | ||
"smolecule0sub12_consensus.fastq:md5,458ecdaf2e49929a67c52389a01b5f7c" | ||
] | ||
], | ||
"consensus_fastq": [ | ||
[ | ||
"barcode03", | ||
"raw", | ||
"smolecule0sub12_consensus.fastq:md5,458ecdaf2e49929a67c52389a01b5f7c" | ||
] | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.0-rc2", | ||
"nextflow": "24.05.0" | ||
}, | ||
"timestamp": "2024-06-21T11:14:11.515754" | ||
} | ||
} |
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