On 13/07/18 13:58, Eric T wrote:
> I am working to get Reactome Pengine (paper
> <
https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/bty181/4956665>)
> (SWISH demo
> <
https://swish.swi-prolog.org/?code=https://raw.githubusercontent.com/samwalrus/reactome_notebook/master/reactome_pengine.swinb>)
> (Reactome <
https://reactome.org/>) running locally on my Windows 10
> laptop. I can get SWI-Prolog <
http://www.swi-prolog.org/> installed and
> working. Trying to install and get both Pengines (SWI-Prolog
> <
http://www.swi-prolog.org/pldoc/doc_for?object=section%28%27packages/pengines.html%27%29>)
> (GitHub <
https://github.com/SWI-Prolog/packages-pengines>) and SWISH
> (GitHub <
https://github.com/SWI-Prolog/swish>) is not working. I can
> make it part of the way through the install steps but then the
> instructions have me totally confused
> <
https://github.com/SWI-Prolog/swish#download-as-zip>, e.g. make bower-zip
I think you should aim at SWISH. Core Pengines are part of the
SWI-Prolog releases. You should get the basics running by
- Install SWI-Prolog 7.7.x (currently .18) for Windows
- Clone the swish repo (or download the zip and unpack it)
- Download the bower dependencies from
http://www.swi-prolog.org/download/swish/swish-bower-components.zip
and unpack it such that it creates web/bower_components in the
unpacked SWISH repo.
Double-click '
run.pl' should make it run. The big problem will be
the R connection. I'm not saying it cannot be done, but that is
likely to get a lot of work without Linux. Possibly the WSL subsystem
will do that.
See also below
>
> Note: I am aware of the Docker images, but while Docker does run on my
> machine and while Pengines on Docker does run, I can not connect to it
> via a browser. Also my goal after getting Reactome Pengine running is
> see if I can bring in the database <
https://reactome.org/download-data>
> locally, so in the end using Docker is just a step in the wrong
> direction that would have to be undone latter.
> **//___^
> Note: To get Linux code running on Windows 10 I will not be using Docker
> <
https://www.docker.com/> or a VM
> <
https://en.wikipedia.org/wiki/Virtual_machine#Full_virtualization> such
> as VM-Ware <
https://www.vmware.com/>, but WSL
> <
https://docs.microsoft.com/en-us/windows/wsl/about> (Windows Subsystem
> for Linux).
>
> I am able to install <
http://www.swi-prolog.org/build/unix.html>
> SWI-Prolog (stable version <
https://github.com/SWI-Prolog/swipl>) on WSL
> (Ubuntu
> <
https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6?activetab=pivot%3aoverviewtab>)
> via building from source code and it does work, so first step
> successfully completed.**//___^
>
> The current questions I have are
>
> 1.Based on the SWISH documentation
> <
https://github.com/SWI-Prolog/swish#get-the-latest-swi-prolog> the
> version of SWI-Prolog to be used is the development version (swipl-devel
> <
https://github.com/SWI-Prolog/swipl-devel>) and not the stable version
> (swipl <
https://github.com/SWI-Prolog/swipl>). Which one should be
> used?**//___^
> **//___^
Get 7.7.18
> 2. It seems that Pengines and SWISH build instructions
> <
https://github.com/SWI-Prolog/swish#other-dependencies> imply, e.g.
> sudo <
https://linux.die.net/man/8/sudo>, that it should be done on a
> Linux <
https://www.linux.org/> system, e.g. Ubuntu
> <
https://www.ubuntu.com/>, and that trying to build on Windows
> <
https://en.wikipedia.org/wiki/Microsoft_Windows> hasn't been tried and
> is not recommended. Is this a true statement?
You don't need sudo if you do not need admin rights.
> 3.It seems that Pengines and SWISH are not installed as packages and
> must be installed by building from source and thus SWI-Prolog must be
> installed by building from source so the necessary files are present
> when building Pengines and SWISH. Is this a true statement?
You need to use the recommended installation route using the `build`
script. You need most packages. You may skip xpce and jpl to reduce
dependencies. They will be skipped anyway if the dependencies are not
present.
> 4. After SWI-Prolog is installed and running which should be added next:
> Pengines or SWISH?
> e.g. Install Pengines then SWISH, or install SWISH then Pengines.
Pengines is part of the above installation. SWISH is seperate.
> 5. Are there more detailed instructions online for how to do this for
> Pengines and/or SWISH other than those on GitHub?
No. Well, you can look at the docker-swish repo. The Dockerfile
does it all for you.
Cheers --- Jan
> I know I will have more questions after this, but no sense is asking a
> parade of questions when these few will cut out others and get me started.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWI-Prolog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swi-prolog+...@googlegroups.com
> <mailto:
swi-prolog+...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/swi-prolog.
> For more options, visit
https://groups.google.com/d/optout.