-
Notifications
You must be signed in to change notification settings - Fork 828
fix(tximport): handle tx2gene files with extra columns #1654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+435
−131
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
R's data.frame(..., row.names=1) fails to use column 1 as rownames when there is only one row. Explicitly pass row.names=samples.vec to ensure correct behavior regardless of sample count. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
LouisLeNezet
approved these changes
Dec 11, 2025
LouisLeNezet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything seems fine for me !
Plot export can be slower on ARM architecture, causing timeouts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Member
Author
|
Thanks @LouisLeNezet ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes an issue from a comment in #1626
Syncs tximport module from nf-core/modules#9520 and fixes a related issue in
deseq2_qc.rthat caused sample name mangling.Changes
tximeta/tximport module (from nf-core/modules#9520):
transcript_id,gene_id,gene_name) with positional fallback for compatibilityext.args(--tx_col,--gene_id_col,--gene_name_col)deseq2_qc.r:
check.names=FALSEtoread.delim()to prevent R from mangling sample names that start with numbers (e.g., "66130_Ascites" becoming "X66130_Ascites")Problem
When users specify multiple comma-separated values for
--gtf_extra_attributes(e.g.,gene_name,gene_biotype), thecustom/tx2genemodule produces a file with more than 3 columns. The previousread.csv()call used hardcodedcol.names, which caused data corruption. Additionally,deseq2_qc.rwas mangling sample names starting with digits, causing a mismatch between count matrix column names and coldata rownames.Test plan
--gtf_extra_attributes 'gene_name,gene_biotype'to verify 4-column tx2gene handling🤖 Generated with Claude Code