pepkit / looper

A job submitter for Portable Encapsulated Projects
http://looper.databio.org
BSD 2-Clause "Simplified" License
20 stars 7 forks source link

Looper init piface #327

Closed nsheff closed 1 year ago

nsheff commented 3 years ago

It would be nice to have some kind of init function so I could looper init piface or something to get a generic pipeline interface file, so I don't have to remember the syntax when creating a new pipeline.

stolarczyk commented 3 years ago

related to https://github.com/pepkit/pipestat/issues/4

since we often rely on jsonschema to validate YAMLs (pipeline interface, pipestat config, etc) I think it would make sense to take it a step further and write a tool that would generate a YAML template given a jsonschema. We could then simply add an init command to every tool that requires a config at no cost.

I was able to find a JS package that does sth like this: https://github.com/json-schema-faker/json-schema-faker, no luck with Python.

nsheff commented 3 years ago

that's a pretty great idea!

actually, it would probably fit within yacman. it's just a function that accepts a schema and gives back a yacattmap, which can then be written to disk if desired.