A set of small R scripts helpful in various bioinformatics projects, e.g. in analyses of differential gene expression, gene ontology (GO) annotation, etc.
Input file format:
GO_term1 20
GO_term2 15
GO_term3 1
GO_term4 1
Usage:
Rscript draw_GO_donut_piechart.R molecular_function.txt "GO: molecular function"
or
./draw_GO_donut_piechart.R molecular_function.txt "GO: molecular function"
Input file format:
gene1 gene2 gene3
genome1 1 0 1
genome2 1 1 1
genome3 1 1 0
Usage:
Rscript ./draw_presence_absence_matrix.R presence_absence_matrix.txt
or
./draw_presence_absence_matrix.R presence_absence_matrix.txt