IDR / idr-utils

Utility scripts for managing IDR submissions
BSD 2-Clause "Simplified" License
2 stars 6 forks source link

Refactor stats.py #16

Closed manics closed 4 years ago

manics commented 4 years ago

stats.py now defaults to printing out something that can be appended to studies.tsv, e.g.:

omero login
./idr-utils/scripts/stats.py idr0048-abdeladim-chroms >> studies.tsv

This includes the fs usage calculation which may take a very long time or may crash the server. To disable the fs usage calculation:

./idr-utils/scripts/stats.py --disable-fsusage idr0048-abdeladim-chroms >> studies.tsv

If you want a human readable output pass --format string (string refers to a pandas output format).

manics commented 4 years ago

I've also added counts for PlateAcquistions, and an optional --release prodXX parameter so it's possible to run the script with no manual post-processing. e.g. ./stats.py --release prod123 idr0001-graml-sysgro >> studies.tsv