Created
March 20, 2012 16:00
-
-
Save gatoravi/c6d3f7f96b3892f55368 to your computer and use it in GitHub Desktop.
The cutoff file contains the number of DeNovoGear calls for a particular posterior probability cutoff. Extract the same number of SamTools calls. If there is a tie in the last Likelihood Ratio value then pick all calls with that CLR value
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
#Avinash Ramu, WUSTL | |
#! /bin/bash | |
#The cutoff file contains the number of DeNovoGear calls for a particular posterior probability cutoff. Extract the same number of SamTools calls. If there is a tie in the last Likelihood Ratio value then pick all calls with that CLR value | |
cutoff_f=1e-8Cutoffs | |
STop=STop_nonX_sorted | |
for cutoff in `cat $cutoff_f` | |
do | |
echo $cutoff | |
awk -v cutoff=$cutoff 'BEGIN { count=0; pc=0;} {count++; if(count<=cutoff || pc==$3) {print; pc=$3}}' $STop > ${STop}_$cutoff | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is there a quick parser for filtering Denovogear outputs?