Created
August 24, 2015 16:38
-
-
Save crazyhottommy/aa19639ab572b3674647 to your computer and use it in GitHub Desktop.
maintain_header_batch_process
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
| # output of mutect run for each chromosome | |
| # the first line is the mutect version, the second line is the header | |
| # keep the header and filter mutect results based on 10th and 35th columns. | |
| for file in *.call.txt | |
| do (sed -n '2p' $file; awk -F "\t" '$10=="COVERED" && $35=="KEEP"' $file) > ./keep/"${file%txt}"keep.txt | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment