Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request icgc-argo-workflows#21 from ICGC-ARGO-Structural-V…
Browse files Browse the repository at this point in the history
…ariation-CN-WG/sequenza-wf@0.2.5

@lDesiree as disucssed during today's meeting, we go ahead merge and [release] this to get ready for repository migration.
  • Loading branch information
junjun-zhang authored Oct 6, 2021
2 parents 1885417 + 20920fa commit b994ed0
Show file tree
Hide file tree
Showing 12 changed files with 10,978 additions and 17 deletions.
10 changes: 5 additions & 5 deletions sequenza-wf/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ workflow SequenzaWf {
take:
tumor_bam
normal_bam
gcwiggle
fasta
gcwiggle

main:
seqzPreprocess(
tumor_bam,
normal_bam,
gcwiggle,
fasta
fasta,
gcwiggle
)

seqzMain(
Expand All @@ -81,7 +81,7 @@ workflow {
SequenzaWf(
file(params.tumor_bam),
file(params.normal_bam),
file(params.gcwiggle),
file(params.fasta)
file(params.fasta),
file(params.gcwiggle)
)
}
36 changes: 24 additions & 12 deletions sequenza-wf/tests/checker.nf
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,19 @@ params.publish_dir = ""
params.container = ""
params.container_registry = ""
params.container_version = ""
params.cpus = 1
params.mem = 3 // GB

// tool specific parmas go here, add / change as needed
params.input_file = ""
params.expected_output = ""
params.tumor_bam = ""
params.normal_bam = ""
params.gcwiggle = ""
params.fasta = ""
params.expected_segments = ""

params.cleanup = false

include { SequenzaWf } from '../main'
// include section starts
// include section ends


process file_smart_diff {
input:
Expand Down Expand Up @@ -77,24 +80,33 @@ process file_smart_diff {

workflow checker {
take:
input_file
expected_output
tumor_bam
normal_bam
fasta
gcwiggle
expected_segments

main:
SequenzaWf(
input_file
tumor_bam,
normal_bam,
fasta,
gcwiggle
)

file_smart_diff(
SequenzaWf.out.output_file,
expected_output
SequenzaWf.out.segments,
expected_segments
)
}


workflow {
checker(
file(params.input_file),
file(params.expected_output)
file(params.tumor_bam),
file(params.normal_bam),
file(params.fasta),
file(params.gcwiggle),
file(params.expected_segments)
)
}
Binary file added sequenza-wf/tests/example.seqz.txt.gz
Binary file not shown.
198 changes: 198 additions & 0 deletions sequenza-wf/tests/expected/expected-example_segments.txt

Large diffs are not rendered by default.

Binary file removed sequenza-wf/tests/expected/expected.test_rg_3.bam
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed sequenza-wf/tests/input/test_rg_3.bam
Binary file not shown.
Loading

0 comments on commit b994ed0

Please sign in to comment.