Skip to content

Commit 1de2c99

Browse files
committed
refact: Allow using refs from GenCode
commit 88282b8 Author: jvfe <jvfecav@gmail.com> Date: Sun Sep 29 13:53:22 2024 -0300 fix: Add missing dot to regex commit 5efc0b4 Author: jvfe <jvfecav@gmail.com> Date: Sun Sep 29 10:56:45 2024 -0300 refact: Try handling bars in IDs
1 parent 37f73aa commit 1de2c99

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bin/gen_tx2gene.r

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ txdf <- AnnotationDbi::select(
2626
tab <- table(txdf$GENEID)
2727
txdf$ntx <- tab[match(txdf$GENEID, names(tab))]
2828

29+
txdf$TXNAME <- gsub("\\..*", "", txdf$TXNAME)
30+
txdf$GENEID <- gsub("\\..*", "", txdf$GENEID)
31+
2932
tx2gene <- data.frame(
3033
tx = txdf$TXNAME,
3134
gene = txdf$GENEID

bin/tximport.r

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ txi_gene <- tximport(
2020
type = "kallisto",
2121
tx2gene = tx2gene,
2222
ignoreTxVersion = TRUE,
23+
ignoreAfterBar = TRUE,
2324
dropInfReps=TRUE
2425
)
2526

@@ -28,6 +29,7 @@ txi_tx <- tximport(
2829
type = "kallisto",
2930
txOut = TRUE,
3031
ignoreTxVersion = TRUE,
32+
ignoreAfterBar = TRUE,
3133
dropInfReps=TRUE
3234
)
3335

@@ -37,6 +39,7 @@ txi_tx_scaled <- tximport(
3739
txOut = TRUE,
3840
countsFromAbundance = "scaledTPM",
3941
ignoreTxVersion = TRUE,
42+
ignoreAfterBar = TRUE,
4043
dropInfReps=TRUE
4144
)
4245

0 commit comments

Comments
 (0)