cli wrapper for expected#8
Conversation
|
Forgot to mention: the wrapper computes expected only for ALL chromosomes (as provided by I feel like it's good enough for CLI wrapper - it's going to be used for the entire genome in 99% of cases. |
|
What do you mean by all chromosomes - there will be an expected value for each distance for each chromosome, or one value for the whole genome? |
|
In the case of So there will be no option (for now at least) to compute expected only for In a So, again , you'd get an expected for ALL pairs of chromosomes, without an option to compute expected for a subset in inter-chromosomal regions, say Does that sound reasonable, or do you think we need to add some of that flexibility to the initial version of the wrapper ? |
|
Another thing we should do right away, is to figure out naming: Should we do the same for Other naming preferences ? |
|
Awesome, thanks! For what would one need the |
|
they we there in the beginning ... - so history as the reason N1 )) For |
|
(1) Changed interface from to correspondingly. Seems more intuitive after all, and help prints out better. (2) added (3) changed the (4) tested - works fine, no stupid mistakes |
| # just like in diamond_insulation: | ||
| print(expected_result.to_csv(sep='\t', index=True, na_rep='nan')) | ||
|
|
||
| # # DO WE HAVE TO SHUT DOWN SUCH CLUSTERS AT ALL ? ... |
There was a problem hiding this comment.
probably good practice, but we can leave it commented for now
|
The next thing to do is to provide an API to do finer partitions in cis than full chromosomes, i.e. chromosome arms. Will open a new issue. |
|
Replying to some of the discussion above, note that having the |
|
|
||
|
|
||
| # might be relevant to us ... | ||
| # https://stackoverflow.com/questions/46577535/how-can-i-run-a-dask-distributed-local-cluster-from-the-command-line |
There was a problem hiding this comment.
hmm...this suggests that if someone has launched their own dask scheduler as a daemon process, we could provide an option to pass in the <host>:<port> to the scheduler instead of starting a new cluster ourselves.
get latest from upstream
Simple CLI wrapper for expected.py:
Using bunch of cores:
NOTES:
Wrapper works fine with the latest
dask(0.17.0) anddistributed(1.21.0).Only
stdoutoutput is implemented, just like fordiamond_insulation.TODO:
ignore_diagsas aclickoption - will do later.clickoptions - i provided links toclickfeatures I tried to use, buthelplooks ugly a bit.distributedcluster ?