Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNAflow
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
hub
RNAflow
Commits
3d7a4049
Commit
3d7a4049
authored
4 years ago
by
Rachel LEGENDRE
Browse files
Options
Downloads
Patches
Plain Diff
add file removing on success
parent
d5158283
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Snakefile
+14
-5
14 additions, 5 deletions
Snakefile
workflow/rules/star_mapping_pass1.rules
+2
-2
2 additions, 2 deletions
workflow/rules/star_mapping_pass1.rules
with
16 additions
and
7 deletions
Snakefile
+
14
−
5
View file @
3d7a4049
...
@@ -206,7 +206,7 @@ if config["star_mapping"]["do"]:
...
@@ -206,7 +206,7 @@ if config["star_mapping"]["do"]:
#first pass mapping
#first pass mapping
star_mapping_pass1_input = adapters_output
star_mapping_pass1_input = adapters_output
star_mapping_pass1_index = star_index_output_d
one
star_mapping_pass1_index = star_index_output_d
ir
star_mapping_pass1_logs = "02-Mapping/STAR/logs/{SAMPLE}_{REF}_init.out"
star_mapping_pass1_logs = "02-Mapping/STAR/logs/{SAMPLE}_{REF}_init.out"
star_mapping_pass1_output_prefix = "02-Mapping/STAR/{REF}/{SAMPLE}_{REF}_init_"
star_mapping_pass1_output_prefix = "02-Mapping/STAR/{REF}/{SAMPLE}_{REF}_init_"
star_mapping_pass1_junctions = "02-Mapping/STAR/{REF}/{SAMPLE}_{REF}_init_SJ.out.tab"
star_mapping_pass1_junctions = "02-Mapping/STAR/{REF}/{SAMPLE}_{REF}_init_SJ.out.tab"
...
@@ -217,7 +217,7 @@ if config["star_mapping"]["do"]:
...
@@ -217,7 +217,7 @@ if config["star_mapping"]["do"]:
#Second pass mapping
#Second pass mapping
star_mapping_pass2_input = adapters_output
star_mapping_pass2_input = adapters_output
star_mapping_pass2_index = star_index_output_d
one
star_mapping_pass2_index = star_index_output_d
ir
star_mapping_pass2_logs = "02-Mapping/STAR/logs/{SAMPLE}_{REF}.out"
star_mapping_pass2_logs = "02-Mapping/STAR/logs/{SAMPLE}_{REF}.out"
star_mapping_pass2_output_prefix = "02-Mapping/STAR/{REF}/{SAMPLE}_{REF}_"
star_mapping_pass2_output_prefix = "02-Mapping/STAR/{REF}/{SAMPLE}_{REF}_"
star_mapping_pass2_junctions = expand("02-Mapping/STAR/{{REF}}/{SAMPLE}_{{REF}}_init_SJ.out.tab", SAMPLE=samples)
star_mapping_pass2_junctions = expand("02-Mapping/STAR/{{REF}}/{SAMPLE}_{{REF}}_init_SJ.out.tab", SAMPLE=samples)
...
@@ -313,10 +313,19 @@ rule rnaflow:
...
@@ -313,10 +313,19 @@ rule rnaflow:
onsuccess:
onsuccess:
# copy metrics json in the corresponding multiQC output when you are in exploratory mode
# remove file from first star mapping
import os
import glob
import shutil
import shutil
for file in glob.glob('02-Mapping/STAR/*/*init*'):
if os.path.isfile(file):
os.remove(file)
elif os.remove.isdir(file):
shutil.rmtree(file)
else:
print("Error: %s file not found" % file)
# move cluster log files
# move cluster log files
import os
pattern = re.compile("slurm.*")
pattern = re.compile("slurm.*")
dest = "cluster_logs"
dest = "cluster_logs"
for filepath in os.listdir("."):
for filepath in os.listdir("."):
...
...
This diff is collapsed.
Click to expand it.
workflow/rules/star_mapping_pass1.rules
+
2
−
2
View file @
3d7a4049
...
@@ -27,8 +27,8 @@ rule star_mapping_pass1:
...
@@ -27,8 +27,8 @@ rule star_mapping_pass1:
fastq = star_mapping_pass1_input,
fastq = star_mapping_pass1_input,
index = star_mapping_pass1_index
index = star_mapping_pass1_index
output:
output:
jontion = star_mapping_pass1_junctions,
jontion =
temp(
star_mapping_pass1_junctions
)
,
bam = star_mapping_pass1_bam
bam =
temp(
star_mapping_pass1_bam
)
params:
params:
prefix = temp(star_mapping_pass1_output_prefix),
prefix = temp(star_mapping_pass1_output_prefix),
#read_groups = star_mapping_pass1_read_groups,
#read_groups = star_mapping_pass1_read_groups,
...
...
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