WatsonLab / MAGpy

Snakemake pipeline for downstream analysis of metagenome-assembled genomes (MAGs) (pronounced mag-pie)
62 stars 23 forks source link

workflow rerun again and again #48

Open wangjiawen2013 opened 1 year ago

wangjiawen2013 commented 1 year ago

Hi, here is a toy code I wrote (test.smk):

rule all: input: "/home/wangjw/data/work/flask/b.txt"

rule copy1: input: file = directory("/home/wangjw/data/work/flask") output: file = "data1/a.txt" shell: "cp {input.file}/a.txt {output.file}"

rule copy2: input: file = "data1/a.txt" output: file = "/home/wangjw/data/work/flask/b.txt" shell: "cp {input.file} {output.file}"

then I run snakemake -j 1 -s test.smk, the workflow will run again each time I perform "snakemake -j 1 -s test.smk", although all the files have been created.