Haploview can be run from the command line without the display in order to do processing of multiple datasets or quick computation on very large datasets. In order to run Haploview without the display, add the "-nogui" flag. The "-help" flag shows a condensed explanation of all the command line options explained below. Haploview can be run from the command line using:
java -jar Haploview.jar
Print help information.
Command line mode—does not launch display.
Quiet mode—minimizes output to command line.
Outputs logfile information to specified filename (defaults to haploview.log if no name specified)
Specify a fileroot to be used for all output files
Allocate <memsize> megabytes of memory to the Haploview process (default is 512MB).
Specify a genotype input file (or http:// location) in pedigree format. This option works in GUI mode.
Specify a HapMap format input file (or http:// location). This option works in GUI mode.
Specify a PHASE format data input file (or http:// location). This option works in GUI mode.
Specify a PHASE format sample input file (or http:// location). This option works in GUI mode.
Specify a PHASE format legend input file (or http:// location). This option works in GUI mode.
Specify a phased HapMap download. This option works in GUI mode.
Specify a phased input file (or http:// location). This option works in GUI mode.
Specify a marker information file (or http:// location). This option works in GUI mode.
Specify a PLINK or other results file (or http:// location). This option only works in GUI mode.
Specify a map or binary map file (or http:// location). This option only works in GUI mode.
Specify a batch load file.
Specify a block definition file (or http:// location). This will automatically use this block definition for haplotype output.
Specify an analysis track file (or http:// location)
Specify which chromosome these data come from. This is especially critical when analyzing data from the X chromosome or direct HapMap downloads.
Specify which analysis panel to use for phased HapMap downloads.
Specify the start position in kb for phased HapMap downloads.
Specify the end position in kb for phased HapMap downloads.
Specify the HapMap release version for phased HapMap downloads (defaults to 21).
Specify PHASE format inputs using GZIP compression
Specify that the accompanying PLINK file is non-SNP based output. This option only works in GUI mode.
Activate the preloading column filter for PLINK loads. This option only works in GUI mode.
Skip all the genotype data quality checks and uses all markers for all analyses.
Exclude all markers with minor allele frequency below <threshold>, which must be between 0 and 0.5. Default of 0. This option works in GUI mode.
Exclude markers with greater than <integer> Mendelian inheritance errors. Default of 1. This option works in GUI mode.
Exclude markers with less than <threshold> fraction of nonzero genotypes. <threshold> must be between 0 and 1 with a default of 0.5. This option works in GUI mode.
Exclude markers with a Hardy Weinberg p-value less than <threshold>, which ranges from 0 to 1 with a default of 0.001 This option works in GUI mode.
Maximum intermarker distance for LD comparisons (in kilobases). Default is 500. This option works in GUI mode.
Exclude individuals with more than <threshold> fraction missing data, where <threshold> is a value between 0 and 1 with a default of 0.5. This option works in GUI mode.
Generate haplotypes and population frequencies for blocks of <type>, which can be GAB (Gabriel et al), GAM (4 gamete blocks), SPI (solid spine blocks) or ALL (each of the previous 3). The default block type is Gabriel. More information can be found with the blocks help.
Gabriel 'Strong LD' high confidence interval D' cutoff.
Gabriel 'Strong LD' low confidence interval D' cutoff.
Gabriel MAF threshold. Markers below this allele frequency will be skipped in building Gabriel blocks.
Gabriel recombination high confidence interval D' cutoff.
Gabriel fraction of informative markers required to be in strong LD.
4 Gamete block cutoff for frequency of 4th pairwise haplotype.
Solid Spine blocks D' cutoff for 'Strong LD'.
Output marker quality checks to <inputfile>.CHECK
Output Mendel error information to <inputfile>.MENDEL
Output chromosome X male heterozygote information to <inputfile>.MALEHETS
Output pairwise LD text table to <inputfile>.LD. Note that -dprime and -check default to no haplotype output unless the -blockoutput flag is also specified.
Output PNG image file of LD display to <inputfile>.LD.PNG
Output low-resolution (smaller file) PNG image of LD display to <inputfile>.LD.PNG
Output svg format of LD display to <inputfile>.LD.SVG
Include HapMap info track in PNG image outputs
Use proportional spacing for dumped LD pngs. <threshold> ranges from 0 (no spacing) to 1 (max spacing) with a default of 0.
Use a particular color scheme for dumped LD pngs. <type> can be DEFAULT, RSQ, DPALT, GAB or GAM. More information can be found with the LD display help
Only output haplotypes with frequency ≥ <threshold>. Note that multiallelic D' and htSNPs are computed using only displayed haplotypes.
Exclude markers in a comma separated list with ranges specified as start..end. So, to exclude markers 3, 5 and 10 through 15 you'd use "-excludeMarkers 3,5,10..15"
Output case/control association results. Saves single marker results to <inputfile>.ASSOC and haplotype results to <inputfile>.HAPASSOC. Haplotype association results are not generated if block type is set to ALL.
Output TDT association results. Saves single marker results to <inputfile>.ASSOC and haplotype results to <inputfile>.HAPASSOC. Haplotype association results not generated if block type is set to ALL.
Loads a set of custom tests for association.
Performs <numtests> permutations on default association tests (or custom tests if a custom association file is specified) and writes to <inputfile>.PERMUT
Generates pairwise tagging information in <inputfile>.TAGS and .TESTS
As above but generates 2-marker haplotype tags unless specified otherwise by -aggressiveNumMarkers
Generates conditional haplotype probabilities from tagger in <inputfile>.CHAPS
Specifies whether to use 2-marker haplotype tags or 2 and 3-marker haplotype tags.
Only selects <n> best tags.
Forces in a comma separated list of marker names as tags.
Forces in a file (or http:// location) of one marker name per line as tags.
Excludes a comma separated list of marker names from being used as tags.
Excludes a file (or http:// location) of one marker name per line from being used as tags.
Capture only the alleles contained in a file (or http:// location) of one marker name per line.
Specify design scores in a file (or http:// location) of one marker name and one score per line.
Specify a minimum design score threshold.
Specify a minimum distance in bases between picked tags.
Tagger LOD cutoff for creating multimarker tag haplotypes.
Tagger r^2 cutoff.