sampledoc
News and Announcements »

Navigation

  • index
  • next |
  • previous |
  • Home »
  • QIIME File Formats »
  • QIIME Scripts »

print_metadata_stats.py – Count the number of samples associated to a category value¶

Description:

Sum up the number of samples with each category value and print this information.

Usage: print_metadata_stats.py [options]

Input Arguments:

Note

[REQUIRED]

-m, --mapping_file
The input metadata file
-c, --category
The category to examine

[OPTIONAL]

-o, --output_fp
Path where output will be written [default: print to screen]

Output:

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*

Example:

Count the number of samples associated with Treatment

print_metadata_stats.py -m $PWD/mapping.txt -c Treatment

Example writting the output to a file:

Count the number of samples associated with Treatment and save them to a file called stats.txt

print_metadata_stats.py -m mapping.txt -c Treatment -o stats.txt

Site index

    • Home
    • Install
    • Tutorials
    • Scripts
    • Help
    • Resources
    • File Formats
    • Workshops
    • Blog
    • Developer

Previous topic

principal_coordinates.py – Principal Coordinates Analysis (PCoA)

Next topic

print_qiime_config.py – Print and optionally test QIIME configuration details

Quick search

Enter search terms or a module, class or function name.

Navigation

  • index
  • next |
  • previous |
  • Home »
  • QIIME File Formats »
  • QIIME Scripts »

sampledoc
© Copyright 2010-2014, QIIME Team. Created using Sphinx 1.3.1.