This function reads in genomic positions from a text file. The data is expected to be in tabular format. First column is expected to be the locus identity (e.g. SNP identifier), second column is the human chromosome (e.g., 22 or X), and the third column is the position.
Arguments
- file
A path to a file containing the SNP genomic positions.
- sep
The separator between columns.
- header
Does the first data line contain column names?
- ...
Extra arguments passed on to
data.table::fread()
.