I tried to run this. And I came into problems that the code seems not recognize the hg38 fasta genome file from UCSC, because the chromosome name contain "_".
Can you kindly run it for me? My readlength is 101 and I used the reference human genome hg38 from UCSC.
I'd just use the hg18 value though. I made my script for corn genomes etc, where the EGS is not known.