Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglenister committed Dec 12, 2017
2 parents c1d8b17 + b08e4e8 commit 49aa06e
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
branches:
only:
- master
- dev-michael

language: python

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git clone https://github.com/RUBi-ZA/MODE-TASK.git
cd MODE-TASK
```

*Compile C++ binaries:*
*C++ scripts are pre-compiled and can be called from within a python environment using their corresponding ANM.py and getEigenVectors.py scripts. To compile the C++ yourself, use the following commands:*
```
sudo apt install g++
g++ -I cpp/src/ ANM.cpp -o ANM
Expand Down
Empty file modified assemblyCovariance.py
100644 → 100755
Empty file.
Empty file modified coarseGrain.py
100644 → 100755
Empty file.
Empty file modified combinationMode.py
100644 → 100755
Empty file.
Empty file modified conformationMode.py
100644 → 100755
Empty file.
Binary file modified getEigenVectors
Binary file not shown.
4 changes: 2 additions & 2 deletions getEigenVectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
parser = argparse.ArgumentParser()

# custom arguments
parser.add_argument("--vt", help="VT matrix file")
parser.add_argument("--vtMatrix", help="VT matrix file")
parser.add_argument("--mode", help="Specify the index of the mode you wish to target")
parser.add_argument("--direction", help="Direction of overlap correction (Default -1)", default="-1")
parser.add_argument("--outdir", help="Directory to generate output to", default="output")
Expand All @@ -33,7 +33,7 @@
sys.exit()

# Run getEigenVectors executable
os.system("./getEigenVectors --vt " + args.vt + " --mode " + args.mode + " --direction " + args.direction + " --outdir " + args.outdir)
os.system("./getEigenVectors --vtMatrix " + args.vtMatrix + " --mode " + args.mode + " --direction " + args.direction + " --outdir " + args.outdir)

else:
print ('No arguments provided. Use -h to view help')
Empty file modified meanSquareFluctuations.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion tests/test_eigen_vectors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ cd ..

g++ -I cpp/input/ getEigenVectors.cpp -o getEigenVectors

./getEigenVectors --vt output/VT_values.txt --mode 1
./getEigenVectors --vtMatrix output/VT_values.txt --mode 1
2 changes: 1 addition & 1 deletion tests/test_eigen_vectors_wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
cd ..

./getEigenVectors.py --vt output/VT_values.txt --mode 1
./getEigenVectors.py --vtMatrix output/VT_values.txt --mode 1
Empty file modified visualiseVector.py
100644 → 100755
Empty file.

0 comments on commit 49aa06e

Please sign in to comment.