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
Possible fix: yield (slice(table.index[start_idx], table.index[end_idx]), start_val, end_val)
Explanation (guessed):
The start_idx and and end_idx in the slice yielded are actually indexes relative to a subset of "table", created within idx_ranges():
The problem is that coming back to iter_ranges(), this slice is applied to the whole "table" (full size not subset), to yield a "subtable" object. The indexes being still relative, we catch a wrong region (often in chrom 1).
IMPORTANT EDIT:
My quick fix seems to bug during segmentation, as the "table" given is already subsetted by chromosome (so internal indexes have to be yield, no need to convert them back to "not internal" one).
I have a problem with version 0.9.6. I can plot single chromosomes using the following command:
cnvkit.py scatter -s Sample.cn{s,r} -c 17 -o 17.png
<- this worksBut if I want to plot I defined area say
cnvkit.py scatter -s Sample.cn{s,r} -c 17:37000000-38000000 -o 17.png
<- this doesn'tShowing 0 probes and 1 selected genes in region 17:35999999-39000000
Similarily if I try to plot only a selected gene.
cnvkit.py scatter -s Sample.cn{s,r} -g ERBB2
Showing 0 probes and 1 selected genes....
I tried with an older installation, version 0.9.1 and all the above commands works just fine
The text was updated successfully, but these errors were encountered: