-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: support numeric annotation in oncoplot. #363
Comments
This is already taken care of in #207. Since the clnicalfeature is not a numeric - its plotted as a categorical variable. You coudl try the below and it should work. laml@clinical.data[,days_to_last_followup := as.numeric(as.character(days_to_last_followup))] |
I don't see what I want from running the following code
The last plot seems right but has a bad legend. |
Okay, I will fix this. This doesnt seem good. |
Hi, |
Still wait a fix. |
Hi, legend issue seems to still occur |
Hahah, @PoisonAlien you maybe have forgotten this 😭 |
Ah! I somehow overlooked it. I will work on it soon.. |
It seems this issue suspends for almost a year. I will try to implement it and submit a PR recently. |
Is this issue resolved? I am having the same issue (maftools 2.8.05) where the numeric annotation does not show up as a continuous scale but as individual values in the legend. |
Was solution to allow this numeric annotation provided yet? Please share if you know how. |
Hi, |
Thank you. It will be great if you could resolve this issue.
…On Thu, Aug 17, 2023 at 2:45 AM Anand Mayakonda ***@***.***> wrote:
Hi,
I will have a look around soon.
—
Reply to this email directly, view it on GitHub
<#363 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM72VJVJKUIVR5B4FGPRAM3XVW4ZZANCNFSM4IBMNB3Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Best regards,
Wungki Park
|
Hi, I have pushed changes to handle numeric annotations. Make sure that the annotation you're trying to annotate is of the class 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)
# by default days_to_last_followup is of characters class. Converting it to numeric
laml@clinical.data$days_to_last_followup = as.numeric(laml@clinical.data$days_to_last_followup)
oncoplot(maf = laml, clinicalFeatures = "days_to_last_followup") Please let me know if this works for you.. |
This is amazing! I have been using customised palette for other annotations. Would it be possible to use a continuous palette colors instead of this default scale in red brown here? I really appreciate this help. Very helpful! |
Support continuous scale?
The text was updated successfully, but these errors were encountered: