Skip to content
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

start is incorrect #3

Open
nsheff opened this issue Oct 21, 2020 · 1 comment
Open

start is incorrect #3

nsheff opened this issue Oct 21, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@nsheff
Copy link
Member

nsheff commented Oct 21, 2020

I keep getting errors with going out of bounds and realized that it's both printing a start in the header, and also printing actual counts for those, leading to errors.
See:

nsheff@zither:~/code/uniwig$ cat test3.bed 
chr1    7       10
chr1    8       12
chr1    9       15

nsheff@zither:~/code/uniwig$ ./uniwig test3.bed 1 1
fixedStep chrom=chr1 start=7 step=1
0
0
0
0
0
1
2
3
2
1
0
0
0
0
0

This wig should have 1 as its first entry, not a bunch of 0s, since the header says start=7.

@nsheff nsheff added the bug Something isn't working label Oct 21, 2020
@nsheff
Copy link
Member Author

nsheff commented Oct 21, 2020

I can fix, it seems, this by commenting out 2 lines that print 0s until the first position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant