limit fstBC to 30bp in Python3 ver.
[GalaxyCodeBases.git] / etc / Linux / mksalus.sh
blob36a5881e4e5c70adcc9d5d47ed9d95a42192ddcc
1 #!/bin/sh
3 mkdir salusSpatialOmics
4 cd salusSpatialOmics
5 #git clone --bare --recursive --filter=blob:none --also-filter-submodules github-BGI:salusbio/SpatialOmics.git
6 git clone --bare --recursive --filter=blob:none git@github.com:salusbio/SpatialOmics.git
8 cd SpatialOmics.git/
9 git config --add remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
10 git fetch
12 git config --local user.name 'HU Xuesong'
13 git config --local user.email '87519979+huxs001@users.noreply.github.com'
15 git for-each-ref 'refs/heads/*' --format '%(refname:short)' --sort=-creatordate --shell | head -n5 | xargs -I{} echo "git worktree add ../{} {}; git branch -u origin/{} {}" | bash
17 git branch -av
19 # https://stackoverflow.com/a/74876298/159695 and https://stackoverflow.com/a/62524752/159695
20 # for `git for-each-ref --format='%(refname:short)' refs/heads | xargs git branch -d`, there will be not 'refs/heads/*' but only 'refs/remotes/origin/*', and its short refname is like `origin/main`, which is not good.
21 # However, `git worktree add ../main main` works.
22 # https://stackoverflow.com/questions/14639206/how-can-i-pass-all-arguments-with-xargs-in-middle-of-command-in-linux/35612138#35612138