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

mm9 failing #82

Closed
nsheff opened this issue Apr 25, 2018 · 6 comments
Closed

mm9 failing #82

nsheff opened this issue Apr 25, 2018 · 6 comments
Assignees

Comments

@nsheff
Copy link
Member

nsheff commented Apr 25, 2018

Combining...
I don't have data for reference assembly mm9

We have LOLA resources for mm9 but because GenomicDistributions lacks this so far, I realized it's causing the whole thing to fail.

@vpnagraj can you make it so the genomic distribution plots are not catastrophic if they fail? So it can still show the LOLA results?

databio/GenomicDistributions#2

I will work on adding mm9 to GD but in this is generally useful that it should show whatever it can without failing catastrophically.

@vpnagraj
Copy link
Collaborator

@nsheff i pushed a commit last night (87115bd) that i believe addresses this:

http://dev.lolaweb.databio.org/?key=5WDJEXFLG7TIR91

basically skips the genomic distributions processing if the genome isn't in utils::data(package="GenomicDistributions")$results[,"Item"] for TSS, chromeSize, geneModels respectively ... if any or all of those are present, then the data is processed accordingly and plot(s) will appear

@vpnagraj
Copy link
Collaborator

if this looks good to you, i'll pull onto production ASAP as a bug fix

@nsheff
Copy link
Member Author

nsheff commented Apr 30, 2018

I just released v0.5 of Genomic Distributions, which includes mm9 data.

@nsheff
Copy link
Member Author

nsheff commented Apr 30, 2018

basically skips the genomic distributions processing if the genome isn't in utils::data(package="GenomicDistributions")$results[,"Item"] for TSS, chromeSize, geneModels respectively ... if any or all of those are present, then the data is processed accordingly and plot(s) will appear

Now that I think about this, a better approach would be to just wrap this processing in a tryCatch, because the current method relies on the way GenomicDistributions is internally doing things, which is not guaranteed. No need to peer into that package's inner workings, just make it so if those tasks fail, they fail gracefully by just not printing failed plots. This method is easier to implement, easier to maintain, and more robust to changes in the other package.

@nsheff
Copy link
Member Author

nsheff commented Jul 6, 2018

did we ever pull 0.5 of GenomicDistributions into this? Because my mm9 run is still not displaying those plots...
(it is not failing, which means the above fix succeeded).

@vpnagraj
Copy link
Collaborator

vpnagraj commented Oct 5, 2018

as of now, we are using the most recent version GenomicDistributions and mm9 is no longer failing

closing this issue as it speaks to a slightly different improvement that we can make that is covered in #101

@vpnagraj vpnagraj closed this as completed Oct 5, 2018
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