Skip to content
Snippets Groups Projects
Commit d9d60710 authored by Yohan Jarosz's avatar Yohan Jarosz
Browse files

links

parent 5806dfda
No related branches found
No related tags found
1 merge request!1Single omics
......@@ -22,7 +22,7 @@ rule annotate:
cd $(dirname $(which prokka))/.. && ln -s $PP db
cd $CUR
fi
rm -rf Analysis/annotation/
prokka --force --outdir Analysis/annotation --cpus {THREADS} --metagenome {input[0]} >> Analysis/annotation.log 2>&1
# Prokka gives a gff file with a long header and with all the contigs at the bottom. The command below removes the
......
......@@ -30,7 +30,7 @@ rule megahit_hybrid_assembly_1:
-t {THREADS} --cpu-only \
-m "${{MAX_MEM}}" \
--mem-flag 1
ln -fs $(echo {output[0]} | cut -f 2 -d /) {output[1]} && touch -h {output[1]}
ln -fs $(echo {output[0]} | cut -f 2,3 -d /) {output[1]} && touch -h {output[1]}
"""
rule megahit_hybrid_assembly_2:
......@@ -65,5 +65,5 @@ rule megahit_hybrid_assembly_2:
-t {THREADS} --cpu-only \
-m ${{MAX_MEM}} \
--mem-flag 1
ln -fs $(echo {output[0]} | cut -f 2 -d /) {output[1]} && touch -h {output[1]}
ln -fs $(echo {output[0]} | cut -f 2,3 -d /) {output[1]} && touch -h {output[1]}
"""
......@@ -76,7 +76,7 @@ rule symlink_preprocessed_files:
'Preprocessing/{type}.se.preprocessed.fq'
shell:
"""
ln -s $(echo {input[0]} | cut -f 2 -d /) {output[0]} && touch -h {output[0]}
ln -s $(echo {input[1]} | cut -f 2 -d /) {output[1]} && touch -h {output[1]}
ln -s $(echo {input[2]} | cut -f 2 -d /) {output[2]} && touch -h {output[2]}
ln -fs $(echo {input[0]} | cut -f 2 -d /) {output[0]} && touch -h {output[0]}
ln -fs $(echo {input[1]} | cut -f 2 -d /) {output[1]} && touch -h {output[1]}
ln -fs $(echo {input[2]} | cut -f 2 -d /) {output[2]} && touch -h {output[2]}
"""
......@@ -27,7 +27,7 @@ rule no_filtering:
'Preprocessing/{type}.se.preprocessed.fq'
shell:
"""
ln -s {input[0]} {output[0]} && touch -h {output[0]}
ln -s {input[1]} {output[1]} && touch -h {output[1]}
ln -s {input[2]} {output[2]} && touch -h {output[2]}
ln -fs {input[0]} {output[0]} && touch -h {output[0]}
ln -fs {input[1]} {output[1]} && touch -h {output[1]}
ln -fs {input[2]} {output[2]} && touch -h {output[2]}
"""
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