from pipes import quote


def make_input_json_cmd(bam_fn, json_fn, sample):
    """CMD which creates a json file with content [['path_to_bam', 'sample']], which will later
    be used as pbsv call input.
    """
    c0 = 'echo [[\\\"{}\\\", \\\"{}\\\"]] > {}'.format(quote(bam_fn), quote(sample), quote(json_fn))
    return c0