Example #1
0
from dash.dependencies import Input, Output
from analyze import Analyze
import dash
import dash_core_components as dcc
import dash_html_components as html
import json


analyze_run = Analyze()
data 		= analyze_run.read()
print(analyze_run.meta)

app = dash.Dash(__name__)
app.layout = html.Div([
    dcc.Graph(
        id='basic-interactions',
        figure={
            'data': [
                {
                    'x': analyze_run.dataset["FSC-A"].values,
                    'y': analyze_run.dataset["SSC-A"].values,
                    'mode': 'markers',
                    
                },
            ]
        }
    ),

    html.Div([
        dcc.Markdown("""
            **Hover Data**
Example #2
0
from analyze import Analyze
import argparse

# ap = argparse.ArgumentParser()
# ap.addargument("-f", "--folder")
# opts = ap.parse_args()

run = Analyze()
run.read()
files = run.files


def indexer():
    with open("FACS_INDEX.txt", "w") as file:
        for i in files:
            run.read(i)
            meta = run.meta
            str_to_save = f"File: {meta['$FIL']},Date: {meta['$DATE']},\n"
            file.write(str_to_save)


indexer()