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

countFeatures() from bam files giving 0% alignment #5

Open
marykthompson opened this issue Feb 23, 2022 · 0 comments
Open

countFeatures() from bam files giving 0% alignment #5

marykthompson opened this issue Feb 23, 2022 · 0 comments

Comments

@marykthompson
Copy link

I am trying to use countFeatures() with my bam files to use diffUTR. Unfortunately, it says that 0% are aligned and when I go to the next step that causes an error. I have checked that Rsubread::featureCounts can produce alignments with the bam files. Here my specific code:

ah <- AnnotationHub()
ahid <- query(ah, c("EnsDb", "Drosophila melanogaster", 99))$ah_id[1]
ensdb <- ah[[ahid]]
bins <- prepareBins(ensdb)

bamfiles <- file.path(bam_dir, c("input_1-rep1.sample.bam"))
rse <- countFeatures(bamfiles, bins, strandSpecific=1, readLength=80, nthreads=6, isPairedEnd=TRUE)

Interestingly, the example on page 3 of the diffUTR manual produces the same problem (0% alignment). I don't know if this could be related?

data("example_gene_annotation", package="diffUTR")
bins <- prepareBins(example_gene_annotation)
bam_files <- list.files(system.file("extdata", package="diffUTR"),
                        pattern="bam$", full=TRUE)
se <- countFeatures(bam_files, bins, verbose=FALSE)

Any ideas what is going wrong? I am running diffUTR v1.3.0. I went through the vignette with the preloaded analysis and everything looked good. Would be great to use the package on my data. Thanks!

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

1 participant