def METHOD_NAME(self, bc):
    """
    The bamFile1 contains a read at position 10
    with the following CIGAR: 10S20M10N10M10S
    that maps to a chromosome named chr_cigar.
    """
    c, bamFile1, bamFile2, bamFile_PE, chrom, step_size, bin_length, func_args = self.ifiles(bc)
    # turn of read extension
    c.extendPairedEnds = False
    c.binLength = 10
    c.stepSize = 10
    tempFile = c.writeBedGraph_worker('chr_cigar', 0, 100, scaleCoverage, func_args)
    _foo = open(tempFile[3], 'r')
    res = _foo.readlines()
    _foo.close()
    # the single read is split into bin 10-30, and then 40-50
    expected = [
        'chr_cigar\t0\t10\t0\n',
        'chr_cigar\t10\t30\t1\n',
        'chr_cigar\t30\t40\t0\n',
        'chr_cigar\t40\t50\t1\n',
        'chr_cigar\t50\t100\t0\n'
    ]
    assert f"{res}" == f"{expected}"
    os.remove(tempFile[3])