We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68615bb commit b622915Copy full SHA for b622915
utils/add_to_lineages.sh
@@ -10,7 +10,7 @@
10
# 7. Remove all files matching the ~/Downloads/nextstrain_fetch* pattern.
11
12
usage() {
13
- echo "Usage: $0 <lineage>"
+ echo "Usage: $0 <lineage> [--keep-first]"
14
echo "Example: $0 XBB.1.5.34"
15
}
16
@@ -29,7 +29,12 @@ tsv-select -f1 ~/Downloads/nextstrain_fetch* \
29
| tail -n +2 \
30
>>lineages.csv
31
32
-python deduplicate_keeping_last.py
+if [ "$2" != "--keep-first" ]; then
33
+ python deduplicate_keeping_last.py
34
+else
35
+ echo "Keeping first"
36
+ python deduplicate_keeping_first.py
37
+fi
38
39
rm ~/Downloads/nextstrain_fetch*
40
0 commit comments