dparallel: Compute Ohta's D Statistics in a manner optimized for...

Description Usage Arguments Examples

View source: R/dparallel.R

Description

Infers the comparisons that this instance of the function is supposed to perform given job_id and comparisons_per_job. Returns the results of those comparisons to an SQL database.

Usage

1
2
dparallel(data_set, tot_maf = 0.1, pop_maf = 0.05, comparisons_per_job,
  job_id, outfile = "Ohta")

Arguments

data_set

The data set that is to be analysed.

tot_maf

Minimum minor allele frequency across the total population for a marker to be included in the analysis.

pop_maf

Minimum minor allele frequency across a subpopulation for that subpopulation to be included in analysis.

comparisons_per_job

The number of comparisons that each instance of dparallel will compute.

job_id

A number indicating that this is the nth instance of this function.

outfile

Prefix for the file name that results will be written to. May be a path. Do not include extension.

Examples

1
2
3
4
5
data(beissinger_data)
dparallel(data_set = beissinger_data,
                     comparisons_per_job = 300,
                     job_id = 1,
                     outfile = tempfile(pattern = "beissinger_comparison", tmpdir = tempdir()))

ohtadstats documentation built on Nov. 15, 2019, 5:11 p.m.