|
747 | 747 | get_statistics |
748 | 748 | </a> |
749 | 749 |
|
| 750 | +</li> |
| 751 | + |
| 752 | + <li class="md-nav__item"> |
| 753 | + <a href="#cellengine.resources.experiment.Experiment.import_resources" class="md-nav__link"> |
| 754 | + import_resources |
| 755 | + </a> |
| 756 | + |
750 | 757 | </li> |
751 | 758 |
|
752 | 759 | <li class="md-nav__item"> |
|
1357 | 1364 | get_statistics |
1358 | 1365 | </a> |
1359 | 1366 |
|
| 1367 | +</li> |
| 1368 | + |
| 1369 | + <li class="md-nav__item"> |
| 1370 | + <a href="#cellengine.resources.experiment.Experiment.import_resources" class="md-nav__link"> |
| 1371 | + import_resources |
| 1372 | + </a> |
| 1373 | + |
1360 | 1374 | </li> |
1361 | 1375 |
|
1362 | 1376 | <li class="md-nav__item"> |
@@ -2941,6 +2955,121 @@ <h3 id="cellengine.resources.experiment.Experiment.get_statistics" class="doc do |
2941 | 2955 | <div class="doc doc-object doc-function"> |
2942 | 2956 |
|
2943 | 2957 |
|
| 2958 | +<h3 id="cellengine.resources.experiment.Experiment.import_resources" class="doc doc-heading"> |
| 2959 | + <code class=" language-python"><span class="n">import_resources</span><span class="p">(</span><span class="n">srcExperimentId</span><span class="p">,</span> <span class="n">what</span><span class="p">,</span> <span class="n">channelMap</span><span class="o">=</span><span class="p">{},</span> <span class="n">dstPopulationId</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span></code> |
| 2960 | + |
| 2961 | +</h3> |
| 2962 | + |
| 2963 | + |
| 2964 | + <div class="doc doc-contents "> |
| 2965 | + |
| 2966 | + <p>Imports resources from another experiment.</p> |
| 2967 | + |
| 2968 | + |
| 2969 | +<p><span class="doc-section-title">Parameters:</span></p> |
| 2970 | + <table> |
| 2971 | + <thead> |
| 2972 | + <tr> |
| 2973 | + <th>Name</th> |
| 2974 | + <th>Type</th> |
| 2975 | + <th>Description</th> |
| 2976 | + <th>Default</th> |
| 2977 | + </tr> |
| 2978 | + </thead> |
| 2979 | + <tbody> |
| 2980 | + <tr class="doc-section-item"> |
| 2981 | + <td> |
| 2982 | + <code>srcExperimentId</code> |
| 2983 | + </td> |
| 2984 | + <td> |
| 2985 | + <code>str</code> |
| 2986 | + </td> |
| 2987 | + <td> |
| 2988 | + <div class="doc-md-description"> |
| 2989 | + <p>The ID of the source experiment.</p> |
| 2990 | + </div> |
| 2991 | + </td> |
| 2992 | + <td> |
| 2993 | + <em>required</em> |
| 2994 | + </td> |
| 2995 | + </tr> |
| 2996 | + <tr class="doc-section-item"> |
| 2997 | + <td> |
| 2998 | + <code>what</code> |
| 2999 | + </td> |
| 3000 | + <td> |
| 3001 | + <code><span title="cellengine.resources.experiment.ImportOpts">ImportOpts</span></code> |
| 3002 | + </td> |
| 3003 | + <td> |
| 3004 | + <div class="doc-md-description"> |
| 3005 | + <p>A dictionary with the following optional keys: |
| 3006 | +- populations: Whether to import populations. |
| 3007 | +- illustrations: Whether to import illustrations (True = all, False = none), |
| 3008 | + or a list of specific illustration IDs to import. |
| 3009 | +- compensations: Whether to import compensations (True = all, False = none), |
| 3010 | + or a list of specific compensation IDs to import. |
| 3011 | +- savedStatisticExports: Whether to import saved statistic exports |
| 3012 | + (True = all, False = none), or a list of specific export IDs to import. |
| 3013 | +- annotations: Whether to import annotations (True = all, False = none), |
| 3014 | + or a list of specific annotation names to import.</p> |
| 3015 | + </div> |
| 3016 | + </td> |
| 3017 | + <td> |
| 3018 | + <em>required</em> |
| 3019 | + </td> |
| 3020 | + </tr> |
| 3021 | + <tr class="doc-section-item"> |
| 3022 | + <td> |
| 3023 | + <code>channelMap</code> |
| 3024 | + </td> |
| 3025 | + <td> |
| 3026 | + <code><span title="typing.Dict">Dict</span>[str, str]</code> |
| 3027 | + </td> |
| 3028 | + <td> |
| 3029 | + <div class="doc-md-description"> |
| 3030 | + <p>A dictionary Object mapping channel |
| 3031 | +names from source experiment to destination experiment for |
| 3032 | +imported gates. Gates using channels not present in the map or |
| 3033 | +with channels set to the value "" will not be imported. |
| 3034 | +Populations are only imported if all of their required gates are |
| 3035 | +imported (i.e. the entire set of parents must be imported). This |
| 3036 | +does not affect compensation import.</p> |
| 3037 | + </div> |
| 3038 | + </td> |
| 3039 | + <td> |
| 3040 | + <code>{}</code> |
| 3041 | + </td> |
| 3042 | + </tr> |
| 3043 | + <tr class="doc-section-item"> |
| 3044 | + <td> |
| 3045 | + <code>dstPopulationId</code> |
| 3046 | + </td> |
| 3047 | + <td> |
| 3048 | + <code>str</code> |
| 3049 | + </td> |
| 3050 | + <td> |
| 3051 | + <div class="doc-md-description"> |
| 3052 | + <p>The ID of the destination parent population. |
| 3053 | +If not provided, the root population is used.</p> |
| 3054 | + </div> |
| 3055 | + </td> |
| 3056 | + <td> |
| 3057 | + <code>None</code> |
| 3058 | + </td> |
| 3059 | + </tr> |
| 3060 | + </tbody> |
| 3061 | + </table> |
| 3062 | + <p>Use <code>experiment.gates</code> and similar to access the imported resources. |
| 3063 | +<em>Note: If it would be useful for this method to return the imported |
| 3064 | +resources, open a GitHub issue letting us know.</em></p> |
| 3065 | + |
| 3066 | + </div> |
| 3067 | + |
| 3068 | +</div> |
| 3069 | + |
| 3070 | +<div class="doc doc-object doc-function"> |
| 3071 | + |
| 3072 | + |
2944 | 3073 | <h3 id="cellengine.resources.experiment.Experiment.save_revision" class="doc doc-heading"> |
2945 | 3074 | <code class=" language-python"><span class="n">save_revision</span><span class="p">(</span><span class="n">description</span><span class="p">)</span></code> |
2946 | 3075 |
|
|
0 commit comments