Skip to content

Xcelris-Labs-Ltd/Publication-ready-taxonomic-charts-from-QIIME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Publication-ready-taxonomic-charts-from-QIIME

Ultra fast program to generate publication ready taxonomic pie charts from QIIME.

About the script:

This script parses the pie_chart.html file coming from plot_taxa_summary.py script from QIIME (for details, visit http://qiime.org/scripts/plot_taxa_summary.html.) and do the following:

1.Maps the pie chart and legend image names to corresponding samples.

2.Copies the files to user defined directory

3.Rename the files according to sample ids

4.Merges the pie charts and legends

List of Python modules used in prepare_taxa_charts.py

S. No. Module
1. fnmatch
2. os
3. getopt
4. PIL
5. re
6. shutil
7. sys
8. timeit

Usage:

prepare_taxa_charts.py -p path_to_pie_charts.html -c path_to_charts_folder -o output_path_to_final_images

Important Note:

Prerequisites for prepare_taxa_charts.py

  1. Python version 2.7

  2. The legend files should be generated in png format (default is pdf). This could be achieved by running the script plot_taxa_summary.py with the option -t/--type_of_file as png. Given below is an example:

plot_taxa_summary.py -i phylum.txt -l phylum -c pie -o phylum_charts/ -t png

** Note: High resolution images can be generated using the -d, --dpi option for the script plot_taxa_summary.py. See below example (setting the dpi to 100 produce good quality images):

plot_taxa_summary.py -i phylum.txt -l phylum -c pie -o phylum_charts/ -t png -d 100

License

This script is released under GNU GENERAL PUBLIC LICENSE, v3, 29 June 2007

Development and Maintenance

Developed by - Vijay Lakhujani:

Project Scientist, Bioinformatics

NGS division, Xcelris Labs Ltd

vijay.lakhujani@xcelrislabs.com


Let's connect!

alt text alt text alt text alt text

Full Details

Click here

Releases

No releases published

Packages

No packages published

Languages