Skip to content

Commit 6f119d3

Browse files
authored
fix: Fix vcf-report allele frequency heatmap width (#236)
1 parent 4350a1a commit 6f119d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bcf/report/oncoprint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ pub fn oncoprint(
623623

624624
specs["datasets"] = values;
625625
// Set allele frequency heatmap width according to number of samples
626-
specs["vconcat"][1]["hconcat"][5]["width"] = json!(max(samples.len() * 20, 60));
626+
specs["vconcat"][1]["hconcat"][5]["width"] = json!(max(unique_samples * 20, 60));
627627
if !cs_present_folded || remove_existing_variation {
628628
let hconcat = specs["vconcat"][1]["hconcat"].as_array_mut().unwrap();
629629
match (!cs_present_folded, remove_existing_variation) {

0 commit comments

Comments
 (0)