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
vvanoost
nextflow
Commits
3eff3194
Commit
3eff3194
authored
6 years ago
by
vvanoost
Browse files
Options
Downloads
Patches
Plain Diff
amendments to cutadapt to remove adapters in 5' and 3' from R1 and R2
parent
d1343e8b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/RNAseq_sen1D.nf
+26
-15
26 additions, 15 deletions
src/RNAseq_sen1D.nf
with
26 additions
and
15 deletions
src/RNAseq_sen1D.nf
+
26
−
15
View file @
3eff3194
...
...
@@ -21,22 +21,42 @@ Channel
process
adaptor_removal
{
tag
"$pair_id"
publishDir
"results/fastq/adaptor_removal/"
,
mode:
'copy'
input:
set
pair_id
,
file
(
reads
)
from
fastq_files
output:
set
pair_id
,
"*_cut_R{1,2}
_001
.fastq.gz"
into
fastq_files_cut
set
pair_id
,
"*_cut_R{1,2}.fastq.gz"
into
fastq_files_cut
script:
"""
cutadapt -a TGGAATTCTCGGGTGCCAAGG -A GTTCAGAGTTCTACAGTCCGACGATC \
-o ${pair_id}_cut_R1.fastq.gz -p ${pair_id}_cut_R2.fastq.gz \
${reads[0]} ${reads[1]} > ${pair_id}_report.txt
cutadapt -a TGGAATTCTCGGGTGCCAAGG -g CCTTGGCACCCGAGAATTCCA \
-o ${pair_id}_cut_R1.fastq.gz \
${reads[0]} > ${pair_id}_report.txt
cutadapt -a GATCGTCGGACTGTAGAACTCTGAAC -g GTTCAGAGTTCTACAGTCCGACGATC \
-o ${pair_id}_cut_R2.fastq.gz \
${reads[1]} > ${pair_id}_report.txt
"""
}
process
4
_random_bases_trimming
{
tag
"$pair_id"
publishDir
"results/fastq/adaptor_removal/"
,
mode:
'copy'
input:
set
pair_id
,
file
(
reads
)
from
fastq_files_cut
output:
set
pair_id
,
"*_cut4_R{1,2}.fastq.gz"
into
fastq_files_cut
script:
"""
cutadapt -u 4 -u -4 \
-o ${pair_id}_cut4_R1.fastq.gz -p ${pair_id}_cut4_R2.fastq.gz \
${reads[0]} ${reads[1]} > ${pair_id}_report.txt
"""
}
/*
* urqt :
* Imputs : fastq files
...
...
@@ -48,22 +68,13 @@ process adaptor_removal {
* for paired-end data
*/
params
.
fastq
=
"$baseDir/data/fastq/*_{1,2}.fastq"
log
.
info
"fastq files : ${params.fastq}"
Channel
.
fromFilePairs
(
params
.
fastq
)
.
ifEmpty
{
error
"Cannot find any fastq files matching: ${params.fastq}"
}
.
set
{
fastq_files
}
process
trimming
{
tag
"${reads}"
cpus
4
publishDir
"results/fastq/trimming/"
,
mode:
'copy'
input:
set
pair_id
,
file
(
reads
)
from
fastq_files_cut
set
pair_id
,
file
(
reads
)
from
fastq_files_cut
4
output:
set
pair_id
,
"*_trim_R{1,2}.fastq.gz"
into
fastq_files_trim
...
...
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