Skip to content

legend not working when using samples argument in mafSurvival #937

Closed
@albamrt

Description

@albamrt

Describe the issue
When using the 'samples' argument of the mafSurvival function the legend does not work properly. It keeps saying 'Mutant' and 'WT' (does not use the groupNames argument) and does not count the Ns [N = 0].

Command

laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
laml.clin <- system.file("extdata", "tcga_laml_annot.tsv", package = "maftools")
laml <- read.maf(maf = laml.maf,  clinicalData = laml.clin)
mafSurvival(maf = laml, samples = laml@clinical.data$Tumor_Sample_Barcode[laml@clinical.data$FAB_classification == 'M2'], 
            time = 'days_to_last_followup', Status = 'Overall_Survival_Status', 
            groupNames = c('M2', 'Other'))

Session info

sessionInfo()

R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)

Matrix products: default

locale:
[1] LC_COLLATE=Spanish_Spain.utf8 LC_CTYPE=Spanish_Spain.utf8 LC_MONETARY=Spanish_Spain.utf8 LC_NUMERIC=C
[5] LC_TIME=Spanish_Spain.utf8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] maftools_2.14.0

loaded via a namespace (and not attached):
[1] lattice_0.20-45 digest_0.6.30 R.methodsS3_1.8.2 grid_4.2.2 evaluate_0.21 rlang_1.1.0 cli_3.4.1
[8] data.table_1.14.6 rstudioapi_0.14 R.oo_1.25.0 R.utils_2.12.2 Matrix_1.5-1 rmarkdown_2.21 splines_4.2.2
[15] RColorBrewer_1.1-3 tools_4.2.2 xfun_0.37 yaml_2.3.7 survival_3.4-0 fastmap_1.1.0 compiler_4.2.2
[22] htmltools_0.5.4 knitr_1.42 DNAcopy_1.72.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions