Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mmassaviol
WApps
Commits
4b988e06
Commit
4b988e06
authored
Oct 02, 2019
by
mmassaviol
Browse files
Debug multiple mito circos generation
parent
b66226e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Mito_Assembler_Megahit/files/Snakefile
View file @
4b988e06
...
...
@@ -3,8 +3,6 @@ import re
import snakemake.utils
import csv
dir_path = "/workflow"
#############
# Wildcards #
#############
...
...
@@ -308,6 +306,8 @@ rule mitoz_annotate_SE:
"then \n"
" for mito in $(grep \"mt[0-9]\{{1,\}}\" circos.dep | cut -f 1 | uniq) \n"
" do \n"
" cd {params.circos_dir} && "
" echo \"Treating mito $mito\" && "
" sed \"s/circos/circos$mito/g\" circos.conf > circos$mito.conf && "
" grep $mito circos.depth.txt > circos$mito.depth.txt && "
" grep $mito circos.karyotype.txt > circos$mito.karyotype.txt && "
...
...
@@ -355,6 +355,8 @@ rule mitoz_annotate_PE:
"then \n"
" for mito in $(grep \"mt[0-9]\{{1,\}}\" circos.dep | cut -f 1 | uniq) \n"
" do \n"
" cd {params.circos_dir} && "
" echo \"Treating mito $mito\" && "
" sed \"s/circos/circos$mito/g\" circos.conf > circos$mito.conf && "
" grep $mito circos.depth.txt > circos$mito.depth.txt && "
" grep $mito circos.karyotype.txt > circos$mito.karyotype.txt && "
...
...
Mito_Assembler_Megahit/files/get_samples.py
View file @
4b988e06
...
...
@@ -35,8 +35,8 @@ def main():
if
len
(
sys
.
argv
)
==
3
:
print
(
sample_list
(
sys
.
argv
[
1
],
sys
.
argv
[
2
]))
else
:
exit
(
"""Need
two parameters: workflow name, output dir, (local_config)
Usage: ./ge
nerate_workflow.py workflow_name output_dir (local_config)
"""
)
exit
(
"""Need
s 2 arguments: reads_directory, SeOrPe
Usage: ./ge
t_samples.py reads_directory SeOrPe
"""
)
if
__name__
==
"__main__"
:
# execute only if run as a script
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment