Dear Prasun,My main program is in PERL and I am calling OPENBABEL by installing it on my PC and using the system command on UNIX. e.g. system("babel -i pdb input file -o cif output file");Same thing I wanted for cctbx. Since it does alot of other things along with unitcell generation, I wanted to have the relevant part of cctbx.I wanted to make binary of that part, so that I can call it from the main program.I got it this time, sorry for being rather thick on that one!The easiest is definitively to follow Graeme's excellent advice.Let me spell it out with more details:1. Grab a distro of the cctbx that works on the machine you targetat http://cci.lbl.gov/cctbx_build and install it.Actually, since your main program is written in Perl, it would be rathereasy to figure out which OS it is running on, and then to deducewhich installer to download, and finally to install the cctbx on-the-flyas the program launches for the first time. That way the same Perl codewould run on a wide range of Linuxes and versions of MacOS, and evenon Windows if you bundle Perl with your program (you would not needto bundle Python as the cctbx installer does that for you on Windows).2. system "/path/to/cctbx_build/bin/cctbx.python", "script_of_yours.py";* cctbx_build is one of the directory created by the cctbx installer;again rather easy to have your Perl program find it if it installedthe cctbx in the first place!* script_of_yours.py would be a Python script you would deviseto generate unit cells: you would be much more productive writing thatin Python than targeting the cctbx C++ interface, as Graeme and I havealready pointed out.HtH,Luc
_______________________________________________
cctbxbb mailing list
cctbxbb@phenix-online.org
http://phenix-online.org/mailman/listinfo/cctbxbb