Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNAseq_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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Palladino
RNAseq_nextflow
Merge requests
!1
add star + htseq + multiqc
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
add star + htseq + multiqc
dev_carine
into
master
Overview
0
Commits
4
Pipelines
0
Changes
4
Merged
add star + htseq + multiqc
Carine Rey
requested to merge
dev_carine
into
master
Feb 25, 2022
Overview
0
Commits
4
Pipelines
0
Changes
4
add star + htseq + multiqc
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
61abf5ba
4 commits,
Feb 25, 2022
4 files
+
272
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
src/nf_modules/htseq/main.nf
0 → 100644
+
53
−
0
View file @ 61abf5ba
Edit in single-file editor
Open in Web IDE
version
=
"v1.99.2"
container_url
=
"carinerey/htseq:${version}"
params
.
htseq_out
=
""
process
gff3_2_gtf
{
container
=
"dceoy/cufflinks"
label
"small_mem_mono_cpus"
input:
tuple
val
(
genome_id
),
path
(
gff3_file
)
output:
path
"${genome_id}.gtf"
,
emit:
gtf
script:
"""
gffread ${gff3_file} -T -o ${genome_id}.gtf
"""
}
process
htseq_count
{
container
=
"${container_url}"
label
"big_mem_multi_cpus"
tag
"file_id: $file_id"
if
(
params
.
htseq_out
!=
""
)
{
publishDir
"results/${params.htseq_out}"
,
mode:
'copy'
}
input:
tuple
val
(
file_id
),
path
(
bam
),
path
(
bai
)
path
(
gtf
)
output:
path
"${file_id}.tsv"
,
emit:
counts
script:
"""
htseq-count -n ${task.cpus} -r pos -a 10 -s yes -t exon -i gene_id $bam $gtf > ${file_id}.tsv
"""
}
workflow
htseq_count_with_gff
{
take:
bam_tuple
gff_file
main:
gff3_2_gtf
(
gff_file
)
htseq_count
(
bam_tuple
,
gff3_2_gtf
.
out
.
gtf
)
emit:
counts
=
htseq_count
.
out
.
counts
}
Loading