{drawCell} - R package and Shiny app for drawing cell structures

By:
Deepansh Khurana
December 20, 2022

Are you a life sciences educator looking to engage students with interactivity or a student needing to draw and label cells? Are you a researcher looking to offload the tedium of data visualization? There's an R solution for you: drawCell! This tool provides a convenient, engaging solution for educators and researchers alike. <blockquote>Researchers pour countless hours into their work. Why not make that research accessible to the public? See how to <a href="https://appsilon.com/accessible-research-with-r-shiny/" target="_blank" rel="noopener">design accessible research using R and Shiny</a>.</blockquote> TOC: <ul><li><a href="#drawcell">What is {drawCell}?</a></li><li><a href="#howtouseit">How to use {drawCell}?</a></li></ul> <hr /> <h2 id="drawcell">What is {drawCell}?</h2> {drawCell} is a simple R package that creates interactive diagrams of cells that you can modify with the click of a button. It does exactly what the name suggests: it draws cells for you.  We chatted with the lead developer and creator of {drawCell}, Álvaro Sánchez, who shed some light on the internal parts of {drawCell}. <iframe title="YouTube video player" src="https://www.youtube.com/embed/X0gku6K03N0" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe> <h3>Where did the {drawCell} package inspiration come from?</h3> Alvaro’s background is in bioinformatics and biology has worked in those fields. When he first saw the SwissBioPics proteins being used, he figured he could combine those APIs and build something that he could use. This was an amalgamation of everything he had learned in R and a combination of his domain knowledge. <h3>How can we use and explore {drawCell}?</h3> Enhance your publications and presentations with {drawCell}. Create faster visuals and highlight specific areas you want to focus on. Engage your audience with more interactive tooling without adding time and complexity to your workload. Simply select a cell using its taxonomical ID or the cell name and begin! <blockquote>Curious about other R and Shiny examples in your field? Check out these <a href="https://appsilon.com/r-shiny-in-life-sciences-examples/" target="_blank" rel="noopener">7 Dashboard examples from the Life Sciences</a>.</blockquote> <h3>Who gains to be impacted from {drawCell}?</h3> {drawCell} has the potential to impact learning environments and knowledge share techniques. Its user-friendly design allows anyone to easily utilize its benefits. Whether you’re a teacher, researcher, programmer, parent, or a student looking to enhance your understanding, {drawCell} is a versatile tool. With its plug-and-play functionality and no restrictions, {drawCell} has the potential to make a significant impact in the world of biology education. <h3>What do you plan to do next with this R project?</h3> When the first version was released, the community supported it and gave important feedback. In fact, one of those community members became a co-creator of {drawCell}. We hope their continued feedback will help shape its development. For now, the future of {drawCell} may offer more features, such as the ability to programmatically add properties and colors to proteins. We also hope to add a comparison between cells as well. <h3>Will {drawCell} remain a single app or will it evolve into something else?</h3> For now, {drawCell} is a standalone app and package. We are open to expanding its capabilities and evolving it into a suite of packages if needed. Our focus is meeting the needs of the community. We will continue to listen to feedback and consider new features that enhance its efficacy for the users. <blockquote>Looking to get started as an R programmer? Check out <a href="https://appsilon.com/how-to-start-a-career-as-an-r-shiny-developer/" target="_blank" rel="noopener">Appsilon's guide to starting a career as an R/Shiny Dev</a>.</blockquote> <h2 id="howtouseit">How to draw cells using {drawCell}?</h2> {drawCell} will (hopefully) be on <a href="https://www.bioconductor.org/" target="_blank" rel="nofollow noopener">Bioconductor</a> soon, and installing it will be even simpler than it already is. But for now, you can install it by using the `remotes` package in R. <pre><code> remotes::install_github("svalvaro/drawCell") </code></pre> Once installed, all you have to do is use the `drawCell::drawCellShiny()` function to quickly start a Shiny app that has the intended UI. <img class="alignnone wp-image-17127" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01c560473cffa8782ebdf_drawCell-R-package-Shiny-app-view-for-generating-cell-biology.webp" alt="drawCell R package Shiny app view for generating cell biology" width="800" height="885" /> <h3>Steps to draw a cell with {drawCell}</h3> <ol><li>Select the cell from the drop-down or the text box</li><li>A cell without any colors will be shown</li><li>Select specific areas in the cell</li><li>Select the color using the color picker</li><li>Then, keep selecting areas you want to highlight and adding colors</li><li>Export using the option of your choice</li></ol> <h3>How to export a generated cell from {drawCell}</h3><ul><li><strong>Copy the code</strong>: This generates the code for the cell using the {drawCell} package. This will include all your edits and colors, which you can use in a .Rmd document, a Shiny app, etc.</li><li><strong>Download as a png</strong>: This downloads a preview of the cell in .png image for you to use in your reports, presentations, and anywhere else .pngs are accepted!</li></ul> <h3>How to deploy the {drawCell} app?</h3> You can also host your own drawCell instance using shinyapps.io or Posit Connect. We have a tutorial showing 3 top methods most folks use to publish their Shiny apps. 

Have questions or insights?

Engage with experts, share ideas and take your data journey to the next level!

Is Your Software GxP Compliant?

Download a checklist designed for clinical managers in data departments to make sure that software meets requirements for FDA and EMA submissions.
Explore Possibilities

Share Your Data Goals with Us

From advanced analytics to platform development and pharma consulting, we craft solutions tailored to your needs.

Talk to our Experts
open source
data visualization
r
life sciences