[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DKRG5EJEDTPVTEY32JAPR0":3,"skill-same:01M7DKRG5EJEDTPVTEY32JAPR0":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M7DKRG5EJEDTPVTEY32JAPR0","read-whole-corpus-with-claude",null,"Answer a question from a chunked full-text literature corpus completely, by having Claude Haiku read every passage (not the top-k of a search) and return the numbers of the sentences that bear on it, so every quote is verbatim. Writes evidence.csv (each bearing passage with its sentences, PMID, page and citation), a read log, measured tokens and cost, and for a gene-list question a table of every HGNC gene those sentences name. Tested on the RetiGene corpus of inherited retinal disease papers (39,563 passages). Use when a question needs every paper that reports something (every gene with a property, every study of a variant or phenotype), when a RAG or PaperQA answer built from the best 10-30 chunks may be incomplete, to check how complete such an answer is, or to estimate the cost and time of reading a corpus before running it. Not for a quick lookup of one fact.","lijinbio\u002Faiscientist-skills","lijinbio","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16247242?v=4","01M7DKPQK7Q6V7QXAAPV51Z89N","Jin Li","01M7DKPQM0NMDN3M6XH7Z9AAKM",0,"MIT","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fliterature\u002Fread-whole-corpus-with-claude\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: read-whole-corpus-with-claude\ndescription: Answer a question from a chunked full-text literature corpus completely, by having Claude Haiku read every passage (not the top-k of a search) and return the numbers of the sentences that bear on it, so every quote is verbatim. Writes evidence.csv (each bearing passage with its sentences, PMID, page and citation), a read log, measured tokens and cost, and for a gene-list question a table of every HGNC gene those sentences name. Tested on the RetiGene corpus of inherited retinal disease papers (39,563 passages). Use when a question needs every paper that reports something (every gene with a property, every study of a variant or phenotype), when a RAG or PaperQA answer built from the best 10-30 chunks may be incomplete, to check how complete such an answer is, or to estimate the cost and time of reading a corpus before running it. Not for a quick lookup of one fact.\nlicense: MIT\ncompatibility: Python 3.11 or newer with the anthropic package, an Anthropic API key with room for about 50 concurrent requests, and the corpus as chunks.jsonl (pmid, chunk, page, text); optionally its manifest CSV and the HGNC complete set. No GPU, no scheduler.\nmetadata:\n  category: literature\n  version: \"0.0.1\"\n  status: community\n  author: \"Yijun Sun\"\n  tags: \"literature, rag, corpus, full-text, evidence, claude, haploinsufficiency, retina\"\n  tested-with: \"anthropic 1.13.0 (Python SDK), claude-haiku-5-5 at effort medium, Python 3.13.3\"\n  compute: \"whole RetiGene corpus (39,563 passages, one question): 4,012 calls, 408 s with 48 parallel calls, $5.31 (Claude Haiku 5.5 at $0.10 \u002F $0.50 per million input \u002F output tokens); a 3,270-passage sample: 327 calls, 42 s, $0.47; estimate and gene table: seconds on one CPU\"\n  requires-gpu: \"false\"\n  scheduler: \"none\"\n  requires-network: \"runtime\"\n  requires-secrets: \"ANTHROPIC_API_KEY\"\n---\n\n# Read a whole corpus with Claude\n\n`scripts\u002Fread_corpus.py` sends every passage of a corpus to Claude Haiku, ten per call, each split\ninto numbered sentences, with one question. For each passage Claude returns the numbers of the\nsentences that bear on the question and a short note. The script takes those sentences from the\ntext by number, so no quote can be invented, and writes them to `evidence.csv`.\n\nWhy read everything: an answer spread over hundreds of papers is mostly in passages that do not\nlook like the question. On the RetiGene corpus (measured in AiScientist's benchmark):\n\n- a top-12 hybrid search found 103 of 184 graded answering passages on 32 questions;\n- a focused read (every passage naming the subject, then the nearest ones) found 181 of them, but\n  only 51-59% of what a whole read found on two broad questions;\n- ranked by chunk embeddings, a one-topic question needed the first 16,088 passages to cover all its\n  answering passages, and a gene-list question needed 32,214 of 39,563 for 99%.\n\nThe thing most likely to go wrong is the last step, not the read: a prose answer written from the\nevidence of a list question dropped 20 of the 51 genes that evidence named. For a list, report the\ntable, not a summary.\n\nTested on the RetiGene corpus: 1,736 full-text papers on inherited retinal disease, 39,563\npassages (`chunks.jsonl`, 69 MB), with the question \"Which genes cause inherited retinal disease\nthrough haploinsufficiency?\":\n\n| Run | Passages | Calls | Time | Cost | Bearing | Graded answering passages found |\n| --- | --- | --- | --- | --- | --- | --- |\n| sample: the 270 graded passages + 3,000 at random | 3,270 | 327 | 42 s | $0.47 | 492 | 253 of 270 (93.7%) |\n| whole corpus | 39,563 | 4,012 | 408 s | $5.31 | 3,780 (1,109 papers) | 259 of 270 (95.9%) |\n\n\"Graded\" passages are the ones Claude Haiku rated as answering the question (2 on a 0-2 scale) when\nit graded every passage an earlier whole read had marked. The same prompt and settings, run from\nAiScientist's own code, found 94.7% (sample) and 97.4% (whole corpus, $5.32, 404 s) of the\npassages graded at the time: one reading is not perfectly repeatable.\n\nReplace every `\u002Fpath\u002Fto\u002F...` with your own paths.\n\n## When to use\n\n- A question whose answer is a set: every gene with a property, every paper that reports an\n  outcome, every variant seen with a phenotype.\n- Checking how complete a RAG answer is: read the corpus once and compare.\n- Costing a read before running it (`estimate` makes no call).\n\n## When NOT to use\n\n- One fact from one or two papers: a search is enough and costs nothing.\n- A corpus you have no right to send to an API provider: every passage goes to Anthropic.\n- A question you cannot state without ambiguity: each passage is judged against the question as\n  written, so settle what counts first (see §5).\n\n## 1. Environment setup\n\n```bash\npython3.13 -m venv \u002Fpath\u002Fto\u002Fenvs\u002Fread_corpus\n\u002Fpath\u002Fto\u002Fenvs\u002Fread_corpus\u002Fbin\u002Fpip install anthropic==1.13.0\n\u002Fpath\u002Fto\u002Fenvs\u002Fread_corpus\u002Fbin\u002Fpython scripts\u002Fread_corpus.py read --help\nexport ANTHROPIC_API_KEY=...            # or ANTHROPIC_BASE_URL and a token for a proxy\n```\n\nThe script uses only the standard library and `anthropic`. The tests run without either a key or\nthe package: `python -m pytest tests` (12 tests, about a second).\n\n## 2. Prepare inputs\n\n| File | Needed by | Format |\n| --- | --- | --- |\n| `chunks.jsonl` | `estimate`, `read` | one passage per line: `{\"pmid\": \"1302020\", \"chunk\": 0, \"page\": 1, \"text\": \"...\"}` |\n| `manifest.csv` | `read`, optional | `doc_id` (or `pmid`), `citation`, `title`, `year`: puts the citation in `evidence.csv` |\n| `hgnc_complete_set.txt` | `genes` | the HGNC complete set (tab-separated, `symbol`, `alias_symbol`, `prev_symbol`, `status`), from \u003Chttps:\u002F\u002Fwww.genenames.org\u002Fdownload\u002F> |\n\nA passage is keyed `pmid:chunk`; passages without text and repeated keys are skipped. Any chunked\ncorpus in this shape works. AiScientist's literature index writes it as\n`mechanism_cache\u002Fchunks.jsonl`, with `manifest.csv` and `hgnc_complete_set.txt` beside it.\n\n## 3. Configure\n\nThe defaults are the tested settings. Change them only for the reasons given.\n\n| Option | Default | Why |\n| --- | --- | --- |\n| `--model` | `claude-haiku-5-5` | the model the method was measured with; Claude Sonnet 5.5 costs 20 times more per token |\n| `--effort` | `medium` | `low` saved 8-18% of the cost but found 87% of the graded passages on the gene-list sample, against 95% |\n| `--batch` | `10` | passages per call. A yes\u002Fno screen of 30 or 50 passages per call before the read saved about 40% and lost 21-43% of the answering passages |\n| `--workers` | `48` | parallel calls. 48 ran with no rate-limit retries on the tested key; lower it if `[claude] RateLimitError` lines appear |\n| `--corpus` | `the lab's RetiGene corpus (inherited retinal disease)` | how the prompt names the corpus; describe your own. Any other text is a prompt change the results above do not cover |\n| `--price-in`, `--price-out` | `0.10`, `0.50` | USD per million tokens, for `usage.json` and the estimate |\n\n## 4. Run\n\n```bash\nC=\u002Fpath\u002Fto\u002Fcorpus\u002Fmechanism_cache\u002Fchunks.jsonl\nQ=\"Which genes cause inherited retinal disease through haploinsufficiency?\"\n\n# 1. What it will cost (no call is made).\npython scripts\u002Fread_corpus.py estimate --chunks \"$C\" --question \"$Q\"\n\n# 2. A small read first: check the evidence makes sense before paying for the whole corpus.\npython scripts\u002Fread_corpus.py read --chunks \"$C\" --question \"$Q\" --sample 500 --out \u002Fpath\u002Fto\u002Fout\u002Fsample\n\n# 3. The whole corpus.\npython scripts\u002Fread_corpus.py read --chunks \"$C\" --question \"$Q\" \\\n  --manifest \u002Fpath\u002Fto\u002Fcorpus\u002Fmanifest.csv --out \u002Fpath\u002Fto\u002Fout\u002Fwhole\n\n# 4. For a gene-list question: every gene the evidence names.\npython scripts\u002Fread_corpus.py genes --evidence \u002Fpath\u002Fto\u002Fout\u002Fwhole\u002Fevidence.csv \\\n  --hgnc \u002Fpath\u002Fto\u002Fcorpus\u002Fhgnc_complete_set.txt --check PRPF31,PAX6,OTX2\n```\n\nWhat the tested whole read printed for steps 1 and 3:\n\n```text\n{\"estimate\": {\"passages\": 39563, \"calls\": 3957, \"input_tokens\": 31735847, \"output_tokens\": [2888099, 4312367], \"cost_usd\": [4.6176, 5.3298], \"minutes\": 6.6, \"workers\": 48}}\n{\"passages\": 39563, \"read\": 39563, \"failed\": 0, \"bearing\": 3780, \"papers\": 1109, \"cost_usd\": 5.3148, \"wall_s\": 408}\n```\n\n`estimate` counts the characters each call would send and converts them with the rates of the\ntested runs (2.3 characters per input token; 73-109 output tokens per passage; 4.8 s per call per\nworker). On the RetiGene corpus it gives $4.61-5.33 and 6.6 minutes; the two measured whole reads\ncost $4.61 and $5.32.\n\n`read` appends every finished batch to `\u003Cout>\u002Freads.jsonl`. If a run stops, or exits with status 1\nbecause some passages could not be read, run the same command again: it reads only what is\nmissing. A folder holds one question; the script refuses another one there.\n\n## 5. Validate before using the output\n\n| File | Contents |\n| --- | --- |\n| `evidence.csv` | one row per passage that bears on the question: `pmid`, `chunk`, `page`, `citation`, `title`, `year`, `sentence_numbers`, `sentences` (verbatim), `note` |\n| `read_log.csv` | every passage: `bears`, `read`, `failed` or `not read` |\n| `usage.json` | the question, settings, estimate, passages read and failed, bearing passages and papers, tokens, cost and time |\n| `reads.jsonl` | every batch as it finished (the resume record) |\n| `genes.csv` | from `genes`: `gene`, `papers`, `passages`, `written_as`, `pmids`, `example` |\n\nCheck these, in this order:\n\n1. **Coverage** (`usage.json`): `read` equals `passages` and `failed` is 0. Re-run until it is.\n2. **Cost** against the estimate. Far more output tokens per passage than 109 means the model is\n   writing more than it was asked; check a few replies in `reads.jsonl`.\n3. **The evidence makes sense.** Read 20 rows of `evidence.csv`. Almost none bearing, or thousands\n   that only mention the subject, means the question or `--corpus` misleads the reader.\n4. **Known answers are there.** For the tested question, `genes --check` with the lab's 24\n   reference genes found 23. The missing one, GATAD2B, has one reference passage, from a paper on\n   an intellectual-disability syndrome; the read judged that paper not to be about retinal disease.\n   A known answer that is missing points to a passage the read did not take as bearing: look it up\n   in `read_log.csv` and in its batch in `reads.jsonl`, which holds the note on every passage.\n5. **Decide what counts before judging candidates.** The read is inclusive: for the tested question\n   it marked many passages that state a heterozygous loss-of-function cause without the word\n   haploinsufficiency (BMP4, OTX2, PAX6), which the lab counts, and also passages that are only\n   related (a gene's dominant inheritance, a carrier's milder sign). `genes.csv` is therefore a\n   candidate table, ranked by papers: every approved symbol, or digit-bearing alias of exactly one\n   gene (HRG4, PRP31, CORD2), written in a bearing sentence. For the tested question it held 849\n   genes, 338 of them named in two or more papers, and the 24 reference genes ranked from 1st (CRX)\n   to 416th (SHH). The paper count is not a verdict: judge each candidate from its quotes in\n   `evidence.csv`, not from memory.\n\n## Writing the answer\n\n- Answer from `evidence.csv` only, citing PMIDs. Never add a paper or a gene the evidence does not\n  hold.\n- For a list question, give the full candidate table with each gene's papers and an example quote,\n  and mark which candidates the quotes support. Don't shorten it into prose.\n- When the evidence does not fit one context, group the rows by paper, write notes per group with\n  the PMIDs of every paper that reports each finding, and answer from the notes.\n\n## Report\n\nInclude:\n\n- the question, exactly as it was read;\n- the corpus (file, passages, papers) and the model, effort, batch and workers;\n- passages read and failed, bearing passages and papers, tokens, cost and time (`usage.json`);\n- `evidence.csv`, and for a list question `genes.csv` with the judgement of each candidate;\n- the caveats: one reading by one model (93.7-97.4% of the graded passages in the tested runs), the\n  table is candidates, and every passage was sent to the API provider.\n\nKeep \"the whole corpus was read\" separate from \"the answer is complete\".\n","# Read a whole corpus with Claude\n\n`scripts\u002Fread_corpus.py` sends every passage of a corpus to Claude Haiku, ten per call, each split\ninto numbered sentences, with one question. For each passage Claude returns the numbers of the\nsentences that bear on the question and a short note. The script takes those sentences from the\ntext by number, so no quote can be invented, and writes them to `evidence.csv`.\n\nWhy read everything: an answer spread over hundreds of papers is mostly in passages that do not\nlook like the question. On the RetiGene corpus (measured in AiScientist's benchmark):\n\n- a top-12 hybrid search found 103 of 184 graded answering passages on 32 questions;\n- a focused read (every passage naming the subject, then the nearest ones) found 181 of them, but\n  only 51-59% of what a whole read found on two broad questions;\n- ranked by chunk embeddings, a one-topic question needed the first 16,088 passages to cover all its\n  answering passages, and a gene-list question needed 32,214 of 39,563 for 99%.\n\nThe thing most likely to go wrong is the last step, not the read: a prose answer written from the\nevidence of a list question dropped 20 of the 51 genes that evidence named. For a list, report the\ntable, not a summary.\n\nTested on the RetiGene corpus: 1,736 full-text papers on inherited retinal disease, 39,563\npassages (`chunks.jsonl`, 69 MB), with the question \"Which genes cause inherited retinal disease\nthrough haploinsufficiency?\":\n\n| Run | Passages | Calls | Time | Cost | Bearing | Graded answering passages found |\n| --- | --- | --- | --- | --- | --- | --- |\n| sample: the 270 graded passages + 3,000 at random | 3,270 | 327 | 42 s | $0.47 | 492 | 253 of 270 (93.7%) |\n| whole corpus | 39,563 | 4,012 | 408 s | $5.31 | 3,780 (1,109 papers) | 259 of 270 (95.9%) |\n\n\"Graded\" passages are the ones Claude Haiku rated as answering the question (2 on a 0-2 scale) when\nit graded every passage an earlier whole read had marked. The same prompt and settings, run from\nAiScientist's own code, found 94.7% (sample) and 97.4% (whole corpus, $5.32, 404 s) of the\npassages graded at the time: one reading is not perfectly repeatable.\n\nReplace every `\u002Fpath\u002Fto\u002F...` with your own paths.\n\n## When to use\n\n- A question whose answer is a set: every gene with a property, every paper that reports an\n  outcome, every variant seen with a phenotype.\n- Checking how complete a RAG answer is: read the corpus once and compare.\n- Costing a read before running it (`estimate` makes no call).\n\n## When NOT to use\n\n- One fact from one or two papers: a search is enough and costs nothing.\n- A corpus you have no right to send to an API provider: every passage goes to Anthropic.\n- A question you cannot state without ambiguity: each passage is judged against the question as\n  written, so settle what counts first (see §5).\n\n## 1. Environment setup\n\n```bash\npython3.13 -m venv \u002Fpath\u002Fto\u002Fenvs\u002Fread_corpus\n\u002Fpath\u002Fto\u002Fenvs\u002Fread_corpus\u002Fbin\u002Fpip install anthropic==1.13.0\n\u002Fpath\u002Fto\u002Fenvs\u002Fread_corpus\u002Fbin\u002Fpython scripts\u002Fread_corpus.py read --help\nexport ANTHROPIC_API_KEY=...            # or ANTHROPIC_BASE_URL and a token for a proxy\n```\n\nThe script uses only the standard library and `anthropic`. The tests run without either a key or\nthe package: `python -m pytest tests` (12 tests, about a second).\n\n## 2. Prepare inputs\n\n| File | Needed by | Format |\n| --- | --- | --- |\n| `chunks.jsonl` | `estimate`, `read` | one passage per line: `{\"pmid\": \"1302020\", \"chunk\": 0, \"page\": 1, \"text\": \"...\"}` |\n| `manifest.csv` | `read`, optional | `doc_id` (or `pmid`), `citation`, `title`, `year`: puts the citation in `evidence.csv` |\n| `hgnc_complete_set.txt` | `genes` | the HGNC complete set (tab-separated, `symbol`, `alias_symbol`, `prev_symbol`, `status`), from \u003Chttps:\u002F\u002Fwww.genenames.org\u002Fdownload\u002F> |\n\nA passage is keyed `pmid:chunk`; passages without text and repeated keys are skipped. Any chunked\ncorpus in this shape works. AiScientist's literature index writes it as\n`mechanism_cache\u002Fchunks.jsonl`, with `manifest.csv` and `hgnc_complete_set.txt` beside it.\n\n## 3. Configure\n\nThe defaults are the tested settings. Change them only for the reasons given.\n\n| Option | Default | Why |\n| --- | --- | --- |\n| `--model` | `claude-haiku-5-5` | the model the method was measured with; Claude Sonnet 5.5 costs 20 times more per token |\n| `--effort` | `medium` | `low` saved 8-18% of the cost but found 87% of the graded passages on the gene-list sample, against 95% |\n| `--batch` | `10` | passages per call. A yes\u002Fno screen of 30 or 50 passages per call before the read saved about 40% and lost 21-43% of the answering passages |\n| `--workers` | `48` | parallel calls. 48 ran with no rate-limit retries on the tested key; lower it if `[claude] RateLimitError` lines appear |\n| `--corpus` | `the lab's RetiGene corpus (inherited retinal disease)` | how the prompt names the corpus; describe your own. Any other text is a prompt change the results above do not cover |\n| `--price-in`, `--price-out` | `0.10`, `0.50` | USD per million tokens, for `usage.json` and the estimate |\n\n## 4. Run\n\n```bash\nC=\u002Fpath\u002Fto\u002Fcorpus\u002Fmechanism_cache\u002Fchunks.jsonl\nQ=\"Which genes cause inherited retinal disease through haploinsufficiency?\"\n\n# 1. What it will cost (no call is made).\npython scripts\u002Fread_corpus.py estimate --chunks \"$C\" --question \"$Q\"\n\n# 2. A small read first: check the evidence makes sense before paying for the whole corpus.\npython scripts\u002Fread_corpus.py read --chunks \"$C\" --question \"$Q\" --sample 500 --out \u002Fpath\u002Fto\u002Fout\u002Fsample\n\n# 3. The whole corpus.\npython scripts\u002Fread_corpus.py read --chunks \"$C\" --question \"$Q\" \\\n  --manifest \u002Fpath\u002Fto\u002Fcorpus\u002Fmanifest.csv --out \u002Fpath\u002Fto\u002Fout\u002Fwhole\n\n# 4. For a gene-list question: every gene the evidence names.\npython scripts\u002Fread_corpus.py genes --evidence \u002Fpath\u002Fto\u002Fout\u002Fwhole\u002Fevidence.csv \\\n  --hgnc \u002Fpath\u002Fto\u002Fcorpus\u002Fhgnc_complete_set.txt --check PRPF31,PAX6,OTX2\n```\n\nWhat the tested whole read printed for steps 1 and 3:\n\n```text\n{\"estimate\": {\"passages\": 39563, \"calls\": 3957, \"input_tokens\": 31735847, \"output_tokens\": [2888099, 4312367], \"cost_usd\": [4.6176, 5.3298], \"minutes\": 6.6, \"workers\": 48}}\n{\"passages\": 39563, \"read\": 39563, \"failed\": 0, \"bearing\": 3780, \"papers\": 1109, \"cost_usd\": 5.3148, \"wall_s\": 408}\n```\n\n`estimate` counts the characters each call would send and converts them with the rates of the\ntested runs (2.3 characters per input token; 73-109 output tokens per passage; 4.8 s per call per\nworker). On the RetiGene corpus it gives $4.61-5.33 and 6.6 minutes; the two measured whole reads\ncost $4.61 and $5.32.\n\n`read` appends every finished batch to `\u003Cout>\u002Freads.jsonl`. If a run stops, or exits with status 1\nbecause some passages could not be read, run the same command again: it reads only what is\nmissing. A folder holds one question; the script refuses another one there.\n\n## 5. Validate before using the output\n\n| File | Contents |\n| --- | --- |\n| `evidence.csv` | one row per passage that bears on the question: `pmid`, `chunk`, `page`, `citation`, `title`, `year`, `sentence_numbers`, `sentences` (verbatim), `note` |\n| `read_log.csv` | every passage: `bears`, `read`, `failed` or `not read` |\n| `usage.json` | the question, settings, estimate, passages read and failed, bearing passages and papers, tokens, cost and time |\n| `reads.jsonl` | every batch as it finished (the resume record) |\n| `genes.csv` | from `genes`: `gene`, `papers`, `passages`, `written_as`, `pmids`, `example` |\n\nCheck these, in this order:\n\n1. **Coverage** (`usage.json`): `read` equals `passages` and `failed` is 0. Re-run until it is.\n2. **Cost** against the estimate. Far more output tokens per passage than 109 means the model is\n   writing more than it was asked; check a few replies in `reads.jsonl`.\n3. **The evidence makes sense.** Read 20 rows of `evidence.csv`. Almost none bearing, or thousands\n   that only mention the subject, means the question or `--corpus` misleads the reader.\n4. **Known answers are there.** For the tested question, `genes --check` with the lab's 24\n   reference genes found 23. The missing one, GATAD2B, has one reference passage, from a paper on\n   an intellectual-disability syndrome; the read judged that paper not to be about retinal disease.\n   A known answer that is missing points to a passage the read did not take as bearing: look it up\n   in `read_log.csv` and in its batch in `reads.jsonl`, which holds the note on every passage.\n5. **Decide what counts before judging candidates.** The read is inclusive: for the tested question\n   it marked many passages that state a heterozygous loss-of-function cause without the word\n   haploinsufficiency (BMP4, OTX2, PAX6), which the lab counts, and also passages that are only\n   related (a gene's dominant inheritance, a carrier's milder sign). `genes.csv` is therefore a\n   candidate table, ranked by papers: every approved symbol, or digit-bearing alias of exactly one\n   gene (HRG4, PRP31, CORD2), written in a bearing sentence. For the tested question it held 849\n   genes, 338 of them named in two or more papers, and the 24 reference genes ranked from 1st (CRX)\n   to 416th (SHH). The paper count is not a verdict: judge each candidate from its quotes in\n   `evidence.csv`, not from memory.\n\n## Writing the answer\n\n- Answer from `evidence.csv` only, citing PMIDs. Never add a paper or a gene the evidence does not\n  hold.\n- For a list question, give the full candidate table with each gene's papers and an example quote,\n  and mark which candidates the quotes support. Don't shorten it into prose.\n- When the evidence does not fit one context, group the rows by paper, write notes per group with\n  the PMIDs of every paper that reports each finding, and answer from the notes.\n\n## Report\n\nInclude:\n\n- the question, exactly as it was read;\n- the corpus (file, passages, papers) and the model, effort, batch and workers;\n- passages read and failed, bearing passages and papers, tokens, cost and time (`usage.json`);\n- `evidence.csv`, and for a list question `genes.csv` with the judgement of each candidate;\n- the caveats: one reading by one model (93.7-97.4% of the graded passages in the tested runs), the\n  table is candidates, and every passage was sent to the API provider.\n\nKeep \"the whole corpus was read\" separate from \"the answer is complete\".\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":36},{"tags":25,"author":26,"status":27,"compute":28,"version":29,"category":30,"scheduler":31,"tested-with":32,"requires-gpu":33,"requires-network":34,"requires-secrets":35},"literature, rag, corpus, full-text, evidence, claude, haploinsufficiency, retina","Yijun Sun","community","whole RetiGene corpus (39,563 passages, one question): 4,012 calls, 408 s with 48 parallel calls, $5.31 (Claude Haiku 5.5 at $0.10 \u002F $0.50 per million input \u002F output tokens); a 3,270-passage sample: 327 calls, 42 s, $0.47; estimate and gene table: seconds on one CPU","0.0.1","literature","none","anthropic 1.13.0 (Python SDK), claude-haiku-5-5 at effort medium, Python 3.13.3","false","runtime","ANTHROPIC_API_KEY","Python 3.11 or newer with the anthropic package, an Anthropic API key with room for about 50 concurrent requests, and the corpus as chunks.jsonl (pmid, chunk, page, text); optionally its manifest CSV and the HGNC complete set. No GPU, no scheduler.","main","5c42aa74b19348cb68aa35301eba042a737d94d4","skills\u002Fliterature\u002Fread-whole-corpus-with-claude",2,"https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills","https:\u002F\u002Fgithub.com\u002Flijinbio","2026-11-14 05:44:08",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add lijinbio\u002Faiscientist-skills --skill read-whole-corpus-with-claude",{"tool":50,"command":51},"bunx","bunx skills add lijinbio\u002Faiscientist-skills --skill read-whole-corpus-with-claude",{"tool":53,"command":54},"pnpm","pnpm dlx skills add lijinbio\u002Faiscientist-skills --skill read-whole-corpus-with-claude","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fliterature\u002Fread-whole-corpus-with-claude\u002FSKILL.md",true,[58,64],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fread_corpus.py","SCRIPT","脚本",26759,"https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fliterature\u002Fread-whole-corpus-with-claude\u002Fscripts\u002Fread_corpus.py",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"tests\u002Ftest_read_whole_corpus_with_claude.py",8976,"https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fliterature\u002Fread-whole-corpus-with-claude\u002Ftests\u002Ftest_read_whole_corpus_with_claude.py",[69,76,83,90,97,104],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7DKZPCPYM78N1R0MVAVVYKT","verb-object-with-tool","One or two sentences on what the skill does and when to use it. Name the tool, the input it takes and the output it produces, then list the situations that should trigger it (for example \"Use when setting up X, writing a Y config, or diagnosing a failed Z run\").","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Ftemplate\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7DKZCJMFJJB9ZH9YGCSQHR5","write-variant-tables","Write the five standard variant-annotation result tables - consequence, impact and ClinVar-significance distributions, a ClinVar pathogenic and likely-pathogenic list, and a shortlist of rare, damaging variants not in ClinVar - plus a JSON summary, from an annotated per-variant TSV (VEP consequence and impact, SIFT, PolyPhen, max population AF, rsID, ClinVar significance), in pure Python without re-parsing the VCF or re-running VEP. Use when a study needs these tables with a different rarity cutoff, impact set or damaging-predictor rule, or when rebuilding them from an existing annotation table. In AiScientist, annotate_variants already writes the default tables, so use this only for a custom cut.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Fwrite-variant-tables\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DKZ3R4E6JEJT3YB6AHXE60","rank-phenotype-differentials-with-mcp","Map clinical phenotype text to grounded HPO terms and rank a research differential through an already configured phenotype-diagnosis MCP service with LIRICAL and optional literature adjudication. Use for explicit service-based analysis while preserving negation, uncertainty and original probabilities; retain the established workflow when the service is unavailable.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Frank-phenotype-differentials-with-mcp\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7DKYS9R4F5EPCMDHSH3TEZ7","qc-vcf-callset","Judge whether a germline VCF callset is trustworthy before interpreting any variant - Ti\u002FTv, Het\u002FHom, SNP, indel and multiallelic counts, sample count and genotype call rate from bcftools stats (falling back to cyvcf2, then to a plain-Python Ti\u002FTv scan) - and flag values outside the expected human WGS or WES ranges. Writes tables\u002Fvcf_qc_summary.csv and data\u002Fvcf_qc.json with a qc_flags list. Use when a VCF (one sample or a cohort) arrives for annotation or prioritization, when a Ti\u002FTv or Het\u002FHom value needs interpreting, or when deciding whether downstream variant tables must carry a low-confidence caveat.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Fqc-vcf-callset\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7DKYDRBFTBS2J58QMB7SMHK","prioritize-clinical-variants","Rank annotated variants into research-triage tiers (ClinVar pathogenic, likely pathogenic, VUS favouring pathogenic, VUS, likely benign, benign) from ClinVar significance used verbatim, gnomAD allele frequency against a dominant or recessive disease-model cutoff and the ACMG BA1 5 percent rule, and in-silico predictors (SIFT, PolyPhen, REVEL, CADD, AlphaMissense) as supporting evidence only. Pure Python; reads a per-variant annotation TSV and writes a tier-sorted CSV with the evidence for each tier plus a JSON of tier counts. Use when a rare-variant list from VEP, ClinVar and gnomAD annotation must be ordered for review (which variants to look at first) or when choosing the disease model and cutoffs for that ordering. Research triage only, NOT a clinical ACMG\u002FAMP classification.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Fprioritize-clinical-variants\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7DKY2XPCQ2S639KTPSAJ170","normalize-vcf-with-bcftools","Normalize a VCF with bcftools norm before annotation or ClinVar\u002FgnomAD matching - split multiallelic sites into biallelic records, atomize MNPs into SNPs, then left-align and trim indels against the reference FASTA of the same build - writing an indexed normalized.vcf.gz and a JSON of record counts before and after. Use when a VCF not known to be normalized (especially an indel-heavy one) will be matched against ClinVar, gnomAD or dbSNP, compared between callers or loaded into PLINK, or when a known pathogenic indel comes back as not in ClinVar. In AiScientist, the offline annotate_variants path already normalizes, so do not plan it as a separate step there.","https:\u002F\u002Fgithub.com\u002Flijinbio\u002Faiscientist-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvariants\u002Fnormalize-vcf-with-bcftools\u002FSKILL.md",[],[]]