Skip to content

Commit 278e3a9

Browse files
committed
Fixed random pdb
1 parent 1999cd4 commit 278e3a9

32 files changed

+109133
-390533
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ the algorithms.
1818

1919
To run: bash genRandomStructures.sh numStructures
2020

21-
Defaults: numStructures: 50
21+
Defaults: numStructures: 24
2222

2323
Note that if you run this script twice it will not add additional pdB files to the
2424
folder if there are already numStructures in the folder.

getRandomStructures.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
mkdir -p ./random_pdb_structures
33
cd ./random_pdb_structures
44

5-
numStructures=24
6-
#numStructures=$1
5+
numStructures=${1:-24}
76

87
while [ $(ls | wc -l) -lt $numStructures ]
98
do
109
ID=""
1110
# Generates a random ID to attempt to download from PDB
12-
ID=$ID$(cat /dev/urandom | LC_CTYPE=C tr -dc '1-9'| fold -w ${1:-1} | head -n 1)
13-
ID=$ID$(cat /dev/urandom | LC_CTYPE=C tr -dc 'A-Z0-9'| fold -w ${1:-3} | head -n 1)
11+
ID=$ID$(cat /dev/urandom | LC_CTYPE=C tr -dc '1-9'| fold -w 1 | head -n 1)
12+
ID=$ID$(cat /dev/urandom | LC_CTYPE=C tr -dc 'A-Z0-9'| fold -w 3 | head -n 1)
1413
echo $ID
1514
# Attempts to download the PDB structures for the corresponding ID. If the ID was
1615
# invalid continue.

random_pdb_structures/1CRA.pdb

Lines changed: 2789 additions & 0 deletions
Large diffs are not rendered by default.

random_pdb_structures/1E7A.pdb

Lines changed: 0 additions & 9992 deletions
This file was deleted.

random_pdb_structures/1MJK.pdb

Lines changed: 0 additions & 2132 deletions
This file was deleted.

random_pdb_structures/1PXS.pdb

Lines changed: 4094 additions & 0 deletions
Large diffs are not rendered by default.

random_pdb_structures/1SAH.pdb

Lines changed: 73332 additions & 0 deletions
Large diffs are not rendered by default.

random_pdb_structures/1TFT.pdb

Lines changed: 0 additions & 2207 deletions
This file was deleted.

random_pdb_structures/2IXM.pdb

Lines changed: 0 additions & 3065 deletions
This file was deleted.

random_pdb_structures/2SKE.pdb

Lines changed: 0 additions & 7647 deletions
This file was deleted.

0 commit comments

Comments
 (0)