Skip to main content

A simple package to handle HRM data in python

Project description

hrmPy

A simple python package to handle High Resolution Melting (HRM) experiment data analysis. For full functionality see tutorial.ipynb.

Quick start

Install dependencies

pip install -r requirements.txt
pip install hrmpython

Create simple visulization with clustering

from hrmpy import HRM
import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('./Sample-HRM-p50-genotyping.csv')

hrm = HRM(df)
hrm.subset((75,88))
hrm.clustering('kmeans', 3)
data = hrm.diff()

palette = ['red', 'blue', 'green']

for i in range(len(data.columns)):
    column = data.columns[i]
    plt.plot(hrm.temp, data[column], color=palette[hrm.cluster[i]])

plt.xlabel('Temperature (°C)')
plt.ylabel('-d(norm RFU)/dT') 

Example Plot

Find sample Tm

hrm.tm()
   Sample  Temperature
0      G6         81.0
1      G7         82.2
2      G8         82.2
3      G9         82.2
4     G10         82.2
...
31    J10         82.2
32    J11         82.4
33    J12         81.0
34    J13         82.2
35    J14         82.2

Data input

Technically melting data from any instrument should work, as long it is formatted correctlly.

  • Remove empty columns or empty rows
  • First column should be 'Temperature' and the rest is melting data with sample or 'well' as column name.

Please see Sample-HRM-p50-genotyping.csv for input example.

Credit

  • hrmpy is implementation and improvement of liuyigh's PyHRM
  • example input Sample-HRM-p50-genotyping.csv is created by liuyigh

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hrmpython-0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file hrmpython-0.1-py3-none-any.whl.

File metadata

  • Download URL: hrmpython-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for hrmpython-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2caa43f318a1a3f57bca1f34755b6c8deef4325f824fcc32e78bdac0c95aff5a
MD5 78662cbc9478621198d6f63a8516eb52
BLAKE2b-256 d97f5e176b0e0376f9051b3bc72a4fec4edc2f17a907f81800a269f0f379066c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page