Mathelab / ALTRE

ALTered Regulatory Elements
http://mathelab.github.io/ALTRE/
9 stars 8 forks source link

plotting function errors #47

Closed rfarouni closed 8 years ago

rfarouni commented 8 years ago

There are argument is of length zero errors at these lines: plottingfunctions.R #177 plottingfunctions.R #397 plottingfunctions.R#536

Warning: Error in if: argument is of length zero
Stack trace (innermost first):
    81: plotCombineAnnotatePeaks [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#177]
    80: renderUI [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#302]
    79: func
    78: origRenderFunc
    77: output$annotatebarplot
     2: shiny::runApp
     1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10]
Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics'
Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics'
Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics'
Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics'
Warning: Error in if: argument is of length zero
Stack trace (innermost first):
    80: plotGetCounts [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#397]
    79: func [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#312]
    78: origRenderFunc
    77: output$densityplot
     2: shiny::runApp
     1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10]

Warning: Error in if: argument is of length zero
Stack trace (innermost first):
    81: plotCountAnalysis [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#536]
Mathelab commented 8 years ago

Why is this error only a problem with Shiny? What is palette set to in the Shiny Call? Ewy

From: Rick Farouni notifications@github.com<mailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.com> Date: Wednesday, October 19, 2016 at 10:57 AM To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.com> Subject: [Mathelab/ALTRE] plotting function errors (#47)

There are errors at these lines: plottingfunctions.R #177 plottingfunctions.R #397

Warning: Error in if: argument is of length zero Stack trace (innermost first): 81: plotCombineAnnotatePeaks [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#177] 80: renderUI [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#302] 79: func 78: origRenderFunc 77: output$annotatebarplot 2: shiny::runApp 1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10] Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Warning: Error in if: argument is of length zero Stack trace (innermost first): 80: plotGetCounts [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#397] 79: func [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#312] 78: origRenderFunc 77: output$densityplot 2: shiny::runApp 1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=2DHlYZnyuF49qZKXfyp9UWdcqBpJzd-n10QAdxMiNpI&s=job4n3DXlpPT0BpS7wIIIe6CvFhttweXAs6ZUGjRtYI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOpx3U4lCD51ZBaFTqZraCj0ReohDqHoks5q1i-5FQgaJpZM4KbE4M&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=2DHlYZnyuF49qZKXfyp9UWdcqBpJzd-n10QAdxMiNpI&s=25rerdymryH0DUG6B_YPugZ9C88ZkQDb_XU4B_WtTvs&e=.

osubmi784323 commented 8 years ago

I see what the problem is, I’ll fix. I’m not sure why it doesn’t show the error on the command line.

Liz

From: Mathelab notifications@github.com<mailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.com> Date: Wed, 19 Oct 2016 11:14:00 -0400 To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.com> Cc: Elizabeth Baskin elizabeth.baskin@osumc.edu<mailto:elizabeth.baskin@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

Why is this error only a problem with Shiny? What is palette set to in the Shiny Call? Ewy

From: Rick Farouni notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.commailto:reply@reply.github.com> Date: Wednesday, October 19, 2016 at 10:57 AM To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.com> Subject: [Mathelab/ALTRE] plotting function errors (#47)

There are errors at these lines: plottingfunctions.R #177 plottingfunctions.R #397

Warning: Error in if: argument is of length zero Stack trace (innermost first): 81: plotCombineAnnotatePeaks [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#177] 80: renderUI [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#302] 79: func 78: origRenderFunc 77: output$annotatebarplot 2: shiny::runApp 1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10] Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Warning: Error in if: argument is of length zero Stack trace (innermost first): 80: plotGetCounts [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#397] 79: func [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#312] 78: origRenderFunc 77: output$densityplot 2: shiny::runApp 1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=2DHlYZnyuF49qZKXfyp9UWdcqBpJzd-n10QAdxMiNpI&s=job4n3DXlpPT0BpS7wIIIe6CvFhttweXAs6ZUGjRtYI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOpx3U4lCD51ZBaFTqZraCj0ReohDqHoks5q1i-5FQgaJpZM4KbE4M&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=2DHlYZnyuF49qZKXfyp9UWdcqBpJzd-n10QAdxMiNpI&s=25rerdymryH0DUG6B_YPugZ9C88ZkQDb_XU4B_WtTvs&e=.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254843723&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=NXNXqjrPuuxr4j2zaVEUusJJC_CRBRYTsx8wZVtL_Ko&s=z_10DKomeGCAcoQRPKmyrPBwHC8kD9iwD76wX8kcPXM&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AS-5FYmbY5guX610Vc6hGeOK3swRIcGpZJks5q1jO4gaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=NXNXqjrPuuxr4j2zaVEUusJJC_CRBRYTsx8wZVtL_Ko&s=AinaH3wdiw6uehXaUAIYveL0qhW-sjvgWX5HzKP6jsE&e=.

Mathelab commented 8 years ago

What is the problem? Ewy

From: baskineliz notifications@github.com<mailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.com> Date: Wednesday, October 19, 2016 at 11:17 AM To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.com> Cc: Ewy Mathe Ewy.Mathe@osumc.edu<mailto:Ewy.Mathe@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

I see what the problem is, I’ll fix. I’m not sure why it doesn’t show the error on the command line.

Liz

From: Mathelab notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.commailto:reply@reply.github.com> Date: Wed, 19 Oct 2016 11:14:00 -0400 To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.com> Cc: Elizabeth Baskin elizabeth.baskin@osumc.edu<mailto:elizabeth.baskin@osumc.edumailto:elizabeth.baskin@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.commailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

Why is this error only a problem with Shiny? What is palette set to in the Shiny Call? Ewy

From: Rick Farouni notifications@github.com<mailto:notifications@github.commailto:notifications@github.commailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.commailto:reply@reply.github.commailto:reply@reply.github.com> Date: Wednesday, October 19, 2016 at 10:57 AM To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.com> Subject: [Mathelab/ALTRE] plotting function errors (#47)

There are errors at these lines: plottingfunctions.R #177 plottingfunctions.R #397

Warning: Error in if: argument is of length zero Stack trace (innermost first): 81: plotCombineAnnotatePeaks [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#177] 80: renderUI [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#302] 79: func 78: origRenderFunc 77: output$annotatebarplot 2: shiny::runApp 1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10] Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Warning: Error in if: argument is of length zero Stack trace (innermost first): 80: plotGetCounts [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#397] 79: func [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#312] 78: origRenderFunc 77: output$densityplot 2: shiny::runApp 1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=2DHlYZnyuF49qZKXfyp9UWdcqBpJzd-n10QAdxMiNpI&s=job4n3DXlpPT0BpS7wIIIe6CvFhttweXAs6ZUGjRtYI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOpx3U4lCD51ZBaFTqZraCj0ReohDqHoks5q1i-5FQgaJpZM4KbE4M&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=2DHlYZnyuF49qZKXfyp9UWdcqBpJzd-n10QAdxMiNpI&s=25rerdymryH0DUG6B_YPugZ9C88ZkQDb_XU4B_WtTvs&e=.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254843723&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=NXNXqjrPuuxr4j2zaVEUusJJC_CRBRYTsx8wZVtL_Ko&s=z_10DKomeGCAcoQRPKmyrPBwHC8kD9iwD76wX8kcPXM&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AS-5FYmbY5guX610Vc6hGeOK3swRIcGpZJks5q1jO4gaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=NXNXqjrPuuxr4j2zaVEUusJJC_CRBRYTsx8wZVtL_Ko&s=AinaH3wdiw6uehXaUAIYveL0qhW-sjvgWX5HzKP6jsE&e=.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254844849&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=3-qwl1euRjJHvmNTat4SJ_ajh5B93dKdU3JCLP12F3k&s=WIvyX92yODT1qmhR9Gqt_GdyyVY0a33zq4crQAqMp_Y&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_notifications_unsubscribe-2Dauth_AOpx3Zjd5WQa3sIGSP6WmVDw8TNRPyoEks5q1jSKgaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=3-qwl1euRjJHvmNTat4SJ_ajh5B93dKdU3JCLP12F3k&s=vrCCqwhjE0VrhwLIONbSrn8TDANzlCYPiuxPidQ0rG8&e=.

osubmi784323 commented 8 years ago

Right now the function checks to see if a palette was specified or if the user wishes to manually enter their own palette argument. If palette is length 1 it assumes an R color brewer palette was entered. If it is of length four it assumes colors have been entered. I though this was the problem — that Rshiny doesn’t like how the argument length has to be checked, but I used the viewer argument to prevent this argument from being checked in Rshiny (it could be ok to use palettes exclusively there…) and the error changed to being about Rcolorbrewer:

Warning: Error in if: argument is of length zero Stack trace (innermost first): 82: RColorBrewer::brewer.pal 81: plotCountAnalysis 80: renderUI [/Users/bask05/Library/R/3.3/library/ALTRE/shinyApp/server.R#322] 79: func 78: origRenderFunc 77: output$volcano 2: shiny::runApp 1: runShinyApp

Is this new? Haven’t we been using Rcolorbrewer for a while now? I’m not sure how to address the error. Probably it is something to do with with how the palette input is input$palette4?

From: Mathelab notifications@github.com<mailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.com> Date: Wed, 19 Oct 2016 11:19:28 -0400 To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.com> Cc: Elizabeth Baskin elizabeth.baskin@osumc.edu<mailto:elizabeth.baskin@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

What is the problem? Ewy

From: baskineliz notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.commailto:reply@reply.github.com> Date: Wednesday, October 19, 2016 at 11:17 AM To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.com> Cc: Ewy Mathe Ewy.Mathe@osumc.edu<mailto:Ewy.Mathe@osumc.edumailto:Ewy.Mathe@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.commailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

I see what the problem is, I’ll fix. I’m not sure why it doesn’t show the error on the command line.

Liz

From: Mathelab notifications@github.com<mailto:notifications@github.commailto:notifications@github.commailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.commailto:reply@reply.github.commailto:reply@reply.github.com> Date: Wed, 19 Oct 2016 11:14:00 -0400 To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.com> Cc: Elizabeth Baskin elizabeth.baskin@osumc.edu<mailto:elizabeth.baskin@osumc.edumailto:elizabeth.baskin@osumc.edumailto:elizabeth.baskin@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.commailto:assign@noreply.github.commailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

Why is this error only a problem with Shiny? What is palette set to in the Shiny Call? Ewy

From: Rick Farouni notifications@github.com<mailto:notifications@github.commailto:notifications@github.commailto:notifications@github.commailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.commailto:reply@reply.github.commailto:reply@reply.github.commailto:reply@reply.github.com> Date: Wednesday, October 19, 2016 at 10:57 AM To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.com> Subject: [Mathelab/ALTRE] plotting function errors (#47)

There are errors at these lines: plottingfunctions.R #177 plottingfunctions.R #397

Warning: Error in if: argument is of length zero Stack trace (innermost first): 81: plotCombineAnnotatePeaks [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#177] 80: renderUI [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#302] 79: func 78: origRenderFunc 77: output$annotatebarplot 2: shiny::runApp 1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10] Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Found more than one class "connection" in cache; using the first, from namespace 'BiocGenerics' Warning: Error in if: argument is of length zero Stack trace (innermost first): 80: plotGetCounts [/home/rick/Documents/repos/ALTRE/R/plottingfunctions.R#397] 79: func [/home/rick/R/x86_64-pc-linux-gnu-library/3.3/ALTRE/shinyApp/server.R#312] 78: origRenderFunc 77: output$densityplot 2: shiny::runApp 1: runShinyApp [/home/rick/Documents/repos/ALTRE/R/runshiny.R#10]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=2DHlYZnyuF49qZKXfyp9UWdcqBpJzd-n10QAdxMiNpI&s=job4n3DXlpPT0BpS7wIIIe6CvFhttweXAs6ZUGjRtYI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOpx3U4lCD51ZBaFTqZraCj0ReohDqHoks5q1i-5FQgaJpZM4KbE4M&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=2DHlYZnyuF49qZKXfyp9UWdcqBpJzd-n10QAdxMiNpI&s=25rerdymryH0DUG6B_YPugZ9C88ZkQDb_XU4B_WtTvs&e=.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254843723&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=NXNXqjrPuuxr4j2zaVEUusJJC_CRBRYTsx8wZVtL_Ko&s=z_10DKomeGCAcoQRPKmyrPBwHC8kD9iwD76wX8kcPXM&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AS-5FYmbY5guX610Vc6hGeOK3swRIcGpZJks5q1jO4gaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=NXNXqjrPuuxr4j2zaVEUusJJC_CRBRYTsx8wZVtL_Ko&s=AinaH3wdiw6uehXaUAIYveL0qhW-sjvgWX5HzKP6jsE&e=.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254844849&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=3-qwl1euRjJHvmNTat4SJ_ajh5B93dKdU3JCLP12F3k&s=WIvyX92yODT1qmhR9Gqt_GdyyVY0a33zq4crQAqMp_Y&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_notifications_unsubscribe-2Dauth_AOpx3Zjd5WQa3sIGSP6WmVDw8TNRPyoEks5q1jSKgaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=3-qwl1euRjJHvmNTat4SJ_ajh5B93dKdU3JCLP12F3k&s=vrCCqwhjE0VrhwLIONbSrn8TDANzlCYPiuxPidQ0rG8&e=.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254845473&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=1gWKQevXixZvxr2B1I3mPQ5bBgHcWOsUITLHW-BiCp0&s=7YCDD1MCttD3rG0ppWwPDirvN1wmhZGyAAotEglgHDw&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_notifications_unsubscribe-2Dauth_AS-5FYmdxxY0ZVHnNmJYsKRu8Wq1gZOJ89ks5q1jUAgaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=1gWKQevXixZvxr2B1I3mPQ5bBgHcWOsUITLHW-BiCp0&s=0BChEBkM0YAF0V1iBtvTuZzQwrHiwXcWaVVYgjIuJaw&e=.

rfarouni commented 8 years ago

Shiny side needs to have a default value in the argument, so there is nothing to be done there. At any rate, why do we want users to enter hex colors? The previous solution that worked was this.

plotConsensusPeaks <- function(...., palette = NULL) {
  if ( !is.null(palette) ) {
    cols <- RColorBrewer::brewer.pal(3, palette)
  } else {
    cols <- RColorBrewer::brewer.pal(3, "Set1")
  }
osubmi784323 commented 8 years ago

Ewy wanted the ambiguous points on the volcano plot to be grey in the vignette. To be able to have that level of control, you need to be able to enter colors.

From: Rick Farouni notifications@github.com<mailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.com> Date: Wed, 19 Oct 2016 14:01:03 -0400 To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.com> Cc: Elizabeth Baskin elizabeth.baskin@osumc.edu<mailto:elizabeth.baskin@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

Shiny side needs to have a default value in the argument, so there is nothing to be done there. At any rate, why do we want users to enter hex colors? The previous solution that worked was this.

plotConsensusPeaks <- function(...., palette = NULL) { if ( !is.null(palette) ) { cols <- RColorBrewer::brewer.pal(3, palette) } else { cols <- RColorBrewer::brewer.pal(3, "Set1") }

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254892244&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=RTh4oAXfYQeicpCjA299MocgPQYg6seaSq9mTqitCVQ&s=iJttWXkYzTwybFdTBPZIhRD_RuE3jgzhcxViiMZojqg&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AS-5FYmZ7jO7QFKQsqPNH8ig-5FDAphJGgNlks5q1lrfgaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=RTh4oAXfYQeicpCjA299MocgPQYg6seaSq9mTqitCVQ&s=hCJNK_HUhztU4ac_okND91Ngv7QkmivIazKL8u8nt7A&e=.

rfarouni commented 8 years ago

Right won't make a difference since we always have a character vector

str(RColorBrewer::brewer.pal(3, "Set1"))
 chr [1:3] "#E41A1C" "#377EB8" "#4DAF4A"

The shiny function sends the default palette but I think also a NULL if the object is not yet available. You probably just need to handle this exception by adding !is.null(palette)

Mathelab commented 8 years ago

I think the error does come from the Shiny server side, that somehow the input is not set appropriately by default (even though it looks to be).

How about trying out something like this?

if (hex color) { ….. } else if (allowable brewer.pal palette){ cols <- RColorBrewer::brewer.pal(3, palette) } else {cols <- RColorBrewer::brewer.pal(3, "Set1")t}

From: baskineliz notifications@github.com<mailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.com> Date: Wednesday, October 19, 2016 at 2:04 PM To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.com> Cc: Ewy Mathe Ewy.Mathe@osumc.edu<mailto:Ewy.Mathe@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

Ewy wanted the ambiguous points on the volcano plot to be grey in the vignette. To be able to have that level of control, you need to be able to enter colors.

From: Rick Farouni notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.commailto:reply@reply.github.com> Date: Wed, 19 Oct 2016 14:01:03 -0400 To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.commailto:ALTRE@noreply.github.com> Cc: Elizabeth Baskin elizabeth.baskin@osumc.edu<mailto:elizabeth.baskin@osumc.edumailto:elizabeth.baskin@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.commailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

Shiny side needs to have a default value in the argument, so there is nothing to be done there. At any rate, why do we want users to enter hex colors? The previous solution that worked was this.

plotConsensusPeaks <- function(...., palette = NULL) { if ( !is.null(palette) ) { cols <- RColorBrewer::brewer.pal(3, palette) } else { cols <- RColorBrewer::brewer.pal(3, "Set1") }

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254892244&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=RTh4oAXfYQeicpCjA299MocgPQYg6seaSq9mTqitCVQ&s=iJttWXkYzTwybFdTBPZIhRD_RuE3jgzhcxViiMZojqg&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AS-5FYmZ7jO7QFKQsqPNH8ig-5FDAphJGgNlks5q1lrfgaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=G10OLJVFEhP8CkA-MbKbOJc_nmF4U_1RD3Nnb3VJQFw&m=RTh4oAXfYQeicpCjA299MocgPQYg6seaSq9mTqitCVQ&s=hCJNK_HUhztU4ac_okND91Ngv7QkmivIazKL8u8nt7A&e=.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254893404&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=NNc41iwjWhkpyu4S08BfJIqHxzklVbnmCcfc5pmlNis&s=c92RD32zAlNHGidrlMX-h3hJqMz8QjzvY_lAXzmAyHM&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_notifications_unsubscribe-2Dauth_AOpx3ZTS1zkjvMPWVxVlKIgFs0mb47Llks5q1lu-5FgaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=NNc41iwjWhkpyu4S08BfJIqHxzklVbnmCcfc5pmlNis&s=gVmnRoapFLlHpPgBpszEJUiX-7T4S5o7_wuURxRYiDo&e=.

rfarouni commented 8 years ago

In Shiny the function is called repeatedly not just once. Anytime there is an event or update on the screen, the function gets called. The first event is when the webpage first loads.There the object returned can be a NULL, but I haven't tested

Mathelab commented 8 years ago

Ok Rick. I thought that the function would not be called unless the getcountsObj() was returned as non-null (with the req() function).

So yes, checking for null should do the trick…

Ewy

From: Rick Farouni notifications@github.com<mailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.com> Date: Wednesday, October 19, 2016 at 2:56 PM To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.com> Cc: Ewy Mathe Ewy.Mathe@osumc.edu<mailto:Ewy.Mathe@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

In Shiny the function is called repeatedly not just once. Anytime there is an event or update on the screen, the function gets called. The first event is when the webpage first loads.There the object returned can be a NULL, but I haven't tested

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Mathelab_ALTRE_issues_47-23issuecomment-2D254907786&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=aOcfU3bOkuTocE-9viaO2b-KfmPQILiJmZWn8u43azw&s=BcXCb-1yGz0TNayjYaTtBGEo8anl9VxekGM5QewDN5Q&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOpx3b7DCqM5JcfLDVeti0lKeEdo7v9hks5q1mfRgaJpZM4KbE4M&d=CwMFaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=aOcfU3bOkuTocE-9viaO2b-KfmPQILiJmZWn8u43azw&s=XEbdvAj0C-yXf0NmG6VPXvoyRBe1gszf6gPwu95sw3Y&e=.

osubmi784323 commented 8 years ago

Thanks, it worked, I pushed.

Mathelab commented 8 years ago

OK thanks! will check it out soon and planning to resubmit by the end of the weekend…

Ewy

From: baskineliz notifications@github.com<mailto:notifications@github.com> Reply-To: Mathelab/ALTRE reply@reply.github.com<mailto:reply@reply.github.com> Date: Thursday, October 20, 2016 at 9:28 AM To: Mathelab/ALTRE ALTRE@noreply.github.com<mailto:ALTRE@noreply.github.com> Cc: Ewy Mathe Ewy.Mathe@osumc.edu<mailto:Ewy.Mathe@osumc.edu>, Assign assign@noreply.github.com<mailto:assign@noreply.github.com> Subject: Re: [Mathelab/ALTRE] plotting function errors (#47)

Thanks, it worked, I pushed.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_Mathelab_ALTRE_issues_47-23issuecomment-2D255105534&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=rnDfnRDGvz4xW_dMwmeEHxIvaj2WEcXCzzEf8LEXwbc&s=zNo9szW0YNWtof4qXlvea5NH284lI6wVRBXXmPYgA1k&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_notifications_unsubscribe-2Dauth_AOpx3fjLoBz1t0eTCJ13bGCxMWD0-5FTZjks5q12yBgaJpZM4KbE4M&d=CwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=kwZD24MMCbG_sisYwGVpukmuRHYOGbXk10phc-LvGu4&m=rnDfnRDGvz4xW_dMwmeEHxIvaj2WEcXCzzEf8LEXwbc&s=7RoavtIL3_7AfuIlLrIIIOUWygvEyXLzjuYY5OHOeOY&e=.