Fixed bugs
Pre-release
Pre-release
Fixes and Improvements:
- Resolved the gap extension issue:
- Addressed data overflow when calculating
graph->values
by changing the calculation type from u32 to f32. - Introduced a new
data_type
for handling different methods of transforming thebedgraph
file intoGraph->values
:gap
: Sets the pixel value with numberindex
forGraph->values[index]
containing the gap to1
.
- Addressed data overflow when calculating
repeat_density
: Normalizes the value of each bin as a percentage, reflecting the ratio of repeat pairs within that bin. For instance, if thebin_size=10,000
andN
base pairs are marked as repeats, the ratio is calculated asN / 10,000
.default
: Retains the original calculation method.- Fixed a segmentation fault in
PrintStatus
: Resolved small bugs that caused the program to crash. - Improved
ProcessLine
function: Added a check to ensure(u32) nThisBin
does not become negative. Originally, if a negative value is encountered, it will be set to the maximum allowable value foru32
. Currently, it will be set as 0. - Compilation adjustments: Since modifications were made in C++, the compiler has been switched to Clang++ to resolve compilation issues.