Conversion to snakemake