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: fastqdup.cpp | |
| // # Desc: A short program for duplication reads statistics. | |
| // # Author: tanhao | |
| // # Email: tanhao2013@gmail.com | |
| // # HomePage: http://buttonwood.github.io | |
| // # Version: 0.0.1 | |
| // # LastChange: 2014-04-15 10:37:49 | |
| // # 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: gc_dp_pip.py | |
| # Desc: A script for gc content and coverage statistics by windows; | |
| # a genome fasta file and soap coverage file needs. | |
| # Author: tanhao | |
| # Email: tanhao2013@gmail.com | |
| # HomePage: http://buttonwood.github.io | |
| # Version: 0.0.1 | |
| # LastChange: 2014-04-14 15:29:14 |
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: cegma_train.sh | |
| # Desc: A short script for training a cegma annotation for SNP hmm set! | |
| # Author: tanhao | |
| # Email: tanhao2013@gmail.com | |
| # HomePage: http://buttonwood.github.io | |
| # Version: 0.0.1 | |
| # LastChange: 2014-03-21 10:13:08 | |
| # 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
| when you are old and gray and full of sleep, | |
| And nodding by the fire,take down this book, | |
| And slowly read,and dream of the soft look, | |
| Your eyes had once,and of their shadows deep. | |
| How many loved your moments of glad grace, | |
| And loved your beauty with love false or true, | |
| But one man loved the pilgrim soul in you, | |
| And loved the sorrows of your changing face. | |
| And bending down beside the glowing bars, | |
| Murmur,a little sadly,how love fled, |
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
| import argparse | |
| import re | |
| import urllib | |
| def getHtml(url): | |
| page = urllib.urlopen(url) | |
| html = page.read() | |
| return html | |
| def getImg(html): |
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
| <snippet> | |
| <content><![CDATA[ | |
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| """ | |
| @File: | |
| @Author: Hao Tan | |
| @Date: | |
| @Email: tanhao2013@foxmail.com |
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
| import os, Queue, threading, urllib2 | |
| class DownLoadThread(threading.Thread): | |
| """docstring for DownLoadThread""" | |
| def __init__(self, queue): | |
| #super(DownLoadThread, self).__init__() | |
| threading.Thread.__init__(self) | |
| self.queue = queue | |
| def run(self): | |
| while True: |
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
| if [ $# != 3 ]; then | |
| echo "Usage: sh $0 id table old.sql | sh " | |
| echo "This script will change the raw sql file directly." | |
| echo "Please make sure you have a backup for checking!" | |
| exit | |
| fi | |
| echo cp $3 ${3}.bak | |
| tmp=$(($1 * 8)) |
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 | |
| # -*- coding: UTF-8 -*- | |
| """ | |
| @File: pxssh-test.py | |
| @Author: Hao Tan | |
| @Date: 2014-08-08 | |
| @Email: tanhao2013@foxmail.com | |
| @Desc: A test script for batch monitoring hundreds of servers. | |
| """ |
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
| # perl phaser_cobar_action.pl stdout.log.2014-09-02 > actions.tab | |
| my %pool; | |
| my %count; | |
| my $action; | |
| my $action_text; | |
| my %all; | |
| my %route; |