Closed raecv closed 2 years ago
Great work!
I find it interesting that you've approached the second question from the perspective of someone using this code, as opposed to your own perspective as someone writing it - e.g., while the intrinsic load for someone just running this might be relatively low, anyone who wanted to understand it or write something similar needs to know much more than just how to specify a file path - the intrinsic load is in what the script is actually doing, more or less.
Totally agree about the germane load - as someone very used to tidyverse / ggplot2, this to me is well written and easy to understand, but if someone is unfamiliar with these packages it can be daunting.
One thing I might add in terms of extrinsic load - because you've hard coded your file path, even if someone wants to take your same data and run this script on it, they need to go through extra work by changing the path for their computer. A relative file path would fix that!
Again, great job, and feel free to close the issue once you've read this!
Thanks!
Adding a relative file path is a good idea and I can definitely implement that.
This is an example of code I wrote to generate a volcano plot from a .xls file containing CRISPR screen results analyzed by casTLE:
I tried to roughly to de-spaghetti this code by adding "USER-INPUT" sections so I could share this with my labmates and they could fill in the minimum needed, but that still means generating a new file that essentially copies all the code for each volcano plot you want to generate (it only generates one volcano per .R). To de-spaghetti this, I could write the functions to generate the base volcano (p) and the labels (p2), which would let someone generate multiple volcanos in one document. This would be great because I could also add in options to let them edit the default colors, font sizes, etc. I could also try writing modules for my sig_hits filters (and similar steps) in a less verbose way.