I want to convert .raw basis sets into a .BASIS file. I am facing difficulties in generating the .BASIS file using makebasis.in provided by LCModel package itself. I have verified that the paths in the makebasis.in file exist and are correct.
I am using CentOS Linux release 7.9.2009 x86_64, and the version of LCModel I am using is lcm-32 v6.3. The reason for using lcm-32 is that lcm-64 could not function properly after installation, and after installing lcm-32, it worked fine.
Has anyone encountered such a situation? I would greatly appreciate your assistance.
The first part of the error message suggests that one of the files mentioned in your makebasis.in could not be found⌠I guess it might be the output folder
If your makebasis.in, check that the folders mentioned in filbas and filps exist. It looks like you may have specified these as relative paths, but youâre running makebasis from within the bin subfolder so itâs not finding them.
So: try specifying the full path for all these items in your makebasis.in⌠probably something like: /home/yushan/.lcmodel/test/output/basis.ps
If that doesnât help, make sure the folder actually exists (mkdir -p ~/.lcmodel/test/output), and also check the other filraw lines (.RAW files your makebasis.in is referring to).
Oh. I just noticed this. Maybe double-check the relative paths still, but if thatâs all fine perhaps you could share the first couple of âparagraphsâ from your makebasis.in file?
Thank you Alex! Itâs exactly the reason that caused the problem.
By the way, if the file path is ~/.lcmodel/test/output/basis.ps, it still canât be found. The command only runs successfully when the file path is like /home/yushan/.lcmodel/test/output/basis.ps.
Yes, my basis sets are generated by FID-A simulations. I tried the fit_makeBasis function and the io_writelcmBASIS function. Itâs convenient.
Here are a few notes about creating MEGA-PRESS basis sets, just for reference.
1.As the last step of FID-A simulation, save both outON and outOFF in one .mat file for each metabolite.
2.Check the Matlab paths. Remove FID-A folders. ďźFunctions such as 'op_gaussianPeak' share the same name in FID-A and Osprey, but have different content. ďź
3.When using the 'io_writelcmBASIS' function to create âdiffâ and âoffâ basis sets, one may make the following modification:
In the line RF=shift_centerFreq(basisSet,i), change it to RF=shift_centerFreq(basisSet,i,subSpec). For the parameter subSpec, input 1 for âoffâ or 3 for âdiffâ.