make_database: Make Database

Description Usage Arguments Value Examples

View source: R/make_database.R

Description

This function takes three inputs of CSV files and transforms them into a RSQLite database. The three inputs are:

  1. gtseq: Output of the GTseq pipeline

  2. metadata: Metadata about the samples

  3. allele_info: Information of the loci being used

Usage

1
make_database(gtseq, metadata, allele_info, verbose = TRUE)

Arguments

gtseq

Comma separated file that is the output of the GT-seq pipeline. Sample IDs must match the Sample IDs in the metadata CSV file. The Allele IDs from the column names must match the site_id found in the allele_info CSV file.

metadata

Comma separated file that includes two columns: Sample and Sex. The Sample IDs must match the Sample IDs from the gtseq CSV file. Other metadata columns may be present.

allele_info

Comma separated file with information about the loci of interest. The site_id must match the Allele IDs from the GT-seq output. the advantage column is required if the type all_alleles is specified.

verbose

show messages, logical - default = TRUE

Value

An RSQLite database saved to memory

Examples

1
2
3
4
5
## Not run: 
DBs <- make_database(gtseq = geno, metadata = meta_data,
                     allele_info = allele_info)

## End(Not run)

danagibbon/MultifacitedChoice documentation built on Dec. 31, 2020, 11:10 p.m.