write_population {cape}R Documentation

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"
)

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

## Not run: 
write_population(data_obj, geno_obj)

## End(Not run)


[Package cape version 3.1.2 Index]