Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ChIPster
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Xavier Grand
ChIPster
Commits
8b70de28
Verified
Commit
8b70de28
authored
3 years ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
update solution_RNASeq.nf to match CONTRIBUTING.md
parent
bc81c837
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/nf_modules/cutadapt/main.nf
+5
-6
5 additions, 6 deletions
src/nf_modules/cutadapt/main.nf
src/nf_modules/kallisto/main.nf
+21
-20
21 additions, 20 deletions
src/nf_modules/kallisto/main.nf
src/solution_RNASeq.nf
+6
-4
6 additions, 4 deletions
src/solution_RNASeq.nf
with
32 additions
and
30 deletions
src/nf_modules/cutadapt/main.nf
+
5
−
6
View file @
8b70de28
...
...
@@ -19,19 +19,18 @@ process adaptor_removal {
path "*_report.txt", emit: report
script:
if (reads instanceof List)
{
if (reads instanceof List)
"""
cutadapt ${params.adaptor_removal} \
-o ${pair_id}_cut_R1.fastq.gz -p ${pair_id}_cut_R2.fastq.gz \
${reads[0]} ${reads[1]} > ${pair_id}_report.txt
"""
}
else
{
else
"""
cutadapt ${params.adaptor_removal} \
-o ${file_id}_cut.fastq.gz \
${reads} > ${file_id}_report.txt
"""
}
}
params.adaptor_removal_pairedend = "-a ${adapter_3_prim} -g ${adapter_5_prim} -A ${adapter_3_prim} -G ${adapter_5_prim}"
...
...
@@ -76,7 +75,7 @@ process adaptor_removal_singleend {
"""
}
process trimming
_pairedend
{
process trimming {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "$pair_id"
...
...
@@ -89,13 +88,13 @@ process trimming_pairedend {
path "*_report.txt", emit: report
script:
if (reads instanceof List)
if (reads instanceof List)
"""
cutadapt -q ${trim_quality},${trim_quality} \
-o ${pair_id}_trim_R1.fastq.gz -p ${pair_id}_trim_R2.fastq.gz \
${reads[0]} ${reads[1]} > ${pair_id}_report.txt
"""
else
else
"""
cutadapt -q ${trim_quality},${trim_quality} \
-o ${file_id}_trim.fastq.gz \
...
...
This diff is collapsed.
Click to expand it.
src/nf_modules/kallisto/main.nf
+
21
−
20
View file @
8b70de28
...
...
@@ -44,27 +44,28 @@ process mapping_fastq {
tuple val(file_id), path("*_report.txt"), emit: report
script:
if (file_id instanceof List){
pair_id = file_id[0]
} else {
pair_id = file_id
}
if (file_id instanceof List){
pair_id = file_id[0]
} else {
pair_id = file_id
}
if (reads instanceof List)
"""
mkdir ${pair_id}
kallisto quant -i ${index} -t ${task.cpus} \
${params.mapping_fastq} -o ${pair_id} \
${reads[0]} ${reads[1]} &> ${pair_id}_kallisto_mapping_report.txt
"""
else
"""
mkdir ${pair_id}
kallisto quant -i ${index} -t ${task.cpus} --single \
${params.mapping_fastq} -o ${pair_id} \
-l ${params.mean} -s ${params.sd} \
${reads} &> ${reads.simpleName}_kallisto_mapping_report.txt
"""
if (reads instanceof List) {
"""
mkdir ${pair_id}
kallisto quant -i ${index} -t ${task.cpus} \
${params.mapping_fastq} -o ${pair_id} \
${reads[0]} ${reads[1]} &> ${pair_id}_kallisto_mapping_report.txt
"""
} else {
"""
mkdir ${pair_id}
kallisto quant -i ${index} -t ${task.cpus} --single \
${params.mapping_fastq} -o ${pair_id} \
-l ${params.mean} -s ${params.sd} \
${reads} &> ${reads.simpleName}_kallisto_mapping_report.txt
"""
}
}
params.mapping_fastq_pairedend = "--bias --bootstrap-samples 100"
...
...
This diff is collapsed.
Click to expand it.
src/solution_RNASeq.nf
+
6
−
4
View file @
8b70de28
...
...
@@ -11,13 +11,15 @@ log.info "bed file : ${params.bed}"
Channel
.fromPath( params.fasta )
.ifEmpty { error "Cannot find any fasta files matching: ${params.fasta}" }
.map { it -> [it.simpleName, it]}
.set { fasta_files }
Channel
.fromPath( params.bed )
.ifEmpty { error "Cannot find any bed files matching: ${params.bed}" }
.map { it -> [it.simpleName, it]}
.set { bed_files }
Channel
.fromFilePairs( params.fastq
)
.fromFilePairs( params.fastq
, size: -1
)
.ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
.set { fastq_files }
...
...
@@ -27,10 +29,10 @@ include { fasta_from_bed } from './nf_modules/bedtools/main'
include { index_fasta; mapping_fastq } from './nf_modules/kallisto/main'
workflow {
adaptor_removal(fastq_files)
trimming(adaptor_removal.out.fastq)
adaptor_removal(fastq_files
.view()
)
trimming(adaptor_removal.out.fastq
.view()
)
fasta_from_bed(fasta_files, bed_files)
index_fasta(fasta_from_bed.out.fasta)
mapping_fastq(index_fasta.out.index.collect(), trimming.out.fastq)
mapping_fastq(index_fasta.out.index.collect(), trimming.out.fastq
.view()
)
}
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