-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
|
||
echo "Downloading the data to ./examples/ ..." | ||
wget -c -O ./examples/data.tar.gz https://zenodo.org/record/7995778/files/data.tar.gz?download=1 && cd examples && tar -xzvf data.tar.gz && cd .. && echo "Done" | ||
|
||
echo "Downloading the model weights ..." | ||
wget -c -O models.tar.gz https://zenodo.org/record/7995778/files/models.tar.gz?download=1 && tar -xzvf models.tar.gz && echo "Done" | ||
|
||
|
||
## check dnabert | ||
echo "Preparing the DNABERT weights ..." | ||
test -d ./models/dnabert || mkdir -p ./models/dnabert | ||
cd ./models/dnabert | ||
for k in 3 4 5 6; do | ||
if [ ! -e "${k}-new-12w-0" ]; then | ||
if [ -e "${k}-new-12w-0.zip" ]; then | ||
unzip "${k}-new-12w-0.zip" && echo "unzip: ${k}-new-12w-0.zip -> ${k}-new-12w-0" | ||
else | ||
echo "NOTE: Users should manually download the weights of DNABERT${k} from https://github.com/jerryji1993/DNABERT and decompress it to ./models/dnabert/" | ||
fi | ||
fi | ||
done |