Skip to content

Commit

Permalink
refact: Allow using refs from GenCode
Browse files Browse the repository at this point in the history
commit 88282b8
Author: jvfe <[email protected]>
Date:   Sun Sep 29 13:53:22 2024 -0300

    fix: Add missing dot to regex

commit 5efc0b4
Author: jvfe <[email protected]>
Date:   Sun Sep 29 10:56:45 2024 -0300

    refact: Try handling bars in IDs
  • Loading branch information
jvfe committed Sep 29, 2024
1 parent 37f73aa commit 658471f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/gen_tx2gene.r
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ txdf <- AnnotationDbi::select(
tab <- table(txdf$GENEID)
txdf$ntx <- tab[match(txdf$GENEID, names(tab))]

txdf$TXNAME <- gsub("\\..*", "", txdf$TXNAME)
txdf$GENEID <- gsub("\\..*", "", txdf$GENEID)

tx2gene <- data.frame(
tx = txdf$TXNAME,
gene = txdf$GENEID
Expand Down
3 changes: 3 additions & 0 deletions bin/tximport.r
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ txi_gene <- tximport(
type = "kallisto",
tx2gene = tx2gene,
ignoreTxVersion = TRUE,
ignoreAfterBar = TRUE,
dropInfReps=TRUE
)

Expand All @@ -28,6 +29,7 @@ txi_tx <- tximport(
type = "kallisto",
txOut = TRUE,
ignoreTxVersion = TRUE,
ignoreAfterBar = TRUE,
dropInfReps=TRUE
)

Expand All @@ -37,6 +39,7 @@ txi_tx_scaled <- tximport(
txOut = TRUE,
countsFromAbundance = "scaledTPM",
ignoreTxVersion = TRUE,
ignoreAfterBar = TRUE,
dropInfReps=TRUE
)

Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ manifest {
description = 'Workflow for pre-processing, alignment and quantification of bulk RNA-Seq data'
mainScript = 'main.nf'
nextflowVersion = '!>=22.10.1'
version = '0.5.0'
version = '0.6.0'
doi = ''
}

Expand Down

0 comments on commit 658471f

Please sign in to comment.