-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uniwig output inconsistency: npy and wig #64
Comments
I'm having a difficult time reproducing this with smaller test files. Out of curiosity, did you clear out any output files before re-running uniwig? BED file
chromsizes
used flags:
python code:
npy output:
Wiggles: start
end
core
|
I also tried a subset of the above bed file (taking just chr 14 and chr 15) and was unable to reproduce the issue either. For example, I see values at the beginning of chr14's npy files as expected:
meta header
wiggle header
|
I don't recall clearing out anythings before re-running. Regarding the For instance, looking at the Shouldn't the
Instead, it starts with:
|
Those differences are due to the shift from 1-based to 0-based for wig to npy (the shift factor is carried into the counting function and affect counting). We can revisit that logic and see if there is a way to get these to be exactly 1:1. Above, I was focused on attempting to reproduce the items from your original post where it appeared that the npy arrays were empty or padded with zeroes (i.e. very different than the wiggle outputs). Are you getting counts in a npy array that are very similar to the wiggles? Or are they completely different? |
TODO:
|
It would be ideal if the outputs can be exactly 1:1, so the inputs can be same from either |
I rerun it but with chrom.size containing only chromosomes 14 & 15, plus |
An interesting data point, I made a new test case:
Now the starts, ends are the same for npy and wig, but the cores are different. From Core:
with settings:
|
Problem description
When run
gtars.uniwig
, different output format sometimes give different values. Here is how to reproduce the issue:Reproduce the issue
Input
combined_chrsorted.bed
Chromosome size reference
Can be replaced with only main
Create npy
Create wig
Example error
On chr14
wig
npy
The text was updated successfully, but these errors were encountered: