Package: opencarp-analyzer
OpenCARP-Analyzercreates a list of csv-formatted files for each ion channel and current with inbuiltopencarp-analyzercommand and then plots them as line graph withopencarp-plottercommand.OpenCARP-AnalyzerData generation module_____________________________________________________
OpenCARP Analyzer
Extracts data and multiple txt files from Trace data created by openCARP at once.
_____________________________________________________
usage: analyzer.py [-h] [-c COLUMNS [COLUMNS ...]] [-t TRACE] [-i IION [IION ...]] [-s [SUFFIX]] [-v [VERSION]]

optional arguments:
  -h, --help            show this help message and exit
  -c COLUMNS [COLUMNS ...], --columns COLUMNS [COLUMNS ...]
                        Name of files that contain header data
  -t TRACE, --trace TRACE
                        Trace data file, e.g. Trace_0.dat
  -i IION [IION ...], --iion IION [IION ...]
                        Ion you want to visualize, e.g. -i i_Ks
  -s [SUFFIX], --suffix [SUFFIX]
                        Suffix to be added behind every exported file name.
  -v [VERSION], --version [VERSION]
                        Displays current version of the scriptOpenCARP-PlotterData visualization module_____________________________________________________
OpenCARP Plotter
Plots multiple txt files created by opencarp at once.
_____________________________________________________
usage: plotter.py [-h] [-f FILES [FILES ...]] [-o OUT] [-i IGNORE [IGNORE ...]] [-t TITLE [TITLE ...]]
                  [-l LEGEND [LEGEND ...]] [-xlabel XLABEL [XLABEL ...]] [-ylabel YLABEL [YLABEL ...]]
                  [-xlim XLIM [XLIM ...]] [-ylim YLIM [YLIM ...]] [-custom CUSTOM [CUSTOM ...]] [-v [VERSION]]

optional arguments:
  -h, --help            show this help message and exit
  -f FILES [FILES ...], --files FILES [FILES ...]
                        Files to Plot
  -o OUT, --out OUT     Output image name
  -i IGNORE [IGNORE ...], --ignore IGNORE [IGNORE ...]
                        Ignores a file name if this text exists in file
  -t TITLE [TITLE ...], --title TITLE [TITLE ...]
                        Title of plot
  -l LEGEND [LEGEND ...], --legend LEGEND [LEGEND ...]
                        Legend location in plot. Options: BEST,UPPER RIGHT,UPPER LEFT,LOWER LEFT,LOWER
                        RIGHT,RIGHT,CENTER LEFT,CENTER RIGHT,LOWER CENTER,UPPER CENTER,CENTER
  -xlabel XLABEL [XLABEL ...]
                        Label for x-Axis in plot
  -ylabel YLABEL [YLABEL ...]
                        Label for y-Axis in plot
  -xlim XLIM [XLIM ...]
                        Limit for x-Axis, start and end separated by space.
  -ylim YLIM [YLIM ...]
                        Limit for y-Axis, start and end separated by space.
  -custom CUSTOM [CUSTOM ...]
                        Kwargs for matplotlib
  -v [VERSION], --version [VERSION]
                        Displays current version of the scriptsInstallationInstall current version of this toolkit usingpip install opencarp-analyzeror usingpip install git+https://github.com/regmibijay/opencarp-analyzerUsageAfter installation, make sure your pip installation site is in your PATH. If so, you will be able to useopencarp-analyzerandopencarp-plotterfrom CLI.Examplesopencarp-analyzer -c header1.txt header2.txt -t Trace_0.dat -i i_Ks V i_NCXwill readheader1.txtandheader2.txtand combine  column names so content ofheader1.txtis beforeheader2.txt. After that it readsTrace_0.datand creates a dataframe with given column names. Then the giveni_Ks,Vandi_NCXfiles are generated in.txtformat with respective values fromTrace_0.dat.opencarp-plotter -f data/i_*.txt data_2/*.txt -i MurineMouse header -t Comparision of voltages in mV -legend upper rightwill readdatafolder and extract all the files containingi_in the name and.txtextension. Then it will search for*.txtfiles indata2folder and make a list of all files, from which all files containing eitherMurineMouseorheaderin filename are omitted. Now we create a plot with title ofComparision of voltages in mVand legends in upper right corner.To DoCurrent features being considered:color-palettesto specify custom colors for each line.If you want certain features, feel free to open afeature request.