Entering edit mode
7.7 years ago
rbronste
▴
420
Quick question for those that use awk often, what would the following command do to a narrowPeak file:
awk '{if ($8 > 8) print}'
Thanks
I don't know what a narrowPeak file looks like (it would help if you showed an example in your post), but that would print the entire line, where column 8 is greater than 8. I typically use a syntax such as this:
So basically I am trying to modify the following command:
zcat $dnase | awk '{if ($8 > 8) print}' | gzip > $dnase_gt8
The command is designed for the narrowPeak file (example above) but I have another file I would like to use with only 5 columns.