1
.. _print_metadata_stats:
3
.. index:: print_metadata_stats.py
5
*print_metadata_stats.py* -- Count the number of samples associated to a category value
6
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
Sum up the number of samples with each category value and print this information.
13
**Usage:** :file:`print_metadata_stats.py [options]`
23
The input metadata file
25
The category to examine
30
Path where output will be written [default: print to screen]
35
Two columns, the first being the category value and the second being the count. Output is to standard out. If there are unspecified values, the output category is identified as ***UNSPECIFIED***
40
Count the number of samples associated with Treatment
44
print_metadata_stats.py -m $PWD/mapping.txt -c Treatment
46
**Example writting the output to a file:**
48
Count the number of samples associated with Treatment and save them to a file called stats.txt
52
print_metadata_stats.py -m mapping.txt -c Treatment -o stats.txt