View source: R/f.create.snp.names.R
f.create.snp.names | R Documentation |
Creating column names either from a .map file or generating dummy names
f.create.snp.names(map.file, header = FALSE, ncol, format, design)
map.file |
Filename (with path if the file is not in current directory) of the .map file holding the SNP names, if available (see Details). |
header |
Logical: does the map.file contain a header in the first row? Default: FALSE. |
ncol |
Number of columns IN TOTAL in the dataset containing only the genotype data |
format |
Format of data (will influence how data is processed) - choose from:
. |
design |
The design used in the study - choose from:
. |
If the .map file is given, the SNP names are read in, if not dummy names are created by attaching numbers to "m" prefix. Then, a "_a" and "_b" suffix is attached to each allele, respectively. Finally, if the design is "triad" or "cc.triad", the following suffixes are attached: "_m" for the mother's alleles, "_f" for the father's, and "_c" for the child's.
A list containing:
gen.data.colnames - a vector with names of columns, length equal to the number of columns in the genotype dataset (i.e., depending on the format and design).
marker.names - a vector containing the names of markers, as read in from 'map.file', or dummy names.
The .map file should contain at least two columns, where the second one contains SNP names. Any additional columns should be separated by a whitespace character, but will be ignored. The file should contain a header.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.