make_control_file
Generates a BPP control file for species tree, delimitation, or joint analyses, returning its text and path for linting before BPP runs.
Instructions
Create a BPP control file (bpp-lint --template --suggest-priors).
Never write a control file yourself; use this, then lint_control_file.
analysis: A00 = estimate parameters on a fixed species tree; A01 = estimate the species tree; A10 = species delimitation on a fixed guide tree; A11 = joint species delimitation and species tree. Ask the user, explaining the choices in plain language.seqfile,imapfile: from convert_data (PREFIX.txt, PREFIX.imap).stree_file: from build_species_tree (PREFIX.stree).nloci: from convert_data's server.nloci.out: the control file to write. Data paths are written relative to the control file's folder.phase: for unphased diploid data, one digit per species in species&tree order (look up 'phase' with lookup_docs and ask the user).thetaprior,tauprior: leave unset to use priors derived from the data (inverse-gamma, alpha = 3); set only if the user asks.nsample,burnin,sampfreq,seed: chain settings; template defaults apply when unset. Discuss chain length with the user.extra: any other keywords as {"keyword": "value"}, e.g. {"wprior": "...", "threads": "..."}. Each name is checked against the manual's keyword list. Look up the syntax with lookup_docs first.overwrite: an existing file is refused unless true. Ask the user.
Returns the file's text and path. server.workarounds_applied lists
patches for known bpp-lint bugs. Next: lint_control_file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | ||
| seed | No | ||
| extra | No | ||
| nloci | Yes | ||
| phase | No | ||
| burnin | No | ||
| jobname | No | out | |
| nsample | No | ||
| seqfile | Yes | ||
| analysis | Yes | ||
| imapfile | Yes | ||
| sampfreq | No | ||
| tauprior | No | ||
| overwrite | No | ||
| stree_file | Yes | ||
| thetaprior | No |