-
Notifications
You must be signed in to change notification settings - Fork 97
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
methylKit "unite" function error message #296
Comments
Hi @mirurb, It seems that there may be a sorting issue or a problem with the naming of your chromosomes that is causing this error. However, it's difficult to determine the exact issue without a reproducible example. Could you provide a small example using truncated versions of your bismark-generated files? Please share the files and code with me so I can assist you further. Best, |
Hello Alex, Here is the script I used: library(methylKit) file.list_test=list("UI-3063-Ml-LH-F19_bismark_CX_report.txt", "UI-3063-Ml-LH-M16_bismark_CX_report.txt") myobj_test <- methRead(file.list_test, meth_test=unite(myobj_test, destrand=TRUE, min.per.group = 1L) Thank you for your help! |
Hello Alex, A little update. Best wishes, |
Hello @alexg9010, |
Hi @mirurb, Sorry for the delayed reply and thanks for sending the Bismark files and example code. It's great that you found a workaround for the issue! This is very helpful as long as we don't have a fix in methylKit. So far, I haven't found a concrete explanation for the bug, but I was able to reproduce the error message. The error occurs after destranding when indexing the destranded tabix file of the first sample, just before the uniting is started. Will keep you updated once I know more. Best, |
Hello,
I am sorry to bother you, but I'm hoping you will be able to help with a problem I am having with methylKit. More specifically, the program works well until the "unite" step. I am able to create the file.list, methRead and do the descriptive statistics on the Bismark-created txt files. However, keep getting the below-mentioned error when trying to "unite" the samples for comparative analysis. Here is a sample of the script I used:
file.list_test=list("UI-3063-Ml-LH-F19_dedup_sort.CX_report_sorted.txt", "UI-3063-Ml-LH-M16_dedup_sort.CX_report_sorted.txt")
myobj_test <- methRead(file.list_test,
sample.id = list("LH_F19", "LH_M16"),
assembly = "M_longipes_genome",
dbtype = "tabix",
pipeline = "bismarkCytosineReport",
header = TRUE,
sep = "\t",
context = "CpG",
resolution = "base",
dbdir = "CpG_methylDB_test",
treatment = c(2,1),
mincov = 1)
meth_test=unite(myobj_test, destrand=TRUE, min.per.group = 1L)
And here is where I get an error message:
I also got this error message before, but then discovered that the .txt files created by Bismark methylation calling where not in the right chromosome order. So I sorted the files in Linux (sort -V -k 1,2), and that put every file in the same chormosome order. I thought that this would solve the problem, but the error also happened with the sorted files.
My object looks like this:
methylRawDB object with 19096632 rows
1 chr1_pp 613 613 + 3 1 2
2 chr1_pp 614 614 - 2 0 2
3 chr1_pp 684 684 - 2 0 2
4 chr1_pp 1047 1047 + 2 2 0
5 chr1_pp 1103 1103 + 3 3 0
6 chr1_pp 1166 1166 + 1 1 0
sample.id: LH_F19
assembly: M_longipes_genome
context: CpG
resolution: base
dbtype: tabix
methylRawDB object with 19213040 rows
1 chr1_pp 613 613 + 2 2 0
2 chr1_pp 1103 1103 + 2 1 1
3 chr1_pp 1251 1251 + 3 2 1
4 chr1_pp 1252 1252 - 1 1 0
5 chr1_pp 1307 1307 + 5 5 0
6 chr1_pp 1308 1308 - 4 1 3
sample.id: LH_M16
assembly: M_longipes_genome
context: CpG
resolution: base
dbtype: tabix
treament: 2 1
I really appreciate your help in this matter! I'm sure I have missed something as a novice to bioinformatics. Have a great day! M.
The text was updated successfully, but these errors were encountered: