singlet 1.3.4__tar.gz → 1.3.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. singlet-1.3.7/NOTICE +30 -0
  2. {singlet-1.3.4/python/singlet.egg-info → singlet-1.3.7}/PKG-INFO +13 -1
  3. {singlet-1.3.4 → singlet-1.3.7}/README.md +37 -0
  4. {singlet-1.3.4 → singlet-1.3.7}/pyproject.toml +2 -2
  5. {singlet-1.3.4 → singlet-1.3.7}/python/README.md +12 -0
  6. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/__init__.py +1 -1
  7. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_loader.py +8 -11
  8. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/adt/__init__.py +0 -2
  9. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/bundle.py +111 -1
  10. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/ATTRIBUTION.md +17 -0
  11. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/find.py +10 -2
  12. singlet-1.3.7/python/singlet/multimap.py +115 -0
  13. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/atlas.py +30 -18
  14. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/client.py +90 -55
  15. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/labels.py +12 -4
  16. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/migrate.py +1 -0
  17. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/policy.py +3 -1
  18. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/transport.py +169 -37
  19. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/write.py +91 -20
  20. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/torch/_stream.py +26 -4
  21. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/vdj/_kernels.py +19 -3
  22. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/vdj/assemble.py +78 -3
  23. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/vdj/library.py +2 -8
  24. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/vdj/members.py +1 -1
  25. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/vdj/reference.py +14 -2
  26. {singlet-1.3.4 → singlet-1.3.7/python/singlet.egg-info}/PKG-INFO +13 -1
  27. {singlet-1.3.4 → singlet-1.3.7}/python/singlet.egg-info/SOURCES.txt +2 -10
  28. singlet-1.3.4/NOTICE +0 -9
  29. singlet-1.3.4/python/singlet/adt/chemistry.py +0 -86
  30. singlet-1.3.4/python/singlet/adt/gex.py +0 -72
  31. singlet-1.3.4/python/singlet/derive/__init__.py +0 -44
  32. singlet-1.3.4/python/singlet/derive/gene_counts.py +0 -44
  33. singlet-1.3.4/python/singlet/derive/gene_full.py +0 -31
  34. singlet-1.3.4/python/singlet/derive/pseudobulk.py +0 -46
  35. singlet-1.3.4/python/singlet/derive/psi.py +0 -30
  36. singlet-1.3.4/python/singlet/derive/usa.py +0 -40
  37. singlet-1.3.4/src/bindings/python/_singlepress.cpp +0 -570
  38. {singlet-1.3.4 → singlet-1.3.7}/LICENSE +0 -0
  39. {singlet-1.3.4 → singlet-1.3.7}/MANIFEST.in +0 -0
  40. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pileup/pz_reader.h +0 -0
  41. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pileup/pz_writer.h +0 -0
  42. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/api.h +0 -0
  43. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/codec2.h +0 -0
  44. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/common.h +0 -0
  45. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/container.h +0 -0
  46. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/isa.h +0 -0
  47. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/rans1.h +0 -0
  48. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/rans1_avx2.h +0 -0
  49. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/rans1_avx512.h +0 -0
  50. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/rans1_dec.h +0 -0
  51. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/rans1_enc.h +0 -0
  52. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/sha256.h +0 -0
  53. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/simd.h +0 -0
  54. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/detail/values.h +0 -0
  55. {singlet-1.3.4 → singlet-1.3.7}/include/singlet/pz2/pz2.h +0 -0
  56. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/__main__.py +0 -0
  57. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_aggregate.py +0 -0
  58. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_ambient_rna_score.py +0 -0
  59. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_annotate.py +0 -0
  60. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_annotate_cell_types.py +0 -0
  61. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_augur_prioritize.py +0 -0
  62. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_auth.py +0 -0
  63. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_batch_evaluation.py +0 -0
  64. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_catalog.py +0 -0
  65. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cca.py +0 -0
  66. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cell_communication.py +0 -0
  67. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cell_cycle.py +0 -0
  68. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cell_cycle_regression.py +0 -0
  69. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cell_distances.py +0 -0
  70. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cell_level_de.py +0 -0
  71. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cell_type_proportions.py +0 -0
  72. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cluster_stability.py +0 -0
  73. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_coexpression_modules.py +0 -0
  74. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_combat.py +0 -0
  75. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_composition_analysis.py +0 -0
  76. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_concat.py +0 -0
  77. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_connectivity_score.py +0 -0
  78. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_consensus_clustering.py +0 -0
  79. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_correlation.py +0 -0
  80. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cross_species_correlation.py +0 -0
  81. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_cv_resolution.py +0 -0
  82. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_de.py +0 -0
  83. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_dendrogram.py +0 -0
  84. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_denoise.py +0 -0
  85. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_describe.py +0 -0
  86. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_differential_abundance.py +0 -0
  87. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_differential_test.py +0 -0
  88. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_diffmap.py +0 -0
  89. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_doublet_score_hybrid.py +0 -0
  90. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_downsample.py +0 -0
  91. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_dpt.py +0 -0
  92. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_draw_graph.py +0 -0
  93. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_embedding_density.py +0 -0
  94. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_enrichr.py +0 -0
  95. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_entropy_score.py +0 -0
  96. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_export_df.py +0 -0
  97. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_fate_probabilities.py +0 -0
  98. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_filter.py +0 -0
  99. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_filter_de.py +0 -0
  100. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_find_all_markers.py +0 -0
  101. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_gene_activity_score.py +0 -0
  102. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_gene_correlation_network.py +0 -0
  103. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_gene_importance.py +0 -0
  104. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_gene_module_score.py +0 -0
  105. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_gene_set_enrichment.py +0 -0
  106. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_gene_set_variation.py +0 -0
  107. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_gene_space_embedding.py +0 -0
  108. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_gene_trend_clustering.py +0 -0
  109. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_harmony.py +0 -0
  110. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_hotspot_genes.py +0 -0
  111. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_hvg.py +0 -0
  112. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_hvg_cell_ranger.py +0 -0
  113. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_hvg_seurat.py +0 -0
  114. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_ica.py +0 -0
  115. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_identify_bipotent_cells.py +0 -0
  116. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_infer_grn.py +0 -0
  117. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_ingest.py +0 -0
  118. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_integrity.py +0 -0
  119. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_io.py +0 -0
  120. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_knn_impute.py +0 -0
  121. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_leiden.py +0 -0
  122. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_louvain.py +0 -0
  123. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_magic.py +0 -0
  124. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_marker_overlap.py +0 -0
  125. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_marker_specificity.py +0 -0
  126. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_metacell.py +0 -0
  127. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_metrics.py +0 -0
  128. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_mnn.py +0 -0
  129. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_morans_i.py +0 -0
  130. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_multiome_factor_analysis.py +0 -0
  131. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_neighbors.py +0 -0
  132. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_nmf.py +0 -0
  133. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_nmf_serve.py +0 -0
  134. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_normalize.py +0 -0
  135. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_optimal_transport.py +0 -0
  136. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_paga.py +0 -0
  137. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_palantir_pseudotime.py +0 -0
  138. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_pca.py +0 -0
  139. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_perturbation_signature.py +0 -0
  140. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_phate.py +0 -0
  141. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_phenograph.py +0 -0
  142. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot.py +0 -0
  143. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_embedding.py +0 -0
  144. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_genes_in_groups.py +0 -0
  145. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_heatmap.py +0 -0
  146. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_markers.py +0 -0
  147. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_matrix.py +0 -0
  148. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_paga.py +0 -0
  149. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_ranking.py +0 -0
  150. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_scatter.py +0 -0
  151. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_stacked_violin.py +0 -0
  152. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_plot_tracks.py +0 -0
  153. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_predict_cell_type.py +0 -0
  154. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_pseudobulk.py +0 -0
  155. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_qc.py +0 -0
  156. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_qc_summary.py +0 -0
  157. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_query.py +0 -0
  158. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_rank_genes.py +0 -0
  159. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_recipes.py +0 -0
  160. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_regress.py +0 -0
  161. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_reprogramming_score.py +0 -0
  162. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_restricted.py +0 -0
  163. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_scale.py +0 -0
  164. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_scanorama_integrate.py +0 -0
  165. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_score.py +0 -0
  166. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_scrublet.py +0 -0
  167. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_sparse_pca.py +0 -0
  168. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_spatial.py +0 -0
  169. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_spectral_clustering.py +0 -0
  170. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_splicing_ratio.py +0 -0
  171. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_subcluster.py +0 -0
  172. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_subsample.py +0 -0
  173. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_subsample_balanced.py +0 -0
  174. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_topic_model.py +0 -0
  175. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_trajectory_genes.py +0 -0
  176. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_transfer_labels.py +0 -0
  177. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_transforms.py +0 -0
  178. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_tsne.py +0 -0
  179. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_umap.py +0 -0
  180. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_variance_partition.py +0 -0
  181. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_variational_inference.py +0 -0
  182. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_velocity_pseudotime.py +0 -0
  183. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_versions.py +0 -0
  184. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_weighted_nearest_neighbors.py +0 -0
  185. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/_wishart.py +0 -0
  186. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/adt/count.py +0 -0
  187. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/adt/hto.py +0 -0
  188. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/adt/members.py +0 -0
  189. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/adt/normalize.py +0 -0
  190. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/adt/panel.py +0 -0
  191. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/adt/qc.py +0 -0
  192. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/adt/seq.py +0 -0
  193. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/atlas/__init__.py +0 -0
  194. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/atlas/client.py +0 -0
  195. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/__init__.py +0 -0
  196. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/ancestry.py +0 -0
  197. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/celltype.py +0 -0
  198. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/data/ancestry_label_model.json +0 -0
  199. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/data/cellguide.json.gz +0 -0
  200. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/data/cl.json.gz +0 -0
  201. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/data/human_mouse.tsv.gz +0 -0
  202. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/evaluate.py +0 -0
  203. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/guide.py +0 -0
  204. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/io.py +0 -0
  205. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/output.py +0 -0
  206. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/pipeline.py +0 -0
  207. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celllabels/sex.py +0 -0
  208. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celltype_nn/__init__.py +0 -0
  209. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celltype_nn/benchmark.py +0 -0
  210. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celltype_nn/ensemble.py +0 -0
  211. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celltype_nn/features.py +0 -0
  212. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celltype_nn/model.py +0 -0
  213. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celltype_nn/ontology.py +0 -0
  214. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celltype_nn/output.py +0 -0
  215. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/celltype_nn/predict.py +0 -0
  216. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/convert.py +0 -0
  217. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/crispr/__init__.py +0 -0
  218. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/crispr/assign.py +0 -0
  219. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/crispr/count.py +0 -0
  220. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/crispr/guides.py +0 -0
  221. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/crispr/library.py +0 -0
  222. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/crispr/members.py +0 -0
  223. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/crispr/qc.py +0 -0
  224. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/catalog_v1.parquet +0 -0
  225. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/sample_index.parquet +0 -0
  226. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/737K-april-2014.txt +0 -0
  227. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/737K-arc-v1-atac-gex.tsv.gz +0 -0
  228. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/bd_cls1.txt +0 -0
  229. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/bd_cls2.txt +0 -0
  230. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/bd_cls3.txt +0 -0
  231. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/indrop_bc1.txt +0 -0
  232. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/indrop_bc2.txt +0 -0
  233. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/microwell_bc1_bare.txt +0 -0
  234. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/quartzseq2_bc.txt +0 -0
  235. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/scirna3_rt_bc.txt +0 -0
  236. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/splitseq_bc_rd1.txt +0 -0
  237. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/splitseq_bc_rd2.txt +0 -0
  238. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/splitseq_bc_rd3.txt +0 -0
  239. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/visium-v1.txt +0 -0
  240. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/data/whitelists/visium-v1_coordinates.tsv +0 -0
  241. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/__init__.py +0 -0
  242. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/data/abundance_human.parquet +0 -0
  243. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/data/abundance_mouse.parquet +0 -0
  244. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/data/cell_cycle.json +0 -0
  245. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/data/doublet_v2_encoder.npz +0 -0
  246. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/data/doublet_v2_stacker.json +0 -0
  247. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/data/doublet_v2_stacker.npz +0 -0
  248. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/data/hallmark.json +0 -0
  249. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/doublet.py +0 -0
  250. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/doublet_atlas.py +0 -0
  251. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/doublet_sdfl.py +0 -0
  252. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/doublet_util.py +0 -0
  253. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/genesets.py +0 -0
  254. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/io.py +0 -0
  255. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/output.py +0 -0
  256. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/pipeline.py +0 -0
  257. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/rank.py +0 -0
  258. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/features/registry.py +0 -0
  259. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/fetch.py +0 -0
  260. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/__init__.py +0 -0
  261. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/_coreutil.py +0 -0
  262. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/abundance/__init__.py +0 -0
  263. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/abundance/milo.py +0 -0
  264. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/ase/__init__.py +0 -0
  265. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/ase/daesc.py +0 -0
  266. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/atac/__init__.py +0 -0
  267. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/atac/chromvar.py +0 -0
  268. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/cna/__init__.py +0 -0
  269. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/cna/numbat.py +0 -0
  270. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/comm/__init__.py +0 -0
  271. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/comm/cellchat.py +0 -0
  272. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/de/__init__.py +0 -0
  273. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/de/pseudobulk.py +0 -0
  274. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/disease/__init__.py +0 -0
  275. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/disease/scdrs.py +0 -0
  276. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/enrichment/__init__.py +0 -0
  277. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/enrichment/aucell.py +0 -0
  278. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/enrichment/gsea.py +0 -0
  279. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/enrichment/progeny.py +0 -0
  280. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/enrichment/score_genes.py +0 -0
  281. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/enrichment/ssgsea.py +0 -0
  282. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/eqtl/__init__.py +0 -0
  283. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/eqtl/nebula.py +0 -0
  284. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/fate/__init__.py +0 -0
  285. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/fate/cellrank2.py +0 -0
  286. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/fate/cospar.py +0 -0
  287. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/fate/palantir.py +0 -0
  288. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/generative/__init__.py +0 -0
  289. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/generative/discrete_diffusion.py +0 -0
  290. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/grn/__init__.py +0 -0
  291. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/grn/granie.py +0 -0
  292. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/integrate/__init__.py +0 -0
  293. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/integrate/bbknn.py +0 -0
  294. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/integrate/harmony.py +0 -0
  295. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/io/__init__.py +0 -0
  296. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/io/donor.py +0 -0
  297. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/io/loader.py +0 -0
  298. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/lineage/__init__.py +0 -0
  299. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/lineage/mt.py +0 -0
  300. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/network/__init__.py +0 -0
  301. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/network/hdwgcna.py +0 -0
  302. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/perturbation/__init__.py +0 -0
  303. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/perturbation/perturb_graph.py +0 -0
  304. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/preprocess/__init__.py +0 -0
  305. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/preprocess/hvg.py +0 -0
  306. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/preprocess/lognorm.py +0 -0
  307. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/preprocess/neighbors.py +0 -0
  308. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/preprocess/scale.py +0 -0
  309. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/qc/__init__.py +0 -0
  310. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/qc/doublet_score.py +0 -0
  311. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/qc/omnidoublet.py +0 -0
  312. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/qc/qc_metrics.py +0 -0
  313. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/reduce/__init__.py +0 -0
  314. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/reduce/_nmf_core.py +0 -0
  315. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/reduce/nmf/__init__.py +0 -0
  316. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/reduce/nmf/csi_gep.py +0 -0
  317. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/reduce/svd.py +0 -0
  318. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/spatial/__init__.py +0 -0
  319. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/spatial/cell2fate.py +0 -0
  320. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/spatial/flash_deconv.py +0 -0
  321. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/spatial/stagate.py +0 -0
  322. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/streaming/__init__.py +0 -0
  323. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/streaming/pipeline.py +0 -0
  324. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/tools/__init__.py +0 -0
  325. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/tools/leiden.py +0 -0
  326. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/tools/markers.py +0 -0
  327. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/tools/rank_genes_groups.py +0 -0
  328. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/tools/umap.py +0 -0
  329. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/variants/__init__.py +0 -0
  330. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/variants/monopogen.py +0 -0
  331. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/velocity/__init__.py +0 -0
  332. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/velocity/moments.py +0 -0
  333. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/velocity/velocity.py +0 -0
  334. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/gpu/version.py +0 -0
  335. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/io/__init__.py +0 -0
  336. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/io/convert.py +0 -0
  337. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/manifest_gen.py +0 -0
  338. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/mcp/__init__.py +0 -0
  339. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/mcp/__main__.py +0 -0
  340. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/mcp/server.py +0 -0
  341. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/mcp/smoke_test.py +0 -0
  342. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/pipeline/__init__.py +0 -0
  343. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/pipeline/__main__.py +0 -0
  344. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/pipeline/_binary.py +0 -0
  345. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/pipeline/_errors.py +0 -0
  346. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/pipeline/_run.py +0 -0
  347. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/pp/__init__.py +0 -0
  348. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/preprocessing/__init__.py +0 -0
  349. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/preprocessing/_detect.py +0 -0
  350. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/preprocessing/_download.py +0 -0
  351. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/preprocessing/_export.py +0 -0
  352. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/preprocessing/_qc.py +0 -0
  353. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/preprocessing/_quantify.py +0 -0
  354. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/preprocessing/_species.py +0 -0
  355. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/py.typed +0 -0
  356. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/refbundle/__init__.py +0 -0
  357. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/refbundle/_features.py +0 -0
  358. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/refbundle/_snp.py +0 -0
  359. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/__init__.py +0 -0
  360. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/builtin_recipes.py +0 -0
  361. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/bundle.py +0 -0
  362. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/cellcall.py +0 -0
  363. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/cells.py +0 -0
  364. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/codec.py +0 -0
  365. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/container.py +0 -0
  366. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/context.py +0 -0
  367. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/junctions.py +0 -0
  368. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/labels_step.py +0 -0
  369. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/legacy.py +0 -0
  370. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/manifest.py +0 -0
  371. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/matrix.py +0 -0
  372. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/modality_members.py +0 -0
  373. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/09243cc59ea1b0223dcbf071e1df34e3.pack +0 -0
  374. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/0bcd2ceb31fc6cad695901e449f667cc.pack +0 -0
  375. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/15854e80854ce93702dc4c716e6a35c5.pack +0 -0
  376. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/32bbdc195ae2486a1257e38d3c4c161e.pack +0 -0
  377. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/5b24205cb61a91db46ebbc980e8ee6bc.pack +0 -0
  378. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/88579b0570adecbc3f0e8602d65d243f.pack +0 -0
  379. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/94e3bff7460f96e92311ff009efae582.pack +0 -0
  380. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/99a51e8db8bc54baede2092c8b828737.pack +0 -0
  381. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/a34ebca652f38b28f0ab5c0ec2a13249.pack +0 -0
  382. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/b3961cb6986f392743ea332b879d1d5a.pack +0 -0
  383. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/b6abb72f333412054fd8d2afa76f35b4.pack +0 -0
  384. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/b708a9dbd566355a876377babed1a4a1.pack +0 -0
  385. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/c46618191a313da3983d934abe51e751.pack +0 -0
  386. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/ce5a05fc3282d0e3c39e0c7109619eb1.pack +0 -0
  387. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/cef1acaf465ebfc4ff7404f308966e92.pack +0 -0
  388. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/fd3fcc82842baa3a1d4c8bc6a8f99b90.pack +0 -0
  389. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs/index.json +0 -0
  390. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs.py +0 -0
  391. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/packs_build.py +0 -0
  392. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/rcp_adapter.py +0 -0
  393. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/readsvals.py +0 -0
  394. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes.py +0 -0
  395. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_cells.py +0 -0
  396. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_ctx.py +0 -0
  397. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_data/features_order_GRCm39-2024-A.u32.zst +0 -0
  398. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_extra.py +0 -0
  399. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_mtx.py +0 -0
  400. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_psi.py +0 -0
  401. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_pzw.py +0 -0
  402. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_qc.py +0 -0
  403. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_star.py +0 -0
  404. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_tables.py +0 -0
  405. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/recipes_tsv.py +0 -0
  406. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/sample.py +0 -0
  407. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/sample_facts.py +0 -0
  408. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/util.py +0 -0
  409. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/s1/verify.py +0 -0
  410. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/store/__init__.py +0 -0
  411. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/store/migrate.py +0 -0
  412. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/store/packs_build.py +0 -0
  413. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/store/verify.py +0 -0
  414. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/torch/__init__.py +0 -0
  415. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/torch/_s1stream.py +0 -0
  416. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/torch/_torch.py +0 -0
  417. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/v2/__init__.py +0 -0
  418. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/v2/migrate.py +0 -0
  419. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/v2/packs_build.py +0 -0
  420. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/v2/verify.py +0 -0
  421. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/vdj/__init__.py +0 -0
  422. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/vdj/clonotype.py +0 -0
  423. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/vdj/qc.py +0 -0
  424. {singlet-1.3.4 → singlet-1.3.7}/python/singlet/whitelists.py +0 -0
  425. {singlet-1.3.4 → singlet-1.3.7}/python/singlet.egg-info/dependency_links.txt +0 -0
  426. {singlet-1.3.4 → singlet-1.3.7}/python/singlet.egg-info/entry_points.txt +0 -0
  427. {singlet-1.3.4 → singlet-1.3.7}/python/singlet.egg-info/requires.txt +0 -0
  428. {singlet-1.3.4 → singlet-1.3.7}/python/singlet.egg-info/top_level.txt +0 -0
  429. {singlet-1.3.4 → singlet-1.3.7}/setup.cfg +0 -0
  430. {singlet-1.3.4 → singlet-1.3.7}/setup.py +0 -0
  431. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/common/singlet/pz2_client.h +0 -0
  432. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_abundance.hpp +0 -0
  433. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_ase.hpp +0 -0
  434. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_atac.hpp +0 -0
  435. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_cna.hpp +0 -0
  436. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_comm.hpp +0 -0
  437. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_cupy_ingest.hpp +0 -0
  438. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_disease.hpp +0 -0
  439. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_enrich.hpp +0 -0
  440. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_eqtl.hpp +0 -0
  441. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_fate.hpp +0 -0
  442. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_generative.hpp +0 -0
  443. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_grn.hpp +0 -0
  444. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_kernels.hpp +0 -0
  445. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_loader.hpp +0 -0
  446. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_metadata.hpp +0 -0
  447. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_network.hpp +0 -0
  448. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_nmf_new.hpp +0 -0
  449. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_perturbation.hpp +0 -0
  450. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_preprocess.hpp +0 -0
  451. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_qc_metrics.hpp +0 -0
  452. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_qc_new.hpp +0 -0
  453. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_results.hpp +0 -0
  454. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_score_genes.hpp +0 -0
  455. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_spatial_phaseb.hpp +0 -0
  456. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_bind_variants.hpp +0 -0
  457. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_cupy_interop.hpp +0 -0
  458. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_gpu_core.cpp +0 -0
  459. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_pz.cpp +0 -0
  460. {singlet-1.3.4 → singlet-1.3.7}/src/bindings/python/_pz2.cpp +0 -0
