Skip to content
Snippets Groups Projects
Verified Commit 18dd092a authored by Laurent Modolo's avatar Laurent Modolo
Browse files

flexi_splitter: add main.nf and yaml example

parent 2eb49117
No related branches found
No related tags found
No related merge requests found
version = "1.0.2"
container_url = "lbmc/flexi_splitter:${version}"
params.split = ""
params.split_out = ""
process split {
// You can get an example of config file here:
// src/nf_modules/flexi_splitter/marseq_flexi_splitter.yaml
container = "${container_url}"
label "big_mem_multi_cpus"
tag "$file_prefix"
if (params.split_out != "") {
publishDir "results/${params.split_out}", mode: 'copy'
}
input:
tuple val(file_id), path(reads)
tuple val(config_id), path(config)
output:
tuple val(file_id), path("*.fastq*"), emit: fastq
script:
if (file_id instanceof List){
file_prefix = file_id[0]
} else {
file_prefix = file_id
}
def whitelist_param = ""
if (whitelist_id != "NO CONFIG"){
whitelist_param = "-w ${white_list}"
}
if (reads.size() == 2)
"""
flexi_splitter ${params.split} -f ${reads[0]} ${read[1]} -c ${config} -o split
"""
else
"""
flexi_splitter ${params.split} -f ${reads[0]} -c ${config} -o split
"""
}
PLATE:
coords:
reads: 0
start: 1
stop: 4
header: False
samples:
- name : Plate1
seq: GACT
- name : Plate2
seq: CATG
- name : Plate3
seq: CCAA
- name : Plate4
seq: CTGT
- name : Plate5
seq: GTAG
- name : Plate6
seq: TGAT
- name : Plate7
seq: ATCA
- name : Plate8
seq: TAGA
conditions:
- Plate1 :
Plate1
- Plate2 :
Plate2
- Plate3 :
Plate3
- Plate4 :
Plate4
- Plate5 :
Plate5
- Plate6 :
Plate6
- Plate7 :
Plate7
- Plate8 :
Plate8
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment