LabTranslationalArchitectomics / riboWaltz

optimization of ribosome P-site positioning in ribosome profiling data
MIT License
46 stars 12 forks source link

there is no figure using command "rlength_distr" #49

Closed z626093820 closed 3 years ago

z626093820 commented 3 years ago

image image

when i use command : "> example_length_dist_split <- rlength_distr(comparison_list,sample = c("whole_sample", "start_codon"),plot_style = "split",colour = c("dodgerblue", "gray70"))

example_length_dist_split[["plot"]] NULL"

there is no figure! how can is slove the problem, thank you!

fabiolauria commented 3 years ago

You can clearly see that example_length_dist_split doesn't include any element called plot. You have dt, _plot_wholesample and _startcodon and that's it. So you have two separated plots and not a single plot with both of them. For that you should define a named list containing the character strings specifying the name of the sample(s) of interest (from documentation):

 sample_list <- list("Only_start" = c("start_codon"),
             "All" = c("whole_sample"))

Then

 example_length_dist_split <-  rlength_distr(comparison_list,
                         sample = sample_list,
                         plot_style = "split",
                         colour = c("dodgerblue", "gray70"))
 example_length_dist_split[["plot"]]
z626093820 commented 3 years ago

image when i use the changed command, there is no figure out. that's why thank you!

fabiolauria commented 3 years ago

Ummm and if you try to add multisamples = "average"?

z626093820 commented 3 years ago

yes,there is a figure out! thank you!

fabiolauria commented 3 years ago

Okay, there are too many combinations and I messed up somewhere. I'll fix it and be more explicit in the ReadMe. Thank you for opening this issue.