def genRoiCmds(ccsCellPathList, baxCellPathList, resultsDir, prefixName):
    """Build cat commands to combine fastq and fasta files and get list of h5 files"""
    # will contain * in this list. Will have to expand later
    roiCcsH5List = [] # for ccs.h5 fofn
    roiBaxH5List = [] # for bax.h5 fofn

    # Start of the cat commands
    catRoiFasta = "cat " # leave space after
    catRoiFastq = "cat "
    for i, ccsCell in enumerate(ccsCellPathList):
        # Build middle of cat command
        catRoiFasta += "{0}/*.ccs.fasta ".format(ccsCell) # space after each string
        catRoiFastq += "{0}/*.ccs.fastq ".format(ccsCell)

        ccsH5Path = ccsCell + "/*.ccs.h5" # make expr for globbing ccs.h5 files
        roiCcsH5List.append(ccsH5Path)

        baxH5Path = baxCellPathList[i] + "/*.bax.h5" # make expr for globbing bax.h5 files
        roiBaxH5List.append(baxH5Path)

    # End of the cat commands
    catRoiFasta += "> {0}/{1}.fasta".format(resultsDir, prefixName)
    catRoiFastq += "> {0}/{1}.fastq".format(resultsDir, prefixName)

    return catRoiFasta, catRoiFastq, roiCcsH5List, roiBaxH5List