singlet-1.3.7/NOTICE ADDED
@@ -0,0 +1,30 @@
1
+ Singlet
2
+ Copyright (c) Singlet contributors. Licensed under the terms in LICENSE.
3
+
4
+ Third-party data
5
+ ----------------
6
+ python/singlet/data/whitelists/visium-v1.txt, visium-v1_coordinates.tsv, 737K-arc-v1-atac-gex.tsv.gz and
7
+ 737K-cratac-v1.txt.gz were rebuilt from 10x Genomics public datasets, licensed under Creative Commons Attribution 4.0
8
+ International (CC BY 4.0). Source datasets, URLs, checksums and the rebuilding method:
9
+ python/singlet/data/whitelists/ATTRIBUTION.md. 10x Genomics does not endorse this software.
10
+
11
+ Third-party software
12
+ --------------------
13
+ HLA typing (include/singlet/pipeline/hla_typing.h) runs T1K (Song, Li et al., Genome Research 2023,
14
+ github.com/mourisl/T1K), MIT License, Copyright (c) 2021 Li Song, Bo Li, Heng Li. T1K's extractor and genotyper (allele scoring, the EM
15
+ over alleles, the filtering of ambiguous reads) decide every genotype; Singlet adds a read prefilter in front of them
16
+ and, with the frequency prior, a restricted copy of T1K's IPD-IMGT/HLA index. IPD-IMGT/HLA data: Barker et al.,
17
+ Nucleic Acids Research 2023, CC BY-ND 4.0.
18
+
19
+ data/fusion/arriba/LICENSE: the chimeric table applies Arriba's blacklist (blacklist_hg38_GRCh38_v2.5.1.tsv.gz, fetched by
20
+ scripts/fetch_arriba_blacklist.sh, not stored in git). Arriba and its database files are MIT-licensed, copyright Deutsches
21
+ Krebsforschungszentrum and Sebastian Uhrig. Uhrig S et al., Genome Research 31:448-460 (2021), doi:10.1101/gr.257246.119.
22
+
23
+ Third-party code
24
+ ----------------
25
+ src/star/ is STAR 2.7.11b by Alexander Dobin (https://github.com/alexdobin/STAR), MIT license: src/star/LICENSE.STAR.
26
+ The pileup's STARsolo Gene rules are ports of STAR's own logic and carry the same license and credit:
27
+ include/singlet/pileup/tx_compat.h (intron rule 16384) ports alignToTranscript's concordance test from
28
+ src/star/Transcriptome_classifyAlign.cpp, and intron rule 32768 (kStarGene, pileup_engine.h and the GPU pileup's
29
+ k_annotate / k_resolve) ports Transcriptome::classifyAlign's per-read gene set with SoloReadFeature::record's
30
+ one-gene rule (src/star/SoloReadFeature_record.cpp).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: singlet
3
- Version: 1.3.4
3
+ Version: 1.3.7
4
4
  Summary: Open single-cell RNA-seq atlas: find, load, and analyze single-cell data at scale
5
5
  Author-email: Zach DeBruine <debruinz@gvsu.edu>
6
6
  License: MIT
@@ -273,6 +273,18 @@ ds = SingletDataset("GSE138867", normalize=True)
273
273
  - Documentation: https://singlet.bio/docs
274
274
  - Source: https://github.com/Singlet-Bio/singlet
275
275
 
276
+ ## How to cite
277
+
278
+ In a paper, cite the original study of every dataset you use (its paper and GEO accession; the Cite button on each study page at [singlet.bio](https://singlet.bio) gives both) and singlet.bio with its release and the date you downloaded the data:
279
+
280
+ > DeBruine Z. singlet.bio: an open atlas of public single-cell RNA-seq studies reprocessed from raw reads. Singlet Research Alpha (October 2026). https://singlet.bio (accessed YYYY-MM-DD).
281
+
282
+ and this package with the version you ran (`singlet.__version__`):
283
+
284
+ > DeBruine Z. singlet: Python, R and C++ client and engine for singlet.bio. Version X.Y.Z. 2026. https://github.com/Singlet-Bio/singlet
285
+
286
+ BibTeX for both: [singlet.bio/about#cite](https://singlet.bio/about#cite).
287
+
276
288
  ## License
277
289
 
278
290
  Code: MIT. Catalog data: CC0 (public domain).
@@ -177,6 +177,43 @@ pytest tests/python/
177
177
  make lint
178
178
  ```
179
179
 
180
+ ## How to cite
181
+
182
+ In a paper, cite the original study of every dataset you use (its paper and GEO accession; the Cite button on each study page at [singlet.bio](https://singlet.bio) gives both) and singlet.bio with its release and the date you downloaded the data:
183
+
184
+ > DeBruine Z. singlet.bio: an open atlas of public single-cell RNA-seq studies reprocessed from raw reads. Singlet Research Alpha (October 2026). https://singlet.bio (accessed YYYY-MM-DD).
185
+
186
+ ```bibtex
187
+ @misc{debruine2026singletbio,
188
+ author = {DeBruine, Zachary},
189
+ title = {{singlet.bio}: an open atlas of public single-cell {RNA-seq} studies reprocessed from raw reads},
190
+ year = {2026},
191
+ howpublished = {\url{https://singlet.bio}},
192
+ url = {https://singlet.bio},
193
+ note = {Singlet Research Alpha (October 2026). Accessed YYYY-MM-DD}
194
+ }
195
+ ```
196
+
197
+ If you used the Python or R package, cite it with the version you ran (`singlet.__version__`,
198
+ `packageVersion("singlet")`):
199
+
200
+ > DeBruine Z. singlet: Python, R and C++ client and engine for singlet.bio. Version X.Y.Z. 2026. https://github.com/Singlet-Bio/singlet
201
+
202
+ ```bibtex
203
+ @misc{debruine2026singlet,
204
+ author = {DeBruine, Zachary},
205
+ title = {singlet: {Python}, {R} and {C++} client and engine for {singlet.bio}},
206
+ year = {2026},
207
+ howpublished = {\url{https://github.com/Singlet-Bio/singlet}},
208
+ url = {https://github.com/Singlet-Bio/singlet},
209
+ note = {Version X.Y.Z}
210
+ }
211
+ ```
212
+
213
+ In R, `citation("singlet")` prints both entries with the installed version. GitHub's "Cite this repository" reads
214
+ [`CITATION.cff`](CITATION.cff). For reproducibility, also report each study's pipeline version (shown on its study
215
+ page). Plain text, BibTeX and RIS: [singlet.bio/about#cite](https://singlet.bio/about#cite).
216
+
180
217
  ## License
181
218
 
182
219
  MIT. See [LICENSE](LICENSE). Vendored STAR sources under
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
  # `pip install singlet`, then `import singlet`. Releases 0.1-0.5 of the PyPI "singlet" project are an unrelated 2017
7
7
  # package (github.com/iosonofabio/singlet); this package takes the name over from 1.1.0.
8
8
  name = "singlet"
9
- version = "1.3.4"
9
+ version = "1.3.7"
10
10
  description = "Open single-cell RNA-seq atlas: find, load, and analyze single-cell data at scale"
11
11
  readme = "python/README.md"
12
12
  license = {text = "MIT"}
@@ -103,7 +103,7 @@ where = ["python"]
103
103
  include = ["singlet*"]
104
104
 
105
105
  [tool.setuptools.package-data]
106
- singlet = ["celllabels/data/*.gz", "celllabels/data/*.json", "data/*.parquet", "data/whitelists/*.txt", "data/whitelists/*.tsv", "data/whitelists/*.tsv.gz", "data/whitelists/ATTRIBUTION.md", "py.typed", "features/data/*.json", "features/data/*.parquet", "features/data/*.npz","_singlepress*.so", "s1/packs/*.pack", "s1/packs/index.json", "s1/recipes_data/*.zst"]
106
+ singlet = ["celllabels/data/*.gz", "celllabels/data/*.json", "data/*.parquet", "data/whitelists/*.txt", "data/whitelists/*.tsv", "data/whitelists/*.tsv.gz", "data/whitelists/ATTRIBUTION.md", "py.typed", "features/data/*.json", "features/data/*.parquet", "features/data/*.npz", "s1/packs/*.pack", "s1/packs/index.json", "s1/recipes_data/*.zst"]
107
107
 
108
108
  # The four large 10x whitelists (about 106 MB of 113 MB) are not shipped: singlet.whitelists
109
109
  # downloads them from the public Teichlab CDN on first use. The small ones, and 737K-april-2014
@@ -201,6 +201,18 @@ ds = SingletDataset("GSE138867", normalize=True)
201
201
  - Documentation: https://singlet.bio/docs
202
202
  - Source: https://github.com/Singlet-Bio/singlet
203
203
 
204
+ ## How to cite
205
+
206
+ In a paper, cite the original study of every dataset you use (its paper and GEO accession; the Cite button on each study page at [singlet.bio](https://singlet.bio) gives both) and singlet.bio with its release and the date you downloaded the data:
207
+
208
+ > DeBruine Z. singlet.bio: an open atlas of public single-cell RNA-seq studies reprocessed from raw reads. Singlet Research Alpha (October 2026). https://singlet.bio (accessed YYYY-MM-DD).
209
+
210
+ and this package with the version you ran (`singlet.__version__`):
211
+
212
+ > DeBruine Z. singlet: Python, R and C++ client and engine for singlet.bio. Version X.Y.Z. 2026. https://github.com/Singlet-Bio/singlet
213
+
214
+ BibTeX for both: [singlet.bio/about#cite](https://singlet.bio/about#cite).
215
+
204
216
  ## License
205
217
 
206
218
  Code: MIT. Catalog data: CC0 (public domain).
@@ -69,7 +69,7 @@ Retired (raise NotImplementedError; their hosts were never in service):
69
69
  base_url, singlet.atlas.*
70
70
  """
71
71
 
72
- __version__ = "1.3.4"
72
+ __version__ = "1.3.7"
73
73
 
74
74
  from singlet._aggregate import aggregate
75
75
  from singlet._ambient_rna_score import ambient_rna_score
@@ -487,8 +487,10 @@ def load(
487
487
  then subset (with a warning).
488
488
  **s1_options
489
489
  ``samples`` (restrict a study to some GSMs), ``cell_order`` (``"legacy"``,
490
- ``"barcode"`` or ``"column"``), ``concurrency`` (parallel samples and
491
- range requests, default 4), ``threads`` (decoder threads), ``verify``
490
+ ``"barcode"`` or ``"column"``), ``io_threads`` (range requests in
491
+ flight: ``"auto"`` is 8 over HTTP and 1 for local files; 1 sends them one
492
+ at a time), ``concurrency`` (samples at once, default ``io_threads`` over
493
+ HTTP and 4 locally), ``threads`` (decoder threads), ``verify``
492
494
  (recompute canonical matrix digests), ``whole_max`` (bytes below which a
493
495
  sample's members are fetched whole), ``base`` (data host),
494
496
  ``cell_type_level`` (deepest level of ``obs["cell_type"]``, default 2),
@@ -590,6 +592,7 @@ _STORE_OPTIONS = frozenset(
590
592
  "samples",
591
593
  "cell_order",
592
594
  "concurrency",
595
+ "io_threads",
593
596
  "threads",
594
597
  "verify",
595
598
  "whole_max",
@@ -1000,7 +1003,7 @@ def load_sample(
1000
1003
  Reads the sample's column range out of its study's ``counts.1pz`` in a
1001
1004
  local catalog directory (``SINGLET_CATALOG_DIR`` or
1002
1005
  :func:`singlet.set_catalog_dir`). This is for machines that hold the
1003
- pipeline output itself; everyone else should use
1006
+ pipeline output itself. Without a local catalog it calls
1004
1007
  ``singlet.load("GSM…")``, which downloads the public bundle.
1005
1008
 
1006
1009
  Parameters
@@ -1017,8 +1020,6 @@ def load_sample(
1017
1020
 
1018
1021
  Raises
1019
1022
  ------
1020
- RuntimeError
1021
- If no local catalog directory is configured.
1022
1023
  KeyError
1023
1024
  If the sample is not in the local sample index.
1024
1025
  """
@@ -1031,12 +1032,8 @@ def load_sample(
1031
1032
  # without one gets this message rather than an ImportError.
1032
1033
  cat_dir = _get_catalog_dir()
1033
1034
  if cat_dir is None:
1034
- raise RuntimeError(
1035
- "load_sample requires a local catalog (a directory holding the "
1036
- "pipeline's processing tree). Set SINGLET_CATALOG_DIR or call "
1037
- "singlet.set_catalog_dir(). To load a public sample, use "
1038
- f"singlet.load({gsm_id!r}) instead."
1039
- )
1035
+ # no local processing tree: a public accession loads through the public bundle
1036
+ return load(gsm_id, genes=genes)
1040
1037
 
1041
1038
  idx = _load_sample_index()
1042
1039
  rows = idx[idx["gsm_id"] == gsm_id]
@@ -2,8 +2,6 @@
2
2
  """Antibody-derived tags (ADT / CITE-seq) and cell hashtags (HTO) as a Singlet modality.
3
3
 
4
4
  * :mod:`singlet.adt.seq`: 2-bit sequence codes and Hamming-1 neighbourhoods (vectorised).
5
- * :mod:`singlet.adt.chemistry`: read geometry per protocol (10x 3' v2/v3/v4, 5'), whitelists and the 3' v3 feature
6
- barcode translation.
7
5
  * :mod:`singlet.adt.panel`: the TotalSeq catalog, study feature references, panel discovery from the reads.
8
6
  * :mod:`singlet.adt.count`: counting UMIs per (cell barcode, antibody) with Cell Ranger feature-barcoding logic.
9
7
  * :mod:`singlet.adt.qc`: library and cell QC, pass/fail thresholds.
@@ -125,6 +125,7 @@ _PZ_FILES = [
125
125
  "splice_psi.1pz",
126
126
  "vdj_gene_usage.1pz",
127
127
  "mt_heteroplasmy.1pz",
128
+ "multimap_counts.1pz",
128
129
  ]
129
130
 
130
131
  _JSON_SIDECARS = [
@@ -194,6 +195,12 @@ MODALITIES: Dict[str, Modality] = {
194
195
  ("intron_counts.1pz",),
195
196
  "Per-intron-feature UMI counts (the unspliced half of the raw matrix).",
196
197
  ),
198
+ Modality(
199
+ "multimap_counts",
200
+ "matrix",
201
+ ("multimap_counts.1pz",),
202
+ "Molecules whose reads fit two genes, per gene set (the multi-mapping record; raw_counts(include_multimappers=True) adds them).",
203
+ ),
197
204
  Modality(
198
205
  "exon_reads",
199
206
  "table",
@@ -928,6 +935,50 @@ def _called_barcodes(out_dir: Path) -> Optional[set]:
928
935
  return set(called) if called is not None else None
929
936
 
930
937
 
938
+ # Machine-specific text in published members: absolute paths (they carry the cluster's directory layout and the user name) and host
939
+ # names. provenance.json and STAR's Log.out files (star_Log.out, cr4_probe/*_Log.out) record both; the public bundle keeps the file
940
+ # names only and drops the compute node.
941
+ _ABS_PATH = re.compile(r"(?<![\w.~:/-])(?:/+[\w.+@%=,-]+)+/*|(?<![\w])[A-Za-z]:\\(?:[^\\\s'\"]+\\)*[^\\\s'\"]*")
942
+ _HOST = re.compile(r"\b(?:[A-Za-z0-9-]+\.)+(?:edu|org|com|net|gov|local|internal|lan|cluster)\b")
943
+ _URL = re.compile(r"(\b[A-Za-z][A-Za-z0-9+.-]*://[^\s'\"]+)")
944
+ _KEEP_PATHS = {"/dev/null", "/dev/stdin", "/dev/stdout", "/dev/stderr"}
945
+
946
+
947
+ def _scrub_text(text: str) -> str:
948
+ def path(m: "re.Match") -> str:
949
+ p = m.group(0)
950
+ if p in _KEEP_PATHS:
951
+ return p
952
+ parts = [x for x in re.split(r"[\\/]+", p) if x and x not in (".", "..") and not re.fullmatch(r"[A-Za-z]:", x)]
953
+ return parts[-1] if parts else ""
954
+
955
+ # URLs (reference downloads, accessions) are public and kept verbatim; only the text between them is scrubbed
956
+ pieces = _URL.split(text)
957
+ return "".join(x if i % 2 else _HOST.sub("<host>", _ABS_PATH.sub(path, x)) for i, x in enumerate(pieces))
958
+
959
+
960
+ def _scrub_json(v):
961
+ if isinstance(v, dict):
962
+ return {k: _scrub_json(x) for k, x in v.items() if not (k in ("node", "hostname") and isinstance(x, str))}
963
+ if isinstance(v, list):
964
+ return [_scrub_json(x) for x in v]
965
+ return _scrub_text(v) if isinstance(v, str) else v
966
+
967
+
968
+ def _public_text_member(rel: str, data: bytes) -> bytes:
969
+ """``provenance.json`` and STAR ``*Log.out`` without absolute paths (file names kept) or host names; other members unchanged."""
970
+ name = rel.rsplit("/", 1)[-1]
971
+ if name == "provenance.json":
972
+ try:
973
+ doc = json.loads(data.decode("utf-8"))
974
+ except (UnicodeDecodeError, ValueError):
975
+ return _scrub_text(data.decode("utf-8", "replace")).encode("utf-8")
976
+ return (json.dumps(_scrub_json(doc), indent=2, ensure_ascii=False) + "\n").encode("utf-8")
977
+ if name.endswith("Log.out"):
978
+ return _scrub_text(data.decode("utf-8", "replace")).encode("utf-8")
979
+ return data
980
+
981
+
931
982
  def _reads_member(rel: str, data: bytes, called: Optional[set]) -> Optional[bytes]:
932
983
  """What the bundle holds of a reads-per-UMI member: None = not packed, else its bytes (the histogram restricted to the called cells)."""
933
984
  if rel in _RUN_DIR_ONLY_MEMBERS:
@@ -1309,6 +1360,12 @@ def pack_gse(
1309
1360
  # (the count matrix is reconstructable from exon/intron_counts.1pz).
1310
1361
  if rel.parts[0] in {"star_Solo.out", "filtered_feature_bc_matrix"}:
1311
1362
  continue
1363
+ # The ambient-corrected matrix is the output of an estimator that is not released, it goes stale when the estimator
1364
+ # changes, and it holds a second copy of the called cells' counts. It is not packed: the corrected values are computed
1365
+ # at download from the stored per-cell ambient fraction and soup profile (ambient_contamination.*, ambient_profile.tsv,
1366
+ # both kept in the private sidecar) and the raw counts.
1367
+ if len(rel.parts) == 1 and rel.name.startswith("ambient_corrected_counts."):
1368
+ continue
1312
1369
  if fpath.suffix == ".1fq" or fpath.name in {
1313
1370
  "star_Unmapped.out.mate1",
1314
1371
  "star_Unmapped.out.mate2",
@@ -1326,6 +1383,8 @@ def pack_gse(
1326
1383
  data = _reads_member(rel.as_posix(), data, called_set)
1327
1384
  if data is None:
1328
1385
  continue
1386
+ if not restricted:
1387
+ data = _public_text_member(rel.as_posix(), data)
1329
1388
  compress = (
1330
1389
  zipfile.ZIP_STORED if fpath.suffix == ".1pz" else zipfile.ZIP_DEFLATED
1331
1390
  )
@@ -1810,7 +1869,15 @@ class SingletBundle:
1810
1869
  adata.uns["modality"] = name
1811
1870
  return adata
1812
1871
 
1813
- def raw_counts(self, gsm: str, *, gene_level: bool = True, cells: str = "called"):
1872
+ def raw_counts(
1873
+ self,
1874
+ gsm: str,
1875
+ *,
1876
+ gene_level: bool = True,
1877
+ cells: str = "called",
1878
+ include_multimappers: bool = False,
1879
+ multimappers: str = "EM",
1880
+ ):
1814
1881
  """The raw count matrix for one sample, with spliced/unspliced layers.
1815
1882
 
1816
1883
  This is the matrix a conventional (non-USA) pipeline would hand you:
@@ -1833,6 +1900,18 @@ class SingletBundle:
1833
1900
  empty droplets — the equivalent of a ``raw_feature_bc_matrix``.
1834
1901
  Only meaningful with ``gene_level=False``; the gene-level path is
1835
1902
  always restricted to called cells.
1903
+ include_multimappers
1904
+ ``False`` (default): unique reads only, the stored counts. ``True``
1905
+ adds the molecules whose reads fit two genes from the sample's
1906
+ multi-mapping record (``multimap_counts``), distributed by
1907
+ ``multimappers``; ``X`` becomes float and the added part is kept
1908
+ in ``layers["multimapped"]``. Gene level only. A sample without
1909
+ the record (pipelines before it) keeps its unique counts, with a
1910
+ warning.
1911
+ multimappers
1912
+ ``"EM"`` (default) or ``"Uniform"``, as STARsolo
1913
+ ``--soloMultiMappers``: EM shares each molecule by the cell's
1914
+ unique counts of its genes, Uniform splits it evenly.
1836
1915
 
1837
1916
  Returns
1838
1917
  -------
@@ -1869,7 +1948,15 @@ class SingletBundle:
1869
1948
  part = self._gene_level_part(gsm, kind, barcodes)
1870
1949
  if part is not None:
1871
1950
  adata.layers[layer] = part
1951
+ if include_multimappers:
1952
+ mm = self._multimap_part(gsm, barcodes, adata.X, multimappers)
1953
+ if mm is not None:
1954
+ adata.layers["multimapped"] = mm
1955
+ adata.X = (adata.X.astype(np.float32) + mm).tocsr()
1956
+ adata.uns["multimappers"] = multimappers if mm is not None else "none"
1872
1957
  else:
1958
+ if include_multimappers:
1959
+ raise ValueError("include_multimappers needs gene_level=True")
1873
1960
  exon = self.read("exon_counts", gsm) if self.has("exon_counts", gsm) else None
1874
1961
  intron = self.read("intron_counts", gsm) if self.has("intron_counts", gsm) else None
1875
1962
  if exon is None and intron is None:
@@ -1888,6 +1975,29 @@ class SingletBundle:
1888
1975
  adata.uns["reference_build"] = self.feature_vocab.get("reference_build", "")
1889
1976
  return adata
1890
1977
 
1978
+ def _multimap_part(self, gsm: str, barcodes: List[str], unique, method: str):
1979
+ """Per-gene multimapper counts (cells x genes, float32 CSR) aligned to ``barcodes``, or None without a record."""
1980
+ from singlet.multimap import METHODS, class_genes, distribute
1981
+
1982
+ if method not in METHODS:
1983
+ raise ValueError(f"multimappers must be one of {METHODS}")
1984
+ from scipy.sparse import csr_matrix, vstack
1985
+
1986
+ if not self.has("multimap_counts", gsm):
1987
+ warnings.warn(f"{gsm} has no multi-mapping record; unique counts only", stacklevel=3)
1988
+ return None
1989
+ if self._is_empty_pz(gsm, "multimap_counts.1pz"): # a record with no two-gene molecules
1990
+ return csr_matrix(unique.shape, dtype=np.float32)
1991
+ rec = self.read("multimap_counts", gsm)
1992
+ gene_row = {g["gene_id"]: i for i, g in enumerate(self.feature_vocab["genes"])}
1993
+ classes = class_genes(list(rec.var_names), gene_row)
1994
+ bc_row = {bc: i for i, bc in enumerate(rec.obs_names)}
1995
+ idx = np.array([bc_row.get(bc, -1) for bc in barcodes], dtype=np.int64)
1996
+ X = rec.X.tocsr() if hasattr(rec.X, "tocsr") else csr_matrix(rec.X)
1997
+ empty = csr_matrix((1, X.shape[1]), dtype=X.dtype)
1998
+ rows = vstack([X, empty]).tocsr()[np.where(idx >= 0, idx, X.shape[0])]
1999
+ return distribute(unique, rows, classes, method).astype(np.float32)
2000
+
1891
2001
  def _read_cell_calls(self, gsm: str):
1892
2002
  """``cell_calls.tsv`` for one sample with every column read as text.
1893
2003
 
@@ -56,3 +56,20 @@ scATAC (Cell Ranger ATAC 1.2.0 outputs), `https://cf.10xgenomics.com/samples/cel
56
56
  | atac_hgmm_10k_nextgem | 43,140,358 | `90738a593dc98c0c9b57d394192af207f4d4925cdadf3dedca8f555cca312580` |
57
57
  | atac_hgmm_5k_v1 | 39,951,457 | `1eb8eb8a655642eb5cf601e77b43e290fad617942d8c4ac81988bebb40d0f615` |
58
58
  | atac_v1_E18_brain_fresh_5k | 29,034,595 | `fade603d33e94a6e5fd9d93b7bb85fb329eaa2bc3e56af8364367314503aaa97` |
59
+
60
+ # Barcode lists fetched at install time (not in this repository)
61
+
62
+ The 10x GEM-X barcode lists ship with 10x software only, so they are not bundled. `singlet whitelists fetch` downloads the copies
63
+ that the Broad Institute publishes for its WARP Optimus pipeline in the public bucket `gcp-public-data--broad-references`
64
+ (https://broadinstitute.github.io/warp/docs/Pipelines/Optimus_Pipeline/v4_chemistry), checks each against the sha256 below
65
+ (pinned in `include/singlet/fq/protocol.h`, `fetchable_whitelists()`) and refuses a file that differs. Without them a GEM-X call
66
+ fails and names the fetch command; no other list is substituted.
67
+
68
+ | file | chemistry (engine tag) | source | bytes | rows | sha256 |
69
+ |---|---|---|---|---|---|
70
+ | `3M-3pgex-may-2023.txt` | 10x GEM-X Single Cell 3' v4 (`10x-3p-v4`) | https://storage.googleapis.com/gcp-public-data--broad-references/optimus_whitelists/3M-3pgex-may-2023.txt | 125,337,600 | 7,372,800 | `62df04844ed0d1281b302f862ec0d005d3298fc169f507f68dd6e8d4cb5ccccd` |
71
+ | `3M-5pgex-jan-2023.txt` | 10x GEM-X Single Cell 5' v3 (`10x-5p-v4`) | https://storage.googleapis.com/gcp-public-data--broad-references/optimus_whitelists/3M-5pgex-jan-2023.txt | 62,668,800 | 3,686,400 | `b402db8acbcd3a076bf50991538d6c08464ddb137e0b81916a9fa92cf222dd0d` |
72
+
73
+ The 3' v4 file is Broad's list "for Cell Ranger v8.0 and v8.0.1"; its 3,686,400-row `_TRU` variant (Cell Ranger 9) is a subset of it.
74
+ Measured on 2026-11-08: the 3' v4 list shares 34,181 barcodes (0.5%) with `3M-february-2018.txt` (3' v3) and the 5' list 8,645,
75
+ so a library's whitelist hit rate separates GEM-X from v3.
@@ -69,7 +69,7 @@ def set_api_key(key: str | None) -> None:
69
69
 
70
70
  Keys are created at https://singlet.bio/account. ``None`` clears the key.
71
71
  The ``$SINGLET_API_KEY`` environment variable is used when no key has been
72
- set explicitly.
72
+ set explicitly, then the first line of ``~/.singlet/api_key``.
73
73
  """
74
74
  global _API_KEY
75
75
  _API_KEY = key.strip() if isinstance(key, str) and key.strip() else None
@@ -79,7 +79,15 @@ def _api_key() -> str | None:
79
79
  if _API_KEY:
80
80
  return _API_KEY
81
81
  env = os.environ.get("SINGLET_API_KEY", "").strip()
82
- return env or None
82
+ if env:
83
+ return env
84
+ try:
85
+ with open(
86
+ os.path.join(os.path.expanduser("~"), ".singlet", "api_key"), encoding="utf-8"
87
+ ) as f:
88
+ return f.readline().strip() or None
89
+ except OSError:
90
+ return None
83
91
 
84
92
 
85
93
  def _request_headers() -> dict[str, str]:
@@ -0,0 +1,115 @@
1
+ # SPDX-License-Identifier: MIT
2
+ """Multi-mapping reads at retrieval.
3
+
4
+ The gene count matrices hold only molecules whose reads are assigned to one gene. Molecules whose reads are compatible with two
5
+ genes are kept beside them in ``multimap_counts`` (classes x barcodes: one row per gene set, named ``"<gene_id>_<name>|<gene_id>_<name>"``
6
+ or ``"<gene_id>_<name>"`` for a molecule whose reads share a single gene; see ``include/singlet/pileup/multimap_record.h``).
7
+
8
+ :func:`distribute` turns that record into per-gene counts the way STARsolo's ``--soloMultiMappers`` does in
9
+ ``SoloFeature_collapseUMIall.cpp``, cell by cell:
10
+
11
+ * ``"Uniform"``: each molecule adds 1/n to each of its n genes.
12
+ * ``"EM"``: the expectation-maximization STARsolo runs, started from unique + uniform counts, with its constants (counts below 0.01
13
+ are set to zero before each step; it stops when no gene changes by 0.01 or more, or after 101 steps). The unique counts of the cell
14
+ are the prior, so a molecule shared by a highly and a lowly expressed gene goes mostly to the first.
15
+
16
+ The result holds only the multimapper part (STARsolo's UniqueAndMult matrix minus its Unique matrix): add it to the unique counts to
17
+ include multi-mapping reads, or leave it out.
18
+ """
19
+
20
+ from __future__ import annotations
21
+
22
+ from typing import Dict, List, Sequence, Tuple
23
+
24
+ import numpy as np
25
+
26
+ METHODS = ("EM", "Uniform")
27
+ _EM_ZERO = 0.01 # STARsolo: gEMold below this is set to 0 before each step
28
+ _EM_TOL = 0.01 # STARsolo: stop when max |new - old| < this
29
+ _EM_MAX = 100 # STARsolo: stop after iterI > 100
30
+
31
+
32
+ def class_genes(names: Sequence[str], gene_row: Dict[str, int]) -> List[Tuple[int, ...]]:
33
+ """The gene rows of each class name (``gene_id_name`` parts joined by ``|``); a class with an unknown gene gets ``()``."""
34
+ out: List[Tuple[int, ...]] = []
35
+ for nm in names:
36
+ rows = []
37
+ for part in str(nm).split("|"):
38
+ r = gene_row.get(part.split("_", 1)[0], -1)
39
+ if r < 0:
40
+ rows = []
41
+ break
42
+ rows.append(r)
43
+ out.append(tuple(sorted(set(rows))))
44
+ return out
45
+
46
+
47
+ def distribute(unique, record, classes: Sequence[Tuple[int, ...]], method: str = "EM"):
48
+ """Per-gene multimapper counts (cells x genes, float64 CSR) from the record.
49
+
50
+ Parameters
51
+ ----------
52
+ unique
53
+ cells x genes unique counts (sparse or dense); the EM prior.
54
+ record
55
+ cells x classes molecule counts (sparse or dense), the same cells in the same order.
56
+ classes
57
+ per class (column of ``record``) its gene rows (:func:`class_genes`); empty classes are skipped.
58
+ method
59
+ ``"EM"`` (default) or ``"Uniform"``.
60
+ """
61
+ import scipy.sparse as sp
62
+
63
+ if method not in METHODS:
64
+ raise ValueError(f"method must be one of {METHODS}")
65
+ U = sp.csr_matrix(unique, dtype=np.float64)
66
+ M = sp.coo_matrix(record)
67
+ n_cells, n_genes = U.shape
68
+ if M.shape[0] != n_cells:
69
+ raise ValueError("unique and record must have the same cells")
70
+ sizes = np.array([len(c) for c in classes], dtype=np.int64)
71
+ keep = (M.data > 0) & (sizes[M.col] > 0)
72
+ cell, cls, cnt = M.row[keep].astype(np.int64), M.col[keep].astype(np.int64), M.data[keep].astype(np.float64)
73
+ if cell.size == 0:
74
+ return sp.csr_matrix((n_cells, n_genes), dtype=np.float64)
75
+ g1 = np.array([c[0] if c else -1 for c in classes], dtype=np.int64)[cls]
76
+ g2 = np.array([c[1] if len(c) > 1 else -1 for c in classes], dtype=np.int64)[cls]
77
+ two = g2 >= 0
78
+
79
+ # the (cell, gene) variables: STARsolo's genesM per cell (the genes of that cell's multi-gene molecules)
80
+ keys = np.concatenate([cell * n_genes + g1, cell[two] * n_genes + g2[two]])
81
+ var_keys, inv = np.unique(keys, return_inverse=True)
82
+ v1 = inv[: cell.size]
83
+ v2 = np.full(cell.size, -1, dtype=np.int64)
84
+ v2[two] = inv[cell.size:]
85
+ var_cell, var_gene = var_keys // n_genes, var_keys % n_genes
86
+ nv = var_keys.size
87
+
88
+ w = np.where(two, 0.5, 1.0) * cnt
89
+ uniform = np.bincount(v1, w, nv) + np.bincount(v2[two], w[two], nv)
90
+ if method == "Uniform":
91
+ val = uniform
92
+ else:
93
+ prior = np.asarray(U[var_cell, var_gene]).ravel()
94
+ old = uniform + prior
95
+ result = np.zeros(nv)
96
+ active = np.ones(n_cells, dtype=bool) # each cell stops on its own, as STARsolo runs one EM per cell
97
+ it = 0
98
+ while True:
99
+ it += 1
100
+ o = np.where(old < _EM_ZERO, 0.0, old)
101
+ norm = o[v1] + np.where(two, o[np.maximum(v2, 0)], 0.0)
102
+ with np.errstate(divide="ignore", invalid="ignore"):
103
+ f = cnt / norm
104
+ new = prior + np.bincount(v1, o[v1] * f, nv) + np.bincount(v2[two], (o[v2[two]] * f[two]), nv)
105
+ change = np.zeros(n_cells)
106
+ np.maximum.at(change, var_cell, np.abs(new - o))
107
+ done = active & ((change < _EM_TOL) | (it > _EM_MAX))
108
+ dv = done[var_cell]
109
+ result[dv] = new[dv]
110
+ active &= ~done
111
+ if not active.any():
112
+ break
113
+ old = np.where(active[var_cell], new, old)
114
+ val = result - prior
115
+ return sp.csr_matrix((val, (var_cell, var_gene)), shape=(n_cells, n_genes))
@@ -3052,7 +3052,11 @@ def _post(
3052
3052
  url = _api_base(base) + path
3053
3053
  data = json.dumps(body).encode()
3054
3054
  hdr = {"Content-Type": "application/json", "User-Agent": "singlet-bio-atlas"}
3055
- key = api_key or os.environ.get("SINGLET_API_KEY")
3055
+ if not api_key:
3056
+ from singlet.find import _api_key # $SINGLET_API_KEY, then ~/.singlet/api_key
3057
+
3058
+ api_key = _api_key()
3059
+ key = api_key
3056
3060
  if key:
3057
3061
  hdr["Authorization"] = f"Bearer {key}"
3058
3062
  req = urllib.request.Request(url, data=data, headers=hdr, method="POST")
@@ -3065,6 +3069,8 @@ def _post(
3065
3069
  except Exception: # noqa: BLE001
3066
3070
  pass
3067
3071
  msg = j.get("message") or j.get("error")
3072
+ if e.code == 429 and not key:
3073
+ msg = f"{msg or e.reason} (anonymous allowance; set $SINGLET_API_KEY or save a key in ~/.singlet/api_key, from https://singlet.bio/account)"
3068
3074
  if j.get("plan"):
3069
3075
  raise OverBudget(f"{path}: HTTP {e.code}: {msg}", j["plan"]) from e
3070
3076
  raise IndexError_(f"{path}: HTTP {e.code}: {msg or e.reason}") from e
@@ -3527,26 +3533,30 @@ def read_gather_stream(fh) -> Tuple[dict, Dict[Tuple[int, str], dict], dict]:
3527
3533
  return head, got, trailer
3528
3534
 
3529
3535
 
3530
- def _fetch_direct(idx: Index, plan: dict, threads: int = 8) -> Dict[Tuple[int, str], dict]:
3531
- """The client-side equivalent of the Worker: one ranged GET per planned read."""
3536
+ def _fetch_direct(
3537
+ idx: Index, plan: dict, io_threads: Union[int, str] = "auto"
3538
+ ) -> Dict[Tuple[int, str], dict]:
3539
+ """The client-side equivalent of the Worker: one ranged GET per planned read, ``io_threads`` in flight at once."""
3540
+ from . import transport as T
3541
+
3532
3542
  got: Dict[Tuple[int, str], dict] = {}
3543
+ budget = T.IOBudget(T.io_threads(io_threads, idx.t))
3533
3544
 
3534
3545
  def one(r):
3535
3546
  return r, _get(idx.t, r["key"], r["start"], r["end"] - r["start"])
3536
3547
 
3537
- with ThreadPoolExecutor(max(1, threads)) as ex:
3538
- for r, buf in ex.map(one, plan["reads"]):
3539
- idx.stats["requests"] += 1
3540
- idx.stats["bytes"] += len(buf)
3541
- for nm, kind, off, ln, a in r["pieces"]:
3542
- body = buf[a - r["start"] : a - r["start"] + ln]
3543
- ent = got.setdefault((r["sample"], nm), {"runs": {}})
3544
- if kind == FR_PREFIX:
3545
- ent["prefix"] = body
3546
- elif kind == FR_RUN:
3547
- ent["runs"][off] = body
3548
- else:
3549
- ent["whole"] = body
3548
+ for r, buf in budget.map(one, plan["reads"]):
3549
+ idx.stats["requests"] += 1
3550
+ idx.stats["bytes"] += len(buf)
3551
+ for nm, kind, off, ln, a in r["pieces"]:
3552
+ body = buf[a - r["start"] : a - r["start"] + ln]
3553
+ ent = got.setdefault((r["sample"], nm), {"runs": {}})
3554
+ if kind == FR_PREFIX:
3555
+ ent["prefix"] = body
3556
+ elif kind == FR_RUN:
3557
+ ent["runs"][off] = body
3558
+ else:
3559
+ ent["whole"] = body
3550
3560
  return got
3551
3561
 
3552
3562
 
@@ -3661,6 +3671,7 @@ def gather(
3661
3671
  via: str = "auto",
3662
3672
  api_key: Optional[str] = None,
3663
3673
  threads: int = 4,
3674
+ io_threads: Union[int, str] = "auto",
3664
3675
  max_cells: Optional[int] = None,
3665
3676
  batch_cells: Optional[int] = None,
3666
3677
  batch_studies: int = MAX_STUDIES_PER_REQUEST,
@@ -3672,7 +3683,8 @@ def gather(
3672
3683
  ``cells``: a :func:`find_cells` DataFrame, ``[(gsm_or_so, [cols...]), ...]`` or ``{gsm_or_so: cols}``. ``modalities``: the
3673
3684
  ``singlet.s1.client`` vocabulary (default counts + spliced + unspliced; also splice_junctions, mt, vdj -> ``obsm``).
3674
3685
  ``via="worker"`` streams everything from ``POST /s1/cidx/gather`` in one request (the Worker reads R2 in parallel inside
3675
- Cloudflare); ``via="direct"`` issues the same coalesced range requests from here. Prefixes of matrices already seen are cached on
3686
+ Cloudflare); ``via="direct"`` issues the same coalesced range requests from here, ``io_threads`` at a time (``"auto"``: 8 over
3687
+ HTTP, 1 from a local directory; ``threads`` is the decoders'). Prefixes of matrices already seen are cached on
3676
3688
  disk and not fetched again. The Worker serves at most 10,000 cells from at most 10 studies per request: more are fetched in
3677
3689
  several requests of at most ``batch_cells`` cells and ``batch_studies`` studies (each a request under the rate limits)."""
3678
3690
  import anndata as ad
@@ -3767,7 +3779,7 @@ def gather(
3767
3779
  if [s["so"] for s in head["samples"]] != b_sos:
3768
3780
  raise IndexError_("the Worker planned other samples than were asked for")
3769
3781
  else:
3770
- got = _fetch_direct(idx, plan, threads=threads)
3782
+ got = _fetch_direct(idx, plan, io_threads=io_threads)
3771
3783
  totals["seconds_fetch"] += time.time() - t0
3772
3784
  totals["planned_bytes"] += plan["bytes"]
3773
3785
  totals["planned_reads"] += len(plan["reads"])