[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFBAF2ERXY08D4C0VF3ASC":3,"skill-same:01M7EFBAF2ERXY08D4C0VF3ASC":62},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EFBAF2ERXY08D4C0VF3ASC","bio-ribo-seq-orf-detection",null,"Detect and quantify translated ORFs from Ribo-seq using 3-nucleotide periodicity, including uORFs, internal ORFs, dORFs, and novel ORFs. Use when finding actively translated regions beyond annotated CDS, classifying ORFs by the 2022 community standard, quantifying ORF-level translation, or choosing between periodicity-based callers.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ribo-seq-orf-detection\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-ribo-seq-orf-detection\ndescription: Detect and quantify translated ORFs from Ribo-seq using 3-nucleotide periodicity, including uORFs, internal ORFs, dORFs, and novel ORFs. Use when finding actively translated regions beyond annotated CDS, classifying ORFs by the 2022 community standard, quantifying ORF-level translation, or choosing between periodicity-based callers.\ntool_type: mixed\nprimary_tool: RiboCode\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"ribo-seq\u002Forf-detection\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: RiboCode 1.2+, ORFquant 1.0+, ORFik 1.22+, DESeq2 1.42+, pandas 2.2+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# ORF Detection\n\n**\"Detect translated ORFs from my Ribo-seq data\"** -> Identify actively translated open reading frames (uORFs, internal ORFs, dORFs, novel ORFs) using 3-nucleotide periodicity (not mere coverage) as the evidence of translation, then classify and quantify them.\n- CLI: `RiboCode` for periodicity-based de novo ORF calling\n- R: `ORFquant` for isoform-aware quantification; `ORFik` as the general toolkit\n\nThe discriminating signal is PERIODICITY: a translated ORF shows footprint P-sites in frame 0 (F0 >> F1, F2). Coverage alone is not evidence of translation. Every method needs a correct per-read-length P-site offset first (see ribosome-periodicity).\n\n## ORF-type nomenclature (Mudge 2022 standard)\n\nThe GENCODE-led standard (Mudge et al 2022) defines the umbrella term \"Ribo-seq ORF\" and six positional categories. These are positional, not modification-based (N-terminal extensions are not part of the scheme).\n\n| Category | Definition (transcript-relative) |\n|----------|----------------------------------|\n| uORF | Entirely within the 5' UTR, not overlapping the CDS |\n| uoORF | Upstream-overlapping: starts in 5' UTR, overlaps CDS start out-of-frame |\n| intORF | Internal\u002Fnested: within the CDS in a different frame |\n| dORF | Entirely within the 3' UTR, not overlapping the CDS |\n| doORF | Downstream-overlapping: overlaps the CDS stop into the 3' UTR |\n| lncRNA-ORF | ORF on a transcript annotated as long non-coding RNA |\n\nRelated terms: sORF\u002FsmORF (\u003C100 codons, product = microprotein), annotated CDS, novel. Catalogs: sORFs.org, OpenProt.\n\n## Near-cognate start codons (the ATG-only blind spot)\n\nInitiation occurs at AUG and at near-cognate codons differing from AUG by one base; the biologically used set is CUG, GUG, ACG, UUG, AUU, AUC, AUA (AAG\u002FAGG also differ by one base but initiate negligibly). CUG is the dominant near-cognate start (~16% of mapped initiation sites; AUG remains >50%). uORFs ESPECIALLY use near-cognate starts, so an ATG-only scanner misses the majority of real uORFs. Periodicity-based callers can be configured with alternative starts (RiboCode `-A`); the manual finder below is ATG-only and is a teaching toy unless extended.\n\n## Tool selection\n\n| Situation | Tool | Why |\n|-----------|------|-----|\n| De novo discovery (uORFs, novel ORFs), standard Ribo-seq | RiboCode | Periodicity-based, maintained, supports alternative starts |\n| Isoform-aware detection + per-ORF quantification | ORFquant | Resolves ORFs across overlapping isoforms; built on Ribo-seQC |\n| General R toolkit (uORF finding, P-site shift, TE, plots) | ORFik | Comprehensive; NOT a dedicated de novo caller |\n| Initiation-site \u002F non-AUG mapping (needs harringtonine\u002FLTM) | Ribo-TISH, PRICE | TI-seq-aware (see initiation-site-mapping) |\n| Assay-agnostic, no TI-seq, short + long ORFs | ribotricer | Phasing-only, species-calibrated cutoff |\n| Bacteria\u002Fprokaryotes | DeepRibo, smORFer | Prokaryote-trained (eukaryote periodicity tools fit poorly) |\n| Differential ORF translation | P-site counts per ORF then DESeq2 | Count-based DE on ORF-level counts |\n\nORFik and ORFquant are DISTINCT packages (different authors, repos, methods): ORFik (Tjeldnes 2021, general toolkit) is not the same as ORFquant (Calviello 2020, dedicated isoform-aware caller). Do not install ORFik expecting ORFquant.\n\n## Call ORFs de novo with RiboCode\n\n**Goal:** Identify periodicity-significant ORFs, including uORFs at near-cognate starts.\n\n**Approach:** Prepare transcript annotation, run `metaplots` to select periodic read lengths and their P-site offsets, then run `RiboCode` with optional alternative starts.\n\n```bash\n# Step 1: annotation\nprepare_transcripts -g annotation.gtf -f genome.fa -o ribocode_annot\n\n# Step 2: metaplots picks periodic read lengths + per-length P-site offsets -> config .txt\n#   (read lengths come from THIS step, NOT from a -l flag)\nmetaplots -a ribocode_annot -r transcriptome.bam -o metaplots_out\n\n# Step 3: call ORFs. -A adds near-cognate starts; -l is the longest-ORF toggle (yes\u002Fno)\nRiboCode -a ribocode_annot -c metaplots_out_pre_config.txt \\\n    -A CTG,GTG -l no -p 0.05 -o ribocode_result\n```\n\nRiboCode works in transcript coordinates, so the `-r` input is the TRANSCRIPTOME-projected BAM (`Aligned.toTranscriptome.out.bam`), not the genome BAM; a genome BAM silently misbehaves. Its core test is a MODIFIED WILCOXON SIGNED-RANK test on the per-codon P-site frame distribution (a separate binomial file is a secondary output). The `-l` flag toggles longest-ORF selection; it is NOT a read-length list.\n\n## Parse and classify RiboCode output\n\n**Goal:** Split called ORFs by the standard categories.\n\n**Approach:** Read the tabular result and group on the `ORF_type` column, whose RiboCode values are `annotated`, `uORF`, `dORF`, `Overlap_uORF`, `Overlap_dORF`, `Internal`, `novel`.\n\n```python\nimport pandas as pd\n\ndef load_ribocode_orfs(path):\n    '''Load the RiboCode result table (\u003Coutput_name>.txt) and group by ORF_type.'''\n    df = pd.read_csv(path, sep='\\t')\n    groups = {t: df[df['ORF_type'] == t] for t in df['ORF_type'].unique()}\n    return df, groups\n```\n\nRiboCode writes the result as `\u003Coutput_name>.txt` (plus a `\u003Coutput_name>_collapsed.txt`), e.g. `ribocode_result.txt` for `-o ribocode_result`; its columns include `ORF_ID`, `ORF_type`, transcript\u002Fgenome start-stop, `pval_combined`, and `adjusted_pval`.\n\n## Quantify ORFs isoform-aware with ORFquant\n\n**Goal:** Quantify ORF-level translation while resolving footprints across overlapping isoforms.\n\n**Approach:** Prepare annotation once, feed Ribo-seQC-prepared input, then run the master function.\n\n```r\nlibrary(ORFquant)\n\nprepare_annotation_files(annotation_directory = \"annot\u002F\",\n                         twobit_file = \"genome.2bit\",\n                         gtf_file = \"annotation.gtf\")\n# Ribo-seQC writes a for_ORFquant object from the Ribo-seq BAM; pass it here\nrun_ORFquant(for_ORFquant_file = \"sample_for_ORFquant\",\n             annotation_file = \"annot\u002Fannotation.gtf_Rannot\",\n             n_cores = 4)\n```\n\nFor uORF discovery in a general R workflow, ORFik provides `findUORFs()` and the true P-site shift is `detectRibosomeShifts()` then `shiftFootprints()` (there are no `p_offsets`\u002F`lengths` arguments on `fimport`).\n\n## Manual ORF scan (teaching reference, ATG-only)\n\n**Goal:** Illustrate ORF finding mechanics; not a substitute for a periodicity caller.\n\n**Approach:** Scan three frames for start-to-stop pairs. This finds only ATG starts and uses coverage, not periodicity, so it misses near-cognate uORFs and cannot confirm active translation on its own.\n\n```python\ndef find_orfs(seq, min_codons=10):\n    '''Find ATG-to-stop ORFs in all three frames (ATG-only: a teaching toy).'''\n    seq = str(seq).upper()\n    stops = {'TAA', 'TAG', 'TGA'}\n    orfs = []\n    for frame in range(3):\n        i = frame\n        while i \u003C len(seq) - 2:\n            if seq[i:i+3] == 'ATG':\n                for j in range(i + 3, len(seq) - 2, 3):\n                    if seq[j:j+3] in stops:\n                        if (j + 3 - i) >= min_codons * 3:\n                            orfs.append({'start': i, 'end': j + 3, 'frame': frame})\n                        i = j\n                        break\n            i += 3\n    return orfs\n```\n\n## Validate called ORFs\n\n**Goal:** Separate genuine translation from coverage artifacts.\n\n**Approach:** Check the in-frame (frame-0) fraction within the ORF; compare the ORF's footprint read-length distribution to annotated CDS with FLOSS; use ORFscore for frame bias; add PhyloCSF\u002Fconservation or mass-spec peptide evidence for novel microproteins.\n\nFLOSS (Ingolia 2014) is half the summed absolute difference between an ORF's footprint length-fraction histogram and the CDS reference; a high-coverage region whose length distribution is non-CDS-like is likely not genuine translation. A called ORF with no frame-0 enrichment, a non-ribosomal FLOSS, and no conservation\u002Fpeptide support should be treated as a candidate, not a finding.\n\n## Differential ORF translation\n\n**Goal:** Compare ORF-level translation across conditions.\n\n**Approach:** Count offset-corrected P-sites per ORF per sample into an integer matrix, then run DESeq2.\n\n```r\nlibrary(DESeq2)\ndds \u003C- DESeqDataSetFromMatrix(orf_psite_counts, coldata, ~ condition)\ndds \u003C- DESeq(dds)\nres \u003C- results(dds)   # adjusted p-value is res$padj\n```\n\nRibosome occupancy is not translation efficiency; a TE change needs an RNA-seq denominator (see translation-efficiency).\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| RiboCode runs but uses wrong read lengths | `-l 27,28,29,30` passed as read lengths | `-l` is the longest-ORF toggle; read lengths come from `metaplots` config |\n| KeyError on `ORF_type == 'noncoding'` | Wrong category names | RiboCode emits `Overlap_uORF\u002FOverlap_dORF\u002FInternal\u002Fnovel`, not `noncoding` |\n| `library(ORFik)` cannot find ORFquant functions | ORFik and ORFquant conflated | They are different packages; install ORFquant from its own repo |\n| `fimport(p_offsets=, lengths=)` errors | Those arguments do not exist | Use `detectRibosomeShifts()` then `shiftFootprints()` |\n| `RibORF.py -f -r -g -o` not found | Fabricated single-command CLI | RibORF is a Perl multi-script pipeline (logistic regression) |\n| Most uORFs missing | ATG-only scan | Use a periodicity caller with `-A` near-cognate starts |\n| High-coverage \"ORF\" is not real | Coverage used as the translation signal | Require frame-0 enrichment + FLOSS\u002FORFscore validation |\n\n## Related Skills\n\n- ribosome-periodicity - Calibrate the per-length P-site offsets ORF callers consume\n- initiation-site-mapping - Map start codons (including non-AUG) from harringtonine\u002FLTM data\n- translation-efficiency - Add an RNA-seq denominator to turn occupancy into TE\n- ribosome-stalling - Interpret pause sites within called ORFs\n- differential-expression\u002Fdeseq2-basics - Differential ORF-level translation\n\n## References\n\n- Mudge JM, Ruiz-Orera J, Prensner JR, et al. 2022. Standardized annotation of translated open reading frames. Nat Biotechnol 40(7):994-999. doi:10.1038\u002Fs41587-022-01369-0\n- Xiao Z, Huang R, Xing X, Chen Y, Deng H, Yang X. 2018. De novo annotation and characterization of the translatome with ribosome profiling data. Nucleic Acids Res 46(10):e61. doi:10.1093\u002Fnar\u002Fgky179\n- Calviello L, Hirsekorn A, Ohler U. 2020. Quantification of translation uncovers the functions of the alternative transcriptome. Nat Struct Mol Biol 27(8):717-725. doi:10.1038\u002Fs41594-020-0450-4\n- Tjeldnes H, Labun K, Torres Cleuren Y, Chyżyńska K, Świrski M, Valen E. 2021. ORFik: a comprehensive R toolkit for the analysis of translation. BMC Bioinformatics 22:336. doi:10.1186\u002Fs12859-021-04254-w\n- Choudhary S, Li W, Smith AD. 2020. Accurate detection of short and long active ORFs using Ribo-seq data. Bioinformatics 36(7):2053-2059. doi:10.1093\u002Fbioinformatics\u002Fbtz878\n- Ingolia NT, Brar GA, Stern-Ginossar N, et al. 2014. Ribosome profiling reveals pervasive translation outside of annotated protein-coding genes. Cell Rep 8(5):1365-1379. doi:10.1016\u002Fj.celrep.2014.07.045\n- Bazzini AA, Johnstone TG, Christiano R, et al. 2014. Identification of small ORFs in vertebrates using ribosome footprinting and evolutionary conservation. EMBO J 33(9):981-993. doi:10.1002\u002Fembj.201488411\n","## Version Compatibility\n\nReference examples tested with: RiboCode 1.2+, ORFquant 1.0+, ORFik 1.22+, DESeq2 1.42+, pandas 2.2+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# ORF Detection\n\n**\"Detect translated ORFs from my Ribo-seq data\"** -> Identify actively translated open reading frames (uORFs, internal ORFs, dORFs, novel ORFs) using 3-nucleotide periodicity (not mere coverage) as the evidence of translation, then classify and quantify them.\n- CLI: `RiboCode` for periodicity-based de novo ORF calling\n- R: `ORFquant` for isoform-aware quantification; `ORFik` as the general toolkit\n\nThe discriminating signal is PERIODICITY: a translated ORF shows footprint P-sites in frame 0 (F0 >> F1, F2). Coverage alone is not evidence of translation. Every method needs a correct per-read-length P-site offset first (see ribosome-periodicity).\n\n## ORF-type nomenclature (Mudge 2022 standard)\n\nThe GENCODE-led standard (Mudge et al 2022) defines the umbrella term \"Ribo-seq ORF\" and six positional categories. These are positional, not modification-based (N-terminal extensions are not part of the scheme).\n\n| Category | Definition (transcript-relative) |\n|----------|----------------------------------|\n| uORF | Entirely within the 5' UTR, not overlapping the CDS |\n| uoORF | Upstream-overlapping: starts in 5' UTR, overlaps CDS start out-of-frame |\n| intORF | Internal\u002Fnested: within the CDS in a different frame |\n| dORF | Entirely within the 3' UTR, not overlapping the CDS |\n| doORF | Downstream-overlapping: overlaps the CDS stop into the 3' UTR |\n| lncRNA-ORF | ORF on a transcript annotated as long non-coding RNA |\n\nRelated terms: sORF\u002FsmORF (\u003C100 codons, product = microprotein), annotated CDS, novel. Catalogs: sORFs.org, OpenProt.\n\n## Near-cognate start codons (the ATG-only blind spot)\n\nInitiation occurs at AUG and at near-cognate codons differing from AUG by one base; the biologically used set is CUG, GUG, ACG, UUG, AUU, AUC, AUA (AAG\u002FAGG also differ by one base but initiate negligibly). CUG is the dominant near-cognate start (~16% of mapped initiation sites; AUG remains >50%). uORFs ESPECIALLY use near-cognate starts, so an ATG-only scanner misses the majority of real uORFs. Periodicity-based callers can be configured with alternative starts (RiboCode `-A`); the manual finder below is ATG-only and is a teaching toy unless extended.\n\n## Tool selection\n\n| Situation | Tool | Why |\n|-----------|------|-----|\n| De novo discovery (uORFs, novel ORFs), standard Ribo-seq | RiboCode | Periodicity-based, maintained, supports alternative starts |\n| Isoform-aware detection + per-ORF quantification | ORFquant | Resolves ORFs across overlapping isoforms; built on Ribo-seQC |\n| General R toolkit (uORF finding, P-site shift, TE, plots) | ORFik | Comprehensive; NOT a dedicated de novo caller |\n| Initiation-site \u002F non-AUG mapping (needs harringtonine\u002FLTM) | Ribo-TISH, PRICE | TI-seq-aware (see initiation-site-mapping) |\n| Assay-agnostic, no TI-seq, short + long ORFs | ribotricer | Phasing-only, species-calibrated cutoff |\n| Bacteria\u002Fprokaryotes | DeepRibo, smORFer | Prokaryote-trained (eukaryote periodicity tools fit poorly) |\n| Differential ORF translation | P-site counts per ORF then DESeq2 | Count-based DE on ORF-level counts |\n\nORFik and ORFquant are DISTINCT packages (different authors, repos, methods): ORFik (Tjeldnes 2021, general toolkit) is not the same as ORFquant (Calviello 2020, dedicated isoform-aware caller). Do not install ORFik expecting ORFquant.\n\n## Call ORFs de novo with RiboCode\n\n**Goal:** Identify periodicity-significant ORFs, including uORFs at near-cognate starts.\n\n**Approach:** Prepare transcript annotation, run `metaplots` to select periodic read lengths and their P-site offsets, then run `RiboCode` with optional alternative starts.\n\n```bash\n# Step 1: annotation\nprepare_transcripts -g annotation.gtf -f genome.fa -o ribocode_annot\n\n# Step 2: metaplots picks periodic read lengths + per-length P-site offsets -> config .txt\n#   (read lengths come from THIS step, NOT from a -l flag)\nmetaplots -a ribocode_annot -r transcriptome.bam -o metaplots_out\n\n# Step 3: call ORFs. -A adds near-cognate starts; -l is the longest-ORF toggle (yes\u002Fno)\nRiboCode -a ribocode_annot -c metaplots_out_pre_config.txt \\\n    -A CTG,GTG -l no -p 0.05 -o ribocode_result\n```\n\nRiboCode works in transcript coordinates, so the `-r` input is the TRANSCRIPTOME-projected BAM (`Aligned.toTranscriptome.out.bam`), not the genome BAM; a genome BAM silently misbehaves. Its core test is a MODIFIED WILCOXON SIGNED-RANK test on the per-codon P-site frame distribution (a separate binomial file is a secondary output). The `-l` flag toggles longest-ORF selection; it is NOT a read-length list.\n\n## Parse and classify RiboCode output\n\n**Goal:** Split called ORFs by the standard categories.\n\n**Approach:** Read the tabular result and group on the `ORF_type` column, whose RiboCode values are `annotated`, `uORF`, `dORF`, `Overlap_uORF`, `Overlap_dORF`, `Internal`, `novel`.\n\n```python\nimport pandas as pd\n\ndef load_ribocode_orfs(path):\n    '''Load the RiboCode result table (\u003Coutput_name>.txt) and group by ORF_type.'''\n    df = pd.read_csv(path, sep='\\t')\n    groups = {t: df[df['ORF_type'] == t] for t in df['ORF_type'].unique()}\n    return df, groups\n```\n\nRiboCode writes the result as `\u003Coutput_name>.txt` (plus a `\u003Coutput_name>_collapsed.txt`), e.g. `ribocode_result.txt` for `-o ribocode_result`; its columns include `ORF_ID`, `ORF_type`, transcript\u002Fgenome start-stop, `pval_combined`, and `adjusted_pval`.\n\n## Quantify ORFs isoform-aware with ORFquant\n\n**Goal:** Quantify ORF-level translation while resolving footprints across overlapping isoforms.\n\n**Approach:** Prepare annotation once, feed Ribo-seQC-prepared input, then run the master function.\n\n```r\nlibrary(ORFquant)\n\nprepare_annotation_files(annotation_directory = \"annot\u002F\",\n                         twobit_file = \"genome.2bit\",\n                         gtf_file = \"annotation.gtf\")\n# Ribo-seQC writes a for_ORFquant object from the Ribo-seq BAM; pass it here\nrun_ORFquant(for_ORFquant_file = \"sample_for_ORFquant\",\n             annotation_file = \"annot\u002Fannotation.gtf_Rannot\",\n             n_cores = 4)\n```\n\nFor uORF discovery in a general R workflow, ORFik provides `findUORFs()` and the true P-site shift is `detectRibosomeShifts()` then `shiftFootprints()` (there are no `p_offsets`\u002F`lengths` arguments on `fimport`).\n\n## Manual ORF scan (teaching reference, ATG-only)\n\n**Goal:** Illustrate ORF finding mechanics; not a substitute for a periodicity caller.\n\n**Approach:** Scan three frames for start-to-stop pairs. This finds only ATG starts and uses coverage, not periodicity, so it misses near-cognate uORFs and cannot confirm active translation on its own.\n\n```python\ndef find_orfs(seq, min_codons=10):\n    '''Find ATG-to-stop ORFs in all three frames (ATG-only: a teaching toy).'''\n    seq = str(seq).upper()\n    stops = {'TAA', 'TAG', 'TGA'}\n    orfs = []\n    for frame in range(3):\n        i = frame\n        while i \u003C len(seq) - 2:\n            if seq[i:i+3] == 'ATG':\n                for j in range(i + 3, len(seq) - 2, 3):\n                    if seq[j:j+3] in stops:\n                        if (j + 3 - i) >= min_codons * 3:\n                            orfs.append({'start': i, 'end': j + 3, 'frame': frame})\n                        i = j\n                        break\n            i += 3\n    return orfs\n```\n\n## Validate called ORFs\n\n**Goal:** Separate genuine translation from coverage artifacts.\n\n**Approach:** Check the in-frame (frame-0) fraction within the ORF; compare the ORF's footprint read-length distribution to annotated CDS with FLOSS; use ORFscore for frame bias; add PhyloCSF\u002Fconservation or mass-spec peptide evidence for novel microproteins.\n\nFLOSS (Ingolia 2014) is half the summed absolute difference between an ORF's footprint length-fraction histogram and the CDS reference; a high-coverage region whose length distribution is non-CDS-like is likely not genuine translation. A called ORF with no frame-0 enrichment, a non-ribosomal FLOSS, and no conservation\u002Fpeptide support should be treated as a candidate, not a finding.\n\n## Differential ORF translation\n\n**Goal:** Compare ORF-level translation across conditions.\n\n**Approach:** Count offset-corrected P-sites per ORF per sample into an integer matrix, then run DESeq2.\n\n```r\nlibrary(DESeq2)\ndds \u003C- DESeqDataSetFromMatrix(orf_psite_counts, coldata, ~ condition)\ndds \u003C- DESeq(dds)\nres \u003C- results(dds)   # adjusted p-value is res$padj\n```\n\nRibosome occupancy is not translation efficiency; a TE change needs an RNA-seq denominator (see translation-efficiency).\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| RiboCode runs but uses wrong read lengths | `-l 27,28,29,30` passed as read lengths | `-l` is the longest-ORF toggle; read lengths come from `metaplots` config |\n| KeyError on `ORF_type == 'noncoding'` | Wrong category names | RiboCode emits `Overlap_uORF\u002FOverlap_dORF\u002FInternal\u002Fnovel`, not `noncoding` |\n| `library(ORFik)` cannot find ORFquant functions | ORFik and ORFquant conflated | They are different packages; install ORFquant from its own repo |\n| `fimport(p_offsets=, lengths=)` errors | Those arguments do not exist | Use `detectRibosomeShifts()` then `shiftFootprints()` |\n| `RibORF.py -f -r -g -o` not found | Fabricated single-command CLI | RibORF is a Perl multi-script pipeline (logistic regression) |\n| Most uORFs missing | ATG-only scan | Use a periodicity caller with `-A` near-cognate starts |\n| High-coverage \"ORF\" is not real | Coverage used as the translation signal | Require frame-0 enrichment + FLOSS\u002FORFscore validation |\n\n## Related Skills\n\n- ribosome-periodicity - Calibrate the per-length P-site offsets ORF callers consume\n- initiation-site-mapping - Map start codons (including non-AUG) from harringtonine\u002FLTM data\n- translation-efficiency - Add an RNA-seq denominator to turn occupancy into TE\n- ribosome-stalling - Interpret pause sites within called ORFs\n- differential-expression\u002Fdeseq2-basics - Differential ORF-level translation\n\n## References\n\n- Mudge JM, Ruiz-Orera J, Prensner JR, et al. 2022. Standardized annotation of translated open reading frames. Nat Biotechnol 40(7):994-999. doi:10.1038\u002Fs41587-022-01369-0\n- Xiao Z, Huang R, Xing X, Chen Y, Deng H, Yang X. 2018. De novo annotation and characterization of the translatome with ribosome profiling data. Nucleic Acids Res 46(10):e61. doi:10.1093\u002Fnar\u002Fgky179\n- Calviello L, Hirsekorn A, Ohler U. 2020. Quantification of translation uncovers the functions of the alternative transcriptome. Nat Struct Mol Biol 27(8):717-725. doi:10.1038\u002Fs41594-020-0450-4\n- Tjeldnes H, Labun K, Torres Cleuren Y, Chyżyńska K, Świrski M, Valen E. 2021. ORFik: a comprehensive R toolkit for the analysis of translation. BMC Bioinformatics 22:336. doi:10.1186\u002Fs12859-021-04254-w\n- Choudhary S, Li W, Smith AD. 2020. Accurate detection of short and long active ORFs using Ribo-seq data. Bioinformatics 36(7):2053-2059. doi:10.1093\u002Fbioinformatics\u002Fbtz878\n- Ingolia NT, Brar GA, Stern-Ginossar N, et al. 2014. Ribosome profiling reveals pervasive translation outside of annotated protein-coding genes. Cell Rep 8(5):1365-1379. doi:10.1016\u002Fj.celrep.2014.07.045\n- Bazzini AA, Johnstone TG, Christiano R, et al. 2014. Identification of small ORFs in vertebrates using ribosome footprinting and evolutionary conservation. EMBO J 33(9):981-993. doi:10.1002\u002Fembj.201488411\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","mixed","2026-09-20","ribo-seq\u002Forf-detection\u002FSKILL.md","RiboCode","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-ribo-seq-orf-detection","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-ribo-seq-orf-detection",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-ribo-seq-orf-detection",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-ribo-seq-orf-detection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ribo-seq-orf-detection\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fdetect_orfs.sh","SCRIPT","脚本",1592,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ribo-seq-orf-detection\u002Fexamples\u002Fdetect_orfs.sh",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",2694,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ribo-seq-orf-detection\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]