JAR files for MacOS, Windows and Linux are available. This section provides instructions for other platforms
A build on another platform should work, subject to checking that the right dependences for JavaFX libraries are used. The way the project is set up, Maven should automatically find them.
To run the version that does not include dependences on the command line, you need to download a version of the JavaFX SDK.
Assuming the JavaFX library is in directory named in shell variable $JAVAFX
and your JAR file is in $JARF
, you can invoke it as follows:
java --module-path $JAVAFX --add-modules javafx.controls,javafx.fxml,javafx.swing -jar $JARF
Note: the library path should go to the actual contents so if e.g. the path is /usr/local/lib/JavaFX/lib
then include the trailing part of the path after /lib
. In my examples, the libraries are not in another layer of lib
directory as this is implied by the rest of the path.
There is a Bash script genesis.sh
in this repository (in scripts
) that can run the above. To invoke, create environment variables that the script will use (it has defaults if you don’t do this). To the the above effect (modifying the paths to suit your install):
export JAVAFX=/usr/local/lib/JavaFX-21
export JARF=$HOME/Applications/Genesis2-2.4b-Generic.jar
Note: in Unix shell scripting, you can create a shell variable wuthout using the word EXPORT
but the value will not be visible to a child process, i.e., the script will not see it. The JavaFX path should contain the actual library files – if they are in a directory called lib
append that to the path.
git clone -b Philip https://github.com/h3abionet/genesis2.git
git
– the top-level directory (folder) should be called genesis
and NetBeans will recognize this as a projecttarget
directory (folder); you should find two JAR files:
with-dependencies.jar
should be possible to launch from the file browser (Finder on a Mac)genesis.sh
script (or a variation suitable for Windows)Data to test functionality is available in the repository in directory agm-demo/agm-genesis/sample-data/
(Windows users can rotate the slashes to suit).
Data file types available to open are:
.g2f
– a Genesis2 project (the first thing to open, unless you want to start from scratch); you can then use
.eigenvec
– PCA file.Q
– Admixture file
.fam
– a FAM file.phe
– phenotype file.eigenvec
) before anything is graphed