You can run anything that can be run as a command line as a Galaxy tool. It will be bad and can’t take advantage of scheduling steps individually and tracking the progress, but it’ll work. Refer to Building Galaxy Tools Using Planemo — Planemo 0.75.11 documentation for a guide on how to write Galaxy tools.