Move manifest creation into importable module for use in bcbio-nextgen