move from general learn repo

This commit is contained in:
2022-10-15 14:06:23 -07:00
commit f5a65867e3
12 changed files with 192885 additions and 0 deletions

21
scripts/blast-tasks.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $DIR/..
# Download
if [ ! -f data/swissprot.fasta ]; then
wget ftp://ftp.ncbi.nih.gov/blast/db/FASTA/swissprot.gz
gunzip swissprot.gz
mv swissprot data/swissprot.fasta
rm -f swissprot.gz
else
echo skipped: data/swissprot.fasta already exists
fi
# if [ ! -f data/swissprot.fasta.pdb ]; then
# makeblastdb -in data/swissprot.fasta -input_type fasta -title swissprot -dbtype prot
# else
# echo skipped: swissprot DB already exists
# fi
(cd data && blastp -query brca1.fasta -db swissprot.fasta -outfmt 5 > ../output/brca1_swissprot_out.xml)