You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for iv in bw.intervals(reg.chrom, reg.start, reg.stop):
@@ -162,7 +197,7 @@ proc stats_main*() =
162
197
option("-s", "--stat", choices=@["mean", "coverage", "min", "max", "sum", "header"], default="mean", help="statistic to output. 'header' will show the lengths, mean and coverage for each chromosome in the bigwig.")
163
198
option("--bins", default="1", help="integer number of bins")
164
199
arg("input", nargs=1)
165
-
arg("region", nargs=1, help="chromosome, or chrom:start-stop region to extract stats")
200
+
arg("region", nargs=1, help="BED file or regions or chromosome, or chrom:start-stop region to extract stats")
166
201
167
202
var args =commandLineParams()
168
203
iflen(args) >0and args[0] =="stats":
@@ -203,10 +238,10 @@ proc stats_main*() =
203
238
var bins =parseInt(opts.bins)
204
239
205
240
try:
206
-
var region = opts.region.parse_region
207
-
var st = bw.stats(region.chrom, region.start, region.stop, stat=stat, nBins=bins)
208
-
for v in st:
209
-
echoffloat(v)
241
+
for region in opts.region.parse_region:
242
+
var st = bw.stats(region.chrom, region.start, region.stop, stat=stat, nBins=bins)
0 commit comments