Mercurial > repos > nikos > rna_probing
changeset 15:7a5780dc7b71 draft
Fixed bug with "rm merged_temp2"
author | nikos |
---|---|
date | Wed, 11 Feb 2015 06:05:35 -0500 |
parents | 68af3d2260aa |
children | 7eafceced290 |
files | summarize_unique_barcodes.sh |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/summarize_unique_barcodes.sh Mon Jan 26 07:13:03 2015 -0500 +++ b/summarize_unique_barcodes.sh Wed Feb 11 06:05:35 2015 -0500 @@ -174,12 +174,14 @@ if [ ! -s paired ]; then zcat merged_temp.gz | awk '{print $1, $2, "NA", $4, $5}' - > merged_temp2 gzip -c merged_temp2 > merged_temp.gz + rm merged_temp2 fi #Fix priming position if [ ! -z $priming_pos ]; then zcat merged_temp.gz | awk -v pos="${priming_pos}" '{print $1, $2, pos, $4, $5}' - > merged_temp2 gzip -c merged_temp2 > merged_temp.gz + rm merged_temp2 fi #File summary.txt columns: RNA_ID, Start, End, barcode sequence, sequenced_count[=number of sequenced fragments fulfilling previous requiremnts] @@ -218,8 +220,8 @@ #Produce k2n file if [ "$k2n" == "True" ]; then - Rscript $R_SCRIPT_PATH/k2n.R merged_temp.gz $output_dir/read_counts.txt ${max_observed_barcodes} $BAR_LEN $output_dir/k2n.txt + Rscript $R_SCRIPT_PATH/k2n.R merged_temp.gz $output_dir/unique_barcodes.txt $output_dir/k2n.txt fi #Remove temp files -rm merged_temp2 merged_temp.gz positions_temp_sorted.gz paired +rm merged_temp.gz positions_temp_sorted.gz paired