Skip to content

Commit

Permalink
changed automatic depth detection to awk
Browse files Browse the repository at this point in the history
  • Loading branch information
alk224 committed Nov 2, 2015
1 parent a00c329 commit b8fcd8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdiv_graphs_and_stats_workflow.sh
Expand Up @@ -267,7 +267,7 @@ wait
if [[ $adepth =~ ^[0-9]+$ ]]; then
depth=($adepth)
else
depth=`grep -A 1 "Counts/sample detail" $biomdir/$biombase.summary | sed '/Counts/d' | cut -d" " -f2 | cut -d. -f1`
depth=`awk '/Counts\/sample detail:/ {for(i=1; i<=1; i++) {getline; print $NF}}' $biomdir/$biombase.summary | awk -F. '{print $1}'`
fi

## Set output directory
Expand Down

0 comments on commit b8fcd8c

Please sign in to comment.