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

Error during methylkit unite #290

Open
manjumoorthy95 opened this issue Jul 10, 2023 · 1 comment
Open

Error during methylkit unite #290

manjumoorthy95 opened this issue Jul 10, 2023 · 1 comment
Assignees
Labels

Comments

@manjumoorthy95
Copy link

While performing the Unite function on CHG context files in methylkit, I get the following error :

Error in bmerge. Incompatible join types.

I have posted the screenshot of error below.

What could be the reason?
IMG-20230710-WA0001

@alexg9010
Copy link
Collaborator

Hi @manjumoorthy95 ,

Thanks for reporting the error.

The reason could be that the chr column of one sample is formatted as character while the other is formatted as integer. This might have happened during the reading of the files, since we are using data.table::fread to parse the file and automatically determine column types. Here, if the chromosome names in the file are numbers, they will be imported as integers.

This is unexpected and should not really happen, but for now, you could manually convert the chr into character type columns using the following code:

for (i in seq_along(myobj)) myobj[[i]]$chr <- as.character(myobj[[i]]$chr)

I hope this helps for now.

I was able to reproduce your error and will be working on a fix.

Best,
Alex

@alexg9010 alexg9010 added the bug label Aug 21, 2023
@alexg9010 alexg9010 self-assigned this Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants