Skip to content

Commit

Permalink
Update the notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Jan 22, 2015
1 parent 3dfaa6c commit 3d5657d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
7 changes: 3 additions & 4 deletions notebooks/Example - usALEX histogram.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:9a3ced672cdc06dbe2a9a1dad488edfb625f0d072e48996ed258470026951a56"
"signature": "sha256:5967497198e54e8f7d76b35446f4c89e8466d31b2f7583f98aa2c86e7ae36e8e"
},
"nbformat": 3,
"nbformat_minor": 0,
Expand Down Expand Up @@ -353,12 +353,11 @@
" values=['YlGnBu_crop', 'YlOrRd', 'Blues', 'PuBuGn', \n",
" 'PuBu', 'GnBu', 'YlGnBu', 'afmhot', 'alex_lv',\n",
" 'copper', 'summer', 'winter', 'cubehelix']),\n",
" zero_transparent = True,\n",
" reverse_cmap = False,\n",
" vmax_fret = True,\n",
" )\n",
"def plot_(min_size=50, cmap_compensate=False, overlay='KDE', binwidth=0.03, bandwidth=0.03, gridsize=50, cmap='YlGnBu_crop', \n",
" reverse_cmap=False, vmax_fret=True, zero_transparent=True):\n",
" reverse_cmap=False, vmax_fret=True):\n",
" dx = Sel(d, select_bursts.size, add_naa=True, th1=min_size)\n",
" bext.bursts_fitter(dx, 'E', binwidth=binwidth, bandwidth=bandwidth, \n",
" model=mfit.factory_three_gaussians())\n",
Expand All @@ -373,7 +372,7 @@
" marginal_kws = dict(binwidth=binwidth, show_model=True)\n",
" else:\n",
" marginal_kws = dict(binwidth=binwidth, show_kde=True, bandwidth=bandwidth)\n",
" alex_jointplot(dx, cmap=cmap, gridsize=gridsize, zero_transparent=zero_transparent, vmax_fret=vmax_fret, \n",
" alex_jointplot(dx, cmap=cmap, gridsize=gridsize, vmax_fret=vmax_fret, \n",
" cmap_compensate=cmap_compensate, marginal_kws=marginal_kws, joint_kws=dict(edgecolor='grey', lw=0.2))\n",
" \n",
" fig = gcf()\n",
Expand Down
29 changes: 28 additions & 1 deletion notebooks/FRETBursts - us-ALEX smFRET burst analysis.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:6d5d233a6f2af35c186297fc88ec461095604642c59f1bab5d72ebd6c964ed86"
"signature": "sha256:dfd78c9013f95b3ff0c5efad894ea835770dfcdc3627f2acd7ac68258995a1f4"
},
"nbformat": 3,
"nbformat_minor": 0,
Expand Down Expand Up @@ -541,6 +541,33 @@
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Background timetrace"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"d.calc_bg(bg.exp_fit, time_s=30, tail_min_us='auto', F_bg=1.7)"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"dplot(d, timetrace_bg)"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 3d5657d

Please sign in to comment.