-
Notifications
You must be signed in to change notification settings - Fork 0
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 #3 from papaemmelab/binning-mod
🛠️ Modification to bin cobalt outputs and add purity forcing
- Loading branch information
Showing
12 changed files
with
235 additions
and
29 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
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,3 @@ | ||
sampleID chrom arm start.pos end.pos n.probes mean | ||
S1 2 p 14001 397001 340 -7.24 | ||
S1 17 p 1 397001 341 -8.813389396729216 |
Binary file not shown.
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,41 @@ | ||
nextflow_process { | ||
|
||
name "Test Process binCobalt" | ||
script "main.nf" | ||
process "binCobalt" | ||
|
||
test("Should bin Cobalt without failures") { | ||
|
||
when { | ||
params { | ||
tumor = "TEST" | ||
binProbes = 100 | ||
binLogR = 0.5 | ||
cobalt_ratio_pcf = "${projectDir}/tests/data/TEST.cobalt.ratio.pcf" | ||
cobalt_ratio_tsv = "${projectDir}/tests/data/TEST.cobalt.ratio.tsv.gz" | ||
} | ||
process { | ||
""" | ||
input[0] = Channel.value(params.tumor) | ||
input[1] = Channel.value(params.binProbes) | ||
input[2] = Channel.value(params.binLogR) | ||
input[3] = Channel.fromPath(params.cobalt_ratio_pcf) | ||
input[4] = Channel.fromPath(params.cobalt_ratio_tsv) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assert process.success | ||
assert snapshot(process.out).match() | ||
|
||
// check expected files | ||
with(process.out) { | ||
assert cobalt_ratio_tsv.size() == 1 | ||
assert cobalt_ratio_pcf.size() == 1 | ||
} | ||
} | ||
|
||
} | ||
|
||
} |
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,25 @@ | ||
{ | ||
"Should bin Cobalt without failures": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
"TEST.cobalt.ratio.tsv.gz:md5,87cf8451b04e4373fc4dd7ccda3e6afe" | ||
], | ||
"1": [ | ||
"TEST.cobalt.ratio.pcf:md5,cd95f6b56cecfd80461bf1bd13c7a9fd" | ||
], | ||
"cobalt_ratio_pcf": [ | ||
"TEST.cobalt.ratio.pcf:md5,cd95f6b56cecfd80461bf1bd13c7a9fd" | ||
], | ||
"cobalt_ratio_tsv": [ | ||
"TEST.cobalt.ratio.tsv.gz:md5,87cf8451b04e4373fc4dd7ccda3e6afe" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.0", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-08-07T11:15:21.745138" | ||
} | ||
} |
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
Oops, something went wrong.