Skip to content

Commit

Permalink
Fix combine step with many sc files (#74)
Browse files Browse the repository at this point in the history
* Fix combine step with many sc files

Using find
  • Loading branch information
mjz1 authored Aug 11, 2021
1 parent af55a6c commit a1b5737
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/scripts/Cicero.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ parallel --joblog 02_Cicero.log $PARALLEL_ARG < cmds-02.sh
#########################
echo "Step 03 - $(date +'%Y.%m.%d %H:%M:%S') - Combine"
{
cat $CICERO_DATADIR/$SAMPLE/*/unfiltered.fusion.txt | sort -V -k 9,9 -k 10,10n -k 11,11n > $CICERO_DATADIR/$SAMPLE/unfiltered.fusion.txt
cat $CICERO_DATADIR/$SAMPLE/*/unfiltered.internal.txt | sort -V -k 9,9 -k 10,10n -k 11,11n > $CICERO_DATADIR/$SAMPLE/unfiltered.internal.txt
find $CICERO_DATADIR/$SAMPLE/*/ -type f -name 'unfiltered.fusion.txt' -exec cat {} \; | sort -V -k 9,9 -k 10,10n -k 11,11n > $CICERO_DATADIR/$SAMPLE/unfiltered.fusion.txt
find $CICERO_DATADIR/$SAMPLE/*/ -type f -name 'unfiltered.internal.txt' -exec cat {} \; | sort -V -k 9,9 -k 10,10n -k 11,11n > $CICERO_DATADIR/$SAMPLE/unfiltered.internal.txt
} 1> 03_Combine.out 2> 03_Combine.err

## QC
Expand Down Expand Up @@ -384,4 +384,3 @@ fi
### Blow away tmp configs ###
#############################
#rm -rf $SJ_CONFIGS

0 comments on commit a1b5737

Please sign in to comment.