forked from photocyte/primer3_nf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
31 lines (23 loc) · 920 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
nextflow.enable.dsl=2
include { validateParameters; paramsHelp; paramsSummaryLog; samplesheetToList } from 'plugin/nf-schema'
// Print help message, supply typical command line usage for the pipeline
if (params.help) {
log.info paramsHelp("nextflow run my_pipeline --input input_file.csv")
exit 0
}
// Validate input parameters
// TODO validateParameters()
// Print summary of supplied parameters
log.info paramsSummaryLog(workflow)
// Create a new channel of metadata from a sample sheet passed to the pipeline through the --input parameter
ch_input = Channel.fromList(samplesheetToList(params.input, "assets/schema_input.json"))
include { PRIMER3 } from './subworkflows/primer3'
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),
)
}