Package main
Class Par
- java.lang.Object
-
- main.Par
-
public final class Par extends java.lang.ObjectClass
Parametersrepresents the parameters for a Beagle analysis.Instances of class
Parametersare immutable.
-
-
Constructor Summary
Constructors Constructor Description Par(java.lang.String[] args)Constructs a newParametersinstance from the specified command line arguments.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanap()Returns the ap parameter.java.lang.String[]args()Returns the command line arguments.intburnin()Returns the burnin parameter.ChromIntervalchromInt()Returns the chromosome interval ornullif no chrom parameter was specified.floatcluster()Returns the cluster parameter.floaterr()Returns the err parameter.java.io.Fileexcludemarkers()Returns the excludemarkers parameter ornullif no excludemarkers parameter was specified.java.io.Fileexcludesamples()Returns the excludesamples parameter ornullif no excludesamples parameter was specified.booleangp()Returns the gp parameter.java.io.Filegt()Returns the gt parameter ornullif no gt parameter was specified.floatimp_segment()Returns the imp-segment parameter.intimp_states()Returns the imp-states parameter.booleanimpute()Returns the impute parameter.intiterations()Returns the iterations parameter.java.io.Filemap()Returns the map parameter.floatne()Returns the ne parameterintnsteps()Returns the nsteps parameter.intnthreads()Returns the nthreads parameter.java.lang.Stringout()Returns the out parameter.floatoverlap()Return the overlap parameter.java.io.Fileped()Returns the ped parameter ornullif no ped parameter was specified.floatphase_segment()Returns the phase-segment parameter.intphase_states()Returns the phase-states parameter.java.io.Fileref()Returns the ref parameter ornullif no ref parameter was specified.longseed()Returns the seed parameter.floatstep()Returns the step parameter.java.io.Filetruth()Returns the truth parameterstatic java.lang.Stringusage()Returns a description of the Beagle command line arguments.floatwindow()Returns the window parameter.
-
-
-
Constructor Detail
-
Par
public Par(java.lang.String[] args)
Constructs a newParametersinstance from the specified command line arguments.- Parameters:
args- the command line arguments- Throws:
java.lang.IllegalArgumentException- if a command line argument is incorrectly specifiedjava.lang.NumberFormatException- if a numeric value for a parameter is incorrectly specifiedjava.lang.NullPointerException- ifargs == null
-
-
Method Detail
-
args
public java.lang.String[] args()
Returns the command line arguments.- Returns:
- the command line arguments
-
usage
public static java.lang.String usage()
Returns a description of the Beagle command line arguments.- Returns:
- a description of the Beagle command line arguments
-
gt
public java.io.File gt()
Returns the gt parameter ornullif no gt parameter was specified.- Returns:
- the gt parameter or
nullif no gt parameter was specified
-
ref
public java.io.File ref()
Returns the ref parameter ornullif no ref parameter was specified.- Returns:
- the ref parameter or
nullif no ref parameter was specified
-
out
public java.lang.String out()
Returns the out parameter.- Returns:
- the out parameter
-
ped
public java.io.File ped()
Returns the ped parameter ornullif no ped parameter was specified.- Returns:
- the ped parameter or
nullif no ped parameter was specified
-
map
public java.io.File map()
Returns the map parameter.- Returns:
- the map parameter
-
chromInt
public ChromInterval chromInt()
Returns the chromosome interval ornullif no chrom parameter was specified.- Returns:
- the chromosome interval or
nullif no chrom parameter was specified.
-
excludesamples
public java.io.File excludesamples()
Returns the excludesamples parameter ornullif no excludesamples parameter was specified.- Returns:
- the excludesamples parameter or
nullif no excludesamples parameter was specified
-
excludemarkers
public java.io.File excludemarkers()
Returns the excludemarkers parameter ornullif no excludemarkers parameter was specified.- Returns:
- the excludemarkers parameter or
nullif no excludemarkers parameter was specified
-
burnin
public int burnin()
Returns the burnin parameter.- Returns:
- the burnin parameter
-
iterations
public int iterations()
Returns the iterations parameter.- Returns:
- the iterations parameter
-
phase_states
public int phase_states()
Returns the phase-states parameter.- Returns:
- the phase-states parameter
-
phase_segment
public float phase_segment()
Returns the phase-segment parameter.- Returns:
- the phase-segment parameter
-
impute
public boolean impute()
Returns the impute parameter.- Returns:
- the impute parameter
-
imp_states
public int imp_states()
Returns the imp-states parameter.- Returns:
- the imp-states parameter
-
imp_segment
public float imp_segment()
Returns the imp-segment parameter.- Returns:
- the imp-segment parameter
-
cluster
public float cluster()
Returns the cluster parameter.- Returns:
- the cluster parameter
-
ap
public boolean ap()
Returns the ap parameter.- Returns:
- the ap parameter
-
gp
public boolean gp()
Returns the gp parameter.- Returns:
- the gp parameter
-
ne
public float ne()
Returns the ne parameter- Returns:
- the ne parameter
-
err
public float err()
Returns the err parameter.- Returns:
- the err parameter
-
window
public float window()
Returns the window parameter.- Returns:
- the window parameter
-
overlap
public float overlap()
Return the overlap parameter.- Returns:
- the overlap parameter.
-
seed
public long seed()
Returns the seed parameter.- Returns:
- the seed parameter
-
nthreads
public int nthreads()
Returns the nthreads parameter.- Returns:
- the nthreads parameter
-
step
public float step()
Returns the step parameter.- Returns:
- the step parameter
-
nsteps
public int nsteps()
Returns the nsteps parameter.- Returns:
- the nsteps parameter
-
truth
public java.io.File truth()
Returns the truth parameter- Returns:
- the truth
-
-