From b94833492514bd1c2fb418a640f9d74d35e00c8b Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Mon, 24 Jan 2022 19:33:34 +0200 Subject: [PATCH] improve echo --- functions/chi2.sh | 2 +- functions/results.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/chi2.sh b/functions/chi2.sh index 85b3d87..4903b41 100644 --- a/functions/chi2.sh +++ b/functions/chi2.sh @@ -3,7 +3,7 @@ # Calculate background for each protein pair (Prot 1 -> Prot 2) after our filtering calc_back_final() { local PROTCHI="${1}" -echo "$PROTCHI" +echo -e "[CHI SQUARE] ${PROTCHI%.*.*}" cat $PROTCHI | while read -r Seq1 Seq2 numPairs totalComp ; do back_calc=$(printf "%1.10f" `echo "($numPairs)/($totalComp)" |bc -l`) diff --git a/functions/results.sh b/functions/results.sh index 8e40704..ad39218 100644 --- a/functions/results.sh +++ b/functions/results.sh @@ -105,7 +105,7 @@ results_cleanup() { # "Forward" Protein A vs Protein B cp ${PROTEINONE%.*}.fa_${PROTEINTWO%.*}.fa.out ${PROTEINONE%.*}_${PROTEINTWO%.*}.clean - echo "Clean up ${PROTEINONE%.*}_${PROTEINTWO%.*}.out" + echo -e "[CLEANINGUP] ${PROTEINONE%.*}_${PROTEINTWO%.*}.out" sed -i -n '/Coevolving Pairs of amino acid sites/,/Overlapping groups of coevolving residues/p' ${PROTEINONE%.*}_${PROTEINTWO%.*}.clean sed -i '1,5d' ${PROTEINONE%.*}_${PROTEINTWO%.*}.clean sed -i 's/Overlapping groups of coevolving residues//' ${PROTEINONE%.*}_${PROTEINTWO%.*}.clean @@ -121,7 +121,7 @@ results_cleanup() { # "Reverse" Protein B vs Protein A cp ${PROTEINTWO%.*}.fa_${PROTEINONE%.*}.fa.out ${PROTEINTWO%.*}_${PROTEINONE%.*}.clean - echo "Clean up ${PROTEINTWO%.*}_${PROTEINONE%.*}.out" + echo "[CLEANINGUP] ${PROTEINTWO%.*}_${PROTEINONE%.*}.out" sed -i -n '/Coevolving Pairs of amino acid sites/,/Overlapping groups of coevolving residues/p' ${PROTEINTWO%.*}_${PROTEINONE%.*}.clean sed -i '1,5d' ${PROTEINTWO%.*}_${PROTEINONE%.*}.clean sed -i 's/Overlapping groups of coevolving residues//' ${PROTEINTWO%.*}_${PROTEINONE%.*}.clean @@ -374,7 +374,7 @@ protein_pairs_stats() { # Collect data in a single file, which can be imported in Cytoscape echo "$msa_1 $msa_2 $coevThr $averR $averSigR $totCompar $sitesCountA $sitesCountB $gblocksMIN $gblocksMAX $gblocksMEAN $GapsMIN $GapsMAX $GapsMEAN $DivsMIN $DivsMAX $DivsMEAN $cCoevMIN $cCoevMAX $cCoevMEAN $bootMIN $bootMAX $bootMEAN $pMeanMIN $pMeanMAX $pMeanMEAN $BonferroniMIN $BonferroniMAX $BonferroniMEAN $chiboth_fin" >> $EOUT - echo "${msa_1} ${msa_2} added" + echo -e "[COEVOL ADD] ${msa_1} ${msa_2}" cd ..