Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rnaseq
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
BICF
Astrocyte
rnaseq
Commits
2d53d37c
Commit
2d53d37c
authored
4 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
update pe/se trim/rna_align
parent
36711f28
Branches
Branches containing commit
Tags
publish_0.5.15
No related merge requests found
Pipeline
#8069
failed with stage
in 2 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/main.nf
+5
-43
5 additions, 43 deletions
workflow/main.nf
workflow/process_scripts
+1
-1
1 addition, 1 deletion
workflow/process_scripts
with
6 additions
and
44 deletions
workflow/main.nf
+
5
−
43
View file @
2d53d37c
...
...
@@ -61,13 +61,13 @@ if (params.pairs == 'pe') {
spltnames
.splitCsv()
.filter { fileMap.get(it[1]) != null & fileMap.get(it[2]) != null }
.map { it -> tuple(it[0], [fileMap.get(it[1]), fileMap.get(it[2])]) }
.map { it -> tuple(it[0],
(
[fileMap.get(it[1]), fileMap.get(it[2])])
)
}
.set { read }
} else {
spltnames
.splitCsv()
.filter { fileMap.get(it[1]) != null }
.map { it -> tuple(it[0], [fileMap.get(it[1])]) }
.map { it -> tuple(it[0],
(
[fileMap.get(it[1])])
)
}
.set { read }
}
if( ! read ) { error "Didn't match any input files with entries in the design file" }
...
...
@@ -78,46 +78,25 @@ process trim {
input:
set pair_id, file(fqs) from read
output:
set pair_id, file("${pair_id}.trim.R1.fastq.gz"),file("${pair_id}.trim.R2.fastq.gz") into trimread
set pair_id, file("${pair_id}.trim.R1.fastq.gz"),file("${pair_id}.trim.R2.fastq.gz") into fusionfq
set pair_id, file("${pair_id}.trim.R*.fastq.gz") into trimread
script:
"""
bash $baseDir/process_scripts/preproc_fastq/trimgalore.sh -f -p ${pair_id} ${fqs}
"""
}
// Align trimmed reads to genome indes with hisat2
// Sort and index with samtools
// QC aligned reads with fastqc
// Alignment stats with samtools
process starfusion {
errorStrategy 'ignore'
publishDir "$params.output", mode: 'copy'
input:
set pair_id, file(fq1), file(fq2) from fusionfq
output:
file("${pair_id}.starfusion.txt") into fusionout
when:
params.fusion == 'detect' && params.pairs == 'pe'
script:
"""
bash $baseDir/process_scripts/alignment/starfusion.sh -p ${pair_id} -r ${index_path} -a ${fq1} -b ${fq2} -m trinity -f
"""
}
process align {
errorStrategy 'ignore'
publishDir "$params.output", mode: 'copy'
input:
set pair_id, file(fq
1), file(fq2
) from trimread
set pair_id, file(fq
s
) from trimread
output:
set pair_id, file("${pair_id}.bam") into aligned
set pair_id, file("${pair_id}.bam") into aligned2
file("${pair_id}.alignerout.txt") into hsatout
script:
"""
bash $baseDir/process_scripts/alignment/rnaseqalign.sh -a $params.align -p ${pair_id} -r ${index_path}
-x
${fq
1} -y ${fq2
}
bash $baseDir/process_scripts/alignment/rnaseqalign.sh -a $params.align -p ${pair_id} -r ${index_path} ${fq
s
}
"""
}
...
...
@@ -135,23 +114,7 @@ process alignqc {
"""
}
// Summarize all flagstat output
process parse_alignstat {
publishDir "$params.output", mode: 'copy'
input:
file(txt) from alignstats.toList()
file(txt) from hsatout.toList()
output:
file('alignment.summary.txt')
script:
"""
perl $baseDir/scripts/parse_flagstat.pl *.flagstat.txt
"""
}
// Identify duplicate reads with Picard
process markdups {
publishDir "$params.output", mode: 'copy'
input:
...
...
@@ -167,7 +130,6 @@ process markdups {
// Read summarization with subread
// Assemble transcripts with stringtie
process geneabund {
errorStrategy 'ignore'
publishDir "$params.output", mode: 'copy'
...
...
This diff is collapsed.
Click to expand it.
process_scripts
@
96bcf788
Compare
529fdbfc
...
96bcf788
Subproject commit
529fdbfc477dcb0d2c5879e82f6175ea1dae818c
Subproject commit
96bcf78802267e8bb1834c06ffb98c5d700273e3
This diff is collapsed.
Click to expand it.
Preview
0%
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