Skip to content

Commit

Permalink
Add plot.ly and advices on improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyigh committed Aug 26, 2017
1 parent 99a7c4b commit 9c0c6ec
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PyHRM.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,17 @@
#
# So you can identify your genotyping results by looking at: to which control they cluster.

# Ploting with plot.ly, so you can look at individual lines for better pattern recognition
# In[ ]:
import plotly.plotly as py
import cufflinks as cf
import plotly.graph_objs as go

cf.set_config_file(offline=False, world_readable=True, theme='ggplot')

dfpy = dfdif.set_index(df_melt.iloc[:,0])

# Plot and embed in ipython notebook!
dfpy.iplot(kind='scatter', filename='pyHRM')


14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ You can view this ipython notebook demo here:

https://github.com/liuyigh/PyHRM/blob/master/PyHRM.ipynb

## FAQ

### Clustering not working.

When you get noisy data, the k-means is not going to magically salvage it. Try these:

* Do your PCR with touch down protocol, it greatly improves data quality, like magic!
* Make sure you get rid off empty wells, failed wells (look at your melting curve peaks), obvious outliers
* Make sure you choose the best temp range +/- 5 degree C around melting temp usually works the best.
* For subtle differences, your eyes can be better at pattern recognition than k-means. Use the provided code to plot it with `plot.ly`. You can look at individual lines on plot.ly to make your own judgement.
* Reduce heat block variation by running only 1 target gene in symatrically arranged wells.

## How sensitive is pyHRM?

I am able to reliably detect:
Expand All @@ -18,6 +30,8 @@ I am able to reliably detect:

## qPCR protocol

Do your PCR with **touch down** protocol, it greatly improves data quality, like magic!

## Basics: HRM - High Resolution Melt Analysis

[Kapa BioSystems HRM Guide](http://www.kapabiosystems.com/document/introduction-high-resolution-melt-analysis-guide/)
Expand Down

0 comments on commit 9c0c6ec

Please sign in to comment.