Skip to content

Commit

Permalink
Updates to install docs and script
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewCRMartin committed Oct 24, 2017
1 parent aa0b51a commit 09182a0
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 11 deletions.
10 changes: 7 additions & 3 deletions .gitignore
Expand Up @@ -4,6 +4,10 @@ data/consScores/FOSTA/*
data/consScores/BLAST/*
data/IntPred/*.model*
setup.sh
packages/bioptools-1.4.tar.gz
packages/bioptools-1.4/
packages/TCNlib-0.1/
packages/bioptools-*.tar.gz
web/footer.tt
web/header.tt
web/menu.tt
web/Makefile
web/config.cfg
web/index.html
File renamed without changes.
40 changes: 40 additions & 0 deletions 00INSTALL_WebInterface.md
@@ -0,0 +1,40 @@
IntPred Web Server Install
==========================

1. Create a directory in your web hierarchy - e.g.
```/home/httpd/html/intpred2```

2. Clone the IntPred repository into a directory. This will be where
IntPred is installed. It doesn't have to be in the web hierarchy, but
I suggest that it is. e.g.
```
cd /home/httpd/html/intpred2/
git clone git@github.com:ACRMGroup/IntPred.git
```

3. Install IntPred from the cloned directory. e.g.
```
cd /home/httpd/html/intpred2/IntPred
./install.sh
source ./setup.sh
```
You must be root or have sudo permissions to do this. See the notes in
`00INSTALL_CommandLine.txt` (`README.md`) for more details.

4. Change to the `web` sub-directory of IntPred to your web
Create/modify the config.cfg file as required
```
cd /home/httpd/html/intpred2/IntPred/web
emacs config.cfg
```

5. Run the configure script, build and install the web pages:
```
./configure.pl
make
make install
```
See notes in the `web/README.md` file on Apache configuration.



10 changes: 5 additions & 5 deletions install.sh
Expand Up @@ -55,7 +55,7 @@ o conf commit
EOF
fi

if promptUser "Install Perl dependencies including BioPerl?"; then
if promptUser "Install Perl dependencies including BioPerl (for the Perl you are using)?"; then
yes | sudo $PERL -MCPAN -e shell <<EOF
force install CPAN::Meta::Requirements
force install Math::VectorReal
Expand Down Expand Up @@ -92,12 +92,12 @@ EOF
yes | sudo $PERL ./installScripts/installBioperl.pl -perl=$PERL
fi

if promptUser "Download and install the IntPred model file?"; then
if promptUser "Download and install the IntPred model file? (Required for a new install)"; then
# Download the WEKA model file
./installScripts/getIntPredModel.sh
fi

if promptUser "Install TCNlib and dependencies?"; then
if promptUser "Install TCNlib and dependencies? (Required for a new install)"; then
# TCNlib
cd $H/packages
tar xvf TCNlib-${TCNLIBVERSION}.tar.gz
Expand All @@ -106,11 +106,11 @@ if promptUser "Install TCNlib and dependencies?"; then
cd $H/packages/TCNlib-${TCNLIBVERSION}
$PERL ./setup.pl -perl=$PERL

if promptUser "Download and install BLAST database?"; then
if promptUser "Download and install BLAST database? (Required for a new install)"; then
./setup-blastdb -f
fi

if promptUser "Install BiopTools?"; then
if promptUser "Install BiopTools? (Required for a new install)"; then
cd $H/packages
wget $BIOPTOOLSURL
mv V${BIOPTOOLSVERSION}.tar.gz bioptools-${BIOPTOOLSVERSION}.tar.gz
Expand Down
3 changes: 2 additions & 1 deletion web/config_home.cfg
Expand Up @@ -6,9 +6,10 @@ ipbin=${iphome}/bin
pdbdir=/nas/backup/work/newserver/data/pdb
pdbprep=pdb
pdbext=.ent
tcnlibversion=0.1.1

# these are just used during the install
menu=`pwd`/menu_default.tt
header=`pwd`/header_default.tt
footer=`pwd`/footer_default.tt
pdbcache=`pwd`/../packages/TCNlib-0.1/data/pdb-cache
pdbcache=`pwd`/../packages/TCNlib-${tcnlibversion}/data/pdb-cache
3 changes: 2 additions & 1 deletion web/config_ucl.cfg
Expand Up @@ -6,9 +6,10 @@ ipbin=${iphome}/bin
pdbdir=/acrm/data/pdb
pdbprep=pdb
pdbext=.ent
tcnlibversion=0.1.1

# these are just used during the install
menu=`pwd`/menu_default.tt
header=`pwd`/header_default.tt
footer=`pwd`/footer_default.tt
pdbcache=`pwd`/../packages/TCNlib-0.1/data/pdb-cache
pdbcache=`pwd`/../packages/TCNlib-${tcnlibversion}/data/pdb-cache
11 changes: 10 additions & 1 deletion web/index.tt
Expand Up @@ -19,8 +19,17 @@
and specificity at the expense of
sensivity. [<a href='paper/intpred.pdf'>Paper as
submitted</a>][<a href='paper/SupplementaryMaterial.pdf'>Supplementary
Material</a>]
Material</a>][<a href='paper/Datasets.xls'>Datasets</a>]
</p>

<!-- Status Messages -->
<!--
<div class='alert alert-info'>
24.10.17 Apologies! The server had stopped working owing to a change in
where files are stored at the RCSB PDB site. This is now fixed.
</div>
-->

</div>
</div>

Expand Down

0 comments on commit 09182a0

Please sign in to comment.