Skip to content

Instantly share code, notes, and snippets.

@ihodes
Created May 1, 2014 19:05
Show Gist options
  • Save ihodes/11459074 to your computer and use it in GitHub Desktop.
Save ihodes/11459074 to your computer and use it in GitHub Desktop.
  1. Install JDK 1.7 from oracle (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)
  2. Install IntelliJ (community edition is fine)
  1. Launch, Configure (option on splash screen) -> Plugins -> search for Scala (http://link.isaachodes.io/image/1g1P0K2G1i2A) and install, apply + restart
  2. Clone github repo of ADAM https://github.com/bigdatagenomics/adam (git clone [email protected]:bigdatagenomics/adam.git)
  3. Import project in intellij--choose the cloned repo, then the pom.xml in it to make sure the maven deps and build are imported by IntelliJ (http://link.isaachodes.io/image/3S1X2U2a0V3R)
  1. Configure/use IntelliJ
  • open a file, add line numbers http://link.isaachodes.io/image/2N0a0b3F3o02
  • keyboard/click IDE-specific shortcuts:
    • command-b --- jump to source of symbol at cursor
    • ctrl-j --- type and quick documentation (mini window) at cursor
    • shift-command-i --- miniwindow of source at cursor
    • shift-control-p --- quick type information at cursor
    • right-click on a symbole -> Find Usages to see where symbol is used in the code
  1. Test that everything works (it should) by building the project
  1. Add run configurations + get them running
  1. Script to launch latest version of Adam from command line (put this file in path with name adam):

    #! /bin/bash

    exec java -jar $(ls -tc ~/PATH/TO/ADAM/adam-cli/target/adam-?.*.jar | head -n 1) "$@"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment