Loading scripts/motif +4 −2 Original line number Diff line number Diff line Loading @@ -215,8 +215,10 @@ def motifCounter(methylSet: set, genomeDict : dict, motif: str, modCoord: int) - if i + revModCoord in methylSet: methylSites.append(i + revModCoord) methylHits += 1 if totalSites: percentMeth = 100 * (methylHits / totalSites) else: percentMeth = 0 return (methylHits, totalSites, "{:.2f}".format(percentMeth), methylSites) Loading Loading
scripts/motif +4 −2 Original line number Diff line number Diff line Loading @@ -215,8 +215,10 @@ def motifCounter(methylSet: set, genomeDict : dict, motif: str, modCoord: int) - if i + revModCoord in methylSet: methylSites.append(i + revModCoord) methylHits += 1 if totalSites: percentMeth = 100 * (methylHits / totalSites) else: percentMeth = 0 return (methylHits, totalSites, "{:.2f}".format(percentMeth), methylSites) Loading