Learn R Programming

cape (version 3.1.2)

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

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

write_population(
  data_obj,
  geno_obj,
  ref_allele = "A",
  na = NA,
  filename = "capeData.csv"
)

Value

Writes a file to the destination path

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

References

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

Examples

Run this code
if (FALSE) {
write_population(data_obj, geno_obj)
}

Run the code above in your browser using DataLab