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

How do I point to files? #71

Closed
f6v opened this issue Sep 19, 2023 · 2 comments
Closed

How do I point to files? #71

f6v opened this issue Sep 19, 2023 · 2 comments

Comments

@f6v
Copy link

f6v commented Sep 19, 2023

Hi!

Thanks for the package! I can't figure out how to point to the files though. I've ran nf-core/methylseq pipeline and that outputs coverage2cytosine Bismark results like these:
Screenshot 2023-09-19 at 21 27 35

Here's how sample_info.xlsx looks like:
image
I change the working directory of the R session to folder with these files and run:
DM.R(genome = "mm10", testCovariate = "Age", cores = 8)
However, there's an error:

[DMRichR] Processing Bismark cytosine reports            19-09-2023 09:23:47 PM
Selecting files... 
Reading cytosine reports...    
Error in bsseq::read.bismark(files = files, rmZeroCov = FALSE, strandCollapse = TRUE,  : 
These files cannot be found: 
NA

What am I missing?

@f6v
Copy link
Author

f6v commented Sep 20, 2023

I guess the issue is that running https://github.com/ben-laufer/DMRichR/blob/0b6176a1be386b839f0f6def51fa7226310d2ad6/R/processBismark.R#L44C40-L44C40 returns NA for Treg9 sample. Any idea how to fix that?

@f6v
Copy link
Author

f6v commented Sep 20, 2023

Ok so I debugged it for a while, and I guess the issue is that the tool makes an assumption that file name has an underscore before the sample name. I made it work by changing the file names and sample names in the excel sheet.

@f6v f6v closed this as completed Sep 22, 2023
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

1 participant