Skip to content

Commit

Permalink
updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rajanbit committed May 15, 2024
1 parent 1560e1b commit c10b869
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 32 deletions.
107 changes: 75 additions & 32 deletions docs/SeqPlotter_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,49 @@
"seq_logo(data, \"DNA\")"
]
},
{
"cell_type": "markdown",
"id": "63ae3225-6451-4867-8ae3-cb566b00943c",
"metadata": {},
"source": [
"### 1.25 Generate random nucleotide sequence\n",
"```\n",
"# Generating random sequences with given length and GC content \n",
">>> DNA.generate_random_seq(lenght, GC_frequency, count)\n",
"```\n",
"**Output:** append random sequences object of given length and GC content to the DNA object"
]
},
{
"cell_type": "code",
"execution_count": 29,
"id": "1a3faf2f-34d5-4f8d-ba23-7e6964e8d1bc",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"seqID\tseq\n",
"random_seq1:\t[ATACAAATCACAAGTATTCAATACAATAGACGTATGTAAGACTGATTGTTAATTCAGTAAATAGACGTGA]\n",
"random_seq2:\t[TTCTTGTGTCATTATTTACACAGGAAATATGTAACCCAACACATAGATTTACAAACTATACTGGTAACAT]\n",
"random_seq3:\t[CGTTTAGTGTTGCATGATGCGATCATTACATTTCTTATACAGTTGATATCAACAAATGCTACACTGACAA]\n",
"random_seq4:\t[TAATGAGGTGAGCTTTAGATATAAAGGCTTCTTATAGCATACCATTGCAAAAGATCGCCATTATATAATG]\n",
"random_seq5:\t[TTCATTCAGAAATCAATATACAAACATTATTGAAATACCTCATTTTGTGTTTTGAAATCTAGTCAGGTAT]\n"
]
}
],
"source": [
"# Clearing records \n",
"DNA.clear()\n",
"\n",
"# Generating 10 random sequences with 70 bp length and 30% GC content \n",
"new_data = DNA.generate_random_seq(70, 0.3, 10)\n",
"\n",
"# Printing first 5 random sequences\n",
"DNA.head()"
]
},
{
"cell_type": "markdown",
"id": "aa4decc1-6432-48bc-ab65-3215ae1397fa",
Expand All @@ -1351,7 +1394,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": 30,
"id": "c4772da7-a480-4ddf-93ad-dc5119e537dc",
"metadata": {},
"outputs": [],
Expand All @@ -1374,7 +1417,7 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 31,
"id": "606d4a4f-f545-4086-99d8-163ec57d3fb3",
"metadata": {},
"outputs": [],
Expand All @@ -1397,7 +1440,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": 32,
"id": "cf8d4323-cb0a-49ec-b264-fc21a117ffd1",
"metadata": {},
"outputs": [
Expand All @@ -1407,7 +1450,7 @@
"35"
]
},
"execution_count": 31,
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1431,7 +1474,7 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 33,
"id": "e19c1b1b-50da-42c4-a508-451a47d59fb1",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1460,7 +1503,7 @@
" 'V': 7.701922950367426}"
]
},
"execution_count": 32,
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1485,7 +1528,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 34,
"id": "5329adfa-ab60-4f9c-bf1f-94ebf3f6c30c",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1520,7 +1563,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 35,
"id": "bf09ff7e-cd03-45e0-a0e9-6e6a42195561",
"metadata": {},
"outputs": [
Expand All @@ -1530,7 +1573,7 @@
"3.87"
]
},
"execution_count": 34,
"execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -1558,7 +1601,7 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 36,
"id": "7598c3b5-15d4-43cd-9e6d-4be82c08fdac",
"metadata": {},
"outputs": [
Expand All @@ -1568,7 +1611,7 @@
"'G'"
]
},
"execution_count": 35,
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1580,7 +1623,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 37,
"id": "40796ab6-0353-40cd-be91-f727d91c9460",
"metadata": {},
"outputs": [
Expand All @@ -1590,7 +1633,7 @@
"'VGGEA'"
]
},
"execution_count": 36,
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1614,7 +1657,7 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 38,
"id": "7ec5bd52-647c-4cec-9648-26d045eaeb4e",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1647,7 +1690,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 39,
"id": "df8610a6-9923-482f-b755-e23cb3d1fe85",
"metadata": {},
"outputs": [
Expand All @@ -1670,7 +1713,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 40,
"id": "952619d2-f7b8-41a6-9ebb-a167482eb01d",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1705,7 +1748,7 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 41,
"id": "4ce87bc7-22f9-4ef7-927a-1e7742c2fe62",
"metadata": {},
"outputs": [
Expand All @@ -1715,7 +1758,7 @@
"4"
]
},
"execution_count": 40,
"execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1739,7 +1782,7 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": 42,
"id": "68a92963-a9ce-44c3-afdb-a9ea598f825d",
"metadata": {},
"outputs": [
Expand All @@ -1749,7 +1792,7 @@
"'MLPFWKRLLYAAVIAGALVGADAQFWKTAGTAGSIQDSVKHYNRNEPKFPIDDSYDIVDSAGVARGDLPPKNCTAGYAGCVPKCIAEKGNRGLPGPLGPTGLKGEMGFPGMEGPSGDKGQKGDPGPYGQRGDKGERGSPGLHGQAGVPGVQGPAGNPGAPGINGKDGCDGQDGIPGLEGLSGMPGPRGYAGQLGSKGEKGEPAKENGDYA'"
]
},
"execution_count": 41,
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1773,7 +1816,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 43,
"id": "bd587a0d-b77d-4278-8e89-b10172e04de8",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1807,7 +1850,7 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 44,
"id": "c7482ae3-2891-4448-9be2-513d1f67517a",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1841,7 +1884,7 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": 45,
"id": "b63a4c83-51ab-46e8-8cb9-cdd5c7b7174b",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1875,7 +1918,7 @@
},
{
"cell_type": "code",
"execution_count": 45,
"execution_count": 46,
"id": "7b364230-ad31-41a0-ac97-eb030ff373e9",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1917,7 +1960,7 @@
},
{
"cell_type": "code",
"execution_count": 46,
"execution_count": 47,
"id": "a2ed333b-4231-407b-b23d-ff661275e089",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -2083,7 +2126,7 @@
"[4 rows x 84 columns]"
]
},
"execution_count": 46,
"execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -2119,7 +2162,7 @@
},
{
"cell_type": "code",
"execution_count": 47,
"execution_count": 48,
"id": "93250b7d-cd2b-4246-a04b-988fbc820b38",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -2181,7 +2224,7 @@
"seq4 3.832661 6.474332"
]
},
"execution_count": 47,
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -2219,7 +2262,7 @@
},
{
"cell_type": "code",
"execution_count": 48,
"execution_count": 49,
"id": "c21e0574-83f9-408d-af0f-464ae6e1a704",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -2263,7 +2306,7 @@
},
{
"cell_type": "code",
"execution_count": 49,
"execution_count": 50,
"id": "698a6d42-7476-4a5e-8865-3610a05211d0",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -2309,7 +2352,7 @@
},
{
"cell_type": "code",
"execution_count": 50,
"execution_count": 51,
"id": "b8d7be86-ad6d-470b-9805-70f3fe23a3ac",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -2351,7 +2394,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.18"
"version": "3.8.19"
}
},
"nbformat": 4,
Expand Down
Binary file modified docs/SeqPlotter_user_guide.pdf
Binary file not shown.

0 comments on commit c10b869

Please sign in to comment.