maftools
maftools copied to clipboard
Oncoplot gene bar sizes too small
Describe the issue Can't customize gene size bars, which make them too small! Even if I try sepwd_genes and sepwd_samples, nothing changes. Setting sepwd_genes to negative values increase the bar sizes but does not increase the space between them!
Changing sepwd_genes to a high enough evel than normal, changes all bars, except the one for the last gene (which makes it ugly)
Command
pdf("Test.pdf", width = 10, height = 15)
oncoplot(maf = laml, top = 50, showTumorSampleBarcodes = TRUE,barcode_mar = 10, gene_mar = 6, sepwd_genes = -0.5, fontSize = 0.8)
dev.off()
pdf("Test1.pdf", width = 10, height = 15)
oncoplot(maf = laml, top = 50, showTumorSampleBarcodes = TRUE,barcode_mar = 10, gene_mar = 6, sepwd_genes = 5, fontSize = 0.8)
dev.off()
**Session info**
R version 4.2.0 Patched (2022-05-11 r82344 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)
Matrix products: default
locale:
[1] LC_COLLATE=Portuguese_Brazil.utf8 LC_CTYPE=Portuguese_Brazil.utf8 LC_MONETARY=Portuguese_Brazil.utf8 LC_NUMERIC=C LC_TIME=Portuguese_Brazil.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] biomaRt_2.52.0 maftools_2.12.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.8.3 lattice_0.20-45 prettyunits_1.1.1 png_0.1-7 Biostrings_2.64.0 assertthat_0.2.1 digest_0.6.29 utf8_1.2.2
[9] BiocFileCache_2.4.0 R6_2.5.1 GenomeInfoDb_1.32.2 stats4_4.2.0 RSQLite_2.2.14 httr_1.4.3 pillar_1.7.0 zlibbioc_1.42.0
[17] rlang_1.0.2 progress_1.2.2 curl_4.3.2 data.table_1.14.2 blob_1.2.3 R.oo_1.24.0 S4Vectors_0.34.0 R.utils_2.11.0
[25] Matrix_1.4-1 splines_4.2.0 stringr_1.4.0 RCurl_1.98-1.6 bit_4.0.4 compiler_4.2.0 pkgconfig_2.0.3 BiocGenerics_0.42.0
[33] tidyselect_1.1.2 KEGGREST_1.36.0 tibble_3.1.7 GenomeInfoDbData_1.2.8 DNAcopy_1.70.0 IRanges_2.30.0 XML_3.99-0.9 fansi_1.0.3
[41] crayon_1.5.1 dplyr_1.0.9 dbplyr_2.2.0 bitops_1.0-7 R.methodsS3_1.8.1 rappdirs_0.3.3 grid_4.2.0 lifecycle_1.0.1
[49] DBI_1.1.2 magrittr_2.0.3 cli_3.3.0 stringi_1.7.6 cachem_1.0.6 XVector_0.36.0 xml2_1.3.3 ellipsis_0.3.2
[57] filelock_1.0.2 generics_0.1.2 vctrs_0.4.1 RColorBrewer_1.1-3 tools_4.2.0 bit64_4.0.5 Biobase_2.56.0 glue_1.6.2
[65] purrr_0.3.4 hms_1.1.1 fastmap_1.1.0 survival_3.3-1 AnnotationDbi_1.58.0 BiocManager_1.30.18 memoise_2.0.
(Its windows 11, maybe a bug for Rstudio...)
Hi, Unfortunately, I can not think of any workaround to increase the width of the rectangles :| It should also be noted that, with a large number of genes visualized, the segment size tends to decrease (similar to any heatmap).
This issue is stale because it has been open for 60 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.