Skip to content

Instantly share code, notes, and snippets.

@wbazant
Created May 15, 2017 16:45
Show Gist options
  • Save wbazant/55e188f728c40b3eeed0aec3fb62db78 to your computer and use it in GitHub Desktop.
Save wbazant/55e188f728c40b3eeed0aec3fb62db78 to your computer and use it in GitHub Desktop.
Atlas numbers
#count assay groups per experiment - $ATLAS_FTP/experiments
for e in $(ls /ebi/ftp/pub/databases/microarray/data/atlas/experiments | grep E-); do grep -P '<assay' $e/$e-configuration.xml | grep -v assay_group | wc -l | awk -v "EXP=$e" '{print EXP "\t" $1}'; done | tee /var/tmp/assay-groups-per-exp-prod.txt
#count assay groups per experiment - $ATLAS_EXPS
for e in $(ls /nfs/public/ro/fg/atlas/experiments | grep E-); do grep -P '<assay' $e/$e-configuration.xml | grep -v assay_group | wc -l | awk -v "EXP=$e" '{print EXP "\t" $1}'; done | tee /var/tmp/assay-groups-per-exp.txt
#assay groups in last release
cat /var/tmp/assay-groups-per-exp-prod.txt | cut -f 2 -d $'\t' | paste -sd+ - | bc
#82485
#assay groups in this release
cat /var/tmp/assay-groups-per-exp.txt | cut -f 2 -d $'\t' | paste -sd+ - | bc
#83789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment