Beispiel #1
0
    "text": "Clear Filters"
}

proteins_table = html.Div(
    id="proteins-table-container",
    style={
        "minHeight": 100,
        "margin": "0%"
    },
    children=[
        DashTabulator(
            id="proteins-table",
            columns=T.gen_tabulator_columns(
                col_names=[
                    "protein_names", "Fasta headers", "Score", "Intensity"
                ],
                col_width=300,
            ),
            options=tabulator_options,
            downloadButtonType=downloadButtonType,
            clearFilterButtonType=clearFilterButtonType,
        )
    ],
)

plot_columns = [
    # 'Peptide counts (all)',
    # 'Peptide counts (razor+unique)',
    # 'Peptide counts (unique)',
    # 'Number of proteins', 'Sequence coverage [%]',
    "Unique + razor sequence coverage [%]",
    "Unique sequence coverage [%]",
Beispiel #2
0
           "layout": "fitDataFill",
           "height": "900px",
           }

downloadButtonType = {"css": "btn btn-primary", "text":"Export", "type":"csv", "filename":"Metadata"}

clearFilterButtonType = {"css": "btn btn-outline-dark", "text":"Clear Filters"}

meta_table = html.Div(id='meta-table-container', 
    style={'minHeight':  100, 'margin': '0%'},
    children=[
        DashTabulator(id='meta-table',
                      columns=T.gen_tabulator_columns(
                          add_ms_file_col=True, add_color_col=True, 
                          add_peakopt_col=True, add_ms_file_active_col=True
            ),
            options=tabulator_options,
            downloadButtonType=downloadButtonType,
            clearFilterButtonType=clearFilterButtonType
        )
])

options = [
    {'label': 'Batch', 'value': 'Batch'},
    {'label': 'Label', 'value': 'Label'},
    {'label': 'Color', 'value': 'Color'},
    {'label': 'Type', 'value': 'Type'},
    {'label': 'Concentration', 'value': 'Concentration'},
    ]

_label = 'Metadata'
Beispiel #3
0
        dcc.Dropdown(id='add-metab-ms-mode',
                     placeholder='Select ionization mode',
                     options=[{
                         'label': 'Positive',
                         'value': 'Positive'
                     }, {
                         'label': 'Negative',
                         'value': 'Negative'
                     }],
                     value='Negative'),
        dcc.Dropdown(id='add-metab-groups', options=groups_options,
                     multi=True),
        dcc.Loading(
            DashTabulator(
                id='add-metab-table',
                columns=columns,
                options=options,
                clearFilterButtonType=clearFilterButtonType,
            ), ),
        html.Button('Add selected metabolites to targets', id='add-metab'),
    ])

_label = 'Add Metabolites'

_layout = html.Div([html.H3('Add Metabolites'), add_metab_table])

_outputs = html.Div(
    id='add-metab-outputs',
    children=[html.Div(id={
        'index': 'add-metab-output',
        'type': 'output'
    })])
Beispiel #4
0
        "headerFilter": False,
        "formatter": "color",
        'width': '3px',
        "headerSort": False
    },
]

ms_table = html.Div(id='ms-table-container',
                    style={
                        'Height': 0,
                        'marginTop': '10%'
                    },
                    children=[
                        DashTabulator(
                            id='ms-table',
                            columns=columns,
                            options=options,
                            clearFilterButtonType=clearFilterButtonType)
                    ])

_label = 'MS-Files'

_layout = html.Div([
    html.H3('Upload MS-files'),
    html.Div(du.Upload(
        id='ms-uploader',
        filetypes=['tar', 'zip', 'mzxml', 'mzml', 'mzXML', 'mzML'],
        upload_id=uuid.uuid1(),
        max_files=10000,
        text='Upload mzXML/mzML files.'),
             style={
Beispiel #5
0
           "headerFilterLiveFilterDelay":3000,
           "layout": "fitDataFill",
           "height": "900px",
           }

downloadButtonType = {"css": "btn btn-primary", "text":"Export", "type":"csv", "filename": "Targets"}

clearFilterButtonType = {"css": "btn btn-outline-dark", "text":"Clear Filters"}

pkl_table = html.Div(id='pkl-table-container', 
    style={'minHeight':  100, 'margin': '50px 50px 0px 0px'},
    children=[
        DashTabulator(id='pkl-table',
            columns=T.gen_tabulator_columns(['peak_label', 'mz_mean','mz_width', 'rt', 'rt_min', 
                                             'rt_max', 'intensity_threshold', 'target_filename']), 
            options=tabulator_options,
            downloadButtonType=downloadButtonType,
            clearFilterButtonType=clearFilterButtonType
        )
])

_label = 'Targets'

_layout = html.Div([
    html.H3(_label),

    dcc.Upload(
            id='pkl-upload',
            children=html.Div([
                'Drag and Drop or ',
                html.A('Select Files')