If the .rds file exists, the .fam and .bim files will be
ignored. To ignore an existing .rds file, set rds = NULL.
The .bed, .fam and .bim files follow the PLINK specifications
(http://pngu.mgh.harvard.edu/~purcell/plink/data.shtml#bed).
If the .bed file does not exist, and basename ends by ".bed",
the function will try to generate a new basename by trimming the extension out. This
allows to write read.bed.matrix("file.bed") instead of read.bed.matrix("file").