-
Notifications
You must be signed in to change notification settings - Fork 13
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
problem with use {chr: 'all'} in straw API #281
Comments
Its impossible to say with the information you provided. What is the value of queryLocus1 and binSize? |
binSize is undefined queryLocus1 is an object with chr=chr6, start=50596520 and end=50627592 I just tried with Thanks for reply. |
You can't query chr6 vs all, only all vs all. As I explained previously, "all" is not a real chromosome (obviously), the data is just a course representation whose sole purpose is to render a whole genome view. The second query should have worked. If you pulled from master and built you have the latest. Look at the unit test "testStraw.js". You run it by opening "runTests.html" in a browser. It has a test for "All". We can leave this open as a bug report but I won't be able to look at it right away. Also, I will probably need access to the .hic file you are using, or another reproducible test case, if the unit test is working. |
@lidaof What do you need this query for? |
@jrobinso I am trying to get all contacts information against one region. Currently I am doing a for loop looping all chromsomes, works but slow. So I am wondering if this |
@lidaof Actually they failed, but that is not surprising as you opened runTests.html with a file URL. That will not work. In any event "all" is not going to work for what you are trying to do, looping through the chromosomes is the correct way to do that. As I've tried to explain a few times, "all" is a very coarse bin size for painting the WG view, not for doing any analysis. Some smaller chromosomes will have only 1 or 2 bins total at this resolution. |
@jrobinso , I see. thanks for information :) |
After pulling the latest code after #236 , I ran grunt to build the latest juicebox.min.js file and put it to my project.
I then tried use the straw API:
this.straw.getContactRecords('NONE', queryLocus1, {chr: 'all'}, 'BP', binSize)
I am getting errors:
Did I do something wrong? Thanks.
The text was updated successfully, but these errors were encountered: