Skip to content

Commit 8bbcd4c

Browse files
jwcodeelcoombe
andauthored
Rename instances of GoldRush-Edit to GoldPolish (#125)
* switch gr-edit to goldpolish * fix capitalizations * Update README.md * Update README.md Co-authored-by: Lauren Coombe <lauren.e.coombe@gmail.com> * rename goldrush_edit_opts * Update requirements.txt * Update README.md --------- Co-authored-by: Lauren Coombe <lauren.e.coombe@gmail.com>
1 parent d9c7ae7 commit 8bbcd4c

File tree

8 files changed

+27
-27
lines changed

8 files changed

+27
-27
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "subprojects/goldrush-edit"]
2-
path = subprojects/goldrush-edit
3-
url = https://git@github.com/bcgsc/goldrush-edit
1+
[submodule "subprojects/goldpolish"]
2+
path = subprojects/goldpolish
3+
url = https://git@github.com/bcgsc/goldpolish

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ goldrush run reads=reads G=gsize
3737
3838
Commands:
3939
40-
run run default GoldRush pipeline: GoldRush-Path + Polisher (GoldRush-Edit by default) + Tigmint-long + ntLink (
40+
run run default GoldRush pipeline: GoldRush-Path + Polisher (GoldPolish by default) + Tigmint-long + ntLink (
4141
default 5 rounds)
4242
goldrush-path run GoldRush-Path
43-
path-polish run GoldRush-Path, then GoldRush-Edit
44-
path-tigmint run GoldRush-Path, then GoldRush-Edit, then Tigmint-long
45-
path-tigmint-ntLink run GoldRush-Path, then GoldRush-Edit, then Tigmint-long, then ntLink (default 5 rounds)
43+
path-polish run GoldRush-Path, then GoldPolish
44+
path-tigmint run GoldRush-Path, then GoldPolish, then Tigmint-long
45+
path-tigmint-ntLink run GoldRush-Path, then GoldPolish, then Tigmint-long, then ntLink (default 5 rounds)
4646
4747
General options (required):
4848
reads read name [reads]. File must have .fq or .fastq extension, but do not include the suffix in the supplied read name
@@ -80,7 +80,7 @@ default 5 rounds)
8080
w_ntLink window size for minimizers [250]
8181
rounds number of rounds of ntLink [5]
8282
83-
GoldRush-Edit options:
83+
GoldPolish options:
8484
polisher_mapper Whether to use ntlink or minimap2 for mappings [minimap2]
8585
shared_mem Shared memory path where polishing occurs [/dev/shm]
8686
@@ -140,7 +140,7 @@ GoldRush has been tested on *Linux* operating systems (centOS7, ubuntu-20.04)
140140
* [boost](https://www.boost.org/doc/libs/1_61_0/more/getting_started/unix-variants.html)
141141
* [libdivsufsort](https://github.com/y-256/libdivsufsort)
142142
* [sparsehash](https://github.com/sparsehash/sparsehash)
143-
* [btllib](https://github.com/bcgsc/btllib)
143+
* [btllib 1.6.2+](https://github.com/bcgsc/btllib)
144144
* [Tigmint 1.2.6+](https://github.com/bcgsc/tigmint)
145145
* [ntLink 1.3.3+](https://github.com/bcgsc/ntlink)
146146
* [minimap2](https://github.com/lh3/minimap2)
@@ -183,7 +183,7 @@ Compiling GoldRush from the source code takes ~2.5min on a typical machine.
183183
```
184184
Running the above `goldrush_test_demo.sh` script will automatically download a small set of long reads from a ~1Mbp segment of *C. elegans* chromosome 3, and run GoldRush. It will also check that the final assembly file has an L50 of 1, as expected (ie. at least half of the assembly is in a single piece). The test should run in <2min on a typical machine.
185185

186-
The final assembly file for the test demo can be found in: `goldrush_test_golden_path.goldrush-edit-polished.span2.dist500.tigmint.fa.k40.w250.ntLink-5rounds.fa`
186+
The final assembly file for the test demo can be found in: `goldrush_test_golden_path.goldpolish-polished.span2.dist500.tigmint.fa.k40.w250.ntLink-5rounds.fa`
187187

188188
## Citation
189189
If you use GoldRush in your research, please cite:

bin/goldrush

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
# Input files
77
reads=reads
88

9-
polisher=goldrush-edit
9+
polisher=goldpolish
1010
polished_infix=$(polisher)-polished
1111
# ntlink or minimap2
1212
polisher_mapper=minimap2
1313

14-
# Shared memory location for GoldRush-Edit
14+
# Shared memory location for GoldPolish
1515
shared_mem=/dev/shm
1616

1717
# ntlink mapping parameter (used if polisher_mapper=ntlink)
@@ -21,16 +21,16 @@ polish_w=100
2121
# Set max number of user processes
2222
set_ulimit=goldrush-ulimit
2323

24-
ifeq ($(polisher), goldrush-edit)
25-
polisher_logs=GoldRush-Edit
24+
ifeq ($(polisher), goldpolish)
25+
polisher_logs=GoldPolish
2626
else
2727
polisher_logs=$(polisher)
2828
endif
2929

3030
ifeq ($(polisher_mapper),ntlink)
31-
goldrush_edit_opts=--ntlink --k-ntlink $(polish_k) --w-ntlink $(polish_w)
31+
goldpolish_opts=--ntlink --k-ntlink $(polish_k) --w-ntlink $(polish_w)
3232
else ifeq ($(polisher_mapper),minimap2)
33-
goldrush_edit_opts=--minimap2
33+
goldpolish_opts=--minimap2
3434
else
3535
$(error "Unknown mapper: $(polisher_mapper)")
3636
endif
@@ -117,7 +117,7 @@ time=command memusg -t -o $@.time
117117
endif
118118
endif
119119

120-
.PHONY: help run version clean path-tigmint-ntlink path-polish goldrush-path racon goldrush-edit path-tigmint tigmint ntLink-with-tigmint check-G check-reads
120+
.PHONY: help run version clean path-tigmint-ntlink path-polish goldrush-path racon goldpolish path-tigmint tigmint ntLink-with-tigmint check-G check-reads
121121
.DELETE_ON_ERROR:
122122
.SECONDARY:
123123

@@ -136,7 +136,7 @@ help:
136136
@echo ""
137137
@echo " Commands:"
138138
@echo ""
139-
@echo " run run default GoldRush pipeline: GoldRush-Path + Polisher (GoldRush-Edit by default) + Tigmint-long + ntLink (default 5 rounds)"
139+
@echo " run run default GoldRush pipeline: GoldRush-Path + Polisher (GoldPolish by default) + Tigmint-long + ntLink (default 5 rounds)"
140140
@echo ""
141141
@echo " goldrush-path run GoldRush-Path"
142142
@echo " path-polish run GoldRush-Path, then $(polisher_logs)"
@@ -179,7 +179,7 @@ help:
179179
@echo " w_ntLink window size for minimizers [$(w_ntLink)]"
180180
@echo " rounds number of rounds of ntLink [$(rounds)]"
181181
@echo ""
182-
@echo " GoldRush-Edit options:"
182+
@echo " GoldPolish options:"
183183
@echo " polisher_mapper Whether to use ntlink or minimap2 for mappings [$(polisher_mapper)]"
184184
@echo " shared_mem Shared memory path where polishing occurs [/dev/shm] "
185185
@echo ""
@@ -229,14 +229,14 @@ $(p1)_$(M).fq: $(long_reads)
229229
$(time) racon -u -t$(t) $(long_reads) $^ > $@
230230
echo "Done GoldRush-Path + $(polisher_logs)! $(polisher_logs) polished golden path can be found in: $@"
231231

232-
%.goldrush-edit-polished.fa: %.fa $(long_reads)
233-
$(time) $(set_ulimit) goldrush-edit $(goldrush_edit_opts) -t$(t) -m$(shared_mem) $< $(long_reads) $@
232+
%.goldpolish-polished.fa: %.fa $(long_reads)
233+
$(time) $(set_ulimit) goldpolish $(goldpolish_opts) -t$(t) -m$(shared_mem) $< $(long_reads) $@
234234
echo "Done GoldRush-Path + $(polisher_logs)! $(polisher_logs) polished golden path can be found in: $@"
235235

236236
# Run racon
237237
racon: $(p2).racon-polished.fa check-G check-reads
238238

239-
goldrush-edit: $(p2).goldrush-edit-polished.fa check-G check-reads
239+
goldpolish: $(p2).goldpolish-polished.fa check-G check-reads
240240

241241
$(p2).fa.$(long_reads).sam: $(p2).fa $(long_reads)
242242
$(time) minimap2 -t $(t) -a -x map-ont $< $(long_reads) > $@

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ btllib_dep = compiler.find_library('btllib')
1515

1616
subdir('goldrush_path')
1717
subdir('bin')
18-
subproject('goldrush-edit')
18+
subproject('goldpolish')
1919

2020
rootpath = meson.source_root()
2121

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sdsl-lite
55
boost-cpp
66
libdivsufsort
77
sparsehash
8-
btllib <=1.4.10
8+
btllib >=1.6.2
99
python
1010
minimap2
1111
tigmint

subprojects/goldpolish

Submodule goldpolish added at 851ae15

subprojects/goldrush-edit

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/goldrush_test_demo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ curl -L --output test_reads.fq https://www.bcgsc.ca/downloads/btl/goldrush/test/
99
echo "Launching GoldRush"
1010
goldrush run reads=test_reads G=1e6 t=4 p=goldrush_test -B
1111

12-
l50=$(abyss-fac goldrush_test_golden_path.goldrush-edit-polished.span2.dist500.tigmint.fa.k40.w250.ntLink-5rounds.fa |awk '{print $3}' |tail -n1)
12+
l50=$(abyss-fac goldrush_test_golden_path.goldpolish-polished.span2.dist500.tigmint.fa.k40.w250.ntLink-5rounds.fa |awk '{print $3}' |tail -n1)
1313

14-
if [ -e goldrush_test_golden_path.goldrush-edit-polished.span2.dist500.tigmint.fa.k40.w250.ntLink-5rounds.fa ] && [ ${l50} -eq 1 ]; then
14+
if [ -e goldrush_test_golden_path.goldpolish-polished.span2.dist500.tigmint.fa.k40.w250.ntLink-5rounds.fa ] && [ ${l50} -eq 1 ]; then
1515
echo -e "\nTest successful!"
1616
else
1717
echo -e "\nTest failed - please check your installation"

0 commit comments

Comments
 (0)