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
local$ ssh -L 8888:localhost:8888 remote | |
remote$ jupyter notebook |
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
#------------------------------------------------------------------------------ | |
# Configurable configuration | |
#------------------------------------------------------------------------------ | |
c = get_config() | |
#c.NotebookApp.ip = '*' | |
c.NotebookApp.password = u'sha1:xxxx' | |
c.NotebookApp.open_browser = False | |
#c.NotebookApp.port = 8899 |
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
#usage: make SRA=XXXXX.sra | |
## commands | |
FASTQ-DUMP = /somewhere/fastq-dump | |
## files | |
FASTQ1 = $(SRA:%.sra=%_1.fastq) | |
FASTQ2 = $(SRA:%.sra=%_2.fastq) | |
all: $(FASTQ1) $(FASTQ2) |
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
## commands | |
FASTQ-DUMP = /somewhere/fastq-dump | |
## files | |
FASTQ1 = $(SRA:%.sra=%_1.fastq) | |
FASTQ2 = $(SRA:%.sra=%_2.fastq) | |
all: $(FASTQ1) $(FASTQ2) | |
# obtain the paired-end fastq files from a given sra file |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from itertools import groupby | |
def fasta_iter(fasta_name): | |
''' | |
given a fasta file. yield tuples of header, sequence | |
modified from Brent Pedersen | |
Correct Way To Parse A Fasta File In Python | |
https://www.biostars.org/p/710/ | |
''' | |
with open(fasta_name) as f: |
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
- 例えば,http://qiita.com/chosan211/items/1472198165442e93047e などを参照してインストールする | |
- 手元のmac環境の場合は,macports を使って下記のように簡単にインストールできた | |
- `$sudo port install maven3` | |
- `$sudo port select --set maven maven3` | |
- `$ mvn --version` |
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
いつも使うpython notebook の最初に書くimport 文 |
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
Host github.com | |
User [email protected] | |
Port 22 | |
Hostname github.com | |
IdentityFile ~/.ssh/github | |
IdentitiesOnly yes | |
Host * | |
ControlMaster auto | |
ControlPath ~/.ssh/mux-%r@%h:%p |
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
from itertools import groupby | |
import gzip | |
# Fasta IO | |
def fasta_iter(fasta_name): | |
''' | |
given a fasta file. yield tuples of header, sequence | |
modified from Brent Pedersen | |
Correct Way To Parse A Fasta File In Python | |
https://www.biostars.org/p/710/ |