[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFC056N5MX1E77C4JMQ80M":3,"skill-same:01M7EFC056N5MX1E77C4JMQ80M":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},"01M7EFC056N5MX1E77C4JMQ80M","bio-ribo-seq-ribosome-stalling",null,"Detect ribosome pausing and stalling at codon resolution from Ribo-seq, using local-relative occupancy metrics and A-site assignment. Use when studying elongation dynamics, codon dwell times, pause motifs, or ribosome collisions, and when judging whether a pause is real biology or a cycloheximide artifact.","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-ribosome-stalling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-ribo-seq-ribosome-stalling\ndescription: Detect ribosome pausing and stalling at codon resolution from Ribo-seq, using local-relative occupancy metrics and A-site assignment. Use when studying elongation dynamics, codon dwell times, pause motifs, or ribosome collisions, and when judging whether a pause is real biology or a cycloheximide artifact.\ntool_type: python\nprimary_tool: Plastid\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"ribo-seq\u002Fribosome-stalling\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: plastid 0.6+, numpy 1.26+, scipy 1.12+, biopython 1.83+, twobitreader 3.1+\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- 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# Ribosome Stalling Detection\n\n**\"Find ribosome pause sites in my data\"** -> Detect codon positions where ribosomes dwell longer than the local average, attribute them to A-site decoding or nascent-chain effects, and judge whether the signal is real or a drug artifact.\n- Python: `plastid` for A-site codon density, local-relative pause scoring, and motif context\n\n## Read this first: cycloheximide destroys pause signal\n\nA pause is only meaningful when footprint positions reflect in-vivo dwell times. Cycloheximide (CHX) pre-treatment of live cells violates this: arrest is not instantaneous, ribosomes run on after the drug, density redistributes downstream, codon-specific pausing is attenuated, and an artifactual start-codon peak appears. Hussmann 2015 showed CHX data report a WEAK NEGATIVE correlation between codon rate and tRNA abundance while flash-frozen data report a STRONG POSITIVE one -- the drug flips the conclusion. A pause analysis on CHX data largely measures the drug.\n\nDecision rule before any dwell\u002Fpause analysis:\n- Flash-frozen, no drug (or CHX only in lysis at high concentration) -> codon-resolution dwell-time analysis is valid.\n- CHX pre-incubation of live cells -> restrict to qualitative\u002Fgene-level statements; do not report codon dwell times or tRNA correlations as biology.\n- Harringtonine\u002Flactimidomycin data are for initiation-site mapping, not elongation pausing (see initiation-site-mapping).\n\n## A-site vs P-site: the offset choice changes the biology\n\nThe P-site offset (~12 nt from the 5' end for canonical 28-30 nt footprints) must be calibrated per read length, not hardcoded (see ribosome-periodicity). The relevant site depends on the mechanism: tRNA-availability\u002Fdecoding pauses register at the A-SITE (A-site = P-site + 3), so codon-occupancy and tRNA work assign to the A-site. Nascent-chain effects (polyproline, charge) act at the P-site\u002Fexit tunnel and upstream. State which site is used; the peak position relative to A\u002FP\u002FE is itself diagnostic.\n\n## Pause-metric selection\n\n| Metric | Definition | Caveat |\n|--------|-----------|--------|\n| Per-transcript z-score | (density - gene mean)\u002Fgene SD | not the field standard; SD inflated by the peaks sought; arbitrary threshold |\n| Pause score | local density \u002F gene-mean density at that position | needs a per-gene coverage floor; the standard local-relative metric |\n| Codon occupancy | mean over all instances of a codon of (position density \u002F gene mean) | normalize each gene to its own mean FIRST, then pool; assign to A-site |\n| RUST | binarize each position vs the gene mean, average the metafootprint | outlier-robust; resists a few high peaks dominating |\n| Disome density | footprints from two stacked ribosomes (~58-62 nt) | the cleanest in-vivo strong-pause readout (Arpat 2020) |\n\nThe two normalization rules the naive z-score violates: never z-score across positions of differently-expressed genes (high-expression genes dominate) -- normalize each gene to its own mean first; and require a real per-gene coverage floor (a few hundred in-frame footprints), far above a `sum > 100` cutoff, or per-position metrics are noise.\n\n## Calculate A-site codon density (plastid)\n\n**Goal:** Get a per-codon occupancy vector for each CDS at the A-site.\n\n**Approach:** Map footprints to the A-site offset, fetch the CDS count vector, and reduce each codon to its summed in-frame count.\n\n```python\nfrom plastid import BAMGenomeArray, GTF2_TranscriptAssembler, FivePrimeMapFactory\nimport numpy as np\n\ndef asite_codon_occupancy(bam_path, gtf_path, asite_offset=15):\n    '''Per-codon A-site occupancy per CDS. A-site offset = P-site (~12) + 3.\n\n    A single fixed offset is a simplification valid only when one read length\n    dominates. For production, calibrate per length (ribosome-periodicity) and\n    map with VariableFivePrimeMapFactory.from_file using A-site = P-site + 3.\n    '''\n    alignments = BAMGenomeArray(bam_path, mapping=FivePrimeMapFactory(offset=asite_offset))\n    out = {}\n    for tx in GTF2_TranscriptAssembler(gtf_path):\n        if tx.cds_start is None:\n            continue\n        cds = tx.get_cds()\n        counts = cds.get_counts(alignments)          # numpy vector over the CDS\n        n_codons = len(counts) \u002F\u002F 3\n        # Sum the 3 positions of each codon into a SCALAR (one value per codon)\n        per_codon = np.array([counts[i*3:i*3+3].sum() for i in range(n_codons)])\n        out[tx.get_name()] = per_codon\n    return out\n```\n\n`cds.get_counts(alignments)` is the count method on the SegmentChain; `BAMGenomeArray` has no `count_in_region`\u002F`get_density`. Reducing each codon to a scalar (sum of its three positions) is essential -- storing the whole vector at each codon makes every downstream metric garbage.\n\n## Score pauses with a local-relative metric\n\n**Goal:** Flag codons where occupancy exceeds the gene's own average.\n\n**Approach:** Divide each position by the gene mean (a pause score), require adequate coverage, and threshold.\n\n```python\ndef pause_scores(per_codon_occupancy, min_total=500, score_threshold=5.0):\n    '''Pause score = codon occupancy \u002F gene-mean occupancy (local-relative).\n\n    min_total: per-gene footprint floor; below this, scores are noise.\n    score_threshold: fold-over-gene-mean to call a pause (tune per dataset).\n    '''\n    pauses = []\n    for tx, occ in per_codon_occupancy.items():\n        if occ.sum() \u003C min_total:\n            continue\n        mean = occ.mean()\n        if mean == 0:\n            continue\n        scores = occ \u002F mean\n        for pos in np.where(scores > score_threshold)[0]:\n            pauses.append({'transcript': tx, 'codon': int(pos),\n                           'pause_score': float(scores[pos])})\n    return pauses\n```\n\n## Codon occupancy across genes\n\n**Goal:** Estimate per-codon-type dwell, averaged across the transcriptome.\n\n**Approach:** Normalize each gene to its own mean BEFORE pooling, then average per codon identity (the A-site codon).\n\nPool mean-of-ratios, not ratio-of-means: a raw average across genes is dominated by highly expressed genes. The per-codon occupancy is then a relative dwell estimate -- and only on no-drug data. The tRNA-availability correlation (codon occupancy vs tRNA adaptation index) is modest, sign- and protocol-dependent, and reflects charged-tRNA levels rather than gene copy number; report the effect size, not a presumed strong negative correlation.\n\n## Known pause mechanisms\n\n| Motif \u002F feature | Mechanism |\n|-----------------|-----------|\n| Polyproline (PPP, PPG) | Rigid proline geometry stalls peptidyl transfer; rescued by eIF5A (eukaryotes) \u002F EF-P (bacteria) |\n| Poly-basic (Lys\u002FArg runs) | Basic nascent chain drags on the negatively-charged exit tunnel; poly-Lys also involves sliding on A-rich codons |\n| Rare\u002Flow-tRNA codons | Slow A-site decoding; real but modest, and inflated in CHX data |\n| Internal Shine-Dalgarno (bacteria) | Anti-SD base-pairing with 16S rRNA; real but contested (protocol-dependent) |\n\n## Ribosome collisions and disome-seq (the modern readout)\n\nWhen a ribosome stalls, the trailing ribosome collides into it, forming a disome whose ~58-62 nt footprint maps collision sites transcriptome-wide -- a cleaner in-vivo strong-pause readout than monosome relative density (Arpat 2020; ~10% of ribosomes can be in disomes). The collided-disome interface is the trigger for ribosome quality control: ZNF598 (mammals) \u002F Hel2 (yeast) ubiquitinate small-subunit proteins, recruiting the splitting machinery and no-go decay. A monosome pause that coincides with a disome peak, replicates, and survives in no-drug data is strong evidence of a real, acted-upon stall.\n\n## Extract pause-site sequence context\n\n**Goal:** Find amino-acid motifs enriched at pause sites.\n\n**Approach:** Build the per-transcript CDS sequences from a genome (plastid's `get_sequence` needs a genome, not a SegmentChain), then translate a window centered on the A-site codon of each pause.\n\n```python\nfrom Bio.Seq import Seq\nimport twobitreader\n\ndef cds_sequences_from_genome(gtf_path, twobit_path):\n    '''Map transcript name -> spliced CDS nucleotide sequence.'''\n    from plastid import GTF2_TranscriptAssembler\n    genome = twobitreader.TwoBitFile(twobit_path)   # dict-like {chrom: seq}\n    seqs = {}\n    for tx in GTF2_TranscriptAssembler(gtf_path):\n        if tx.cds_start is None:\n            continue\n        seqs[tx.get_name()] = tx.get_cds().get_sequence(genome)\n    return seqs\n\ndef pause_motifs(pauses, cds_sequences, window_codons=5):\n    '''Amino-acid context around each pause (centered on the A-site codon).'''\n    motifs = []\n    for p in pauses:\n        seq = cds_sequences.get(p['transcript'])\n        if not seq:\n            continue\n        c = p['codon']\n        s, e = max(0, (c - window_codons) * 3), min(len(seq), (c + window_codons + 1) * 3)\n        if (e - s) % 3 == 0:\n            motifs.append(str(Seq(seq[s:e]).translate()))\n    return motifs\n```\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Strong start-codon \"pause\", odd tRNA correlation | CHX pre-treatment artifacts | Use flash-frozen no-drug data; restrict CHX data to gene-level claims |\n| `AttributeError` on `count_in_region`\u002F`get_density` | Not BAMGenomeArray methods | Use `cds.get_counts(alignments)` |\n| Every codon occupancy identical | Whole count vector stored per codon | Store a scalar: sum the 3 positions of each codon |\n| `TypeError` from `get_sequence` | Passed a SegmentChain, not a genome | Load a genome FASTA\u002F2bit; call `cds.get_sequence(genome)` |\n| Pauses dominated by one highly expressed gene | Global z-score \u002F ratio-of-means | Normalize each gene to its own mean first; mean-of-ratios |\n| Noisy, irreproducible pauses | Coverage floor too low (sum > 100) | Require a few hundred in-frame footprints per gene |\n| tRNA correlation overstated | Assumed strong negative on CHX data | Report effect size; depends on charging and harvest |\n\n## Related Skills\n\n- ribosome-periodicity - Calibrate the A-site offset before scoring occupancy\n- orf-detection - Locate the ORFs that pause sites fall within\n- initiation-site-mapping - Distinguish initiation drugs from elongation pausing\n- translation-efficiency - Gene-level translation context\n\n## References\n\n- Hussmann JA, Patchett S, Johnson A, Sawyer S, Press WH. 2015. Understanding biases in ribosome profiling experiments reveals signatures of translation dynamics in yeast. PLoS Genet 11(12):e1005732. doi:10.1371\u002Fjournal.pgen.1005732\n- Gerashchenko MV, Gladyshev VN. 2014. Translation inhibitors cause abnormalities in ribosome profiling experiments. Nucleic Acids Res 42(17):e134. doi:10.1093\u002Fnar\u002Fgku671\n- O'Connor PBF, Andreev DE, Baranov PV. 2016. Comparative survey of the relative impact of mRNA features on local ribosome profiling read density. Nat Commun 7:12915. doi:10.1038\u002Fncomms12915\n- Arpat AB, Liechti A, De Matos M, Dreos R, Janich P, Gatfield D. 2020. Transcriptome-wide sites of collided ribosomes reveal principles of translational pausing. Genome Res 30(7):985-999. doi:10.1101\u002Fgr.257741.119\n- Charneski CA, Hurst LD. 2013. Positively charged residues are the major determinants of ribosomal velocity. PLoS Biol 11(3):e1001508. doi:10.1371\u002Fjournal.pbio.1001508\n- Schuller AP, Wu CC, Dever TE, Buskirk AR, Green R. 2017. eIF5A functions globally in translation elongation and termination. Mol Cell 66(2):194-205. doi:10.1016\u002Fj.molcel.2017.03.003\n- Li GW, Oh E, Weissman JS. 2012. The anti-Shine-Dalgarno sequence drives translational pausing and codon choice in bacteria. Nature 484(7395):538-541. doi:10.1038\u002Fnature10965\n","## Version Compatibility\n\nReference examples tested with: plastid 0.6+, numpy 1.26+, scipy 1.12+, biopython 1.83+, twobitreader 3.1+\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- 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# Ribosome Stalling Detection\n\n**\"Find ribosome pause sites in my data\"** -> Detect codon positions where ribosomes dwell longer than the local average, attribute them to A-site decoding or nascent-chain effects, and judge whether the signal is real or a drug artifact.\n- Python: `plastid` for A-site codon density, local-relative pause scoring, and motif context\n\n## Read this first: cycloheximide destroys pause signal\n\nA pause is only meaningful when footprint positions reflect in-vivo dwell times. Cycloheximide (CHX) pre-treatment of live cells violates this: arrest is not instantaneous, ribosomes run on after the drug, density redistributes downstream, codon-specific pausing is attenuated, and an artifactual start-codon peak appears. Hussmann 2015 showed CHX data report a WEAK NEGATIVE correlation between codon rate and tRNA abundance while flash-frozen data report a STRONG POSITIVE one -- the drug flips the conclusion. A pause analysis on CHX data largely measures the drug.\n\nDecision rule before any dwell\u002Fpause analysis:\n- Flash-frozen, no drug (or CHX only in lysis at high concentration) -> codon-resolution dwell-time analysis is valid.\n- CHX pre-incubation of live cells -> restrict to qualitative\u002Fgene-level statements; do not report codon dwell times or tRNA correlations as biology.\n- Harringtonine\u002Flactimidomycin data are for initiation-site mapping, not elongation pausing (see initiation-site-mapping).\n\n## A-site vs P-site: the offset choice changes the biology\n\nThe P-site offset (~12 nt from the 5' end for canonical 28-30 nt footprints) must be calibrated per read length, not hardcoded (see ribosome-periodicity). The relevant site depends on the mechanism: tRNA-availability\u002Fdecoding pauses register at the A-SITE (A-site = P-site + 3), so codon-occupancy and tRNA work assign to the A-site. Nascent-chain effects (polyproline, charge) act at the P-site\u002Fexit tunnel and upstream. State which site is used; the peak position relative to A\u002FP\u002FE is itself diagnostic.\n\n## Pause-metric selection\n\n| Metric | Definition | Caveat |\n|--------|-----------|--------|\n| Per-transcript z-score | (density - gene mean)\u002Fgene SD | not the field standard; SD inflated by the peaks sought; arbitrary threshold |\n| Pause score | local density \u002F gene-mean density at that position | needs a per-gene coverage floor; the standard local-relative metric |\n| Codon occupancy | mean over all instances of a codon of (position density \u002F gene mean) | normalize each gene to its own mean FIRST, then pool; assign to A-site |\n| RUST | binarize each position vs the gene mean, average the metafootprint | outlier-robust; resists a few high peaks dominating |\n| Disome density | footprints from two stacked ribosomes (~58-62 nt) | the cleanest in-vivo strong-pause readout (Arpat 2020) |\n\nThe two normalization rules the naive z-score violates: never z-score across positions of differently-expressed genes (high-expression genes dominate) -- normalize each gene to its own mean first; and require a real per-gene coverage floor (a few hundred in-frame footprints), far above a `sum > 100` cutoff, or per-position metrics are noise.\n\n## Calculate A-site codon density (plastid)\n\n**Goal:** Get a per-codon occupancy vector for each CDS at the A-site.\n\n**Approach:** Map footprints to the A-site offset, fetch the CDS count vector, and reduce each codon to its summed in-frame count.\n\n```python\nfrom plastid import BAMGenomeArray, GTF2_TranscriptAssembler, FivePrimeMapFactory\nimport numpy as np\n\ndef asite_codon_occupancy(bam_path, gtf_path, asite_offset=15):\n    '''Per-codon A-site occupancy per CDS. A-site offset = P-site (~12) + 3.\n\n    A single fixed offset is a simplification valid only when one read length\n    dominates. For production, calibrate per length (ribosome-periodicity) and\n    map with VariableFivePrimeMapFactory.from_file using A-site = P-site + 3.\n    '''\n    alignments = BAMGenomeArray(bam_path, mapping=FivePrimeMapFactory(offset=asite_offset))\n    out = {}\n    for tx in GTF2_TranscriptAssembler(gtf_path):\n        if tx.cds_start is None:\n            continue\n        cds = tx.get_cds()\n        counts = cds.get_counts(alignments)          # numpy vector over the CDS\n        n_codons = len(counts) \u002F\u002F 3\n        # Sum the 3 positions of each codon into a SCALAR (one value per codon)\n        per_codon = np.array([counts[i*3:i*3+3].sum() for i in range(n_codons)])\n        out[tx.get_name()] = per_codon\n    return out\n```\n\n`cds.get_counts(alignments)` is the count method on the SegmentChain; `BAMGenomeArray` has no `count_in_region`\u002F`get_density`. Reducing each codon to a scalar (sum of its three positions) is essential -- storing the whole vector at each codon makes every downstream metric garbage.\n\n## Score pauses with a local-relative metric\n\n**Goal:** Flag codons where occupancy exceeds the gene's own average.\n\n**Approach:** Divide each position by the gene mean (a pause score), require adequate coverage, and threshold.\n\n```python\ndef pause_scores(per_codon_occupancy, min_total=500, score_threshold=5.0):\n    '''Pause score = codon occupancy \u002F gene-mean occupancy (local-relative).\n\n    min_total: per-gene footprint floor; below this, scores are noise.\n    score_threshold: fold-over-gene-mean to call a pause (tune per dataset).\n    '''\n    pauses = []\n    for tx, occ in per_codon_occupancy.items():\n        if occ.sum() \u003C min_total:\n            continue\n        mean = occ.mean()\n        if mean == 0:\n            continue\n        scores = occ \u002F mean\n        for pos in np.where(scores > score_threshold)[0]:\n            pauses.append({'transcript': tx, 'codon': int(pos),\n                           'pause_score': float(scores[pos])})\n    return pauses\n```\n\n## Codon occupancy across genes\n\n**Goal:** Estimate per-codon-type dwell, averaged across the transcriptome.\n\n**Approach:** Normalize each gene to its own mean BEFORE pooling, then average per codon identity (the A-site codon).\n\nPool mean-of-ratios, not ratio-of-means: a raw average across genes is dominated by highly expressed genes. The per-codon occupancy is then a relative dwell estimate -- and only on no-drug data. The tRNA-availability correlation (codon occupancy vs tRNA adaptation index) is modest, sign- and protocol-dependent, and reflects charged-tRNA levels rather than gene copy number; report the effect size, not a presumed strong negative correlation.\n\n## Known pause mechanisms\n\n| Motif \u002F feature | Mechanism |\n|-----------------|-----------|\n| Polyproline (PPP, PPG) | Rigid proline geometry stalls peptidyl transfer; rescued by eIF5A (eukaryotes) \u002F EF-P (bacteria) |\n| Poly-basic (Lys\u002FArg runs) | Basic nascent chain drags on the negatively-charged exit tunnel; poly-Lys also involves sliding on A-rich codons |\n| Rare\u002Flow-tRNA codons | Slow A-site decoding; real but modest, and inflated in CHX data |\n| Internal Shine-Dalgarno (bacteria) | Anti-SD base-pairing with 16S rRNA; real but contested (protocol-dependent) |\n\n## Ribosome collisions and disome-seq (the modern readout)\n\nWhen a ribosome stalls, the trailing ribosome collides into it, forming a disome whose ~58-62 nt footprint maps collision sites transcriptome-wide -- a cleaner in-vivo strong-pause readout than monosome relative density (Arpat 2020; ~10% of ribosomes can be in disomes). The collided-disome interface is the trigger for ribosome quality control: ZNF598 (mammals) \u002F Hel2 (yeast) ubiquitinate small-subunit proteins, recruiting the splitting machinery and no-go decay. A monosome pause that coincides with a disome peak, replicates, and survives in no-drug data is strong evidence of a real, acted-upon stall.\n\n## Extract pause-site sequence context\n\n**Goal:** Find amino-acid motifs enriched at pause sites.\n\n**Approach:** Build the per-transcript CDS sequences from a genome (plastid's `get_sequence` needs a genome, not a SegmentChain), then translate a window centered on the A-site codon of each pause.\n\n```python\nfrom Bio.Seq import Seq\nimport twobitreader\n\ndef cds_sequences_from_genome(gtf_path, twobit_path):\n    '''Map transcript name -> spliced CDS nucleotide sequence.'''\n    from plastid import GTF2_TranscriptAssembler\n    genome = twobitreader.TwoBitFile(twobit_path)   # dict-like {chrom: seq}\n    seqs = {}\n    for tx in GTF2_TranscriptAssembler(gtf_path):\n        if tx.cds_start is None:\n            continue\n        seqs[tx.get_name()] = tx.get_cds().get_sequence(genome)\n    return seqs\n\ndef pause_motifs(pauses, cds_sequences, window_codons=5):\n    '''Amino-acid context around each pause (centered on the A-site codon).'''\n    motifs = []\n    for p in pauses:\n        seq = cds_sequences.get(p['transcript'])\n        if not seq:\n            continue\n        c = p['codon']\n        s, e = max(0, (c - window_codons) * 3), min(len(seq), (c + window_codons + 1) * 3)\n        if (e - s) % 3 == 0:\n            motifs.append(str(Seq(seq[s:e]).translate()))\n    return motifs\n```\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Strong start-codon \"pause\", odd tRNA correlation | CHX pre-treatment artifacts | Use flash-frozen no-drug data; restrict CHX data to gene-level claims |\n| `AttributeError` on `count_in_region`\u002F`get_density` | Not BAMGenomeArray methods | Use `cds.get_counts(alignments)` |\n| Every codon occupancy identical | Whole count vector stored per codon | Store a scalar: sum the 3 positions of each codon |\n| `TypeError` from `get_sequence` | Passed a SegmentChain, not a genome | Load a genome FASTA\u002F2bit; call `cds.get_sequence(genome)` |\n| Pauses dominated by one highly expressed gene | Global z-score \u002F ratio-of-means | Normalize each gene to its own mean first; mean-of-ratios |\n| Noisy, irreproducible pauses | Coverage floor too low (sum > 100) | Require a few hundred in-frame footprints per gene |\n| tRNA correlation overstated | Assumed strong negative on CHX data | Report effect size; depends on charging and harvest |\n\n## Related Skills\n\n- ribosome-periodicity - Calibrate the A-site offset before scoring occupancy\n- orf-detection - Locate the ORFs that pause sites fall within\n- initiation-site-mapping - Distinguish initiation drugs from elongation pausing\n- translation-efficiency - Gene-level translation context\n\n## References\n\n- Hussmann JA, Patchett S, Johnson A, Sawyer S, Press WH. 2015. Understanding biases in ribosome profiling experiments reveals signatures of translation dynamics in yeast. PLoS Genet 11(12):e1005732. doi:10.1371\u002Fjournal.pgen.1005732\n- Gerashchenko MV, Gladyshev VN. 2014. Translation inhibitors cause abnormalities in ribosome profiling experiments. Nucleic Acids Res 42(17):e134. doi:10.1093\u002Fnar\u002Fgku671\n- O'Connor PBF, Andreev DE, Baranov PV. 2016. Comparative survey of the relative impact of mRNA features on local ribosome profiling read density. Nat Commun 7:12915. doi:10.1038\u002Fncomms12915\n- Arpat AB, Liechti A, De Matos M, Dreos R, Janich P, Gatfield D. 2020. Transcriptome-wide sites of collided ribosomes reveal principles of translational pausing. Genome Res 30(7):985-999. doi:10.1101\u002Fgr.257741.119\n- Charneski CA, Hurst LD. 2013. Positively charged residues are the major determinants of ribosomal velocity. PLoS Biol 11(3):e1001508. doi:10.1371\u002Fjournal.pbio.1001508\n- Schuller AP, Wu CC, Dever TE, Buskirk AR, Green R. 2017. eIF5A functions globally in translation elongation and termination. Mol Cell 66(2):194-205. doi:10.1016\u002Fj.molcel.2017.03.003\n- Li GW, Oh E, Weissman JS. 2012. The anti-Shine-Dalgarno sequence drives translational pausing and codon choice in bacteria. Nature 484(7395):538-541. doi:10.1038\u002Fnature10965\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","python","2026-09-20","ribo-seq\u002Fribosome-stalling\u002FSKILL.md","Plastid","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-ribo-seq-ribosome-stalling","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-ribosome-stalling",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-ribo-seq-ribosome-stalling",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-ribo-seq-ribosome-stalling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ribo-seq-ribosome-stalling\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fdetect_stalling.py","SCRIPT","脚本",3302,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ribo-seq-ribosome-stalling\u002Fexamples\u002Fdetect_stalling.py",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",2472,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ribo-seq-ribosome-stalling\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",[],[]]