Closed mlist closed 8 years ago
I see the problem.
In fact, you are sending an empty output_format. The default value is NULL, that is converted to an empty string in DeepBlue.
What happens, is that DeepBlue uses the default format (CHROMOSOME,START,END) if the output_format is empty.
Here we have three options:
What do you think that makes more sense?
I will change the server to reject empty formats, but we have to change the R package for including a real format (CHROMOSOME,START,END) by default or at least change the 'output_format=NULL'
Why not option 3? I liked this one better.
On Tue, 10 May 2016 at 23:35 Felipe Albrecht notifications@github.com wrote:
I see the problem.
In fact, you are sending an empty output_format. The default value is NULL, that is converted to an empty string in DeepBlue.
What happens, is that DeepBlue uses the default format (CHROMOSOME,START,END) if the output_format is empty.
Here we have three options:
- Reject requests when their output_format are empty (rather than use the default format);
- If the format is empty, DeepBlue will change the request to the default format (rather than keeping it empty - I dont like this option);
- Change in DeepBlueR, that if the format is empty, it will use the default format (CHROMOSOME,START,END);
What do you think that makes more sense?
— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/MPIIComputationalEpigenetics/DeepBlue/issues/115#issuecomment-218299156
Because we still have to change the call to the get_regions command.
Do you think that does make sense that DeepBlue includes a default format when an empty format is informed?
I dont like 'magical' changes in the users' requests/commands.
A reasonable default makes sense but if you don't like it we can also change DeepBlueR to pick a default format itself.
Okay, I will not change the server, too much work and this approach makes sense.
Lets change only in the DeepBlueR!
Something like this: if (request_info$format == "") request_info$format = "CHROMOSOME,START,END"
Do you do or I do?
You do it. But if I remember correctly you have to use \t as separator
no, the format is comma separated: "CHROMOSOME,START,END"
Ok, could be. The downloaded regions are, that's probably why I thought it would be the same here.
Yes :+1:
For example, if I select all genes in DeepBlue-R like this:
I get the following result
Without the information about the column types the conversion to genomic ranges in R fails.