Skip to content

Commit a1b5737

Browse files
authoredAug 11, 2021
Fix combine step with many sc files (#74)
* Fix combine step with many sc files Using find
1 parent af55a6c commit a1b5737

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/scripts/Cicero.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ parallel --joblog 02_Cicero.log $PARALLEL_ARG < cmds-02.sh
315315
#########################
316316
echo "Step 03 - $(date +'%Y.%m.%d %H:%M:%S') - Combine"
317317
{
318-
cat $CICERO_DATADIR/$SAMPLE/*/unfiltered.fusion.txt | sort -V -k 9,9 -k 10,10n -k 11,11n > $CICERO_DATADIR/$SAMPLE/unfiltered.fusion.txt
319-
cat $CICERO_DATADIR/$SAMPLE/*/unfiltered.internal.txt | sort -V -k 9,9 -k 10,10n -k 11,11n > $CICERO_DATADIR/$SAMPLE/unfiltered.internal.txt
318+
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
319+
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
320320
} 1> 03_Combine.out 2> 03_Combine.err
321321

322322
## QC
@@ -384,4 +384,3 @@ fi
384384
### Blow away tmp configs ###
385385
#############################
386386
#rm -rf $SJ_CONFIGS
387-

0 commit comments

Comments
 (0)
Please sign in to comment.