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

problem with featureMatrix #1163

Closed
yamihn opened this issue Jul 16, 2022 · 1 comment
Closed

problem with featureMatrix #1163

yamihn opened this issue Jul 16, 2022 · 1 comment

Comments

@yamihn
Copy link

yamihn commented Jul 16, 2022

hi @timoast, I was trying to analyze the peaks of my object. I called the peaks using callpeaks, but the problem is that when I try to create the featurematrix, I get the following error:

macs2_counts <- FeatureMatrix (
+ fragments = fragments (subset_obj),
+ features = peaks,
+)
[W :: hts_idx_load2] The index file is older than the data file: /media/jan/toshiba/single_cell/Fragment/KO_d6_r1_fragments.tsv.gz.tbi
Error in h (simpleError (msg, call)):
  error evaluating the 'y' argument when selecting a method for the 'intersect' function: [internal] bgzf_seek () failed


 traceback()
12: h(simpleError(msg, call))
11: .handleSimpleError(function (cond) 
    .Internal(C_tryCatchHelper(addr, 1L, cond)), "[internal] bgzf_seek() failed", 
        base::quote(.headerTabix(file, ...)))
10: .headerTabix(file, ...)
9: seqnamesTabix(file = tbx)
8: seqnamesTabix(file = tbx)
7: intersect(x = seqnames(x = features), y = seqnamesTabix(file = tbx))
6: keepSeqlevels(x = features, value = intersect(x = seqnames(x = features), 
       y = seqnamesTabix(file = tbx)), pruning.mode = "coarse")
5: SingleFeatureMatrix(fragment = fragments[[x]], features = features, 
       cells = cells, sep = sep, verbose = verbose, process_n = process_n)
4: FUN(X[[i]], ...)
3: lapply(X = X, FUN = FUN, ...)
2: sapply(X = obj.use, FUN = function(x) {
       SingleFeatureMatrix(fragment = fragments[[x]], features = features, 
           cells = cells, sep = sep, verbose = verbose, process_n = process_n)
   })
1: FeatureMatrix(fragments = Fragments(subset24_obj), features = peaks, 
       )

Also, when I try to find the dars between two conditions (WT vs KO), I find myself with extremely low fold changes and see no difference. In latent.vars I don't have the "peak_region_fragments" file. could the problem stem from this?

@timoast
Copy link
Collaborator

timoast commented Jul 16, 2022

It looks like there's an issue with your fragment file, maybe it was not constructed or indexed properly. Take a look at #242 for some suggestions

@timoast timoast closed this as completed Jul 16, 2022
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