-
Notifications
You must be signed in to change notification settings - Fork 12
Inbreeding Coefficients
Tyler Kent edited this page Sep 8, 2015
·
5 revisions
Method for calculating inbreeding coefficients using ngsF. See the paper for full details on the method.
To run this method, use something like:
bash ./scripts/NGS_F.sh ./scripts/ngsF_og.conf
Script filename: Inbreeding_Coefficients_Estmiator.sh
example configuration file: Inbreeding_Coefficients_Estmiator.conf
-
${DATA_DIR}/${TAXON}_samples.txtbam list
-
${RESULTS_DIR}/${TAXON}.approx_indFresults from approximate EM calculation--used as a prior for full EM -
${RESULTS_DIR}/${TAXON}.approx_indF.parsbinary file -
${RESULTS_DIR}/${TAXON}.indFinbreeding coefficient results -
${RESULTS_DIR}/${TAXON}.indF.parsbinary file
Final results are in the *.indF file. Files labeled *.approx.indF are rough estimate files to speed up analysis in the full EM step of the calculation.
-
TAXONname of taxon used -
TAXON_LISTfilename of bam list -
ANC_SEQfilename of ancestral sequence used this should already be in your common variables file -
REF_SEQfilename of reference sequence used this should already be in your common variables file
-
MIN_BASEQUALminimum base quality (default=20) -
GT_LIKELIHOODestimate genotype likelihoods (default=1) -
DO_GLFtype of GL output filetype (default=3) -
MIN_MAPQminimum base mapping quality (default=30) -
N_CORESnumber of cores to use (default=32) make sure to adjust this according to what your computer or cluster allows. This may need to be adjusted depending on the memory requirements of your data -
DO_MAJORMINORestimate major/minor alleles (default=1) -
DO_MAFcalculate per site frequencies (default=1) -
SNP_PVAL=1e-6p-value limit for calling SNPs (default=1e-6) removing invariant sites with a light SNP call greatly decreases computational time and numerical instability -
OVERRIDEif true, will recalculate files that already exist (default=false) -
SEED=12345set for approx. EM--do not change -
MIN_EPSILON=1e-9epsilon value for EM converging. A smaller number will greatly increase computational time. 1e-7 or smaller recommended for proper converging, but adjust if computational time too intensive (default=1e-9)