lidaof / eg-react

WashU Epigenome Browser
https://epigenomegateway.wustl.edu
Other
66 stars 29 forks source link

Troubling in screenshot with negative value #319

Closed hsuh001 closed 3 months ago

hsuh001 commented 1 year ago

Hi, I was having some problems when screenshotting with a fixed and negative value. Everything was going well in the online browser, as follows: image but the tracks were dislocation when I downloaded the screenshot into my personal computer: image

Is there a solution to solve this?

Thanks in advance for your help!

lidaof commented 1 year ago

Hi @hsuh001 thanks for using the browser! do you mean the SVG was trimmed on the right side?

hsuh001 commented 1 year ago

Hi @hsuh001 thanks for using the browser! do you mean the SVG was trimmed on the right side?

No, I mean that in each track, the part of the positive value was at the bottom, and that of the negative value was at the top in the SVG file (or in the second example).

lidaof commented 1 year ago

@hsuh001 no I see that, sorry..will check! thanks!

hsuh001 commented 1 year ago

Thank you!

lidaof commented 1 year ago

Hi @hsuh001 so sorry for late reply. (didn't forget this but was distracted by other things). I tried some of my bedgraph track files with negative values, I cannot reproduce this error somehow. Would you possible you can send me a session id if your files are hosted remotely? or send a small part of file to me I can troubleshoot. Thank you!

hsuh001 commented 1 year ago

Sorry, I'm unable to access GitHub temporally due to the network permission. So I replied to you here using email. After testing bedgraph track files with negative values, I found that it worked fine if setting "Y-axis scale" to "Auto", but not the value "Fixed". Could this "Fixed" might be the reason? My bw file is about 300 MB. I will send you if needed soon after. Thank you!

Jing Xiao On 6/18/2023 12:54,Daofeng @.***> wrote:

Hi @hsuh001 so sorry for late reply. (didn't forget this but was distracted by other things). I tried some of my bedgraph track files with negative values, I cannot reproduce this error somehow. Would you possible you can send me a session id if your files are hosted remotely? or send a small part of file to me I can troubleshoot. Thank you!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

lidaof commented 1 year ago

Hi Jing @hsuh001, reply to email is fine. I tested with fixed scale, the display is fine, but I indeed found an issue that the axis is gone, but not the problem you showed to me. possible you can send me the first 1000 lines of your file? (you can convert to bedgraph and send me some lines of text with both positive and negative values?) Thank you!

image
hsuh001 commented 1 year ago

Hi, sorry reply now due to some personal affairs. Attachment files are 4 bigwig files, part of raw bigwig fiels (first 1000 lines). The reference genome is hg38, region range is chr1:1-600000. It is true that the axis is gone in the download page, but the axis exists in the local file if clicking the download button in both SVG and Pdf format. The problem might be the fixed value range. If setting as [-1,1] (or [-2, 2] or [-3, 3], and so on), the download file was right. But when the range is asymmetrical, e.g. [-0.5, 1] (or [-1, 2]), the track was wrong. Note the the wrong result was in the download file, so it means that you should click the download button and browse the file in local. After downloading the file using asymmetrical range, when returning to the download web page, the web page get the same wrong result. Thank you!

Jing Xiao On 6/18/2023 22:52,Daofeng @.***> wrote:

Hi Jing @hsuh001, reply to email is fine. I tested with fixed scale, the display is fine, but I indeed found an issue that the axis is gone, but not the problem you showed to me. possible you can send me the first 1000 lines of your file? (you can convert to bedgraph and send me some lines of text with both positive and negative values?) Thank you!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

lidaof commented 1 year ago

Hi @hsuh001 Jing, thank you so much for the detailed instructions on how to reproduce this. Somehow the files are missing in this reply...sorry about that. could you please send them directly to lidaof@gmail.com? thank you!

lidaof commented 1 year ago

Hi @hsuh001 sorry for the delay, please refresh the browser to 54.0.3, this issue (including axis label) should be fixed. Let me know if problem still exists for you. thank you!

hsuh001 commented 1 year ago

Hi, Daofeng, now the result is fine after refreshing the browser. Thank you so much!