Files
obikmer/math/Untitled.ipynb
T
Eric Coissac 0d1ecac233 Refactor k-mer indexing, enhance session features, and update documentation
This commit introduces significant refinements across the codebase. Core indexing logic is updated with hard constraints on k-mer length, statistical modeling clarifications, and the implementation of the Karlin & Ost theory for chance-collision statistics. Session management features are enhanced with robust memoization capabilities, atomic file operations, per-key locking, and memory mapping support. Additionally, documentation is updated, including a new citation style, and new mathematical notebook support is added.
2026-10-13 08:41:42 +02:00

127 lines
2.2 KiB
Plaintext

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "12264929-a50f-435a-a893-070b3f9573d9",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(G, k)"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"var('G k')"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "30d5efd3-8bdc-4249-ad9d-abf7cad3481a",
"metadata": {},
"outputs": [],
"source": [
"q = 1 / 4^k"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "588770fe-ddf2-49c4-9f1f-df177543c69c",
"metadata": {},
"outputs": [],
"source": [
"P0 = (1-q)^G"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "4d52ce3d-88e5-4c10-ae8e-dba268185f7e",
"metadata": {},
"outputs": [],
"source": [
"P1 = 1 - P0"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "91c8cba6-bf05-4694-9598-eae9663e5c82",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"-(-1/4^k + 1)^G + 1"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P1"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "c29cfeae-9a3c-483e-a007-81df52eef62d",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Lambda"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"var('Lambda')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "53028547-57d4-4375-8a26-8ae92309a3c0",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "SageMath 10.9",
"language": "sage",
"name": "sagemath-10.9"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.14.3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}