Last active
November 16, 2015 02:47
-
-
Save mbk0asis/fda88ab6f8e8cea85023 to your computer and use it in GitHub Desktop.
counting CpG in every line
This file contains hidden or 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
| $ while read line; do echo $line | grep -o 'Any_Pattern' | wc -l; done < Input_File > Result_file | |
| # Example | |
| $ while read line; do echo $line | grep -o 'CG' | wc -l; done < Dlk1_mm10.txt > Dlk1_CpG_density | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment