write_population: Save the cross data in R/qtl CSV format

Description Usage Arguments Value References Examples

View source: R/write_population.R

Description

This function writes out a cape object in a csv format readable both by read_population in Cape or by read.cross in R/qtl.

Usage

1
2
3
4
5
6
7
write_population(
  data_obj,
  geno_obj,
  ref_allele = "A",
  na = NA,
  filename = "capeData.csv"
)

Arguments

data_obj

a Cape object

geno_obj

a genotype object

ref_allele

a character, e.g., "A", that represents the reference allele in the data object

na

either NA or a character used to represent a missing data value in the output

filename

absolute or relative path to the output file's destination

Value

Writes a file to the destination path

References

Broman et al. (2003) R/qtl: QTL mapping in experimental crosses. Bioinformatics 19:889-890 doi:10.1093/bioinformatics/btg112

Examples

1
2
3
4
## Not run: 
write_population(data_obj, geno_obj)

## End(Not run)

cape documentation built on Feb. 10, 2021, 5:06 p.m.