Skip to content

Commit

Permalink
unbreak --import-dosage + --map
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchang committed Dec 7, 2024
1 parent e1744e0 commit a1b7445
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions 2.0/plink2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
namespace plink2 {
#endif

static const char ver_str[] = "PLINK v2.0.0-a.5.20"
static const char ver_str[] = "PLINK v2.0.0-a.5.21"
#ifdef NOLAPACK
"NL"
#elif defined(LAPACK_ILP64)
Expand Down Expand Up @@ -72,7 +72,7 @@ static const char ver_str[] = "PLINK v2.0.0-a.5.20"
#elif defined(USE_AOCL)
" AMD"
#endif
" (3 Dec 2024)";
" (6 Dec 2024)";
static const char ver_str2[] =
// include leading space if day < 10, so character length stays the same
" "
Expand Down Expand Up @@ -11367,8 +11367,8 @@ int main(int argc, char** argv) {
logerrputs("Error: No input dataset.\n");
goto main_ret_INVALID_CMDLINE_A;
}
if (unlikely((xload & kfXloadMap) && (!(xload & kfXloadPed)))) {
logerrputs("Error: --map must be used with --ped.\n");
if (unlikely((xload & kfXloadMap) && (!(xload & (kfXloadPed | kfXloadPlink1Dosage))))) {
logerrputs("Error: --map must be used with --import-dosage or --ped.\n");
goto main_ret_INVALID_CMDLINE_A;
}
if (unlikely((xload & kfXloadOxGen) && (!(xload & kfXloadOxSample)))) {
Expand Down
2 changes: 1 addition & 1 deletion 2.0/plink2_help.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ PglErr DispHelp(const char* const* argvk, uint32_t param_ct) {
" --tped <filename> : Specify full name of .tped file.\n"
" --tfam <filename> : Specify full name of .tfam file.\n\n"
);
HelpPrint("import-dosage\0dosage\0", &help_ctrl, 1,
HelpPrint("import-dosage\0dosage\0map\0", &help_ctrl, 1,
" --import-dosage <allele dosage file> ['noheader'] ['id-delim='<char>]\n"
" ['skip0='<i>] ['skip1='<j>] ['skip2='<k>] ['dose1']\n"
" ['format='<m>] [{ref-first | ref-last}]\n"
Expand Down

0 comments on commit a1b7445

Please sign in to comment.