Skip to content

Instantly share code, notes, and snippets.

ENSMUSG00000015854
ENSMUSG00000027718
ENSMUSG00000040009
ENSMUSG00000029816
ENSMUSG00000025964
ENSMUSG00000059412
ENSMUSG00000044309
ENSMUSG00000004668
ENSMUSG00000052271
ENSMUSG00000028238
@xie186
xie186 / Method1
Created September 28, 2016 15:47
ExampleListForVennDiagram
ENSMUSG00000015854
ENSMUSG00000027718
ENSMUSG00000040009
ENSMUSG00000029816
ENSMUSG00000025964
ENSMUSG00000059412
ENSMUSG00000044309
ENSMUSG00000004668
ENSMUSG00000052271
ENSMUSG00000028238
@xie186
xie186 / bobp-python.md
Created December 9, 2016 19:12 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 26 10:55:55 2017
@author: xie186
"""
#import urllib3.request
from docx import Document
from docx.shared import Inches
@xie186
xie186 / tab2xlsx.pl
Last active November 20, 2021 17:58
Generate excel files based on tab-delimited file
#!/usr/bin/perl -w
use strict;
##################################################
#This script is to convert tab-delimited file to #
#Excel sheets. #
##################################################
use Excel::Writer::XLSX;
my ($tab, $out) = @ARGV;
die usage() unless @ARGV == 2;
@xie186
xie186 / ajax.js
Created January 15, 2018 04:53
Haha
{% block js_block %}
<script>
$("#project-select").change(function (){
var pro_gene = $(this).val();
$.ajax({
url: '{% url "gene_expdb" %}',
data: {
'pro_gene': pro_gene,
# singularity install ubuntu 14 desktop ISO
# http://singularity.lbl.gov/install-linux
# https://groups.google.com/a/lbl.gov/forum/#!forum/singularity
# get git
sudo apt-get install git
# install autogen dependencies
sudo apt-get install -y build-essential libtool autotools-dev automake autoconf libarchive-dev
@xie186
xie186 / README.md
Created December 31, 2018 04:17
An example of reading sample information from tab-delimited files

snakemake -n -p -s RNA-seq.sm.py --configfile config.yaml

@xie186
xie186 / DMR_merge.pl
Last active August 17, 2020 14:51
How to write Perl script to merge chromosome coordinates
#!/usr/bin/perl -w
use strict;
my ($DMR, $out) = @ARGV;
open DMR, $DMR or die "File not found: $!";
open OUT, "+>$out" or die "$!";
#read a line,
# go to next line
@xie186
xie186 / README.md
Last active March 5, 2019 03:48
Barplot with coloring for different categories (classes)

How to donwload:

Click Download Zip button (topright).

How to use

Usage: Rscript barplot_with_class.R

Example: Rscript barplot_with_class.R demo.tab test.pdf