Skip to content

Commit

Permalink
v0.2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
yh202109 committed Jul 13, 2024
1 parent eaa7412 commit 2f8df86
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docs/example_ectd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@
"FDA has released guidance on heading hierarchy of eCTD [^3]<sup>,</sup>[^4].\n",
"The `ectd` module provides functions for listing and searching within the heading hierarchy.\n",
"\n",
"**Disclaimer**: this module is shared for quick searching and preview headings with the intention to be helpful. The author can not guarantee the correctness of the heading. Please notify the author if any typos were found.\n",
"**Disclaimer**: this module is shared for quick searching and preview headings with the intention to be helpful. The author can not guarantee the correctness of the heading. Please notify the author if any typos were found."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Module 1\n",
"\n",
"To view CTOC of Module 1:"
]
Expand Down Expand Up @@ -49,6 +56,8 @@
}
},
"source": [
"## Module 2\n",
"\n",
"To view CTOC of Module 2:"
]
},
Expand All @@ -69,6 +78,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Module 3\n",
"\n",
"To view CTOC of Module 3:"
]
},
Expand All @@ -89,6 +100,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Module 4\n",
"\n",
"To view CTOC of Module 4:"
]
},
Expand All @@ -109,6 +122,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Module 5 \n",
"\n",
"To view CTOC of Module 5:"
]
},
Expand All @@ -129,6 +144,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Find Titles using Keywords\n",
"\n",
"Please note that keywords are not case sensitive, but titles are case sensitive. \n",
"\n",
"To search a word within the hierarchy:"
]
},
Expand Down
45 changes: 45 additions & 0 deletions docs/example_ectd2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
"The `ectd` module provides functions for listing and searching within the heading hierarchy.\n",
"\n",
"**Disclaimer**: this module is shared for quick searching and preview headings with the intention to be helpful. The author can not guarantee the correctness of the heading. Please notify the author if any typos were found.\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Module 1\n",
"\n",
"To view CTOC of Module 1:"
]
Expand Down Expand Up @@ -49,6 +57,8 @@
}
},
"source": [
"## Module 2\n",
"\n",
"To view CTOC of Module 2:"
]
},
Expand All @@ -69,6 +79,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Module 3\n",
"\n",
"To view CTOC of Module 3:"
]
},
Expand All @@ -89,6 +101,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Module 4\n",
"\n",
"To view CTOC of Module 4:"
]
},
Expand All @@ -109,6 +123,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Module 5\n",
"\n",
"To view CTOC of Module 5:"
]
},
Expand All @@ -129,6 +145,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Find Titles using Keywords\n",
"\n",
"Please note that keywords are not case sensitive, but titles are case sensitive. \n",
"\n",
"To search a word within the hierarchy:"
]
},
Expand All @@ -152,6 +172,11 @@
"To include the upper CTOC sections that include search results:"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -165,6 +190,26 @@
"print(\"\\n\".join(ctoc.find_section_given_words(\"REMS\", outfmt='tree')))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To search multiple keywords:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"vscode": {
"languageId": "plaintext"
}
},
"outputs": [],
"source": [
"print(\"\\n\".join(ctoc.find_section_given_words([\"REMS\",\"isE\"], outfmt='tree')))"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 2f8df86

Please sign in to comment.