Open afcmalone opened 4 years ago
I am getting the same error, but still don't have a solution. I am wondering if this is because I am using hg38 instead of hg19?
I tried hg19 and hg38 and get the same error.
On Tue, 28 Jul 2020 at 13:04, ldorozco notifications@github.com wrote:
I am getting the same error, but still don't have a solution. I am wondering if this is because I am using hg38 instead of hg19?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/r3fang/SnapATAC/issues/202#issuecomment-665190752, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3S4C2TQWNTXGHZKNZJ2ATR54HLVANCNFSM4PFZDMMQ .
I figured it out. The 'peaks' GRanges object is messed up, it has "b'" attached to the beginning of each chromosome:
head(x.sp@peak) [1] b'chr1' 191418-192119 | b'chr1':191418-192119 [2] b'chr1' 634093-634293 | b'chr1':634093-634293
If I fIx this GRanges object as follows, Homer can run:
library(stringr) tmp_gr = as.data.frame(x.sp@peak) tmp_seqnames = as.character(tmp_gr[,1]) tmp_seqnames_new = str_replace( str_replace(tmp_seqnames, "b'", ""), "'", "") tmp_gr[,1] = tmp_seqnames_new tmp_names = as.character(tmp_gr[,6]) tmp_names_new = str_replace( str_replace(tmp_names, "b'", ""), "'", "") tmp_gr[,6] = tmp_names_new tmp_gr_new = makeGRangesFromDataFrame(tmp_gr, keep.extra.columns=TRUE) x.sp@peak = tmp_gr_new
This works! thanks for the tip!
Hi,
I am getting no results when i runHomer.
I add pmat to my snapATAC file in R. the peak files (bed) added to the .snap file are in the format chr1 102949 103224 I also tried with bed file in the format b'chr1' 102949 103224 but have the same error
after i runHomer i get 'Illegal division by zero at /home/......../homer/bin//findKnownMotifs.pl line 152.' I think this is because of
Sequences processed: 0 total
given after the peak file is assessed.
Please help :)
here i all my code in R:
Illegal division by zero at /home/...../homer/bin//assignGeneWeights.pl line 63. Assembling sequence file... Normalizing lower order oligos using homer2
Illegal division by zero at /home/..../homer/bin//findKnownMotifs.pl line 152. Skipping... Job finished - if results look good, please send beer to ..
Error in file(file, "rt") : cannot open the connection In addition: Warning message: In file(file, "rt") : cannot open file './homer/C3/knownResults.txt': No such file or directory