forked from photocyte/primer3_nf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
35 lines (30 loc) · 876 Bytes
/
main.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
nextflow.enable.dsl=2
include { seqkit_fetch_target } from "./modules/seqkit_fetch_target"
include { primer3_conf } from "./modules/primer3_conf/"
include { primer3_index } from "./modules/primer3_index/"
include { primer3_calc } from "./modules/primer3_calc/"
include { primer3_results2fasta } from "./modules/primer3_results2fasta/"
workflow {
// Read in bed file(s)
// Pull raw sequences in the bed files from the reference genome
// Run primer3 on the sequences
PRIMER3 (
Channel.of(params.targetseq),
Channel.fromPath(params.fasta),
)
}
workflow PRIMER3 {
take:
seq
ref
main:
seq.view()
seqkit_fetch_target(seq,ref)
target = seqkit_fetch_target.out.fasta
primer3_conf(target,ref)
primer3_index(ref)
primer3_calc(primer3_conf.out,primer3_index.out)
primer3_results2fasta(primer3_calc.out)
emit:
primer3_results2fasta.out
}