Description Usage Arguments Value
This one skips data.table::fread and just scans things directly. Note that the individual names should be unique! So should the locus names. The .pos file should have two columns of names (at least things are hard-wired for that at the moment).
1 |
prefix |
the (path) prefix on the files to be read. The files will be |
gz |
if this is set to TRUE, then the function expects that the 012 file ends in 012.gz
and is gzipped. For this to work, you have to have a decent shell on your system with |
gzpos |
logical flag saying whether the pos file is gzipped. |
posfile_columns |
The number of columns in the .pos file. This seems to usually be 1 or 2. If this is 1, then it is assumed that the locus names are unique. If it is greater than 1, then the first two columns are catenated together with "–" to form the position names. |
Returns a matrix with n-indiv rows and n-loci columns. The rownames are the indv names and the colnames are the pos's.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.