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

Support for CGmap inputs #5

Closed
harish0201 opened this issue Dec 27, 2018 · 10 comments
Closed

Support for CGmap inputs #5

harish0201 opened this issue Dec 27, 2018 · 10 comments

Comments

@harish0201
Copy link

Hi Dave!

I have recently come across cgmaptools which is a host of tools that can be used to call methylation and other analysis like allele specific methylation, snv calling etc.

The cgmap output can be derived from either post-processing the aligned bams or is one of the outputs from BS-Seeker.

The format as such looks like this:

chr1 G 3000851 CHH CC 0.1 1 10
chr1 C 3001624 CHG CA 0.0 0 9
chr1 C 3001631 CG CG 1.0 5 5
chr1 G 3001632 CG CG 0.9 9 10

Where the headers are:

Chromosome Reference_Nucleotide Position Context_Type Context Methylation_Status Methylated_Cyto_Counts Total_Cyto_Counts

The format as such seems to be similar to Bismark's format 5 as per the Readme.

Would it be possible for you to support it?

@harish0201 harish0201 changed the title Support for inputs Support for CGmap inputs Dec 27, 2018
@hhg7
Copy link
Owner

hhg7 commented Dec 28, 2018

Hi @harish0201

sure, I'll get working on that for the next version, I'll update you soon!

@hhg7
Copy link
Owner

hhg7 commented Dec 29, 2018

Hi @harish0201

I updated Defiant so it now reads CGmap input. Please let me know if it works for you.

@harish0201
Copy link
Author

Alright! Thanks for the update.

I'll check it now.

@harish0201
Copy link
Author

Hi Dave!

I'm working on the inputs, but they seem to crash on the wheat genome, I'll parse them out chromosome wise and get back to you. It seems to give me a CRC error on gzipped files though gunzipping them seems to work.

@hhg7
Copy link
Owner

hhg7 commented Jan 3, 2019

Hi Harish,

Defiant only reads regular ASCII files. I've considered making it to read gz, but I don't know how yet. Please let me know how everything works out.

@harish0201
Copy link
Author

harish0201 commented Jan 4, 2019

Will do!

In the mean time, may be trying to use the system calls (zcat or pigz -c) should be better in order to read compressed files!

However, I'm facing no issues running on the unzipped files though, so it's all good :)

Edit: Duplicate Comment

@hhg7
Copy link
Owner

hhg7 commented Jan 15, 2019

Did everything work out? I'd like to close the issue.

@harish0201
Copy link
Author

Yup, it seems to have the trick! Sorry I was travelling a bit, so I wasn't able to do. it.

BTW, would you be at the PAG? I would to have a chat with you.

@hhg7
Copy link
Owner

hhg7 commented Jan 15, 2019

@harish0201 unfortunately, no, but I would have applied had I known about the conference.

@hhg7
Copy link
Owner

hhg7 commented Jan 15, 2019

My email is dec986@gmail.com if you have any questions, or would like to chat.

@hhg7 hhg7 closed this as completed Jan 15, 2019
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