Skip to content

Commit

Permalink
Further split daf_adapter to avoid callbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
orenbenkiki committed Mar 22, 2024
1 parent 067da03 commit 34d603e
Show file tree
Hide file tree
Showing 27 changed files with 284 additions and 274 deletions.
2 changes: 1 addition & 1 deletion docs/v0.1.0/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-03-22T09:56:31","documenter_version":"1.3.0"}}
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-03-22T11:48:45","documenter_version":"1.3.0"}}
10 changes: 7 additions & 3 deletions docs/v0.1.0/adapters.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ <h1 id="Adapters">
</a>.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/adapters.jl#L1-L3">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/adapters.jl#L1-L3">source
</a>
</section>
</article>
Expand Down Expand Up @@ -337,7 +337,11 @@ <h1 id="Adapters">
<code>capture
</code> the output; by default, this will be a [
<code>MemoryDaf
</code>]@(ref)).
</code>]@(ref)), but it can be any function that takes a
<code>name
</code> (named) parameter and returns a
<code>DafWriter
</code>.
</li>
<li>Once the
<code>computation
Expand Down Expand Up @@ -423,7 +427,7 @@ <h1 id="Adapters">
</a> functions to use clear generic names for their inputs and outputs, and still apply them to arbitrary data sets using more specific names. One can even invoke the same computation with different parameter values, and store the different results in the same data set under different names.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/adapters.jl#L21-L91">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/adapters.jl#L21-L91">source
</a>
</section>
</article>
Expand Down
6 changes: 3 additions & 3 deletions docs/v0.1.0/anndata_format.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ <h1 id="AnnData-Format">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/anndata_format.jl#L1-L73">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/anndata_format.jl#L1-L73">source
</a>
</section>
</article>
Expand Down Expand Up @@ -490,7 +490,7 @@ <h1 id="AnnData-Format">
</code> property, if it exists, otherwise, it will be &quot;X&quot;.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/anndata_format.jl#L94-L124">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/anndata_format.jl#L94-L124">source
</a>
</section>
</article>
Expand Down Expand Up @@ -556,7 +556,7 @@ <h1 id="AnnData-Format">
</code> object.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/anndata_format.jl#L359-L388">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/anndata_format.jl#L359-L388">source
</a>
</section>
</article>
Expand Down
10 changes: 5 additions & 5 deletions docs/v0.1.0/chains.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h1 id="Chains">
</code> data set that contains extra (or overriding) data on top of a larger read-only data set. In particular this allows creating several such incompatible extra data sets (e.g., different groupings of cells to metacells), without having to duplicate the common (read only) data.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/chains.jl#L1-L6">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/chains.jl#L1-L6">source
</a>
</section>
</article>
Expand Down Expand Up @@ -281,7 +281,7 @@ <h1 id="Chains">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/chains.jl#L57-L69">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/chains.jl#L57-L69">source
</a>
</section>
</article>
Expand Down Expand Up @@ -327,7 +327,7 @@ <h1 id="Chains">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/chains.jl#L91-L102">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/chains.jl#L91-L102">source
</a>
</section>
</article>
Expand Down Expand Up @@ -361,7 +361,7 @@ <h1 id="Chains">
</a>.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/chains.jl#L25-L32">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/chains.jl#L25-L32">source
</a>
</section>
</article>
Expand Down Expand Up @@ -399,7 +399,7 @@ <h1 id="Chains">
<p>Any modifications or additions to the chain are directed at the final writer. Deletions are only allowed for data that exists only in this writer. That is, it is impossible to delete from a chain something that exists in any of the readers; it is only possible to override it.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/chains.jl#L38-L50">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/chains.jl#L38-L50">source
</a>
</section>
</article>
Expand Down
12 changes: 6 additions & 6 deletions docs/v0.1.0/computations.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h1 id="Computations">
</a> describing their inputs and outputs. This is enforced, so that the implementation need not worry about missing inputs, and the caller can rely on the results. It is also self-documenting, so the generated documentation is always contains a clear up-to-date description of the contract.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/computations.jl#L1-L6">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/computations.jl#L1-L6">source
</a>
</section>
</article>
Expand Down Expand Up @@ -349,7 +349,7 @@ <h1 id="Computations">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/computations.jl#L67-L100">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/computations.jl#L67-L100">source
</a>
</section>
</article>
Expand Down Expand Up @@ -397,7 +397,7 @@ <h1 id="Computations">
</code> ensures that the correct value is used in the documentation.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/computations.jl#L322-L343">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/computations.jl#L322-L343">source
</a>
</section>
</article>
Expand Down Expand Up @@ -457,7 +457,7 @@ <h1 id="Computations">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/computations.jl#L267-L288">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/computations.jl#L267-L288">source
</a>
</section>
</article>
Expand Down Expand Up @@ -487,7 +487,7 @@ <h1 id="Computations">
</a> with two such arguments.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/computations.jl#L291-L294">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/computations.jl#L291-L294">source
</a>
</section>
</article>
Expand Down Expand Up @@ -517,7 +517,7 @@ <h1 id="Computations">
</a> with two such arguments.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/computations.jl#L297-L300">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/computations.jl#L297-L300">source
</a>
</section>
</article>
Expand Down
8 changes: 4 additions & 4 deletions docs/v0.1.0/concat.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h1 id="Concat">
<p>The exact behavior of concatenation is surprisingly complex when accounting for sparse vs. dense matrices, different matrix layouts, and properties which are not along the concatenation axis. The implementation is further complicated by minimizing the allocation of intermediate memory buffers for the data; that is, in principle, concatenating from and into memory-mapped data sets should not allocate &quot;any&quot; memory buffers - the data should be copied directly from one memory-mapped region to another.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/concat.jl#L1-L10">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/concat.jl#L1-L10">source
</a>
</section>
</article>
Expand Down Expand Up @@ -362,7 +362,7 @@ <h1 id="Concat">
</code> existing properties in the target.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/concat.jl#L70-L131">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/concat.jl#L70-L131">source
</a>
</section>
</article>
Expand Down Expand Up @@ -430,7 +430,7 @@ <h1 id="Concat">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/concat.jl#L34-L52">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/concat.jl#L34-L52">source
</a>
</section>
</article>
Expand Down Expand Up @@ -466,7 +466,7 @@ <h1 id="Concat">
</li>
</ul>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/concat.jl#L55-L67">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/concat.jl#L55-L67">source
</a>
</section>
</article>
Expand Down
14 changes: 7 additions & 7 deletions docs/v0.1.0/contracts.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ <h1 id="Contracts">
</code> data.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/contracts.jl#L1-L3">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/contracts.jl#L1-L3">source
</a>
</section>
</article>
Expand Down Expand Up @@ -270,7 +270,7 @@ <h1 id="Contracts">
</a>.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/contracts.jl#L83-L90">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/contracts.jl#L83-L90">source
</a>
</section>
</article>
Expand Down Expand Up @@ -318,7 +318,7 @@ <h1 id="Contracts">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/contracts.jl#L41-L60">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/contracts.jl#L41-L60">source
</a>
</section>
</article>
Expand Down Expand Up @@ -370,7 +370,7 @@ <h1 id="Contracts">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/contracts.jl#L63-L80">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/contracts.jl#L63-L80">source
</a>
</section>
</article>
Expand Down Expand Up @@ -412,7 +412,7 @@ <h1 id="Contracts">
</code> - data that may exist when the computation is done, depending on some condition, which may include the existence of optional input and/or the value of parameters to the computation, and/or the content of the data.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/contracts.jl#L23-L38">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/contracts.jl#L23-L38">source
</a>
</section>
</article>
Expand All @@ -438,7 +438,7 @@ <h1 id="Contracts">
</code> data when a computation is invoked. This verifies that all the required data exists and is of the appropriate type, and that if any of the optional data exists, it has the appropriate type.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/contracts.jl#L100-L105">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/contracts.jl#L100-L105">source
</a>
</section>
</article>
Expand All @@ -464,7 +464,7 @@ <h1 id="Contracts">
</code> data when a computation is complete. This verifies that all the guaranteed output data exists and is of the appropriate type, and that if any of the optional output data exists, it has the appropriate type.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/contracts.jl#L110-L115">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/contracts.jl#L110-L115">source
</a>
</section>
</article>
Expand Down
14 changes: 7 additions & 7 deletions docs/v0.1.0/copies.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ <h1 id="Copies">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/copies.jl#L1-L10">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/copies.jl#L1-L10">source
</a>
</section>
</article>
Expand Down Expand Up @@ -298,7 +298,7 @@ <h1 id="Copies">
</code> (not the default), overwrite an existing scalar in the target.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/copies.jl#L30-L44">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/copies.jl#L30-L44">source
</a>
</section>
</article>
Expand Down Expand Up @@ -346,7 +346,7 @@ <h1 id="Copies">
</code> is specified, store the axis using this name.
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/copies.jl#L60-L72">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/copies.jl#L60-L72">source
</a>
</section>
</article>
Expand Down Expand Up @@ -406,7 +406,7 @@ <h1 id="Copies">
</code> must be specified to fill the missing values. If the source axis contains entries that do not exist in the target, they are discarded (not copied).
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/copies.jl#L87-L109">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/copies.jl#L87-L109">source
</a>
</section>
</article>
Expand Down Expand Up @@ -477,7 +477,7 @@ <h1 id="Copies">
</code> must be specified to fill the missing values. If a source axis contains entries that do not exist in the target, they are discarded (not copied).
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/copies.jl#L175-L201">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/copies.jl#L175-L201">source
</a>
</section>
</article>
Expand Down Expand Up @@ -533,7 +533,7 @@ <h1 id="Copies">
</code> for specifying an empty value for a matrix property. The order of the axes for matrix properties doesn&#39;t matter (the same empty value is automatically used for both axes orders).
</p>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/copies.jl#L355-L377">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/copies.jl#L355-L377">source
</a>
</section>
</article>
Expand Down Expand Up @@ -589,7 +589,7 @@ <h1 id="Copies">
</div>
</div>
</div>
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/03ed99eb917b0269422438aee6c5e787dd612a96/src/copies.jl#L333-L352">source
<a class="docs-sourcelink" target="_blank" href="https://github.com/tanaylab/Daf.jl/blob/067da03aa5b8f2b096ddf3e0088f8712e4aa3426/src/copies.jl#L333-L352">source
</a>
</section>
</article>
Expand Down
Loading

0 comments on commit 34d603e

Please sign in to comment.