Created
March 13, 2017 16:18
-
-
Save nievergeltlab/1ee52372916dfabe42969f1437eea79e to your computer and use it in GitHub Desktop.
Get chromosome number and chunk number from file name. For ricopili.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chunknum=$(echo $chunk | sed 's/.*\(chr[0-9]*_[0-9]*_[0-9]*\).*/\1/') | |
chrnum=$(echo $chunk | sed 's/.*\(chr[0-9]*\).*/\1/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment