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

BSmooth.tstat error, Error in preplot.locfit.raw(.... #90

Open
shawpa opened this issue Mar 18, 2020 · 7 comments
Open

BSmooth.tstat error, Error in preplot.locfit.raw(.... #90

shawpa opened this issue Mar 18, 2020 · 7 comments

Comments

@shawpa
Copy link

shawpa commented Mar 18, 2020

I am trying to run the BSmooth.tstat command. My data is not WGBS. It is targeted methylation data (which may be the issue). I was following directions from an Agilent bulletin to use this program with targeted data. When I run the BSmooth.tstat command on the smoothed data I get the following error:

[BSmooth.tstat] computing stats across groups ... Error in preplot.locfit.raw(object, newdata, where, what, band) :
  NA/NaN/Inf in foreign function call (arg 2)
In addition: Warning messages:
1: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr reduction problem
2: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr reduction problem
3: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr reduction problem
4: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr reduction problem
5: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr reduction problem
6: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr reduction problem
7: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr reduction problem
8: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr reduction problem
9: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr reduction problem
10: In lfproc(x, y, weights = weights, cens = cens, base = base, geth = geth,  :
  max_nr not converged

I've looked online and in this forum for this error message and haven't found any fix. I am attaching a list of the commands I have run for reference. I mainly want to use this program for visualization purposes and not for DMR detection.

bssmooth_commands.txt

@PeteHaitch
Copy link
Contributor

Are you able to share a small subset of your data that you can reproduce this error on?

@shawpa
Copy link
Author

shawpa commented Mar 19, 2020 via email

@PeteHaitch
Copy link
Contributor

Once you've subsetted the object to make, say, bsseq_subset, you can run saveRDS(bsseq_subset, "your_directory/bsseq_subset.rds") and then share the your_directory/bsseq_subset.rds file. It'll probably be too large to upload directly to this issue, so you may need to use Dropbox or similar.

@PeteHaitch
Copy link
Contributor

Also, please post the output of BiocManager::valid() from an R session where the error occurs.

@shawpa
Copy link
Author

shawpa commented Mar 20, 2020

I am attempting to upload the file to some cloud server. Trying google drive or one drive but upload says it will take 20 hours. Unfortunately my business one drive will not allow me to share with anyone outside my organization. The "small" file is 1.5Gb. If you had a server, I could send it via scp from my server. The output from the BiocManager command is attached. If you have any other suggestions as to how I could transfer the file, please let me know.

biocmanager.txt

@kasperdanielhansen
Copy link
Contributor

kasperdanielhansen commented Mar 20, 2020 via email

@shawpa
Copy link
Author

shawpa commented Mar 20, 2020

Thank you for the pointers. I will definitely try plotting to see if it works. I was just following the steps on the website. I did remove all the extraneous contigs (chrUn) from the data. I was able to isolate it to chr6 as the issue. Everything else tstat runs fine. That is the file I am attempting to upload. I used 1x10^8 for max gap. Other relevant settings were ns=20, h=500. Would you still like for me to send my data. It is uploading a little faster than expected at this point. Is there an email address to share it with?

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

3 participants