Skip to content
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

tximport of feature counts? #55

Closed
marwa38 opened this issue Aug 27, 2023 · 1 comment
Closed

tximport of feature counts? #55

marwa38 opened this issue Aug 27, 2023 · 1 comment

Comments

@marwa38
Copy link

marwa38 commented Aug 27, 2023

I can't find a way to do the featureCounts tximport. I have this error although I chose countsFromAbundance = "no".

# path <- file.path(targets$sample_label, "abundance.tsv")
# all(file.exists(path))
#
# Tx_1 <- roslin.annotation[, c(8, 24)]
# # colnames(Tx_1)
# names(Tx_1) <- c("target_id", "gene_name")
# Tx_1 <- as_tibble(Tx_1)
gene_counts <- tximport(path,
                       type = "none",
                       tx2gene = Tx_1,
                       txOut = FALSE,
                       countsFromAbundance = "no",
                       importer = read_tsv, # did this as I was getting an error > reading in files with read_tsv
1 Error in importer(files[i]) : could not find function "importer"
                       countsCol = "counts",
                       lengthCol = "Length",
                       txIdCol = "target_id",
                       ignoreTxVersion = TRUE,
                       ignoreAfterBar = TRUE)
Rows: 45713 Columns: 3                                                                                                                             
── Column specification ────────────────────────────────────────────────────────────────────────────────────────
Delimiter: "\t"
chr (1): target_id
dbl (2): Length, counts

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Error in tximport(path, type = "none", tx2gene = Tx_1, txOut = FALSE,  : 
  argument "abundanceCol" is missing, with no default
@mikelove
Copy link
Collaborator

The motivation for the tximport package is described in Soneson 2015: transcript level quantification improves gene level analysis. Because featureCounts does not perform transcript level inference it cannot be supported in tximport.

There are plenty of workflows describing how to go from featureCounts to DE analysis
in edgeR, limma, DESeq2, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants