Repository navigation
Support macOS in the pipeline Makefile #158
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,8 +13,10 @@ polished_infix=$(polisher)-polished | |||||||||||||||||||||||
| # ntlink or minimap2 | ||||||||||||||||||||||||
| polisher_mapper=minimap2 | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| # Shared memory location for GoldPolish | ||||||||||||||||||||||||
| shared_mem=/dev/shm | ||||||||||||||||||||||||
| # Shared memory location for GoldPolish. Left empty on systems without /dev/shm | ||||||||||||||||||||||||
| # (e.g. macOS); polishing then runs in the working directory, as GoldPolish | ||||||||||||||||||||||||
| # itself would. | ||||||||||||||||||||||||
| shared_mem=$(if $(wildcard /dev/shm),/dev/shm,) | ||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
If we handle the |
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| # ntlink mapping parameter (used if polisher_mapper=ntlink) | ||||||||||||||||||||||||
| polish_k=32 | ||||||||||||||||||||||||
|
|
@@ -120,6 +122,9 @@ time= | |||||||||||||||||||||||
| else | ||||||||||||||||||||||||
| ifneq ($(shell command -v gtime),) | ||||||||||||||||||||||||
| time=command gtime -v -o $@.time | ||||||||||||||||||||||||
| else ifeq ($(shell uname -s),Darwin) | ||||||||||||||||||||||||
| # macOS time has no -v; -l reports the same run time and peak memory | ||||||||||||||||||||||||
| time=command /usr/bin/time -l -o $@.time | ||||||||||||||||||||||||
| else | ||||||||||||||||||||||||
| time=command time -v -o $@.time | ||||||||||||||||||||||||
| endif | ||||||||||||||||||||||||
|
Comment on lines
+125
to
130
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
A suggestion for how it could be updated without making any explicit OS assumptions |
||||||||||||||||||||||||
|
|
@@ -191,7 +196,7 @@ help: | |||||||||||||||||||||||
| @echo " rounds number of rounds of ntLink [$(rounds)]" | ||||||||||||||||||||||||
| @echo "" | ||||||||||||||||||||||||
| @echo " GoldPolish options:" | ||||||||||||||||||||||||
| @echo " shared_mem Shared memory path where polishing occurs [/dev/shm] " | ||||||||||||||||||||||||
| @echo " shared_mem Shared memory path where polishing occurs [/dev/shm, or the working directory if /dev/shm does not exist] " | ||||||||||||||||||||||||
| @echo "" | ||||||||||||||||||||||||
| @echo "Notes:" | ||||||||||||||||||||||||
| @echo " - GoldRush-Path generates silver paths before generating the golden path" | ||||||||||||||||||||||||
|
|
@@ -264,7 +269,7 @@ endif | |||||||||||||||||||||||
| echo "Done GoldRush-Path + $(polisher_logs)! $(polisher_logs) polished golden path can be found in: $@" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| %.goldpolish-polished.fa: %.fa $(long_reads) | ||||||||||||||||||||||||
| $(time) $(set_ulimit) goldpolish $(goldpolish_opts) -t$(t) -m$(shared_mem) $< $(long_reads) $@ | ||||||||||||||||||||||||
| $(time) $(set_ulimit) goldpolish $(goldpolish_opts) -t$(t) -m$(or $(shared_mem),$(CURDIR)) $< $(long_reads) $@ | ||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we change the default setting of |
||||||||||||||||||||||||
| echo "Done GoldRush-Path + $(polisher_logs)! $(polisher_logs) polished golden path can be found in: $@" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| # Run racon | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might suggest leaving the comment as-is, since the default is already documented in the help page, and it can also be explicitly set by a user.