download_prepare.sh 604 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/bin/bash
# file: prepare_data.sh
#
# Program: Downloads and prepares data containing the swissprot dataset.
#
# Author: Thomas Huetter

# create target folder and change into it
mkdir data
cd data

# download the data files
wget ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.xml.gz

# gunzip the data to uniprot_sprot.xml
gunzip uniprot_sprot.xml.gz

# remove gzip file
rm -rf uniprot_sprot.xml.gz 

# next steps can be seen in README.md
# convert file to bracket notation

# select random line with random_lines.py and sort them with sort_dataset.sh