File: simulate.py

package info (click to toggle)
snakemake 7.32.4-8.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,836 kB
  • sloc: python: 32,846; javascript: 1,287; makefile: 247; sh: 163; ansic: 57; lisp: 9
file content (5 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (4)
1
2
3
4
5
import json

with open(snakemake.output[0], "w") as out:
    # convert numpy types to native python types for serialization
    json.dump({k: v.item() for k, v in snakemake.params.simulation.items()}, out)