niels-bohr-institute-xns-structbiophys / capp Goto Github PK
View Code? Open in Web Editor NEWCalculation Pair distance distribution functions for Proteins (in the PDB format)
Calculation Pair distance distribution functions for Proteins (in the PDB format)
Hello.
I've just successfully compiled an executable from your C code for Windows 10 (64-bit), without any code modifications. I could share if anyone need.
Nevertheless, some minor changes were done in python module, in part where OS and path is checked. Here is the block with the changes:
### check OS and use correct binary. Check location of binary
programpath = os.path.dirname(os.path.realpath(__file__))
if platform.system() == "Darwin":
capp_version = "capp_mac"
elif platform.system() == "Windows":
capp_version = "capp/capp.exe"
if programpath.count(" ") > 0:
print("")
print("****************************************************************************************")
print("Found path is: ", programpath)
print("Path must not contain spaces!")
print("****************************************************************************************")
sys.exit(1)
else:
capp_version = "capp"
capp_executable_location = programpath + "/" + capp_version
print(capp_executable_location)
if os.path.exists(capp_executable_location):
print("CaPP initiated correctly")
elif capp_version == "capp":
print("")
print("****************************************************************************************")
print(" Cannot find the executable: %s. It should be in the same folder as CaPP.py " % capp_version)
print(" If you are not running MacOS, then:")
print(" 1) compile the source code Mainfunction.c with output called capp")
print(" e.g. gcc Mainfunction.c -o capp")
print(" 2) plase the executable, capp, in the same folder as CaPP.py")
print(" 3) re-run CaPP with: python CaPP.py")
print("****************************************************************************************")
print("")
sys.exit(1)
elif capp_version == "capp/capp.exe":
print("")
print("****************************************************************************************")
print("Could not find Windows executables. Should be placed in here ", programpath + "/" + capp_version)
print("****************************************************************************************")
sys.exit(1)
else:
print("")
print("****************************************************************************************")
print(" Cannot find the executable: %s. It should be in the same folder as CaPP.py " % capp_version)
print("****************************************************************************************")
print("")
sys.exit(1)
With best regards,
Alexander
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.