<jupyter_start><jupyter_text>LSPR sensor response to BSALSPR biosensors detect a target molecule by monitoring plasmon resonance frequency changes due to the proximity of the target to the metallic nanoparticle. We present calculations that shows how our approach can be used to model the response of LSPR biosensors.- we use real protein model pdb, pqr, mesh- locate 2 BSA at different distance +/- of different axisOur sensor is a spherical nanoparticle of 8 nm, and the incident electric field is -0.0037 $[C]/([{\unicode{x212B}}^2][\epsilon_0])$<jupyter_code>import numpy
from matplotlib import pyplot, rcParams
%matplotlib inline
import os

import lspr_response_helper<jupyter_output><empty_output><jupyter_text>Running the next line we are generating the images taht let us visualize the BSA proteins location respect to the sensor.<jupyter_code>#! python visualization_images.py<jupyter_output><empty_output><jupyter_text>Importing data<jupyter_code>s_file = 'data/BSA_sensorR80_d=infty_ef0.0037.txt'

p_file_2pz = 'data/BSA_sensorR80_2pz_d=1_00_ef0.0037.txt'
p_file_2px = 'data/BSA_sensorR80_2px_d=1_00_ef0.0037.txt'
p_file_2py = 'data/BSA_sensorR80_2py_d=1_00_ef0.0037.txt'<jupyter_output><empty_output><jupyter_text>Location : +/- 1 nm  in z-axis<jupyter_code>fig_name_2pz = '2pz_00_ef-0.0037_R8nm'

lspr_response_helper.report(s_file, p_file_2pz)
file_ext, file_name = lspr_response_helper.check_file_exists(fig_name_2pz, f_ext='pdf')

lspr_response_helper.report(s_file, p_file_2pz, 
                            file_name=file_name, file_ext=file_ext, paper=True)<jupyter_output><empty_output><jupyter_text>Location : +/- 1 nm  in x-axis<jupyter_code>fig_name_2px = '2px_00_ef-0.0037_R8nm'

lspr_response_helper.report(s_file, p_file_2px)
file_ext, file_name = lspr_response_helper.check_file_exists(fig_name_2px, f_ext='pdf')

lspr_response_helper.report(s_file, p_file_2px, 
                            file_name=file_name, file_ext=file_ext, paper=True)<jupyter_output><empty_output><jupyter_text>Location : +/- 1 nm  in y-axis<jupyter_code>fig_name_2py = '2py_00_ef-0.0037_R8nm'

lspr_response_helper.report(s_file, p_file_2py)
file_ext, file_name = lspr_response_helper.check_file_exists(fig_name_2py, f_ext='pdf')

lspr_response_helper.report(s_file, p_file_2py, 
                            file_name=file_name, file_ext=file_ext, paper=True)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0890840652446675, 'fraction_numerical': 0.040568799665411964, 'mean_word_length': 6.204819277108434, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '301683', 'license': 'CC-BY-3.0', 'n_tokens_mistral': 969, 'n_tokens_neox': 886, 'n_words': 168, 'path': 'paper/BSA_silver_NP_LSPR_response/LSPR_response_to_BSA.ipynb', 'repo_name': 'barbagroup/pygbe_lspr', 'size': '2391'}