-
Notifications
You must be signed in to change notification settings - Fork 127
Description
First of all, great tool.
pyGenomeTracks --version
python --version
pyGenomeTracks 3.8
Python 3.10.12
When I have a configuration file with one bed graph with max_value set to auto I get the following image:
[x-axis]
[spacer]
height = 0.5
[bg2]
file = issue.bw
title = count
height = 2
#overlay_previous = yes
color = orange
min_value = 0
number_of_bins = 1000
nans_to_zeros = true
summary_method = mean
show_data_range = true
grid = true
file_type = bigwig
pyGenomeTracks --tracks issue.one_file.ini --region chr1:50000000-100000000 -o issue.one_file.png --dpi 130

However, I want to set a max value of 10 and then add magenta to the top indicating that the peak goes above the max value.
So I use two bedgraphs coming from the same file, the first one with max_value set to something higher than 10 and the second one with max_value set to 10 and over_previous set to true:
[x-axis]
[spacer]
height = 0.5
[bg1]
file = issue.bw
title = count
height = 2
#overlay_previous = yes
color = magenta
min_value = 0
max_value = 15
number_of_bins = 1000
nans_to_zeros = true
summary_method = mean
show_data_range = false
file_type = bigwig
[bg2]
file = issue.bw
title = count
height = 2
overlay_previous = share-y
color = orange
min_value = 0
max_value = 10
number_of_bins = 1000
nans_to_zeros = true
summary_method = mean
show_data_range = true
grid = true
file_type = bigwig
pyGenomeTracks --tracks issue.ini --region chr1:50000000-100000000 -o issue.png --dpi 130
and then there are two bugs:

The first is that the first bed graph does not go above the max_value 10 even though it has a max_value set to 15. The second bug is that the two tracks should be identical, with orange overlaying the magenta. There should not be any magenta at all unless the height of the track is above 10.
If I am missing something and this is not a bug, I would like to know.
Thank you for the great tool!