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
def fasta2dict(fil): | |
""" | |
Read fasta-format file fil, return dict of form scaffold:sequence. | |
Note: Uses only the unique identifier of each sequence, rather than the | |
entire header, for dict keys. | |
""" | |
dic = {} | |
cur_scaf = '' | |
cur_seq = [] |
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
<snippet> | |
<content><![CDATA[for(${1:i} in ${2:seq}) { | |
${3:#do something} | |
}]]></content> | |
<tabTrigger>for</tabTrigger> | |
<scope>source.r, source.rd.console</scope> | |
<description>For Loop</description> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[if(${1:test}){ | |
${2:yes} | |
} else { | |
${3:no} | |
} | |
]]></content> | |
<tabTrigger>ife</tabTrigger> | |
<scope>source.r, source.rd.console</scope> | |
<description>Ifelse</description> |
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
<snippet> | |
<content><![CDATA[plot(${1:predictor/factor}, ${2:response}, | |
xlab="${3:xlabel}", | |
ylab="${4:ylabel}", | |
main="${5:main}")]]></content> | |
<tabTrigger>plo</tabTrigger> | |
<scope> source.r, source.rd.console</scope> | |
<description>plot</description> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
${1:variable} <- princomp(na.omit(cbind(${2:v1}, ${3:v2})))]]></content> | |
<tabTrigger>prin</tabTrigger> | |
<scope> source.r, source.rd.console</scope> | |
<description>principal components rmode</description> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
${1:variable} <- cor(${2:var/mat}, ${3:var,} use=${4:"complete.obs"})]]></content> | |
<tabTrigger>cor</tabTrigger> | |
<scope> source.r, source.rd.console</scope> | |
<description>correlation</description> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
# ${1:summary} | |
# | |
# USAGE: | |
# ${2:fx_call}(${3:vars}) | |
# | |
# ARGS: | |
# ${4:args} | |
# |
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
# Config file for macfanctl daemon | |
# | |
# Note: 0 < temp_X_floor < temp_X_ceiling | |
# 0 < fan_min < 6200 | |
fan1_min: 2000 | |
temp_avg_floor: 35 | |
temp_avg_ceiling: 45 |
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
# CC0, a GPL-compliant copyright; this code is released to the public domain. | |
# See <http://creativecommons.org/publicdomain/zero/1.0/> | |
# | |
# Written in MONTH YEAR by AUTHOR(S), email | |
# | |
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
color desert | |
filetype plugin on | |
syntax on | |
let mapleader = "," | |
let g:mapleader = "," | |
let g:slime_target = "tmux" | |
let python_highlight_all = 1 | |
map <F12> :let &background = ( &background == "dark"? "light" : "dark" )<CR> |
OlderNewer