API Reference
Package
Command Line
Server State
MCP Server
Stdio Transport
Tools
- mcp_pykingenie.tools._pykingenie.resolve_experiment_name(experiment_id: str) str | None[source]
Resolve a PyKinGenie experiment name from a name or 1-based index.
- Parameters:
experiment_id (str) – Experiment name or 1-based index in
PY_KINETICS.experiment_names.- Returns:
The resolved experiment name, or None when the selector is invalid.
- Return type:
str or None
- mcp_pykingenie.tools._pykingenie.keep_fit_results(family: str)[source]
Restore one fit type’s results after running a fit of the other type.
- Parameters:
family (str) – Results to keep,
'kinetics'or'steady_state'.
- mcp_pykingenie.tools._pykingenie.select_sample_rows(sample_info: list[Any]) list[dict[str, Any]][source]
Check sample metadata and return the selected rows with an experiment each.
Rows that are not selected or have a zero analyte concentration (reference traces) are left out. Each remaining row is matched to the one loaded experiment that has its association and dissociation data, so the
Experimentcolumn is filled in when it is missing.- Parameters:
sample_info (list) – Records from
obtain_sample_info_table, possibly edited.- Returns:
Selected rows, each with an
Experimentvalue.- Return type:
list of dict
- Raises:
ValueError – If a row is invalid, matches no or several experiments, or no row is selected.
- mcp_pykingenie.tools._pykingenie.current_hour_min_sec()[source]
Get the current time in HH-MM-SS format.
- Returns:
Current time as a string.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.import_octet_experiment_base(folder: str = '.', exp_name: str = 'Experiment') str[source]
Import Octet BLI data into the shared PyKinGenie analyzer.
The folder is read with
pykingenie.OctetExperiment. PyKinGenie parses the.frdsensor traces and sample plate metadata, then the resulting experiment is registered inPY_KINETICS.- Parameters:
folder (str) – Absolute path or
DATA_DIR-relative folder containing Octet files.exp_name (str) – Name used when storing the experiment in the analyzer.
- Returns:
Confirmation message naming the imported folder.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.print_data_dir() str[source]
Print the path to the data directory, where the generated files will be stored.
- Returns:
The path to the data directory.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.list_files_in_folder(folder: str = '') list[str][source]
List all files in the selected folder.
- Parameters:
folder (str) – The folder to list files from.
- Returns:
A list of file names in the data directory.
- Return type:
list
- mcp_pykingenie.tools._pykingenie.import_kingenie_surface_csv(csv: str, exp_name: str = 'Experiment') str[source]
Import a KinGenie surface-simulation CSV into the analyzer.
The CSV is parsed with
pykingenie.KinGenieCsv. It should contain exported surface-simulation columns such asTime,Signal,Smax, andAnalyte_concentration_micromolar_constant; aCyclecolumn is supported for single-cycle data. Ifexp_namealready exists, a numeric suffix is appended before storing the experiment inPY_KINETICS.- Parameters:
csv (str) – Absolute path or
DATA_DIR-relative path to the simulation CSV file.exp_name (str) – Requested experiment name in the analyzer.
- Returns:
Confirmation message naming the imported CSV path.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.resolve_data_path(path: str) str[source]
Return
pathunchanged if absolute, else joined toDATA_DIR.
- mcp_pykingenie.tools._pykingenie.file_format(path: str) str[source]
Return the PyKinGenie format of one file (
.fmfplate files included).
- mcp_pykingenie.tools._pykingenie.expand_paths(paths: str | list[str]) list[tuple[str, str]][source]
Turn files and folders into
(file, format)pairs.Files are kept as given. Folders are expanded to their visible files, and files of unknown format (images, logs, …) inside them are left out.
- mcp_pykingenie.tools._pykingenie.detect_data_format(paths: list[str] | str) list[dict[str, str]][source]
Report the binding-data format of each file, without importing anything.
Call this before
import_binding_dataon unfamiliar files, to know which import settings are needed. Formats:octet_frd/octet_fmf(Octet BLI),gator_zip/gator_steps/gator_settings/gator_csv(Gator BLI),biacore_blr(Biacore result file),spr_text(paired_X/_Ycolumn SPR export, e.g. Biacore or Reichert text),carterra_csv(CarterraLabel, X1, Y1, ...export),surface_csv_steps/surface_csv_traces(generic steps table plus traces table),kingenie_surface/kingenie_solution(KinGenie CSV), orunknown.- Parameters:
paths (list[str] | str) – Files or folders, absolute or relative to the data directory. Folders list only their files of a known format.
- Returns:
One
{"file", "format"}record per file.- Return type:
list of dict
- mcp_pykingenie.tools._pykingenie.read_info_sheet(path: str) list[dict[str, Any]][source]
Read an info sheet (
.xlsx, CSV or TSV).The sheet describes SPR runs: baseline, association and dissociation durations, analyte, ligand and molar concentrations, one row per sensor position. Pass its path as
info_sheettoimport_binding_data(andinfo_sheet_rowwhen rows differ) to fill the timing and concentrations that SPR text and Carterra exports lack.Association_skip_sis a goodtrim_timeforinitiate_fitting_datasets.- Parameters:
path (str) – Absolute path or data-directory-relative path of the sheet.
- Returns:
One record per row; times in seconds and concentrations in µM.
- Return type:
list of dict
- mcp_pykingenie.tools._pykingenie.import_binding_data(paths: list[str] | str, exp_name: str | None = None, association_start: float | list[float] | dict[str, float] | None = None, association_end: float | list[float] | dict[str, float] | None = None, concentrations: list[float] | dict[str, float | list[float]] | None = None, concentration_unit: str | None = None, sample_id: str | list[str] | dict[str, str] | None = None, time_unit: str | None = None, single_cycle: bool | None = None, cycle_duration: float | None = None, top_concentration: float | None = None, dilution_factor: float | None = None, highest_last: bool | None = None, info_sheet: str | None = None, info_sheet_row: int | None = None) str[source]
Import one surface-based binding experiment, detecting its file format.
Supports Octet (folder of
.frdfiles), Gator (folder or.zip), Biacore result files (.blr), paired-column SPR text exports, Carterra CSV exports, a generic steps file plus traces file, and KinGenie CSVs. Usedetect_data_formatfirst if unsure. All files must belong to one experiment; folders are reduced to their files of a known format.Octet, Gator, Biacore and KinGenie files carry their own timing and concentrations: pass only
pathsandexp_name. The other formats need settings the files lack, given here or throughinfo_sheet:SPR text and Carterra:
association_end(andassociation_startif not 0 s), in seconds on the exported time axis;concentrations(one per curve) andsample_idto fit. Carterra dilution series can usetop_concentrationanddilution_factorinstead ofconcentrations. Single-cycle data:single_cycle=Truewith one start, end and concentration per injection (andcycle_durationfor Carterra).Generic steps + traces files: optional
concentrations(one per association step, or a sensor -> list mapping) andsample_id.
Missing concentrations import as NaN with a warning; they can be filled later by editing the table from
obtain_sample_info_table. Reference subtraction and alignment are not done on import.- Parameters:
paths (list[str] | str) – Files and/or folders, absolute or relative to the data directory.
exp_name (str, optional) – Experiment name. By default the run or file name, numbered if taken. An existing experiment with this exact name is replaced.
association_start (float, list or dict, optional) – Injection boundaries in seconds: one value for all curves, a list with one per curve (or per injection when single-cycle), or curve -> value.
association_end (float, list or dict, optional) – Injection boundaries in seconds: one value for all curves, a list with one per curve (or per injection when single-cycle), or curve -> value.
concentrations (list or dict, optional) – Analyte concentrations, in µM unless
concentration_unitis set.concentration_unit (str, optional) –
'M','mM','uM','nM'or'pM'.sample_id (str, list or dict, optional) – Analyte name(s); curves with the same name are fitted together.
time_unit (str, optional) –
's'(default) or'min', the time unit of the file.single_cycle (bool, optional) – Each curve holds several injections without regeneration.
cycle_duration (float, optional) – Carterra single-cycle only: seconds between injection starts.
top_concentration (float, optional) – Carterra only: dilution series instead of
concentrations.dilution_factor (float, optional) – Carterra only: dilution series instead of
concentrations.highest_last (bool, optional) – Carterra dilution series: the last row has the highest concentration (default True).
info_sheet (str, optional) – Info sheet supplying timing, concentrations and analyte (SPR text and Carterra). Explicit settings take precedence.
info_sheet_row (int, optional) – 0-based row of the info sheet to use when its rows differ.
- Returns:
The experiment name and format, its sensors, steps and any warnings.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.import_octet_experiment(folder: str = '.', exp_name: str = 'Experiment') str[source]
Import an Octet experiment folder into the shared PyKinGenie analyzer.
This wraps
pykingenie.OctetExperiment, loading sensor traces and sample plate metadata before adding the experiment toPY_KINETICS.- Parameters:
folder (str) – Absolute path or
DATA_DIR-relative folder containing Octet files.exp_name (str) – Name used when storing the experiment in the analyzer.
- Returns:
Confirmation message naming the imported folder.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.import_gator_experiment(folder: str = '.', exp_name: str = 'Experiment') str[source]
Import Gator BLI data into the shared PyKinGenie analyzer.
Folder contents are parsed with
pykingenie.GatorExperiment, which reads experiment steps, settings, and sensor-channel CSV traces. If a zip file is provided, it is extracted underDATA_DIRand then read as a folder.- Parameters:
folder (str) – Absolute path or
DATA_DIR-relative folder or zip file containingAssay_#_Channel#.csvfiles plusSetting.iniandExperimentStep.ini.exp_name (str) – Name used when storing the experiment in the analyzer.
- Returns:
Confirmation message naming the imported folder or zip stem.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.load_octet_example() str[source]
Load the packaged Octet example into the shared analyzer.
The bundled BLI example is imported through the same
pykingenie.OctetExperimentpath asimport_octet_experimentand stored as"Example Experiment".- Returns:
Confirmation message naming the packaged example folder.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.get_legends_table() list[dict[str, Any]][source]
Build a plotting legend table from PyKinGenie sensor metadata.
Sensor names and unique sensor IDs are collected with
PY_KINETICS.get_experiment_propertiesand converted withpykingenie.get_plotting_df().- Returns:
JSON records for a DataFrame with
Internal_ID,Color,Legend, andShowcolumns.- Return type:
str
- mcp_pykingenie.tools._pykingenie.list_experiment_names() list[str][source]
Get the names of all experiments in the pykinetics analyzer.
- Returns:
A list of experiment names.
- Return type:
list
- mcp_pykingenie.tools._pykingenie.delete_experiment(experiment_ids: list[str] | str) str[source]
Remove loaded experiments from the analyzer, e.g. a wrong import.
All selectors are checked before anything is removed. Fitting datasets are built from the loaded experiments, so if any exist they are cleared too; run
initiate_fitting_datasetsagain afterwards.- Parameters:
experiment_ids (list[str] | str) – Experiment names or 1-based indices, as in
list_experiment_names.- Returns:
The removed experiments and the ones still loaded.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.align_association(experiment_id: str = '1', sensor_names: list[str] | None = None, in_place: bool = True, new_names: bool = False) str[source]
Align association phases for selected sensors in a PyKinGenie experiment.
This calls
SurfaceBasedExperiment.align_association. PyKinGenie subtracts the signal before association from the selected traces and updates trace arrays, sensor names, and ligand metadata according toin_placeandnew_names.- Parameters:
experiment_id (str) – The name of the experiment to align. If a number is provided, it will be used to select the experiment by its index.
sensor_names (list) – Sensor names to align. If empty, all sensors in the experiment are used.
in_place (bool) – If True, modifies the existing sensors; if False, creates new sensors.
new_names (bool) – If True, uses new names for the aligned sensors.
- Returns:
A confirmation message.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.subtract_reference(experiment_id: str = '1', list_of_sensor_names: list[str] | None = None, reference_sensor: str = '1', inplace: bool = True) str[source]
Subtract a reference sensor from selected PyKinGenie sensor traces.
This calls
SurfaceBasedExperiment.subtractionand updates trace arrays, sensor names, and ligand metadata. The reference sensor may be named directly or selected by 1-based sensor index.- Parameters:
experiment_id (str) – The name of the experiment to subtract the reference from. If a number is provided, it will be used to select the experiment by its index.
list_of_sensor_names (list) – A list of sensor names to subtract the reference from. If no names are provided, all sensors except the reference will be used.
reference_sensor (str) – The name of the reference sensor to subtract. If a number is provided, it will be used to select the sensor by its index.
inplace (bool) – If True, modifies the existing sensors; if False, creates new sensors.
- Returns:
A confirmation message.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.average_sensors(experiment_id: str = '1', list_of_sensor_names: list[str] | None = None, sensor_output_name: str = 'average') str[source]
Average signal values of selected sensors from a specific experiment
- Parameters:
experiment_id (str) – Name or 1-based index of the experiment to modify.
list_of_sensor_names (list) – A list of sensor names to subtract the reference from. If no names are provided, all sensors will be used.
sensor_output_name (str) – Name of the new sensor that contains the averaged traces
- Returns:
A confirmation message.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.delete_sensors(experiment_id: str = '1', list_of_sensor_names: list[str] | None = None) str[source]
Delete sensor traces from a given experiment.
- Parameters:
experiment_id (str) – Name or 1-based index of the experiment to modify.
list_of_sensor_names (list[str] | None) – Names of sensors to delete. If None, all sensors will be deleted.
- Returns:
Message describing the result.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.subtract_experiment(experiment_id: str = '1', reference_experiment_id: str = '2', inplace: bool = True) str[source]
Subtract one surface-based experiment from another sensor by sensor.
This calls
SurfaceBasedExperiment.subtract_experimenton the selected target experiment. PyKinGenie sorts sensor names alphanumerically and subtracts each matching sensor trace from the reference experiment. Both experiments must have the same number of sensors and compatible time data.- Parameters:
experiment_id (str) – Name or 1-based index of the experiment to modify.
reference_experiment_id (str) – Name or 1-based index of the experiment to subtract from
experiment_id.inplace (bool) – If True, modifies the target experiment; if False, creates new sensors.
only_interaction (bool) – If True, only subtracts the interaction terms (baseline before association, assoc. & dissociation phases) between sensors.
- Returns:
A confirmation message with the updated target sensor names.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.subtract_sensor_columns(experiment_id: str = '1', sensors_column_one: int = 1, sensors_column_two: int = 2, inplace: bool = True) str[source]
Subtract one column of sensors from another in a surface experiment.
This calls
SurfaceBasedExperiment.subtraction_by_column. PyKinGenie finds sensor names containingsensors_column_oneand subtracts the corresponding sensor obtained by replacing that column number withsensors_column_two.- Parameters:
experiment_id (str) – Name or 1-based index of the experiment to modify.
sensors_column_one (int) – Column number of the sensors to subtract from.
sensors_column_two (int) – Column number of the reference sensors to subtract.
inplace (bool) – If True, modifies the target sensors; if False, creates new sensors.
- Returns:
A confirmation message listing PyKinGenie’s subtraction messages and updated sensor names.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.inter_step_correction(experiment_id: str = '1', sensor_names: list[str] | None = None, in_place: bool = True, new_names: bool = False, npoints: int = 2) str[source]
Perform the inter-step correction by shifting the association phase in a PyKinGenie experiment. This process step assumes that the baseline and dissociation phases were carried out in the same well.
Note: in the Octet software, this is called “Inter-Step Correction” with the option “Align data to Dissociation Step”
This calls
SurfaceBasedExperiment.assoc_inter_step_correction. PyKinGenie moves the association traces to match the beginning of the dissociation phase.- Parameters:
experiment_id (str) – The name of the experiment to align. If a number is provided, it will be used to select the experiment by its index.
sensor_names (list) – A list of sensor names to align. If no names are provided, all sensors in the experiment will be used.
in_place (bool) – If True, modifies the existing sensors; if False, creates new sensors.
new_names (bool) – If True, uses new names for the aligned sensors.
npoints (int) – Number of points PyKinGenie uses around alignment positions.
- Returns:
A confirmation message.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.align_dissociation(experiment_id: str = '1', sensor_names: list[str] | None = None, in_place: bool = True, new_names: bool = False, npoints: int = 2) str[source]
Align dissociation phases for selected sensors in a PyKinGenie experiment.
This calls
SurfaceBasedExperiment.align_dissociation. PyKinGenie shifts the dissociation traces to match the end of the association phase.- Parameters:
experiment_id (str) – The name of the experiment to align. If a number is provided, it will be used to select the experiment by its index.
sensor_names (list) – A list of sensor names to align. If no names are provided, all sensors in the experiment will be used.
in_place (bool) – If True, modifies the existing sensors; if False, creates new sensors.
new_names (bool) – If True, uses new names for the aligned sensors.
npoints (int) – Number of points PyKinGenie uses around alignment positions.
- Returns:
A confirmation message.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.obtain_sample_info_table() list[dict[str, Any]][source]
Return merged PyKinGenie sample metadata as JSON records.
This calls
PY_KINETICS.merge_ligand_conc_dfacross loaded experiments. The resulting table can be edited and passed toinitiate_fitting_datasetsto choose traces, concentrations, sample names, replicates, and Smax grouping. TheExperimentcolumn holds the names the experiments were loaded with, and is kept even when only one experiment is loaded, so a saved table stays tied to its data.- Returns:
JSON records for the merged ligand-concentration DataFrame.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.initiate_fitting_datasets(sample_info: list[dict[str, Any]] | str | None = None, trim_time: float = 0) str[source]
Generate PyKinGenie fitting objects from sample metadata JSON.
A template for the JSON representation can be generated using the
obtain_sample_info_tabletool. The user can edit the JSON string to select only the data they want to fit, change analyte concentrations, change sample names, and alter Smax grouping. Without metadata, every trace in the default table is used.The metadata is checked before the existing fitting objects are reset, so invalid or ambiguous rows leave the current fits untouched. Unselected rows and zero-concentration references are left out. Rows without
Experimentare accepted when each trace is found in one loaded experiment only.- Parameters:
sample_info (list[dict] | str | None) – Sample metadata records, or a JSON string with them.
trim_time (float) – Seconds left out of the kinetic fits at the start of each association and each dissociation, e.g. 1-5 s to skip the SPR bulk refractive index spike. The points are still plotted and the models still start at each step start, so rates are not shifted. Default 0.
- Returns:
A message listing the names of the generated fitting datasets.
- Return type:
str
- async mcp_pykingenie.tools._pykingenie.run_steady_state_fitting(steady_state_model: str = 'one_to_one', fit_sigma: bool = False) str[source]
Run PyKinGenie steady-state fitting for generated fitting datasets.
This calls
PY_KINETICS.submit_steady_state_fittingto fit concentration-response data independently from kinetic trace fitting. Existing kinetic fitting results are kept.- Parameters:
steady_state_model (str) – Steady-state model to fit. PyKinGenie accepts
'one_to_one','two_to_one'and'two_to_one_heterogeneous_ligand'fit_sigma (bool) – If True with
'two_to_one'steady-state fitting, fit the shared cooperativity factor sigma.
- Returns:
A confirmation message with the steady-state fitting settings used.
- Return type:
str
- async mcp_pykingenie.tools._pykingenie.run_kinetics_fitting(fitting_model: str = 'one_to_one', fitting_region: str = 'association_dissociation', linked_smax: bool = False, fit_sigma: bool = False, Kd1_values: list = None, Kd2_values: list = None, fit_signal_ratio: bool = False, compute_k_obs: bool = True) str[source]
Run PyKinGenie kinetic fitting for generated fitting datasets.
This calculates the starting values required by PyKinGenie internally, then calls
PY_KINETICS.submit_kinetics_fittingwith the selected kinetic model, fitted region, Smax sharing setting, and optional two-site cooperativity setting. Userun_steady_state_fittingseparately only when you want a standalone steady-state fit. Existing steady-state fitting results are kept.Inmediatly after the fitting, ask the user if they want to calculate erros by applying the leave-one-out method
- Parameters:
fitting_model (str) – Kinetic model to fit. PyKinGenie accepts
'one_to_one','one_to_one_mtl'(mass transport limitation),'one_to_one_if'(induced fit),'two_to_one','two_to_one_heterogeneous_ligand'and'bivalent_analyte'(avidity: the analyte binds two ligands). Only'one_to_one'supports every fitting region; the other kinetic models support only'association_dissociation'.fitting_region (str) – The region of the data to be fitted.
'one_to_one'supports'association_dissociation','association', and'dissociation'.'one_to_one_mtl','one_to_one_if', and'two_to_one'support only'association_dissociation'.linked_smax (bool) – Whether to link the Smax values across curves, i.e. assume the same sensor capacity.
fit_sigma (bool) – If True with
'two_to_one'kinetic fitting, fit the shared cooperativity factor sigma.Kd1_values (list, optional) – Candidate Kd1 values for the heterogeneous ligand grid search.
Kd2_values (list, optional) – Candidate Kd2 values for the heterogeneous ligand grid search.
fit_signal_ratio (bool) –
'one_to_one_if'only: fit a different signal for the induced complex than for the intermediate complex.compute_k_obs (bool) –
'one_to_one'only: also fit single exponentials to each association to report observed rates (k_obs). False makes the fit faster.
- Returns:
A confirmation message with the kinetic fitting settings used.
- Return type:
str
- async mcp_pykingenie.tools._pykingenie.calc_leave_one_out_errors() str[source]
Calculate the errors of the fitted parameters, e.g., Kd and k_off, using the leave-one-out method. Briefly, for each fitting object (Sample ID), we do n-fits, where n is the total number of curves, leaving one curve out each time. Afterwards, the parameter value plus/minus error is available through get_leave_one_out_results
- mcp_pykingenie.tools._pykingenie.get_leave_one_out_results() list[dict[str, Any]][source]
Return PyKinGenie leave-one-out results as JSON records.
- Returns:
A JSON string representing the fitting results.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.get_kinetics_fitting_results() list[dict[str, Any]][source]
Return PyKinGenie kinetic fitting results as JSON records.
This calls
PY_KINETICS.get_fitting_resultsand serializesfit_params_kinetics_all, which contains fitted parameters such as Kd, k_off, k_on, and Smax when available.- Returns:
A JSON string representing the fitting results.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.get_fitting_parameters() list[dict[str, Any]][source]
Return the kinetic and steady-state fitted parameters as JSON records.
Each record is one row of a dataset’s
fit_params_kineticsorfit_params_sstable, labeled withFit type('Kinetics'or'Steady-state') andDataset. Missing numeric values are returned as null. This tool never runs a fit.- Returns:
Fitted parameter records, or an empty list before any fit.
- Return type:
list of dict
- mcp_pykingenie.tools._pykingenie.get_correlation_matrices(kind: str = 'kinetics') dict[str, dict[str, Any]][source]
Return the correlation matrices of the fitted parameters, one per fitting dataset.
Correlations range from -1 to 1. Values near +/-1 mean two parameters trade off against each other: the data determine a combination of them, not each one separately, so their individual values should not be trusted. This tool never runs a fit.
- Parameters:
kind (str) –
'kinetics'(default) for the latest kinetic fit, or'steady_state'for the latest steady-state fit.- Returns:
Keyed by dataset name. Each value has
parameters(the parameter labels, e.g.'Kd [µM]','k_off [1/s]','Smax 1'or, for per-trace amplitudes,'Smax (0.13 µM)') andmatrix(rows of correlations in the same order). Entries are null when a parameter’s variance could not be estimated.- Return type:
dict
- mcp_pykingenie.tools._pykingenie.create_export_df(export_type: str = 'raw') list[dict[str, Any]][source]
Return exported PyKinGenie association/dissociation traces as JSON records.
This calls
PY_KINETICS.create_export_dffor all generated fitting objects. Raw export returns the measured association and dissociation signals; fitted export returns fitted curves afterrun_kinetics_fittinghas been called.- Parameters:
export_type (str) – Signal type to export. Accepts
'raw','fit', or'fitted'.'fitted'is normalized to PyKinGenie’s'fit'spelling.- Returns:
JSON records for a DataFrame with exported trace points.
- Return type:
str
- mcp_pykingenie.tools._pykingenie.list_experiment_properties(variable: str, fittings: bool = False) list[Any][source]
Get a PyKinGenie property from all experiments or fittings.
This is a direct wrapper around
PY_KINETICS.get_experiment_properties.- Parameters:
variable (str) – The attribute to retrieve, e.g.,
'ligand_concentration','sensor_names', etc.fittings (bool) – If True, returns attributes from the fitting objects instead of the experiments.
- Returns:
A list of values for the specified variable from the experiments or fittings.
- Return type:
list
- mcp_pykingenie.tools._pykingenie.list_experiment_attributes(experiment_name: str) dict[str, Any][source]
Return all stored attributes for one PyKinGenie experiment.
Run this tool only if the user asks for it specifically.
- Parameters:
experiment_name (str) – The name of the experiment to list attributes for. If a number is provided, it will be used to select the experiment by its index.
- Returns:
A dictionary of experiment attributes.
- Return type:
dict