You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/notebooks/api_examples.ipynb
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -387,7 +387,7 @@
387
387
"cell_type": "markdown",
388
388
"metadata": {},
389
389
"source": [
390
-
"To convert a motif to an image, use `to_img()`. Supported formats are png, ps and pdf."
390
+
"To convert a motif to an image, use `plot_logo()`. Supported formats are png, ps and pdf."
391
391
]
392
392
},
393
393
{
@@ -397,7 +397,7 @@
397
397
"outputs": [],
398
398
"source": [
399
399
"m = motif_from_consensus(\"NTGASTCAN\")\n",
400
-
"m.to_img(\"ap1.png\", fmt=\"png\")"
400
+
"m.plot_logo(\"ap1.png\", fmt=\"png\")"
401
401
]
402
402
},
403
403
{
@@ -465,14 +465,14 @@
465
465
"f = Fasta(\"test.small.fa\")\n",
466
466
"m = motif_from_consensus(\"TGAsTCA\")\n",
467
467
"\n",
468
-
"m.pwm_scan(f)"
468
+
"m.scan(f)"
469
469
]
470
470
},
471
471
{
472
472
"cell_type": "markdown",
473
473
"metadata": {},
474
474
"source": [
475
-
"This return a dictionary with the sequence names as keys. The value is a list with positions where the motif matches. Here, as the AP1 motif is a palindrome, you see matches on both forward and reverse strand. This is more clear when we use `pwm_scan_all()` that returns position, score and strand for every match."
475
+
"This return a dictionary with the sequence names as keys. The value is a list with positions where the motif matches. Here, as the AP1 motif is a palindrome, you see matches on both forward and reverse strand. This is more clear when we use `scan_all()` that returns position, score and strand for every match."
0 commit comments