Appendix 1: All the Sib-pair Commands

Global Commands
!|#comment
echoprint text
$ <cmd> shell command
dir <args> file listing for current directory
pwd <dir>print or change current directory
file del|ren|cat|que <fil> [<fil>]delete|rename|cat|test file(s)
clearreset
help [<key> | Al | Gl | Op | Da | An] help
infoprogram information
list | ls [<loc1> [[to <locN> [$ (a | q | m | h | x) [m | r]] list loci
which [<loc1> [[to <locN> [$ (a | q | m | h | x) [m | r]] list positions of loci
show locilocus information
show pedigreestabulate pedigrees
show idstabulate IDs
show mapshow linkage map
show macroslist macros
timetotal elapsed time
set timertime procedures
include <fil> read commands from file
output [<fil>] divert text output to a file
last [<num>] command history
quitexit program
set promptdisplay prompt
set gui on | offactivate GUI
set ndecimal_widthoutput decimal digits
set epoch [jul | iso | mjd | <epo>] set epoch for Julian dates
set out | ple -1 | 0 | 1 | 2 | ver | on | off output verbosity
set weight founders Weighted allele frequency estimator
set analysis [imp | obs] Include imputed alleles in regression
set burn-in <it> No. of MCMC burn-in iterations
set iteration <it> Max MC iterations
set emit <it> No. of EM iteration
set batch <num> No. of MCMC batches
set chain <num> No. of MCMC chains
set tune <tun> MCMC tuning parameter
set mincount <num> Min MC iterations
set seeds <s1> <s2> <s3> RNG seeds
set fbatimpute on | off FBAT imputation
set sml <pA> <penAA> <penAB> <penBB> default SML model
set tdt TDT family selection
set ibd [<cM> [<Nmark>]] Threshold for lumping markers for multipoint ibd
set hre zero | chi assume zero recomb for phased LD model
set map function kosambi | haldane linkage mapping function
Utilities
pchisq <x2> <df> [<df2>] Chi-square or F-dist
chisq <nr> <nc> Contingency Chi-square
proportion <num> <den> [<width>] CI for proportion
sml <pA> <penAA> <penAB> <penBB> recurrence risks
grr <prev> <pA> <GRR> [<add | dom | rec>] recurrence risks
ito <pA> [<penAA> <penAB> <penBB>] carrier rates in relatives
Basic Language Objects
0,1,0.23 Numbers
pi y n x Named constants
"1" "a" "is a string"Quoted strings
"<all>/<all>"Genotypes
Alleles are 1..999, A-Z, a-z
Operators
( ) ; : Grouping and precedence
:Separate sequence of expressions
* | / | + | - | ^Arithmetic
< | > | =< | => | ge | le | eq | == | ne | ^= | and | orComparison
if | thenConditional statement execution
Mathematical Functions
log | sqrt | exp | sin | cos | tan | asin | acos | atan | absMaths functions
pnorm | qnormStatistical functions
int | round Truncating functions
rand | rnormUniform or Gaussian random numbers
greg | julian Date functions
Data Functions
istyp | untypTyped at marker?
ishomHomozygote?
alla | allbFirst or second allele
commarMaximum markers common with a relative
numtyp | anytyp | alltyp number of genotypes
num | nfound family size/no. founders
famnum | indexFamily or person index number
Macros
macro <nam> [<body>] create or delete a macro
%<nam> a macro variable
%% %0 %N %+Nmacro function arguments
eval [<SEXPR>] evaluate a Scheme expression
Command Iteration
<cmd> { <val1> [<val2> ...] }Loop over set
Reading in Data
set datadirectory Set data directory
set workdirectory Set work directory
set impute on | off Marker imputation
set errordrop on | off remove nuclear family mendelian errors
set checking on | off toggle error checking
set locus <nam> mar | xma | hap | qua | aff [<map_position> [<comments>]] declare locus position,type
declare loci <num>(m | x | q | a) [<N>(m | x | q | a) ...] batch declare loci (autoname)
rename <loc> [to] <new> rename locus
read locus linkage <fil> read Linkage locus file
read locus merlin <fil> read Merlin pedigree file
read pedigree <fil> read Sib-pair pedigree file
read linkage <fil> read pre-Makeped pedigree file
read ppd <fil> read post-Makeped pedigree file
read cases <fil> read nonpedigree data file
set sex marker <mar> Sex informative marker
set twin <twin> MZ twin indicator
set liability <tra> <liab> <nlev> declare liability classes for trait
set skiplines <slines> Skip lines at head of pedigree file
order <loc1>.[to]..<locN> [$(m | x | h | q | a)[rm]] reorder loci
set map <pos1>...<posN> set marker map
set distances <dis12> <dis23>...<disN-1N> set marker map
read map <fil> read map, guessing format
set frequencies <mar> [<frq1>...<frqN>] set allele frequencies for a marker
run process pedigree data
Subsetting Data
keep | drop <loc1>.[to]..<locN> [$m | x | h | q | a] keep/drop useful/less loci
keep | drop where (mon|max|num|dis|r2|eve|pos|hwe|<str> keep/drop useful/less loci
undrop <loc1>.[to]..<locN> [$m | x | h | q | a] return loci to analysis
undrop where <str> return loci to analysis
select [con | exa <npro> whe] <expr> select pedigrees on criterion
select pedigree | id [not [in]] <ped1>...<pedN> select on name
unselect [Nth] return pedigrees to analysis (from Nth last selection)
pack [loc | ped] delete dropped pedigrees and loci permanently
Transforming Data
edit <ped> <per> | all <loc> [to] <val1> [<val2>] edit data
update <loc> [...<locN>] <fil> update data from phenotype file
delete <ped> <per> | all set all data missing for person or
delete [<loc1>...<locN>] whe <expr> set selected data missing
get <rel> <sum> <tra> [<new>]get/save relatives trait value summary
recode [<mar> | $(m | x)] [fre] recode alleles to 1..n by size/freq
recode [<mar> | $(m | x)] [let | num] recode nt alleles to/from numbers
recode <loc> <val1>...<valN> to <new> recode old values to new
combine <mar1>...<marN> [<thr>] recode rare alleles
flip <mar> recode SNP nucleotides to complementary strand
date (<yyyymmdd> jul) | (<num> gre) julian date conversion
date [<tra>] [jul | gre | yea] julian date conversion
standardize <loc> [fam] standardize trait value
adjustNote: superceded by residuals command. linear regress adjust
residuals <tra> on <loc1>...<locN> [com] linear regress resid
predict <tra> on <loc1>...<locN> [com] linear regress predicted
impute <tra> on <loc1>...<locN> [com] linear regression imputation
impute <tra> familial imputation (esp age)
kaplan-meier <tra> <cen> [res] survivor function estimate
rank <tra> <rank> rank of trait value
blom <tra> <blom_score> inverse normal transform
simulate <mar> [<linked_to>] [<Nall> | <frq1>.<frqN>] simulate a trait
simulate <tra> [<h2>] [<linked_to>] simulate a trait
simulate pedigrees [<nped> [<ngen> [<min_kids> [<max_kids> ]]]] simulate pedigrees
Transforming Pedigrees
nuclear [<maxsibs>] [gra] convert to (trimmed) nuclear families
subpedigrees divide into subpedigrees (if compound)
join <ped1> [...<pedN>] join up pedigrees by shared IDs
prune <tra> [c_op <thr>] prune unaffecteds
cases <tra> divide into unrelated cases
unique_id [seq] generate numerical IDs
Outputting Data
print ped <ped1>...<pedN> [id <id1>...<idN>] print data
write [gas] [<fil>] write Sib-pair pedigree file
head | tail [[<skip>] <nrec>] print head or tail of pedigree file
more [<nrec>] page through pedigree file
write pap write to PAP
write var write MENDEL var file
write locus pap write PAP locus file
write arlequin [par | all] <fil> write Arlequin data file
write asp | tcl [dum] <fil> write Aspex pedigree file
write beagle <fil> [fou] write Beagle type data file
write crimap <fil> write Cri-map pedigree file
write csv <fil> [phe] [nop] write CSV type file
write dot [<tra> [<gen>]] <fil> write Dot graph file drawing pedigree
write fisher <fil> write FISHER pedigree file
write gda <fil> write GDA pedigree file
write gh [dum] <fil> write Genehunter pedigree file
write haploview [dum] <fil> write Haploview pedigree file
write linkage | pre [dum] <fil> write Linkage pre-Makeped pedigree file
write mendel <fil> [tra]write MENDEL pedigree file
write merlin [dum] <fil> write Merlin pedigree file
write mim <fil> write MIM pedigree file
write morgan <fil> write MORGAN pedigree file
write pap write PAP trip.dat and phen.dat
write ped <fil> write Sib-pair/GAS pedigree file
write phe <fil> write FBAT/Sibs type phenotype file
write ppd [dum] <fil> write Linkage post-Makeped pedigree file
write ram <tra> write LDL_rams ped and dat files
write sage <fil> write SAGE pedigree file
write solar <fil> [phe] [nop] write Solar type pedigree file
write structure <fil> [fou] write Structure type data file
write locus asp | tcl <fil> write ASPEX locus file
write locus eclipse <fil> write Eclipse data file
write locus fisher <fil> write FISHER locus file
write locus gas <fil> write GAS locus file
write locus loki <fil> [<pedfil>] write Loki "prep" control file
write locus gh <fil> [dum] [xli] write Genehunter locus file
write locus haploview <fil> write Haploview info file
write locus linkage <fil> [dum] [xli] write Linkage locus file
write locus mendel <fil> [tra]write MENDEL locus file
write locus merlin <fil> write Merlin locus file
write locus morgan <fil> write MORGAN locus file
write locus pap write PAP header.dat and popln.dat
write locus relpair <fil> write RELPAIR locus file
write locus sage <fil> write SAGE locus file
write locus sibpair <fil> [<pedfil>] write Sib-pair script
write locus structure <pedfil> [<locfil>] write Structure mainparam
write locus superlink <fil> [dum] [xli] write Superlink locus file
write map mendel <fil> write MENDEL map file
write map loki <fil> write Loki parameter file
write map mendel <fil> write MENDEL map file
write map merlin <fil> write Merlin map file
write map solar <fil> write Solar map file
write var <fil> write MENDEL var file
Analysing pedigrees
generations [<qua_tra> [rev]] summarize pedigree(s) and (save) generations
relatives <ped> <id> show immediate relatives of index
ancestors <tra> [c_op <thr>] common ancestor of most probands
Checking data
test dob <tra> [gre] [<thr>] Check consistency of DOBs
test age <tra> [<thr>] Check consistency of ages
test sex Check sex using markers
test haploid Check Mendel errors
Analysing data
frequencies | describe [snp | <loc1>..<locN>] descriptive statistics
mcf <loc> | $mMCEM allele frequencies
count [whe] <expr> count where expression true
print [whe] <expr> print data where expression true
plot <tr1> <tr2> scatterplot
hist <tr1> [<nbins>] histogram
mean | correlation [<loc1>..<locN>] phenotypic means and correlations
tab <tr1> [<tr2>...<trN>] contingency table
llm <tr1> ... [<tr1> * <tr2>...] [-1] log-linear model of a contingency table
kruskal-wallis <qua tra> <loc> Kruskall-Wallis test
regress <qua tra> on <loc1>.[to]..<locN> linear regression
regress <bin tra> on <loc1>.[to]..<locN> [off <off>] [sim] logistic regression
regress <tra> on <loc1>.[to]..<locN> [off <off>] poisson [sim] poisson regression
regress <tra> ... [off <off>] [(exponential | weibull <cens>)] [shape <sha>] [sim] survival regresssion
clreg <bin tra> on <loc1>.[to]..<locN> conditional logistic regression
mixture <qua tra> [[<num>] [nor | poo | exp | poi]] test admixture
lifetable <sta> <end> <cen> [<wid1> [<wid2>]] [time] [cov <cov>]life table
Analysing genetic data
gpe <mar> [<dose>]Estimate genotype probabilities or expected gene dose
segregation <mar> [unp]Tabulate marker segregation
haplotypes <mar1> <mar2> <new> [<thr>] haplotypes for SNPs in complete LD
triads show triad-phaseable haplotypes
hwe [fou] [<mar1> ..[to].. <mar1>] [$(m | x)] test HWE
mztwin [zyg <co> [<thr>]] [clean | delete] MZ pair genotype discordance | drop one member
summary [<N_tests> | plot [<fil>]] summarize last genetic test
Genetic equilibria
homoz <tra> [<c_op> <thr>] marker homozygosity
multihomoz <tra> [<c_op> <thr>] multipoint homozygosity
fstats <tra> [fou] Population genetic F-statistics
dis [[<marker locus 1>] <marker locus 2>] intragametic association
Kinship
kinship [pai | inb] [<tra> [c_op <thr>]] kinship/inbreeding coefs
ibd <loc> [pai] IBD matrix for marker
ibs <loc> [pai] IBS matrix for marker
hbd <loc> [<coe>] homozygosity-by-descent at marker
cksib sib pair ibs sharing at multiple markers
share [pai] rel pair ibs sharing at multiple markers
Variance components and segregation analysis
davie <tra> <pro> segregation ratios under ascertainment
twin <tra>[<c_op> <thr>] analyse twin correlations/concordances
varcomp <tra> [[a][c][d]e] [cov <var1>..+ <varN>] Variance Components trait analysis
lrt compare last 2 models fitted (mix/VC/GLM/GLMM)
blup <tra> <h2> BLUP for AE variance components model
fpm <tra> [<c_op> <thr>] [nqtl <nqtl>] [p] [a] [d] [g] [c] [s] MCMC mixed/SML/finite polygenic
fpm <tra> ... [(p | g | a | c | s)va | AA | AB | BB | mu | var <val>] MCMC fpm start values
fpm <tra> ... [fixed p | a | c | d | e | g | m | mu | s | var MCMC fpm fixed pars
fpm <tra> ... [lin logit | probit | ln | mft] [lik gau | bin | poi] [cov <var1> [+ <var2>...] MCMC fpm
Association
assoc <tra> [<c_op> <thr> | cat] [fou] [gen] allelic/genotypic association with a trait
mito|yhap <tra> [<mar1> [..<marN>]] Mitochondrial/Y-chromosome haplotype association with a trait
tdt <tra> [<c_op> <thr>] [pat | mat] several TDTs
hrr <tra> [<c_op> <thr>] Haplotype Relative Risk
schaid <tra> <mar> [<all>] Schaid & Sommer HWE test
sdt <tra> sibship disequilibrium test
Linkage
asp <tra> [<c_op> <thr>] affected sib-pair IBS and IBD linkage analysis
penrose <loc1> <loc2> Penrose sib-pair linkage
apm <tra> [<c_op> <thr>] [ibd | ibs] IBS or IBD NPL analysis
sibpair <tra> [<wei>] [sim] [cor <r> [mea <m>] [sd | var <v>]] regression-based QTL linkage
twopair <tra> <loc1> <loc2> <theta> two-point Haseman-Elston
qtlpair <tra> [full [cqe] [cov <var1>..+<varN>]] sibs or pedigree VC linkage
varcomp <tra> [aqe <mar1>..+ <marN>] [cov <var1>..+<varN>] Variance Components linkage analysis
linkage [<loc1> [<loc2>]] intermarker sib pair linkage