Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
JU28_59vs17_SNP
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
Delattre
JU28_59vs17_SNP
Commits
424c95ff
Commit
424c95ff
authored
6 years ago
by
elabaron
Browse files
Options
Downloads
Patches
Plain Diff
add pipeline Ribowave for HIV in PSMN
parent
b005ff34
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/Ribowave/10_ribowave.nf
+121
-0
121 additions, 0 deletions
src/nf_modules/Ribowave/10_ribowave.nf
src/nf_modules/Ribowave/ribowave.config
+20
-28
20 additions, 28 deletions
src/nf_modules/Ribowave/ribowave.config
with
141 additions
and
28 deletions
src/nf_modules/Ribowave/10_ribowave.nf
0 → 100644
+
121
−
0
View file @
424c95ff
/*
* Ribowave :
* Inputs : gtf genome files
* Inputs : bam file
* Inputs : genome size file
*/
/* PARAMETERS */
params.gtf = ""
params.genome = ""
params.bam = ""
params.genomesize = ""
log.info "gtf file : ${params.gtf}"
log.info "genome fasta file : ${params.genome}"
log.info "bam file(s) : ${params.bam}"
log.info "genomesize file : ${params.genomesize}"
Channel
.fromPath( params.gtf )
.ifEmpty { error "Cannot find any fasta files matching: ${params.gtf}" }
.set { gtf_file }
Channel
.fromPath( params.genome )
.ifEmpty { error "Cannot find any fasta files matching: ${params.genome}" }
.set { genome_file }
Channel
.fromPath( params.bam )
.ifEmpty { error "Cannot find any fastq files matching: ${params.bam}" }
.set { bam_files }
bam_files.into {bam_deter_P_site ; bam_track_P_site ; bam_ribowave}
Channel
.fromPath( params.genomesize )
.ifEmpty { error "Cannot find any index files matching: ${params.genomesize}" }
.set { genomesize_file }
/* CREATE ANNOTATION */
process create_annot {
publishDir "results/ribowave/annotation", mode: 'copy'
input:
file gtf from gtf_file
file genome from genome_file
output:
file "*" into annot_file
file "start_codon.bed" into start_codon_channel
file "exons.gtf" into exon_gtf_channel
file "final.ORFs" into finalORF_channel
script:
"""
/Xnfs/lbmcdb/Ricci_team/shared_data/softwares/Ribowave/scripts/create_annotation.sh -G ${gtf} -f ${genome} -o ./ -s /Xnfs/lbmcdb/Ricci_team/shared_data/softwares/Ribowave/scripts
"""
}
/* P-site determination */
process determination_P_site {
tag "$bam.baseName"
publishDir "results/ribowave/", mode: 'copy'
input:
file bam from bam_deter_P_site
file start from start_codon_channel
output:
file "*" into p_site_channel
file "P-site/*1nt.txt" into psite1nt_channel
script:
"""
/Xnfs/lbmcdb/Ricci_team/shared_data/softwares/Ribowave/scripts/P-site_determination.sh -i ${bam} -S ${start} -o ./ -n ${bam.baseName} -s /Xnfs/lbmcdb/Ricci_team/shared_data/softwares/Ribowave/scripts
"""
}
/* P-site track */
process track_P_site {
tag "$bam.baseName"
publishDir "results/ribowave", mode: 'copy'
input:
file bam from bam_track_P_site
file exon from exon_gtf_channel
file genomesize from genomesize_file
file p_site from psite1nt_channel
output:
file "*" into track_p_site_channel
file "bedgraph/${bam.baseName}/final.psite" into psite_channel
script:
"""
/Xnfs/lbmcdb/Ricci_team/shared_data/softwares/Ribowave/scripts/create_track_Ribo.sh -i ${bam} -G ${exon} -g ${genomesize} -P ${p_site} -o ./ -n ${bam.baseName} -s /Xnfs/lbmcdb/Ricci_team/shared_data/softwares/Ribowave/scripts
"""
}
/* ribowave Identifying translated ORF */
process ribowave_transORF {
tag "$bam.baseName"
publishDir "results/ribowave", mode: 'copy'
input:
file psite from psite_channel
file bam from bam_ribowave
file finalORF from finalORF_channel
output:
file "*" into ribowave_channel
script:
"""
/Xnfs/lbmcdb/Ricci_team/shared_data/softwares/Ribowave/scripts/Ribowave -PD -a ${psite} -b ${finalORF} -o ./ -n ${bam.baseName} -s /Xnfs/lbmcdb/Ricci_team/shared_data/softwares/Ribowave/scripts -p 16
"""
}
This diff is collapsed.
Click to expand it.
src/nf_modules/Ribowave/ribowave.config
+
20
−
28
View file @
424c95ff
...
...
@@ -20,48 +20,40 @@ profiles {
sge
{
process
{
$
create_annot
{
beforeScript
=
"
module purge
; module load BEDtools/2.25.0
; module load R/3.4.3
"
beforeScript
=
"
source /home/elabaron/.bashrc
; module load BEDtools/2.25.0"
executor
=
"sge"
cpus
=
1
memory
=
"10Go"
time
=
"1h"
queueSize
=
1000
pollInterval
=
''
queue
=
'h6-E5-2667v4deb128'
cpus
=
8
memory
=
"5GB"
time
=
"6h"
queue
=
'*-E5-2667*'
penv
=
'openmp8'
}
$
determination_P_site
{
beforeScript
=
"
module purge
; module load BEDtools/2.25.0
; module load R/3.4.3
"
beforeScript
=
"
source /home/elabaron/.bashrc
; module load BEDtools/2.25.0"
executor
=
"sge"
cpus
=
1
memory
=
"10Go"
time
=
"1h"
queueSize
=
1000
pollInterval
=
''
queue
=
'h6-E5-2667v4deb128'
cpus
=
8
memory
=
"5GB"
time
=
"6h"
queue
=
'*-E5-2667*'
penv
=
'openmp8'
}
$
track_P_site
{
beforeScript
=
"
module purge
; module load BEDtools/2.25.0
; module load R/3.4.3
"
beforeScript
=
"
source /home/elabaron/.bashrc
; module load BEDtools/2.25.0"
executor
=
"sge"
cpus
=
1
memory
=
"10Go"
time
=
"1h"
queueSize
=
1000
pollInterval
=
''
queue
=
'h6-E5-2667v4deb128'
cpus
=
8
memory
=
"5GB"
time
=
"6h"
queue
=
'*-E5-2667*'
penv
=
'openmp8'
}
$
ribowave_transORF
{
beforeScript
=
"
module purge
; module load BEDtools/2.25.0
; module load R/3.4.3
"
beforeScript
=
"
source /home/elabaron/.bashrc
; module load BEDtools/2.25.0"
executor
=
"sge"
cpus
=
8
memory
=
"1
0Go
"
cpus
=
16
memory
=
"1
28GB
"
time
=
"6h"
queueSize
=
1000
pollInterval
=
''
queue
=
'h6-E5-2667v4deb128'
penv
=
'openmp8'
queue
=
'*E5-2667*'
penv
=
'openmp16'
}
}
}
...
...
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