-
Notifications
You must be signed in to change notification settings - Fork 6
Customize Piechart
moshi edited this page Mar 30, 2022
·
3 revisions
This page describes script for customizing COGclassifier piechart figure.
plot_cog_classifier_piechart -i [classifier count file] -o [output piechart html file]
-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 input file = classifier_count.tsv
Default parameter:
plot_cog_classifier_piechart -i classifier_count.tsv -o 01_piechart_default.html
Adjust figure width, height:
plot_cog_classifier_piechart -i classifier_count.tsv -o 02_piechart_adjust_figsize.html \
--width 250 --height 250
Descending sort by count number:
plot_cog_classifier_piechart -i classifier_count.tsv -o 03_piechart_descending_sort.html \
--sort
Show letter on piechart:
plot_cog_classifier_piechart -i classifier_count.tsv -o 04_piechart_show_letter.html \
--show_letter
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