Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
replace NF by exact field number for accessing p-values in circos_inp…
Browse files Browse the repository at this point in the history
…ut_gen.sh
  • Loading branch information
cmdoret committed Aug 7, 2018
1 parent 64341b9 commit 7d05947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/circos_conf/circos_input_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ tail -n +2 $tig |
while read line
do
# is the p-value significant ?
pval=$(echo $line | awk '{print $NF}' | sed 's/[eE]+\{0,1\}/*10^/g')
pval=$(echo $line | awk '{print $13}' | sed 's/[eE]+\{0,1\}/*10^/g')
if (( $(echo "$pval > $sigpow" | bc -l) ))
then
awk -v chrom="$(cut -d$' ' -f2 <(echo $line))" \
Expand Down

0 comments on commit 7d05947

Please sign in to comment.