Skip to content

Commit

Permalink
Fix feature_analysis logs and parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ivartb committed Dec 25, 2023
1 parent 33cc25c commit df2a5af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/metafx-modules/feature_analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,13 @@ while read sample ; do
cmd2_i=${cmd2}
cmd2_i+="-w ${w}/wd_${sample} "
cmd2_i+="-o ${w}/wd_${sample}/output "
readsFiles=`find ${readsDir}/${sample}_* ${readsDir}/${sample}.* 2>/dev/null | paste -sd " "`
readsFiles=`find ${readsDir}/${sample}_* ${readsDir}/${sample}.* 2>/dev/null | paste -s -d " " -`
cmd2_i+="--reads ${readsFiles}"

echo "${cmd2_i}"
echo -n "Processing sample ${sample} (log saved to ${w}/metacherchant.log) ... "

echo "${cmd2_i}" >> ${w}/metacherchant.log
${cmd2_i} 2>&1 >> ${w}/metacherchant.log

${cmd2_i} 1>>${w}/metacherchant.log 2>&1
if [[ $? -eq 0 ]]; then
echo "DONE"
else
Expand Down

0 comments on commit df2a5af

Please sign in to comment.