edp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
edp [2023/04/11 14:00] – [Brief Instruction to calculate electron density profile of multi-component lipids] edit | edp [2024/03/21 18:39] (current) – edit | ||
---|---|---|---|
Line 7: | Line 7: | ||
Updated (2021): Robert Allsopp (Combining the .sim and renaming atoms) | Updated (2021): Robert Allsopp (Combining the .sim and renaming atoms) | ||
Updated (2023): Abhi Senthilkumar (Python scripts to automatically rename atoms and combine .sim files into xlsx) | Updated (2023): Abhi Senthilkumar (Python scripts to automatically rename atoms and combine .sim files into xlsx) | ||
+ | Updated (2023): Joshua Lucker (Clarification on Step 6) | ||
Example of analysis: {{ :: | Example of analysis: {{ :: | ||
Line 88: | Line 89: | ||
</ | </ | ||
- | 2.2 Update the //psfrtf.str// file to have the correct location of the psf and crd file.\\ | + | 2.2 Update the //psfcrd.str// file to have the correct location of the psf and crd file.\\ |
2.3 Update lipid (file) name in // | 2.3 Update lipid (file) name in // | ||
Note: components2.scr and 1_run2.csh are not needed for systems with only a few kinds of lipids. Also, use lower case for the lipid names not upper case. | Note: components2.scr and 1_run2.csh are not needed for systems with only a few kinds of lipids. Also, use lower case for the lipid names not upper case. | ||
Line 109: | Line 110: | ||
**New method of renaming the atoms and compiling in an excel file** | **New method of renaming the atoms and compiling in an excel file** | ||
- | - First edit the script **format.py**. Edit the LIPID_NAMES and LIPID_ABBRS lists. The script automatically changes the .cmp and.sim files, but this can be changed by editing the FILE_ENDINGS list. One side effect is that the comments at the start of the file will also be targeted by the regex, but this effect is minimal. The script will substitute all ' | + | - First edit the script **format.py**. Edit the LIPID_NAMES and LIPID_ABBRS lists. The script automatically changes the .cmp and.sim files, but this can be changed by editing the FILE_ENDINGS list. One side effect is that the comments at the start of the file will also be targeted by the regex, but this effect is minimal. The script will substitute all ' |
- | - Next, edit the script **generate_excel_file.py**. Edit the LIPIDS list to add the lipid.sim files you want to compile. If in the previous step you generated new files, make sure to set USE_NEW_FILES to True. Run the script with **python generate_excel_file.py** | + | - Next, edit the script **generate_excel_file.py**. Edit the LIPIDS list to add the lipid.sim files you want to compile. If in the previous step you generated new files, make sure to set USE_NEW_FILES to True. If this is the first time you have run this, you will need to install xlsxwriter for python. Do this with the following command: **pip install %%--%%user XlsxWriter**. Then, run the script with **python generate_excel_file.py** |
- This will generate an excel file titled **sim_data.xlsx** along with .csv files for each lipid. | - This will generate an excel file titled **sim_data.xlsx** along with .csv files for each lipid. | ||
**Old method of renaming atoms and compiling in an excel file** | **Old method of renaming atoms and compiling in an excel file** | ||
Line 211: | Line 212: | ||
// | // | ||
- | Additional information for further understanding, | + | Note (please read): when the each neutron scattering file is opened, the **scattering length** window will pop out with automatically updated NSL (neutron scattering length) of D which are defined in the experimental data file. If the window doesn' |
## redefinition of scattering power for D such that water corresponds to 50% D2O \\ | ## redefinition of scattering power for D such that water corresponds to 50% D2O \\ | ||
#SLwin \\ | #SLwin \\ | ||
Line 217: | Line 218: | ||
#setRHO_wat N 2.915e-006 \\ | #setRHO_wat N 2.915e-006 \\ | ||
+ | As a note if this does not occur, go to the scattering length window and change the deuterium number in the NSL column manually based on the equation: D=frac_water*D(water) + frac_d2o*D(D2O), | ||
+ | |||
+ | // | ||
2) Update/ | 2) Update/ | ||
- | **Part | + | **Part |
We want to re-plot since the graph in SIMtoEXP is not well formatted for publishing.(e.g. Only one curve is showing at one time; the axe titles are missing etc.). \\ | We want to re-plot since the graph in SIMtoEXP is not well formatted for publishing.(e.g. Only one curve is showing at one time; the axe titles are missing etc.). \\ | ||
1) Export the simulated X-ray FFs and Neutron FFs data from SIMtoEXP by go to **Tools-> | 1) Export the simulated X-ray FFs and Neutron FFs data from SIMtoEXP by go to **Tools-> |
edp.1681236027.txt.gz · Last modified: 2023/04/11 14:00 by edit