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

Commit

Permalink
temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi18av committed Oct 21, 2020
1 parent f7aeab4 commit f76f77f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions modules/samtools/cram_to_bam/cram_to_bam.nf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ process SAMTOOLS_CRAM_TO_BAM {
maxRetries 3

input:
tuple path(ref_fasta), path(ref_fasta_index)
path(ref_fasta)
path(ref_fasta_index)
path(ref_dict)
path(input_cram)

Expand All @@ -44,10 +45,15 @@ process SAMTOOLS_CRAM_TO_BAM {
}

workflow test {
ref_fasta_ch = Channel.value([Paths.get("./test_data/NC000962_3.fasta"), Paths.get("/test_data/NC000962_3.fasta.fai")])
ref_dict_ch = Channel.value(Paths.get("/test_data/NC000962_3.dict"))
// ref_fasta_ch = Channel.value([Paths.get("./test_data/NC000962_3.fasta"), Paths.get("/test_data/NC000962_3.fasta.fai")])
ref_fasta = "./test_data/NC000962_3.fasta"
ref_fasta_fai = "./test_data/NC000962_3.fasta.fai"

// ref_dict_ch = Channel.value(Paths.get("/test_data/NC000962_3.dict"))
ref_dict = "./test_data/NC000962_3.dict"

input_cram_ch = Channel.fromPath("./test_data/*cram")

SAMTOOLS_CRAM_TO_BAM(ref_fasta_ch, ref_dict_ch, input_cram_ch)
SAMTOOLS_CRAM_TO_BAM(ref_fasta, ref_fasta_fai, ref_dict, input_cram_ch)

}
2 changes: 1 addition & 1 deletion workflows/haplotype_caller.nf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nextflow.preview.dsl = 2
nextflow.enable.dsl = 2

include { SAMTOOLS_CRAM_TO_BAM } from "../modules/samtools/cram_to_bam/cram_to_bam"
include { GATK_HAPLOTYPE_CALLER } from "../modules/gatk/haplotype_caller/haplotype_caller"
Expand Down

0 comments on commit f76f77f

Please sign in to comment.