-
Notifications
You must be signed in to change notification settings - Fork 62
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
Ordering Mutational Data by mutburden from high to low within each clinical data (subplot) cohort #379
Comments
Hi @shmashitup which function are you using? You could probably re-factor the input data.frame to get what you want |
I can share my code here: BiocManager::install("GenVisR") library(reshape2) mutationData <- read.delim("EC_Waterfall Plot_Mutation Data.txt") Create an initial plotmutationHeirarchy<- c("missense", "nonsense", "frame_shift_ins", "frame_shift_del", "delins", "deletion", "duplication", "splice_region") tumor mutation burdenmutationBurden <- read.delim("EC_mutationburden.txt") First, let's look at the sample names in the mutationData and mutationBurdenmutationData$sample Create the waterfall plotwaterfall(mutationData, fileType = "Custom", variant_class_order=mutationHeirarchy, mainPalette=mutationColours, mutBurden=mutationBurden) reformat clinical data to long formatclinicalData <- read.delim("EC_Clinical Data.txt") create the waterfall plotwaterfall(mutationData, fileType = "Custom", variant_class_order=c("missense", "nonsense", "frame_shift_ins", "frame_shift_del", "delins", "deletion", "duplication", "splice_region"), mainPalette=mutationColours, mutBurden=mutationBurden, clinData=clinicalData_2, clinLegCol=4, |
I don't know much about R (I'm a beginner). When you say refactor the input data.frame do you mean the one for the mutation burden? I thought the waterfall() automatically assigns the tumor mutation burden based on the order of the mutational data. How can I manually correct the order? |
if your using a waterfall plot there should be a parameter called |
I see! Thank you! This makes sense- I can do that!
…On Mon, Dec 13, 2021 at 10:54 AM Zachary Skidmore ***@***.***> wrote:
if your using a waterfall plot there should be a parameter called
sampOrder where you can give it your samples c("samp1", "samp2") etc.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#379 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW3ZH62V6FNW5DXARARQY4LUQYJMHANCNFSM5J4S4VFQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Is there a way to order all mutation data by tumor mutation burden from high to low? I have divided my data into four cohorts which segregate my mutational data in the clinical data subplot. I would like to order my mutational data within each of these cohorts by tumor mutational burden from high to low.
I am not sure how to do this or if it is possible with this package.
The text was updated successfully, but these errors were encountered: