Skip to content

Customize Piechart

moshi edited this page Mar 30, 2022 · 3 revisions

This page describes script for customizing COGclassifier piechart figure.

Usage

Basic Command

plot_cog_classifier_piechart -i [classifier count file] -o [output piechart html file]

Options

-h, --help         show this help message and exit
-i I, --infile I   Input COGclassifier count results file ('classifier_count.tsv')
-o O, --outfile O  Output plot result html file (must be '*.html')
--width            Fig width [px] (Default: 380)
--height           Fig height [px] (Default: 380)
--show_letter      Show functional category letter on piechart (Default: OFF)
--sort             Enable descending sort by number count (Default: OFF)

Example Gallery

Example input file = classifier_count.tsv

Default parameter:

plot_cog_classifier_piechart -i classifier_count.tsv -o 01_piechart_default.html

01_piechart_default.png

Adjust figure width, height:

plot_cog_classifier_piechart -i classifier_count.tsv -o 02_piechart_adjust_figsize.html \
                             --width 250 --height 250

02_piechart_adjust_figsize.png

Descending sort by count number:

plot_cog_classifier_piechart -i classifier_count.tsv -o 03_piechart_descending_sort.html \
                             --sort

03_piechart_descending_sort.png

Show letter on piechart:

plot_cog_classifier_piechart -i classifier_count.tsv -o 04_piechart_show_letter.html \
                             --show_letter

04_piechart_show_letter.png

User-customized (Add No COG classified sequences):

Use user-customized classifier count file (classifier_count_add_no_classify.tsv)

plot_cog_classifier_piechart -i classifier_count_add_no_classify.tsv -o 05_piechart_custom_add_no_classify.html

05_piechart_custom_add_no_classify.png

Clone this wiki locally