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/examples/active_site.ipynb
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,27 @@
45
45
"## Loading the HMM"
46
46
]
47
47
},
48
+
{
49
+
"cell_type": "markdown",
50
+
"metadata": {},
51
+
"source": [
52
+
"Let's start by downloading the PSKI-AT HMM from the AntiSMASH repository. We can use `urllib.request` to do that from within our Python script:"
53
+
]
54
+
},
55
+
{
56
+
"cell_type": "code",
57
+
"execution_count": null,
58
+
"metadata": {},
59
+
"outputs": [],
60
+
"source": [
61
+
"import shutil\n",
62
+
"from urllib.request import urlopen\n",
63
+
"\n",
64
+
"with urlopen('https://raw.githubusercontent.com/antismash/antismash/refs/heads/8-0-stable/antismash/modules/active_site_finder/data/PKSI-AT.hmm2') as src:\n",
65
+
" with open(\"PKSI-AT.hmm2\", \"wb\") as dst:\n",
66
+
" shutil.copyfileobj(src, dst)"
67
+
]
68
+
},
48
69
{
49
70
"cell_type": "markdown",
50
71
"metadata": {},
@@ -58,7 +79,7 @@
58
79
"metadata": {},
59
80
"outputs": [],
60
81
"source": [
61
-
"with pyhmmer.plan7.HMMFile(\"data/hmms/txt/PKSI-AT.hmm\") as hmm_file:\n",
82
+
"with pyhmmer.plan7.HMMFile(\"PKSI-AT.hmm2\") as hmm_file:\n",
0 commit comments