In [ ]:
spectra_dir = '/home/rstudio/NMR/spectra/Amastigotes_24_hours_Control'
In [ ]:
%matplotlib inline
%load_ext autoreload
%autoreload 2
import warnings
warnings.filterwarnings("ignore") # ignore some matplotlib warnings
import sys
sys.path.append('/home/rstudio/codes')
from pyBatman import PyBatmanPipeline, load_config, get_db_path, sub_dir_path
from pyBatman.constants import BACKGROUND_DIR, TEMP_DIR, OUTPUT_DIR
In [ ]:
config = load_config()
db = get_db_path()
background_dirs = sub_dir_path(BACKGROUND_DIR)
pipeline = PyBatmanPipeline(background_dirs, config['pattern'], TEMP_DIR, db)
In [ ]:
if spectra_dir is not None:
df, fit_results = pipeline.predict_conc(spectra_dir, config)
pipeline.save_results(spectra_dir, df, fit_results, OUTPUT_DIR)
In [ ]: