Skip to content

Commit

Permalink
setting up a unified data download handeling
Browse files Browse the repository at this point in the history
  • Loading branch information
patflick committed Oct 23, 2013
1 parent a7adb22 commit 639b97f
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
14 changes: 14 additions & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# This gitignore contains all those data files, which are not kept on the repo
# and thus have to be downloaded automatically or manually (in case registration
# or journal access is needed)

# The temporary download folder:
tmp/


################
# PPIs
#################

# Bossi & Lehner PPI file
ppis/CRG.integrated.human.interactome.txt

13 changes: 13 additions & 0 deletions data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Data Sources
============

Protein-Protein Interaction Networks
------------------------------------

### Bossi & Lehner composite PPI network

From the supplementary section of the paper ["Tissue specificity and the human protein interaction network"](http:https://www.ncbi.nlm.nih.gov/pubmed/19357639).

This can be automatically downloaded via the download_data.sh script.


29 changes: 29 additions & 0 deletions data/download_data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

# This script downloads all publicly available data into the correct folders.
# Run this before using the pipeline.
# Don't forget to download the data, that is not publicly available (see README.md for
# sources and further explainations)

# A few settings
TMP_FOLDER=tmp


# make tmp folder
rm -R $TMP_FOLDER
mkdir -p $TMP_FOLDER


####################
# PPI networks
###################

# 1.) Bossi & Lehner:
BOSSI_URL=http:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2683721/bin/msb200917-s2.zip
BOSSI_ZIP=$TMP_FOLDER/bossi-lehner-suppl.zip

curl -o $BOSSI_ZIP $BOSSI_URL
unzip $BOSSI_ZIP -d $TMP_FOLDER
cp $TMP_FOLDER/CRG-human-interactome/CRG.integrated.human.interactome.txt ppis/


0 comments on commit 639b97f

Please sign in to comment.