Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nextflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
nextflow
Commits
18dd092a
Verified
Commit
18dd092a
authored
3 years ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
flexi_splitter: add main.nf and yaml example
parent
2eb49117
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/nf_modules/flexi_splitter/main.nf
+43
-0
43 additions, 0 deletions
src/nf_modules/flexi_splitter/main.nf
src/nf_modules/flexi_splitter/marseq_flexi_splitter.yaml
+41
-0
41 additions, 0 deletions
src/nf_modules/flexi_splitter/marseq_flexi_splitter.yaml
with
84 additions
and
0 deletions
src/nf_modules/flexi_splitter/main.nf
0 → 100644
+
43
−
0
View file @
18dd092a
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
"""
}
This diff is collapsed.
Click to expand it.
src/nf_modules/flexi_splitter/marseq_flexi_splitter.yaml
0 → 100644
+
41
−
0
View file @
18dd092a
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment