Skip to content
Snippets Groups Projects
Commit da795e69 authored by Rachel  LEGENDRE's avatar Rachel LEGENDRE
Browse files

fixe maestro path

parent d176e65d
No related branches found
No related tags found
No related merge requests found
...@@ -182,8 +182,8 @@ if config["bowtie2_mapping"]["do"]: ...@@ -182,8 +182,8 @@ if config["bowtie2_mapping"]["do"]:
# indexing for bowtie2 # indexing for bowtie2
bowtie2_index_fasta = unpack(mapping_index) bowtie2_index_fasta = unpack(mapping_index)
bowtie2_index_log = "02-Mapping/{REF}/bowtie2/logs/bowtie2_{REF}_indexing.log" bowtie2_index_log = "02-Mapping/{REF}/bowtie2/logs/bowtie2_{REF}_indexing.log"
bowtie2_index_output_done = os.path.join(config["genome"]["genome_directory"]+"{REF}/bowtie2/{REF}.1.bt2") bowtie2_index_output_done = os.path.join(config["genome"]["genome_directory"], "{REF}/bowtie2/{REF}.1.bt2")
bowtie2_index_output_prefix = os.path.join(config["genome"]["genome_directory"]+"{REF}/bowtie2/{REF}") bowtie2_index_output_prefix = os.path.join(config["genome"]["genome_directory"], "{REF}/bowtie2/{REF}")
include: os.path.join(RULES, "bowtie2_index.rules") include: os.path.join(RULES, "bowtie2_index.rules")
...@@ -212,8 +212,8 @@ if config["star_mapping"]["do"]: ...@@ -212,8 +212,8 @@ if config["star_mapping"]["do"]:
star_index_fasta = unpack(mapping_index) star_index_fasta = unpack(mapping_index)
star_mapping_splice_file = unpack(annot_index) star_mapping_splice_file = unpack(annot_index)
star_index_log = "02-Mapping/{REF}/STAR/logs/STAR_{REF}_indexing.log" star_index_log = "02-Mapping/{REF}/STAR/logs/STAR_{REF}_indexing.log"
star_index_output_done = os.path.join(config["genome"]["genome_directory"], "/{REF}/STAR/SAindex") star_index_output_done = os.path.join(config["genome"]["genome_directory"], "{REF}/STAR/SAindex")
star_index_output_dir = os.path.join(config["genome"]["genome_directory"], "/{REF}/STAR/") star_index_output_dir = os.path.join(config["genome"]["genome_directory"], "{REF}/STAR/")
include: os.path.join(RULES, "star_index.rules") include: os.path.join(RULES, "star_index.rules")
......
...@@ -53,17 +53,18 @@ tmpdir: "/pasteur/sonic/scratch/public/" ...@@ -53,17 +53,18 @@ tmpdir: "/pasteur/sonic/scratch/public/"
# - rRNA_mapping: Mapping on ribosomal RNA # - rRNA_mapping: Mapping on ribosomal RNA
#=============================================================================== #===============================================================================
genome: genome:
genome_directory: ../genome/ genome_directory: /pasteur/zeus/projets/p01/BioIT/Genomes
name: saccer3 name: Rabies
fasta_file: ../genome/saccer3/saccer3.fa fasta_file: /pasteur/zeus/projets/p01/BioIT/Genomes/Rabies/Rabies.fa
gff_file: ../genome/saccer3/saccer3.gff gff_file: /pasteur/zeus/projets/p01/BioIT/Genomes/Rabies/Rabies.gff
host_mapping: true host_mapping: true
host_name: hg38 host_name: hg38
host_fasta_file: ../genome/hg38/hg38.fa host_fasta_file: /pasteur/zeus/projets/p01/BioIT/Genomes/hg38/hg38.fa
host_gff_file: ../genome/hg38/hg38.gff host_gff_file: /pasteur/zeus/projets/p01/BioIT/Genomes/hg38/hg38.gff
rRNA_mapping: true rRNA_mapping: true
ribo_fasta_file: ../genome/hg38/hg38_rRNA.fa ribo_fasta_file: /pasteur/zeus/projets/p01/BioIT/Genomes/hg38/hg38_rRNA.fa
#=============================================================================== #===============================================================================
# FastQC section # FastQC section
...@@ -156,11 +157,12 @@ star_mapping: ...@@ -156,11 +157,12 @@ star_mapping:
pseudomapping: pseudomapping:
do: yes do: yes
fasta: ../genome/hg38/hg38.fa fasta: /pasteur/zeus/projets/p01/BioIT/Genomes/hg38/hg38_cDNA.fa
gtf: ../genome/hg38/hg38.gff gtf: /pasteur/zeus/projets/p01/BioIT/Genomes/hg38/hg38.gtf
options: "" options: "--single"
kmer: 31 kmer: 31
threads: 4 threads: 12
############################################################################# #############################################################################
# feature_counts used to count reads against features # feature_counts used to count reads against features
......
...@@ -55,7 +55,7 @@ rule cutadapt: ...@@ -55,7 +55,7 @@ rule cutadapt:
outfiles=($tmp) outfiles=($tmp)
# add mode and adapter sequences # add mode and adapter sequences
cmd+=" cutadapt -{params.mode} {params.adapters} -m {params.min} -q {params.qual} {params.options} " cmd+=" cutadapt -{params.mode} {params.adapters} -m {params.min} -q {params.qual} {params.options} -j {threads} "
# paired end or single end # paired end or single end
if [[ ${{#infiles[@]}} -eq 2 ]]; if [[ ${{#infiles[@]}} -eq 2 ]];
then then
......
...@@ -32,6 +32,7 @@ rule sortmerna: ...@@ -32,6 +32,7 @@ rule sortmerna:
no_rRNA = temp(sortmerna_outfile_no_rRNA) no_rRNA = temp(sortmerna_outfile_no_rRNA)
singularity: singularity:
"rnaflow.img" "rnaflow.img"
shadow: "shallow"
log: log:
err = sortmerna_logs_err, err = sortmerna_logs_err,
out = sortmerna_logs_out out = sortmerna_logs_out
...@@ -52,7 +53,10 @@ rule sortmerna: ...@@ -52,7 +53,10 @@ rule sortmerna:
fi fi
sortmerna --ref ${{fasta}},${{index}} -a {threads} --reads {input.fastq} --aligned {output.rRNA} --fastx --sam --num_alignments 1 --other {output.no_rRNA} --log -v > {log.out} 2> {log.err} sortmerna --ref ${{fasta}},${{index}} -a {threads} --reads {input.fastq} --aligned {output.rRNA} --fastx --other {output.no_rRNA} --log -v > {log.out} 2> {log.err}
mv {output.no_rRNA}.fastq {output.no_rRNA}
mv {output.rRNA}.fastq {output.rRNA}
""" """
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment