dylanwal / well_plate

well plates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Well Plate (well_plate)



PyPI downloads license

Makes nice visualizations of well plates!


Installation

pip install well_plate

Dependencies

numpy

pandas

plotly



Options

  • Well numbers

  • Well shape

    • 'circle'
    • 'rect' (square)
  • Add data

    • use wp.add_data(); pass in a pd.Series with the index corresponding to well plate index (eg. "A1", "E4", ...)


Example

Basic example

    import well_plate

    wp = well_plate.WellPlate(24)
    wp.plot()

well_plate

Change well size

    import well_plate

    wp = well_plate.WellPlate(96, "rect")
    wp.plot()

well_plate

Add data

    import pandas as pd    
    import well_plate

    wp = well_plate.WellPlate(384, "rect")
    
    df = pd.read_csv("example1_data.csv", index_col=0)
    wp.add_data(df["mw_n"])
    
    wp.plot(key="mw_n")
    wp.heatmap(key="mw_n")

well_plate well_plate

About

well plates

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%