Skip to content

Commit

Permalink
Release helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
mikessh committed Feb 2, 2021
1 parent 712acd9 commit ac02b46
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Compile database

cd src/
groovy -cp . BuildDatabase.groovy
cd ..

# Summary HTML

cd summary/
Rscript -e "rmarkdown::render('vdjdb_summary.Rmd')"
groovy MakeEmbedableHtml.groovy
cd ..


# Compute motifs
cp -r database/*.txt ../vdjdb-motifs/vdjdb_dump/

cd ../vdjdb-motifs/
Rscript -e "rmarkdown::render('compute_vdjdb_motifs.Rmd')"
cp cluster_members.txt ../vdjdb-db/database/
cp motif_pwms.txt ../vdjdb-db/database/
cd ../vdjdb-db/

# Gather database

cd database/
DD=`date +%F`
mkdir vdjdb-$DD
cp ../summary/vdjdb_summary_embed.html vdjdb-$DD/
cp *.txt vdjdb-$DD/

# Update latest version

RR="https://github.com/antigenomics/vdjdb-db/releases/download/$DD/vdjdb-$DD.zip"
RRP=`cat ../latest-version.txt | head -n 1`

if [[ $RRP != $RR ]];
then
echo "Releasing"
echo $RR | cat - ../latest-version.txt > temp && mv temp ../latest-version.txt
else
echo "Overwriting"
fi

cp ../LICENSE.txt vdjdb-$DD/
cp ../latest-version.txt vdjdb-$DD/

# ZIP together

zip -rj vdjdb-$DD.zip vdjdb-$DD/

echo "scp `hostname`.cdr3.net:`pwd`/vdjdb-$DD.zip ."

0 comments on commit ac02b46

Please sign in to comment.