This file contains 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 perl | |
$module_status = `circos -module` | |
or die("please ensure circos installed."); | |
@module_status = split(/\n/, $module_status); | |
foreach (@module_status) { | |
chomp; | |
if ($_ =~ /^missing\s*(.+)$/) { |
This file contains 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
"Personal setting | |
" ----------------------------------------------------------------------------------- | |
" 开启行号显示 | |
set nu | |
" 开启自动缩进 | |
set ai | |
" 自适应不同语言的智能缩进 | |
filetype indent on |
This file contains 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
## RNA-seq analysis with DESeq2 | |
## Stephen Turner, @genetics_blog | |
# RNA-seq data from GSE52202 | |
# http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=gse52202. All patients with | |
# ALS, 4 with C9 expansion ("exp"), 4 controls without expansion ("ctl") | |
# Import & pre-process ---------------------------------------------------- | |
# Import data from featureCounts |
This file contains 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
#!/bin/bash | |
# call variance with picard, GATK and samtools | |
reference=$1 | |
sample=$2 | |
# path to software | |
PICARD="/path/to/picard.jar" # broadinstitute-picard-2.9.2-6-gbb529af | |
SAMTOOLS="/path/to/samtools" # samtools 1.2 |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
crawl genecard, fetch gene infos. | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
usage: fetch-genecard.py [-h] [--xpath XPATH] [--base-url BASE_URL] | |
[--num NUM] [--timeout TIMEOUT] | |
id_list |
This file contains 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
""" | |
提取 S1 壁纸战页面中的壁纸链接并下载 | |
https://bbs.saraba1st.com/2b/thread-1579059-1-1.html | |
""" | |
import os | |
import pathlib | |
import re | |
import urllib3 |
This file contains 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 bash | |
# Installs ffmpeg from source (HEAD) with libaom and libx265, as well as a few | |
# other common libraries | |
# binary will be at ~/bin/ffmpeg | |
sudo apt update && sudo apt upgrade -y | |
mkdir -p ~/ffmpeg_sources ~/bin | |
export PATH="$HOME/bin:$PATH" |
This file contains 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
USAGE = ''' | |
Usage example: | |
python tabs2spaces.py . 4 ".*\.py$" | |
''' | |
import io | |
import argparse | |
import os |
This file contains 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/python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |
This file contains 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
""" | |
Extract the urls from YouTube playlist page html file. | |
usage: | |
$ python extract_urls.py PLAYLIST.html OUTPUT.txt | |
""" | |
import re | |
import sys |
OlderNewer