View source: R/has_plink_bin_files.R
has_plink_bin_files | R Documentation |
base_input_filename
there are PLINK
binary filesDetermine if using base_input_filename
there are PLINK
binary files.
has_plink_bin_files(base_input_filename)
base_input_filename |
the base of the filenames that are
used as input for |
This is done by searching the PLINK
binary files at:
base_input_filename.bed
base_input_filename.bim
base_input_filename.fam
If these files exist, this function returns TRUE
TRUE if the PLINK
text files exist
the PLINK
text files are not tested for validity
it is not checked if a log file is present
Richèl J.C. Bilderbeek
# FALSE on PLINK v1.7 testing text data
has_plink_bin_files(
tools::file_path_sans_ext(get_plinkr_filename("test_v1_7.map"))
)
# TRUE on PLINK binary data
has_plink_bin_files(
tools::file_path_sans_ext(
get_plinkr_filename("test_v1_7_after_make-bed.bed")
)
)
# FALSE on PLINK2 binary data
has_plink_bin_files(
tools::file_path_sans_ext(
get_plinkr_filename("toy_v1_9_after_make-bed_after_make-pgen.pgen")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.