Readme file for the TreeFam gene tree widget
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/perl | |
snippet #! | |
#!/usr/bin/perl | |
# Hash Pointer | |
snippet . | |
=> | |
# Function | |
snippet sub | |
sub ${1:function_name} { |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Hive Plots</title> | |
<style> | |
@import url(../style.css?20120427); | |
.axis { | |
stroke: #000; | |
stroke-width: 1.5px; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Gene tree</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> | |
<link href="../libs/css/tipsy.css" rel="stylesheet" type="text/css" /> | |
<!-- <link href="../libs/css/control_panel.css" rel="stylesheet" type="text/css" /> --> |
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
### single | |
Y = data['TV'] # column | |
Y = data.TV | |
df[:2] # first two rows | |
df.ix['Maricopa'] # view a row | |
df.ix[:, 'coverage'] # view a column | |
df.ix['Yuma', 'coverage'] # view the value based on a row and column |
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
[TOC] | |
# numerical value | |
age_mean = df['Age'].mean() | |
df['Age'] = df['Age'].fillna(age_mean) | |
# categorical value | |
from scipy.stats import mode | |
mode_embarked = mode(df['Embarked'])[0][0] |
OlderNewer