POREquality
This is an early version of POREquality, an R Markdown document designed to be ran as part of a Nanopore local basecalling pipeline.
Install / Use
/learn @carsweshau/POREqualityREADME
POREquality
This is an early version of POREquality, an R Markdown script designed to run as part of a Nanopore local basecalling pipeline. POREquality reads Nanopore sequencing summary files to generate an aesthetically pleasing HTML report to faciliate the visualization of key metrics.
- Reasons to use POREquality:
- Produce professional sequencing reports after any locally basecalled MinION or GridION run.
- Visually inspect information contained in the sequencing summary.
- Sharing sequencing quality control reports with third-parties.
- Diagnose problematic or under-performing runs.
Table of contents
- Requirements
- Installation
- Example usage
- Future development
- Contributing
- Acknowledgments
- Cite
- License
Requirements
POREquality has currently only been tested on Ubuntu, although provided the dependencies are met it (in theory) should be able to run on other operating systems. POREquality requires pandoc to be installed, which we recommend you do via your package manager. Currently these R packages are required:
- data.table
- flexdashboard
- dplyr
- DT
- plyr
- ggExtra
- ggplot2
- hexbin
- knitr
- optparse
- RColorBrewer
- reshape2
- ggridges
- scales
Installation
Required R packages
required.packages <- c("data.table","flexdashboard","dplyr","DT","plyr","ggExtra","ggplot2","hexbin","knitr","optparse","RColorBrewer","reshape2","ggridges","scales")
new.packages <- required.packages[!(required.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
Install with required dependencies
git clone https://github.com/carsweshau/POREquality
cd POREquality
sudo apt-get install pandoc
Example usage
The (rather boorish) bash code below could be placed in a script and ran via cron:
NUMBER_OF_ACTIVE_RUNS=$(ps -ef | grep MinKNOW | grep experiment | grep sequencing | grep -v \"grep\" | wc -l)
if [ $NUMBER_OF_ACTIVE_RUNS -gt 0 ]; then
exit 1 # files are still being written, will check later via cron
fi
cd /data/basecalled # assumes GridION data structure
for run in *; do
if [[ -f $run ]]; then
continue;
fi
if [[ $run != "workspace" ]]; then
if [ ! -f ${dir}_summary.txt ]; then
cat ${dir}/GA?0000/seq*.txt > ${dir}_raw_summary.txt # creating an intermediate file is distasteful here, you could grep off a header and append to your liking
awk ' /^filename/ && FNR > 1 {next} {print $0} ' ${dir}_raw_summary.txt > ${dir}_summary.txt && rm /data/basecalled/${dir}_raw_summary.txt
fi
if [ ! -f /data/reports/${run}.html ]; then
Rscript -e "rmarkdown::render('/home/USER/POREquality/POREquality.Rmd', output_file=paste('/data/reports/${run}.html',sep=''))" -i /data/basecalled/${run}_summary.txt -o /data/reports
fi
fi
done
Alternatively, one could just run the Rscript supplying the required sequencing summary.
Future development
- ~~Ensure the new re-factored code accepts any ONT sequencing summary gracefully~~
- ~~Add PromethION support (physical flowcell layout, ensure compatiable with existing workflows, etc)~~
- Simplify installation of POREquality via dependency management like Packrat
- Add in bream log support for interrogation of drift voltages, etc.
- Refactor R code to use fewer packages and embrace data.table to enable key-value/set operations for performance
Contributing
As this is my first release, I would greatly appreciate any feedback to improve POREquality! I welcome the Nanopore community to offer insight and to contribute to the ongoing development of POREquality by either submitting issues issues or pull requests.
Acknowledgments
I would like to thank Dr. Martin Smith for the patient encouragment, as well as the rest of the Genomic Technologies Group, Dr. Kirston Barton and James Ferguson for all their hard work and advice.
Furthermore, the wider Nanopore community is a fantastic and welcoming place, and there are many aspects of POREquality which could not exist were it not for the hard work of many others providing this environment.
Cite
Shaun L. Carswell, & Martin A. Smith. (2019, January 30). carsweshau/POREquality: Pre-release of POREquality alpha (Version v0.9.8). Zenodo. https://doi.org/10.5281/zenodo.2552922
License
Related Skills
diffs
341.8kUse the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
clearshot
Structured screenshot analysis for UI implementation and critique. Analyzes every UI screenshot with a 5×5 spatial grid, full element inventory, and design system extraction — facts and taste together, every time. Escalates to full implementation blueprint when building. Trigger on any digital interface image file (png, jpg, gif, webp — websites, apps, dashboards, mockups, wireframes) or commands like 'analyse this screenshot,' 'rebuild this,' 'match this design,' 'clone this.' Skip for non-UI images (photos, memes, charts) unless the user explicitly wants to build a UI from them. Does NOT trigger on HTML source code, CSS, SVGs, or any code pasted as text.
openpencil
1.9kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
ui-ux-designer
Use this agent when you need to design, implement, or improve user interface components and user experience flows. Examples include: creating new pages or components, improving existing UI layouts, implementing responsive designs, optimizing user interactions, building forms or dashboards, analyzing existing UI through browser snapshots, or when you need to ensure UI components follow design system standards and shadcn/ui best practices.\n\n<example>\nContext: User needs to create a new dashboard page for team management.\nuser: "I need to create a team management dashboard where users can view team members, invite new members, and manage roles"\nassistant: "I'll use the ui-ux-designer agent to design and implement this dashboard with proper UX considerations, using shadcn/ui components and our design system tokens."\n</example>\n\n<example>\nContext: User wants to improve the user experience of an existing form.\nuser: "The signup form feels clunky and users are dropping off. Can you improve it?"\nassistant: "Let me use the ui-ux-designer agent to analyze the current form UX and implement improvements using our design system and shadcn/ui components."\n</example>\n\n<example>\nContext: User wants to evaluate and improve existing UI.\nuser: "Can you take a look at our pricing page and see how we can make it more appealing and user-friendly?"\nassistant: "I'll use the ui-ux-designer agent to take a snapshot of the current pricing page, analyze the UX against Notion-inspired design principles, and implement improvements using our design tokens."\n</example>
Security Score
Audited on Oct 23, 2020
