[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFD2X1JPVWPHDFY27SWQPQ":3,"skill-same:01M7EFD2X1JPVWPHDFY27SWQPQ":66},{"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},"01M7EFD2X1JPVWPHDFY27SWQPQ","bio-rna-quantification-tximport-workflow",null,"Import transcript-level quantifications from Salmon\u002Fkallisto\u002FRSEM into R for gene-level analysis with DESeq2\u002FedgeR using tximport or tximeta. Use when summarizing transcript abundances to gene counts with the correct length offset, choosing a countsFromAbundance mode (full-length vs 3'-tag vs DTU), resolving transcript-ID version mismatches, or handing off to DESeq2\u002FedgeR without double-applying the offset.","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-rna-quantification-tximport-workflow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-rna-quantification-tximport-workflow\ndescription: Import transcript-level quantifications from Salmon\u002Fkallisto\u002FRSEM into R for gene-level analysis with DESeq2\u002FedgeR using tximport or tximeta. Use when summarizing transcript abundances to gene counts with the correct length offset, choosing a countsFromAbundance mode (full-length vs 3'-tag vs DTU), resolving transcript-ID version mismatches, or handing off to DESeq2\u002FedgeR without double-applying the offset.\ntool_type: r\nprimary_tool: tximport\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"rna-quantification\u002Ftximport-workflow\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: tximport 1.30+, tximeta 1.20+, DESeq2 1.42+, edgeR 4.0+, txdbmaker 1.0+, Salmon 1.10+, kallisto 0.50+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\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# tximport Workflow\n\n**\"Import Salmon\u002Fkallisto results into DESeq2\"** -> Summarize transcript-level abundance estimates to gene-level counts AND compute a per-gene, per-sample length offset that the DE model consumes.\n- R: `tximport::tximport(files, type='salmon', tx2gene=tx2gene)`\n\n## Why this is not just a sum\n\ntximport does not merely add transcript counts to a gene total. The fragment count a gene produces depends on the average length of the isoforms expressed in that sample, because longer molecules yield more fragments (more start positions). When isoform usage shifts between conditions (differential transcript usage), the gene's average effective length changes, so a naive summed count is length-biased in a condition-correlated way and masquerades as differential expression. tximport corrects this by returning a per-gene, per-sample average-length matrix (`txi$length`) and passing it as a normalization offset to DESeq2\u002FedgeR. A single per-gene length cannot capture this because the bias is sample-specific (Soneson, Love, Robinson 2015).\n\n## Basic tximport\n\n**Goal:** Import transcript-level quantifications into R as gene-level counts plus the length offset for DESeq2 or edgeR.\n\n**Approach:** Build a transcript-to-gene map, then run tximport over the quant files; the returned `txi$counts`\u002F`txi$length` carry both the gene counts and the offset.\n\n```r\nlibrary(tximport)\n\nfiles \u003C- c(sample1 = 'sample1_quant\u002Fquant.sf',\n           sample2 = 'sample2_quant\u002Fquant.sf',\n           sample3 = 'sample3_quant\u002Fquant.sf')\n\ntx2gene \u003C- read.csv('tx2gene.csv')                 # column order: TXNAME, then GENEID\ntxi \u003C- tximport(files, type = 'salmon', tx2gene = tx2gene)\n```\n\n`txi` is a list: `$abundance` (TPM), `$counts` (estimated counts), `$length` (the average-length offset source), `$countsFromAbundance`.\n\n## Decision: countsFromAbundance mode\n\nThis argument silently determines correctness; nothing errors when it is wrong.\n\n| Mode | What it returns | Use when |\n|------|-----------------|----------|\n| `'no'` (default) | Estimated counts + separate length offset | Full-length library -> DESeq2\u002FedgeR (they consume the offset). The cleanest path. |\n| `'lengthScaledTPM'` | Counts with the length correction baked in, no separate offset | A tool that cannot take an offset (e.g. limma-voom) |\n| `'scaledTPM'` | TPM scaled to library size, no length scaling | Transcript-level DTU with `txOut=TRUE` (DRIMSeq\u002FDEXSeq); the established Love et al. workflow input |\n| `'dtuScaledTPM'` | Scaled by median isoform length | DTU alternative (tximport >= 1.10), needs `tx2gene`; helps when isoform lengths within a gene differ widely |\n\nFor DTU, `scaledTPM` is the established default; `dtuScaledTPM` is the newer purpose-built mode, preferable when a gene's isoforms span very different lengths.\n\nThe 3'-tag exception: for 3'-end protocols (10x, QuantSeq, Lexogen) a read count does not scale with transcript length, so there is no length bias to correct, and length-correcting injects one. Do not use the length-scaled modes (`lengthScaledTPM`\u002F`dtuScaledTPM`) for tag-seq. Import with the default, but build the DESeqDataSet from the plain counts so the length offset is NOT auto-applied:\n\n```r\n# 3'-tag: bypass the length offset that DESeqDataSetFromTximport would otherwise apply\ndds \u003C- DESeqDataSetFromMatrix(round(txi$counts), colData = coldata, design = ~ condition)\n```\n\n```r\n# Full-length, DESeq2\u002FedgeR (default): keep the offset path\ntxi \u003C- tximport(files, type = 'salmon', tx2gene = tx2gene)\n\n# Transcript-level for DTU (hand off to alternative-splicing\u002Fisoform-switching)\ntxi_tx \u003C- tximport(files, type = 'salmon', txOut = TRUE,\n                   countsFromAbundance = 'scaledTPM')\n```\n\n## Creating tx2gene\n\nThe map is a two-column data frame; column ORDER is load-bearing (TXNAME first, GENEID second), names do not matter.\n\n**Goal:** Map every quantified transcript ID to its gene, with IDs that exactly match the quant files.\n\n**Approach:** Derive from the annotation that built the index (GTF, ensembldb, biomaRt, or the index t2g); strip version suffixes to match.\n\n```r\n# From a GTF: makeTxDbFromGFF moved to txdbmaker in Bioconductor >= 3.19\n# (defunct in GenomicFeatures >= 1.61.1; on older Bioconductor use GenomicFeatures::makeTxDbFromGFF)\nlibrary(txdbmaker)\ntxdb \u003C- makeTxDbFromGFF('annotation.gtf')\nk \u003C- keys(txdb, keytype = 'TXNAME')\ntx2gene \u003C- AnnotationDbi::select(txdb, keys = k, keytype = 'TXNAME',\n                                 columns = c('TXNAME', 'GENEID'))\n\n# From biomaRt (useEnsembl; useMart is deprecated)\nlibrary(biomaRt)\nmart \u003C- useEnsembl(biomart = 'genes', dataset = 'hsapiens_gene_ensembl')\ntx2gene \u003C- getBM(attributes = c('ensembl_transcript_id', 'ensembl_gene_id'), mart = mart)\n```\n\n## The #1 silent failure: transcript-ID version mismatch\n\nIf `quant.sf` IDs carry version suffixes (`ENST00000456328.4`) but `tx2gene` does not (or vice versa), the IDs do not match. Total non-overlap raises an error; partial mismatch silently drops the non-matching transcripts and prints a summary, deflating affected genes toward zero. Fix by stripping versions consistently or with `ignoreTxVersion`:\n\n```r\ntxi \u003C- tximport(files, type = 'salmon', tx2gene = tx2gene,\n                ignoreTxVersion = TRUE, ignoreAfterBar = TRUE)\n```\n\n## Handoff to DESeq2 (offset applied automatically)\n\n**Goal:** Build a DESeqDataSet that uses the tximport length offset without any manual step.\n\n**Approach:** `DESeqDataSetFromTximport` stores `txi$length` as the `avgTxLength` assay and converts it to per-gene normalization factors inside `DESeq()`.\n\n```r\nlibrary(DESeq2)\ncoldata \u003C- data.frame(condition = factor(c('control', 'control', 'treated', 'treated')),\n                      row.names = names(files))\ndds \u003C- DESeqDataSetFromTximport(txi, colData = coldata, design = ~ condition)\ndds \u003C- dds[rowSums(counts(dds)) >= 10, ]   # light pre-filter (speed); results() does the inferential filter\ndds \u003C- DESeq(dds)\nres \u003C- results(dds)\n```\n\nPassing a `countsFromAbundance='no'` txi prints \"using counts and average transcript lengths from tximport\"; a length-scaled txi prints \"using just counts\" and applies no offset. Both are handled correctly by the function.\n\n## Handoff to edgeR (manual offset)\n\n**Goal:** Carry the length offset into an edgeR DGEList.\n\n**Approach:** Geometric-mean-center the length matrix, fold in composition-corrected library sizes, log it, attach via `scaleOffset`.\n\n```r\nlibrary(edgeR)\ncts \u003C- txi$counts\nnormMat \u003C- txi$length \u002F exp(rowMeans(log(txi$length)))   # center each gene on its geometric mean\nnormCts \u003C- cts \u002F normMat\neff.lib \u003C- calcNormFactors(normCts) * colSums(normCts)\nnormMat \u003C- sweep(normMat, 2, eff.lib, '*')\ny \u003C- scaleOffset(DGEList(cts), log(normMat))\ny \u003C- y[filterByExpr(y, group = coldata$condition), , keep.lib.sizes = FALSE]   # group-aware filter\n```\n\nDo not double-apply the offset: if `countsFromAbundance='lengthScaledTPM'` already baked the correction into the counts, do not also attach a length offset. Use `'no'` for the offset path, the scaled modes for the no-offset path, never both.\n\n## Transcript-level uncertainty (DTE\u002FDTU)\n\nGene-level estimates are robust because per-isoform assignment uncertainty cancels on summation. Transcript-level testing must propagate it: edgeR `catchSalmon` deflates counts by per-transcript overdispersion (differential-expression\u002Fedger-basics), swish\u002Ffishpond tests across Salmon Gibbs samples (alternative-splicing\u002Fisoform-switching), and sleuth uses kallisto bootstraps (expression-matrix\u002Fcounts-ingest). Generate the replicates at quantification time (rna-quantification\u002Falignment-free-quant).\n\n## tximeta: provenance by checksum\n\ntximeta hashes the index's reference sequences and looks the digest up against known GENCODE\u002FEnsembl\u002FRefSeq releases, attaching transcript ranges and release metadata automatically, so the exact reference becomes a verified property of the object rather than lab lore.\n\n```r\nlibrary(tximeta)\nmakeLinkedTxome(indexDir = 'salmon_index', source = 'Ensembl', organism = 'Homo sapiens',\n                release = '110', genome = 'GRCh38', fasta = 'transcripts.fa', gtf = 'annotation.gtf')\ncoldata \u003C- data.frame(names = names(files), files = files,\n                      condition = c('control', 'control', 'treated', 'treated'))\nse \u003C- tximeta(coldata)\ngse \u003C- summarizeToGene(se)\ndds \u003C- DESeqDataSet(gse, design = ~ condition)\n```\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Many genes import as zero or deflated | Transcript-ID version mismatch (partial drop) | `ignoreTxVersion = TRUE`; or strip `\\.\\d+$` from both sides |\n| Error: none of the transcripts present in tx2gene | Total ID mismatch (versions or wrong annotation) | Rebuild tx2gene from the annotation that built the index |\n| Summarized at the wrong level, no error | tx2gene columns reversed (GENEID first) | Order as TXNAME, then GENEID |\n| Length bias appears in 3'-tag data | DESeqDataSetFromTximport auto-applied the length offset | Build via `DESeqDataSetFromMatrix(round(txi$counts), ...)` so no offset is applied |\n| Fold changes inflated near isoform switches with manual edgeR | Offset double-applied or omitted | One path only: `'no'`+offset, or scaled mode without offset |\n\n## Related Skills\n\n- rna-quantification\u002Falignment-free-quant - Upstream Salmon\u002Fkallisto and inferential replicates\n- differential-expression\u002Fdeseq2-basics - Gene-level DE from a DESeqDataSet\n- differential-expression\u002Fedger-basics - edgeR DE and catchSalmon transcript DTE\n- alternative-splicing\u002Fisoform-switching - DTU and swish from transcript-level import\n- expression-matrix\u002Fcounts-ingest - sleuth and other quantifier ingestion paths\n- genome-intervals\u002Fgtf-gff-handling - Building tx2gene from a GTF\n\n## References\n\n- Soneson C, Love MI, Robinson MD. 2015. Differential analyses for RNA-seq: transcript-level estimates improve gene-level inferences. F1000Research 4:1521. doi:10.12688\u002Ff1000research.7563\n- Love MI, Soneson C, Hickey PF, et al. 2020. Tximeta: Reference sequence checksums for provenance identification in RNA-seq. PLoS Comput Biol 16(2):e1007664. doi:10.1371\u002Fjournal.pcbi.1007664\n","## Version Compatibility\n\nReference examples tested with: tximport 1.30+, tximeta 1.20+, DESeq2 1.42+, edgeR 4.0+, txdbmaker 1.0+, Salmon 1.10+, kallisto 0.50+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\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# tximport Workflow\n\n**\"Import Salmon\u002Fkallisto results into DESeq2\"** -> Summarize transcript-level abundance estimates to gene-level counts AND compute a per-gene, per-sample length offset that the DE model consumes.\n- R: `tximport::tximport(files, type='salmon', tx2gene=tx2gene)`\n\n## Why this is not just a sum\n\ntximport does not merely add transcript counts to a gene total. The fragment count a gene produces depends on the average length of the isoforms expressed in that sample, because longer molecules yield more fragments (more start positions). When isoform usage shifts between conditions (differential transcript usage), the gene's average effective length changes, so a naive summed count is length-biased in a condition-correlated way and masquerades as differential expression. tximport corrects this by returning a per-gene, per-sample average-length matrix (`txi$length`) and passing it as a normalization offset to DESeq2\u002FedgeR. A single per-gene length cannot capture this because the bias is sample-specific (Soneson, Love, Robinson 2015).\n\n## Basic tximport\n\n**Goal:** Import transcript-level quantifications into R as gene-level counts plus the length offset for DESeq2 or edgeR.\n\n**Approach:** Build a transcript-to-gene map, then run tximport over the quant files; the returned `txi$counts`\u002F`txi$length` carry both the gene counts and the offset.\n\n```r\nlibrary(tximport)\n\nfiles \u003C- c(sample1 = 'sample1_quant\u002Fquant.sf',\n           sample2 = 'sample2_quant\u002Fquant.sf',\n           sample3 = 'sample3_quant\u002Fquant.sf')\n\ntx2gene \u003C- read.csv('tx2gene.csv')                 # column order: TXNAME, then GENEID\ntxi \u003C- tximport(files, type = 'salmon', tx2gene = tx2gene)\n```\n\n`txi` is a list: `$abundance` (TPM), `$counts` (estimated counts), `$length` (the average-length offset source), `$countsFromAbundance`.\n\n## Decision: countsFromAbundance mode\n\nThis argument silently determines correctness; nothing errors when it is wrong.\n\n| Mode | What it returns | Use when |\n|------|-----------------|----------|\n| `'no'` (default) | Estimated counts + separate length offset | Full-length library -> DESeq2\u002FedgeR (they consume the offset). The cleanest path. |\n| `'lengthScaledTPM'` | Counts with the length correction baked in, no separate offset | A tool that cannot take an offset (e.g. limma-voom) |\n| `'scaledTPM'` | TPM scaled to library size, no length scaling | Transcript-level DTU with `txOut=TRUE` (DRIMSeq\u002FDEXSeq); the established Love et al. workflow input |\n| `'dtuScaledTPM'` | Scaled by median isoform length | DTU alternative (tximport >= 1.10), needs `tx2gene`; helps when isoform lengths within a gene differ widely |\n\nFor DTU, `scaledTPM` is the established default; `dtuScaledTPM` is the newer purpose-built mode, preferable when a gene's isoforms span very different lengths.\n\nThe 3'-tag exception: for 3'-end protocols (10x, QuantSeq, Lexogen) a read count does not scale with transcript length, so there is no length bias to correct, and length-correcting injects one. Do not use the length-scaled modes (`lengthScaledTPM`\u002F`dtuScaledTPM`) for tag-seq. Import with the default, but build the DESeqDataSet from the plain counts so the length offset is NOT auto-applied:\n\n```r\n# 3'-tag: bypass the length offset that DESeqDataSetFromTximport would otherwise apply\ndds \u003C- DESeqDataSetFromMatrix(round(txi$counts), colData = coldata, design = ~ condition)\n```\n\n```r\n# Full-length, DESeq2\u002FedgeR (default): keep the offset path\ntxi \u003C- tximport(files, type = 'salmon', tx2gene = tx2gene)\n\n# Transcript-level for DTU (hand off to alternative-splicing\u002Fisoform-switching)\ntxi_tx \u003C- tximport(files, type = 'salmon', txOut = TRUE,\n                   countsFromAbundance = 'scaledTPM')\n```\n\n## Creating tx2gene\n\nThe map is a two-column data frame; column ORDER is load-bearing (TXNAME first, GENEID second), names do not matter.\n\n**Goal:** Map every quantified transcript ID to its gene, with IDs that exactly match the quant files.\n\n**Approach:** Derive from the annotation that built the index (GTF, ensembldb, biomaRt, or the index t2g); strip version suffixes to match.\n\n```r\n# From a GTF: makeTxDbFromGFF moved to txdbmaker in Bioconductor >= 3.19\n# (defunct in GenomicFeatures >= 1.61.1; on older Bioconductor use GenomicFeatures::makeTxDbFromGFF)\nlibrary(txdbmaker)\ntxdb \u003C- makeTxDbFromGFF('annotation.gtf')\nk \u003C- keys(txdb, keytype = 'TXNAME')\ntx2gene \u003C- AnnotationDbi::select(txdb, keys = k, keytype = 'TXNAME',\n                                 columns = c('TXNAME', 'GENEID'))\n\n# From biomaRt (useEnsembl; useMart is deprecated)\nlibrary(biomaRt)\nmart \u003C- useEnsembl(biomart = 'genes', dataset = 'hsapiens_gene_ensembl')\ntx2gene \u003C- getBM(attributes = c('ensembl_transcript_id', 'ensembl_gene_id'), mart = mart)\n```\n\n## The #1 silent failure: transcript-ID version mismatch\n\nIf `quant.sf` IDs carry version suffixes (`ENST00000456328.4`) but `tx2gene` does not (or vice versa), the IDs do not match. Total non-overlap raises an error; partial mismatch silently drops the non-matching transcripts and prints a summary, deflating affected genes toward zero. Fix by stripping versions consistently or with `ignoreTxVersion`:\n\n```r\ntxi \u003C- tximport(files, type = 'salmon', tx2gene = tx2gene,\n                ignoreTxVersion = TRUE, ignoreAfterBar = TRUE)\n```\n\n## Handoff to DESeq2 (offset applied automatically)\n\n**Goal:** Build a DESeqDataSet that uses the tximport length offset without any manual step.\n\n**Approach:** `DESeqDataSetFromTximport` stores `txi$length` as the `avgTxLength` assay and converts it to per-gene normalization factors inside `DESeq()`.\n\n```r\nlibrary(DESeq2)\ncoldata \u003C- data.frame(condition = factor(c('control', 'control', 'treated', 'treated')),\n                      row.names = names(files))\ndds \u003C- DESeqDataSetFromTximport(txi, colData = coldata, design = ~ condition)\ndds \u003C- dds[rowSums(counts(dds)) >= 10, ]   # light pre-filter (speed); results() does the inferential filter\ndds \u003C- DESeq(dds)\nres \u003C- results(dds)\n```\n\nPassing a `countsFromAbundance='no'` txi prints \"using counts and average transcript lengths from tximport\"; a length-scaled txi prints \"using just counts\" and applies no offset. Both are handled correctly by the function.\n\n## Handoff to edgeR (manual offset)\n\n**Goal:** Carry the length offset into an edgeR DGEList.\n\n**Approach:** Geometric-mean-center the length matrix, fold in composition-corrected library sizes, log it, attach via `scaleOffset`.\n\n```r\nlibrary(edgeR)\ncts \u003C- txi$counts\nnormMat \u003C- txi$length \u002F exp(rowMeans(log(txi$length)))   # center each gene on its geometric mean\nnormCts \u003C- cts \u002F normMat\neff.lib \u003C- calcNormFactors(normCts) * colSums(normCts)\nnormMat \u003C- sweep(normMat, 2, eff.lib, '*')\ny \u003C- scaleOffset(DGEList(cts), log(normMat))\ny \u003C- y[filterByExpr(y, group = coldata$condition), , keep.lib.sizes = FALSE]   # group-aware filter\n```\n\nDo not double-apply the offset: if `countsFromAbundance='lengthScaledTPM'` already baked the correction into the counts, do not also attach a length offset. Use `'no'` for the offset path, the scaled modes for the no-offset path, never both.\n\n## Transcript-level uncertainty (DTE\u002FDTU)\n\nGene-level estimates are robust because per-isoform assignment uncertainty cancels on summation. Transcript-level testing must propagate it: edgeR `catchSalmon` deflates counts by per-transcript overdispersion (differential-expression\u002Fedger-basics), swish\u002Ffishpond tests across Salmon Gibbs samples (alternative-splicing\u002Fisoform-switching), and sleuth uses kallisto bootstraps (expression-matrix\u002Fcounts-ingest). Generate the replicates at quantification time (rna-quantification\u002Falignment-free-quant).\n\n## tximeta: provenance by checksum\n\ntximeta hashes the index's reference sequences and looks the digest up against known GENCODE\u002FEnsembl\u002FRefSeq releases, attaching transcript ranges and release metadata automatically, so the exact reference becomes a verified property of the object rather than lab lore.\n\n```r\nlibrary(tximeta)\nmakeLinkedTxome(indexDir = 'salmon_index', source = 'Ensembl', organism = 'Homo sapiens',\n                release = '110', genome = 'GRCh38', fasta = 'transcripts.fa', gtf = 'annotation.gtf')\ncoldata \u003C- data.frame(names = names(files), files = files,\n                      condition = c('control', 'control', 'treated', 'treated'))\nse \u003C- tximeta(coldata)\ngse \u003C- summarizeToGene(se)\ndds \u003C- DESeqDataSet(gse, design = ~ condition)\n```\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Many genes import as zero or deflated | Transcript-ID version mismatch (partial drop) | `ignoreTxVersion = TRUE`; or strip `\\.\\d+$` from both sides |\n| Error: none of the transcripts present in tx2gene | Total ID mismatch (versions or wrong annotation) | Rebuild tx2gene from the annotation that built the index |\n| Summarized at the wrong level, no error | tx2gene columns reversed (GENEID first) | Order as TXNAME, then GENEID |\n| Length bias appears in 3'-tag data | DESeqDataSetFromTximport auto-applied the length offset | Build via `DESeqDataSetFromMatrix(round(txi$counts), ...)` so no offset is applied |\n| Fold changes inflated near isoform switches with manual edgeR | Offset double-applied or omitted | One path only: `'no'`+offset, or scaled mode without offset |\n\n## Related Skills\n\n- rna-quantification\u002Falignment-free-quant - Upstream Salmon\u002Fkallisto and inferential replicates\n- differential-expression\u002Fdeseq2-basics - Gene-level DE from a DESeqDataSet\n- differential-expression\u002Fedger-basics - edgeR DE and catchSalmon transcript DTE\n- alternative-splicing\u002Fisoform-switching - DTU and swish from transcript-level import\n- expression-matrix\u002Fcounts-ingest - sleuth and other quantifier ingestion paths\n- genome-intervals\u002Fgtf-gff-handling - Building tx2gene from a GTF\n\n## References\n\n- Soneson C, Love MI, Robinson MD. 2015. Differential analyses for RNA-seq: transcript-level estimates improve gene-level inferences. F1000Research 4:1521. doi:10.12688\u002Ff1000research.7563\n- Love MI, Soneson C, Hickey PF, et al. 2020. Tximeta: Reference sequence checksums for provenance identification in RNA-seq. PLoS Comput Biol 16(2):e1007664. doi:10.1371\u002Fjournal.pcbi.1007664\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","r","2026-09-20","rna-quantification\u002Ftximport-workflow\u002FSKILL.md","tximport","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-rna-quantification-tximport-workflow","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-rna-quantification-tximport-workflow",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-rna-quantification-tximport-workflow",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-rna-quantification-tximport-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-rna-quantification-tximport-workflow\u002FSKILL.md",true,[50,56,60],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fcreate_tx2gene.R","OTHER","其他",829,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-rna-quantification-tximport-workflow\u002Fexamples\u002Fcreate_tx2gene.R",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"examples\u002Ftximport_deseq2.R",1034,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-rna-quantification-tximport-workflow\u002Fexamples\u002Ftximport_deseq2.R",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"usage-guide.md","REFERENCE","参考文档",5305,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-rna-quantification-tximport-workflow\u002Fusage-guide.md",[67,75,82,89,96,103],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":74},"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":74},"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":74},"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":74},"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":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":74},"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",[],[]]