Skip to content

Commit 3e62606

Browse files
szymczakpauprokotg
andauthored
revised figures (#3)
* Move figures to a separate folders * Add joker * add dbaasp parsing * remove old scripts for old figures, add new scripts * Add source data to the figure scripts, clean-up and update wrt to manuscript * Add logo to readme * Remove unnecesary logos * add benchmarking, thresholding, joker data; remove empty files, move dbaasp data to dvc * remove comments in scripts notebooks; optimize imports; move more fasta to dvc Co-authored-by: Tomasz Grzegorzek <tomaszgrzegorzek@outlook.com>
1 parent 88f4d30 commit 3e62606

19 files changed

+7412
-2834
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
2+
<img align="right" src="static/Frog_noOutline_2.png" width="200">
3+
14
# HydrAMP: a deep generative model for antimicrobial peptide discovery
25

6+
37
### Data
48

59
Data is available via [DVC](https://dvc.org/) and can be obtained by running following commands within repo root directory:

data.dvc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
outs:
2-
- md5: 49f768c5257295a7c498e836d031b1ec.dir
3-
size: 17708470
4-
nfiles: 8
5-
path: data
1+
outs:
2+
- md5: 9c332227e7ff90bd67cc4c9eee36eab8.dir
3+
size: 30566627
4+
nfiles: 20
5+
path: data

results.dvc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
outs:
2-
- md5: 7c3243e85401768864f7a376c801b23c.dir
3-
size: 872771514
4-
nfiles: 13
5-
path: results
1+
outs:
2+
- md5: 9799ab4b7688afd8a64d2000d24cc7a1.dir
3+
size: 872974869
4+
nfiles: 16
5+
path: results

scripts/dbaasp/dbaasp.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
N=8
3+
END=18894 # Number of peptides in DBAASP as per 02.03.2022
4+
DIR=../../temp_data/json
5+
6+
mkdir -p $DIR
7+
8+
9+
for i in $(seq 1 $END); do
10+
(
11+
curl -X GET "https://dbaasp.org/peptides/$i" -H "accept: application/json">$DIR/$i.json
12+
if [[ "$?" -eq 0 ]]; then
13+
exit 0
14+
fi
15+
) &
16+
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
17+
# now there are $N jobs already running, so wait here for any job
18+
# to be finished so there is a place to start next one.
19+
wait -n
20+
fi
21+
done
22+
23+
wait
24+
25+
echo "all done"
26+
27+
find $DIR -size 0 -print -delete
28+

0 commit comments

Comments
 (0)