Download_stats.sh 542 Bytes
#from download screen-output
echo "GSE required: $(grep -c GSE  download_report.txt)"
echo "GSE successfully downloaded $(grep  -c "successful" download_report.txt)"
echo "double check: $(ls ../../download/all_srr/ | wc -l)"
echo "GSM required: $(grep GSM ../../input/all_srr_geo_rnaseq_v2.txt | cut -f2 | sort | uniq | wc -l)"
grep "Found" download_nohup.out | cut -f2 -d ' ' | awk '{sum+=$1} END {print "GSM found: " sum " associated to the GSE requiered"}'
echo "GSM download:  $(grep -e "\"GSM[1-9]" extract_report.txt|sort|uniq|wc -l)"