Skip to content

Instantly share code, notes, and snippets.

@okeefm
Created June 18, 2020 15:09
Show Gist options
  • Save okeefm/41cc7ad187b9f2acbbcda58af342bfed to your computer and use it in GitHub Desktop.
Save okeefm/41cc7ad187b9f2acbbcda58af342bfed to your computer and use it in GitHub Desktop.
Metamorphosys Run Batch Script for Inferno
@echo off
REM
REM Set Inferno base dir
REM
set INFERNODIR=C:\Inferno\inferno-program-1.0.0P
REM
REM Set the maximum amount of memory to assign to the mmsys script
REM
set MEMMAX=6G
REM
REM Specify directory containing .RRF or .nlm files
REM
set METADIR="%INFERNODIR%\tmp\terminology\umls\2019AB-full"
REM
REM Specify output directory
REM
set DESTDIR="%INFERNODIR%\tmp\terminology\umls_subset"
REM
REM Specify MetamorphoSys directory
REM
set MMSYS_HOME="%INFERNODIR%\tmp\terminology\umls\2019AB-full"
REM
REM Specify CLASSPATH
REM
set CLASSPATH=%MMSYS_HOME%;%MMSYS_HOME%\lib\jpf-boot.jar
REM
REM Specify JAVA_HOME
REM
set JAVA_HOME="%MMSYS_HOME%\jre\windows64"
REM
REM Specify configuration file
REM
set CONFIG_FILE="%INFERNODIR%"\resources\terminology\inferno.prop
REM
REM Call Batch MetamorphoSys
REM
if exist "%DESTDIR%" @RD /S /Q "%DESTDIR%"
if not exist "%DESTDIR%" md "%DESTDIR%"
cd %MMSYS_HOME%
%JAVA_HOME%\bin\java -Djava.awt.headless=true -cp %CLASSPATH% -Djpf.boot.config=%MMSYS_HOME%\etc\subset.boot.properties -Dlog4j.configuration=%MMSYS_HOME%\etc\log4j.properties -Dinput.uri=%METADIR% -Doutput.uri=%DESTDIR% -Dmmsys.config.uri=%CONFIG_FILE% -Xms300M -Xmx%MEMMAX% org.java.plugin.boot.Boot
cd %INFERNODIR%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment