Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plink missing file error when path contains bed substring. #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hylkedonker
Copy link

The current task merge_and_split_by_chr crashes when the plink_beds files contain the substring "bed" in addition to the .bed file suffix.
Resulting in an error in the following line:

plink --merge-list files_to_merge.txt --make-bed \
      --indiv-sort f "~{fam_file}" \
      --update-sex "~{fam_file}" 3 \
      --out "ukb_~{reference}_merged" \
      --allow-extra-chr --threads $(nproc) --memory "${memXmx_m}"

With the plink error:

Error: Failed to open

This pull request fixes the problem by correcting the escaping of the sed regex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant