This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Transforming a color scale | |
| doInstall <- TRUE # Change to FALSE if you don't want packages installed. | |
| toInstall <- c("ggplot2", "RColorBrewer", "scales") | |
| if(doInstall){install.packages(toInstall, repos = "http://cran.us.r-project.org")} | |
| lapply(toInstall, library, character.only = TRUE) | |
| # Generate some data | |
| nn <- 10000 | |
| myData <- data.frame(X = rnorm(nn), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #============================================================================= | |
| # FileName: plot.R | |
| # Desc: A short script for hist barplot and pareto cumulated frequency. | |
| # Author: tanhao | |
| # Email: [email protected] | |
| # HomePage: http://buttonwood.github.io | |
| # Version: 0.0.1 | |
| # LastChange: 2014-03-20 14:35:48 | |
| # History: | |
| #============================================================================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| ''' | |
| #============================================================================= | |
| # FileName: parser_m8_solar.py | |
| # Desc: A script for parsering a blast m8 file to solared blocks; | |
| # Author: tanhao | |
| # Email: [email protected] | |
| # HomePage: http://buttonwood.github.io | |
| # Version: a.0.1 | |
| # LastChange: 2014-03-19 09:22:07 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(gridExtra) | |
| a <- qplot(TMPRSS4, ECADHERIN, data=spear) | |
| b <- qplot(TMPRSS4, ECADHERIN, data=spear, geom="jitter") | |
| grid.arrange(a,b,ncol=2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // #============================================================================= | |
| // # FileName: fastqc.cpp | |
| // # Desc: A program for fastqc stat files; | |
| // # Author: tanhao | |
| // # Email: [email protected] | |
| // # HomePage: http://buttonwood.github.io | |
| // # Version: 0.0.1 | |
| // # LastChange: 2014-04-10 16:27:55 | |
| // # History: | |
| // #============================================================================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #============================================================================= | |
| # FileName: plot-maf.pl | |
| # Desc: A short script for using a maf tab file to draw a alignment block | |
| # graph. | |
| # Author: tanhao | |
| # Email: [email protected] | |
| # HomePage: http://buttonwood.github.io | |
| # Version: 0.0.1 | |
| # LastChange: 2014-04-21 15:31:28 | |
| # History: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a <- read.table("./MMJ.freq.stat", skip = 8, sep = "\t", nrows = 254) | |
| png("./kmer.png",type="cairo") | |
| head(a) | |
| plot(a[,1], a[,3]*100, | |
| xlim = c(0,200), | |
| ylim = c(0,5), | |
| col = "darkblue", | |
| type = "l", | |
| lty = 1, | |
| xlab = "Sequencing Depth (X)", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #============================================================================= | |
| # FileName: add_taxonomy_info.pl | |
| # Desc: Add taxonomy information for a blast nt/nr table file. | |
| # Author: tanhao | |
| # Email: [email protected] | |
| # HomePage: http://buttonwood.github.io | |
| # Version: 0.0.1 | |
| # LastChange: 2013-05-05 11:35:12 | |
| # History: | |
| #============================================================================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #============================================================================= | |
| # FileName: clean_cog_db.pl | |
| # Desc: Filter genes in cog database which can't correspond to any COG ID. | |
| # Author: tanhao | |
| # Email: [email protected] | |
| # HomePage: http://buttonwood.github.io | |
| # Version: 0.0.1 | |
| # LastChange: 2014-05-09 11:19:35 | |
| # History: | |
| #============================================================================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #============================================================================= | |
| # FileName: stat_func.pl | |
| # Desc: | |
| # Author: tanhao | |
| # Email: [email protected] | |
| # HomePage: http://buttonwood.github.io | |
| # Version: 0.0.1 | |
| # LastChange: 2014-05-13 10:06:14 | |
| # History: | |
| #============================================================================= |
OlderNewer