singlet 1.2.0__tar.gz → 1.3.0__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.
- {singlet-1.2.0/python/singlet.egg-info → singlet-1.3.0}/PKG-INFO +1 -1
- {singlet-1.2.0 → singlet-1.3.0}/pyproject.toml +1 -1
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/__init__.py +1 -1
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/client.py +15 -3
- singlet-1.3.0/python/singlet/s1/sample_facts.py +130 -0
- {singlet-1.2.0 → singlet-1.3.0/python/singlet.egg-info}/PKG-INFO +1 -1
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet.egg-info/SOURCES.txt +1 -0
- {singlet-1.2.0 → singlet-1.3.0}/LICENSE +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/MANIFEST.in +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/README.md +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pileup/pz_reader.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pileup/pz_writer.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/api.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/codec2.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/common.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/container.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/isa.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/rans1.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/rans1_avx2.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/rans1_avx512.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/rans1_dec.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/rans1_enc.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/sha256.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/simd.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/detail/values.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/include/singlet/pz2/pz2.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/README.md +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/__main__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_aggregate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_ambient_rna_score.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_annotate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_annotate_cell_types.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_augur_prioritize.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_auth.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_batch_evaluation.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_catalog.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cca.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cell_communication.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cell_cycle.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cell_cycle_regression.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cell_distances.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cell_level_de.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cell_type_proportions.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cluster_stability.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_coexpression_modules.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_combat.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_composition_analysis.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_concat.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_connectivity_score.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_consensus_clustering.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_correlation.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cross_species_correlation.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_cv_resolution.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_de.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_dendrogram.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_denoise.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_describe.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_differential_abundance.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_differential_test.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_diffmap.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_doublet_score_hybrid.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_downsample.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_dpt.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_draw_graph.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_embedding_density.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_enrichr.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_entropy_score.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_export_df.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_fate_probabilities.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_filter.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_filter_de.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_find_all_markers.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_gene_activity_score.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_gene_correlation_network.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_gene_importance.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_gene_module_score.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_gene_set_enrichment.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_gene_set_variation.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_gene_space_embedding.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_gene_trend_clustering.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_harmony.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_hotspot_genes.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_hvg.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_hvg_cell_ranger.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_hvg_seurat.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_ica.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_identify_bipotent_cells.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_infer_grn.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_ingest.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_integrity.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_io.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_knn_impute.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_leiden.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_loader.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_louvain.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_magic.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_marker_overlap.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_marker_specificity.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_metacell.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_metrics.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_mnn.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_morans_i.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_multiome_factor_analysis.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_neighbors.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_nmf.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_nmf_serve.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_normalize.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_optimal_transport.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_paga.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_palantir_pseudotime.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_pca.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_perturbation_signature.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_phate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_phenograph.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_embedding.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_genes_in_groups.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_heatmap.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_markers.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_matrix.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_paga.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_ranking.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_scatter.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_stacked_violin.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_plot_tracks.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_predict_cell_type.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_pseudobulk.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_qc.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_qc_summary.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_query.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_rank_genes.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_recipes.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_regress.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_reprogramming_score.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_restricted.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_scale.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_scanorama_integrate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_score.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_scrublet.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_sparse_pca.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_spatial.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_spectral_clustering.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_splicing_ratio.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_subcluster.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_subsample.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_subsample_balanced.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_topic_model.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_trajectory_genes.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_transfer_labels.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_transforms.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_tsne.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_umap.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_variance_partition.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_variational_inference.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_velocity_pseudotime.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_versions.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_weighted_nearest_neighbors.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/_wishart.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/atlas/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/atlas/client.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/bundle.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/ancestry.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/celltype.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/data/cellguide.json.gz +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/data/cl.json.gz +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/data/human_mouse.tsv.gz +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/evaluate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/guide.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/io.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/output.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/pipeline.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/celllabels/sex.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/convert.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/catalog_v1.parquet +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/sample_index.parquet +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/737K-april-2014.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/bd_cls1.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/bd_cls2.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/bd_cls3.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/indrop_bc1.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/indrop_bc2.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/microwell_bc1_bare.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/quartzseq2_bc.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/scirna3_rt_bc.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/splitseq_bc_rd1.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/splitseq_bc_rd2.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/data/whitelists/splitseq_bc_rd3.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/derive/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/derive/gene_counts.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/derive/gene_full.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/derive/pseudobulk.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/derive/psi.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/derive/usa.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/data/abundance_human.parquet +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/data/abundance_mouse.parquet +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/data/cell_cycle.json +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/data/hallmark.json +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/genesets.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/io.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/output.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/pipeline.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/rank.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/features/registry.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/fetch.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/find.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/_coreutil.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/abundance/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/abundance/milo.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/ase/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/ase/daesc.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/atac/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/atac/chromvar.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/cna/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/cna/numbat.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/comm/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/comm/cellchat.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/de/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/de/pseudobulk.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/disease/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/disease/scdrs.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/enrichment/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/enrichment/aucell.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/enrichment/gsea.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/enrichment/progeny.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/enrichment/score_genes.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/enrichment/ssgsea.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/eqtl/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/eqtl/nebula.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/fate/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/fate/cellrank2.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/fate/cospar.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/fate/palantir.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/generative/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/generative/discrete_diffusion.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/grn/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/grn/granie.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/integrate/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/integrate/bbknn.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/integrate/harmony.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/io/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/io/donor.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/io/loader.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/lineage/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/lineage/mt.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/network/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/network/hdwgcna.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/perturbation/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/perturbation/perturb_graph.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/preprocess/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/preprocess/hvg.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/preprocess/lognorm.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/preprocess/neighbors.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/preprocess/scale.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/qc/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/qc/doublet_score.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/qc/omnidoublet.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/qc/qc_metrics.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/reduce/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/reduce/_nmf_core.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/reduce/nmf/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/reduce/nmf/csi_gep.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/reduce/svd.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/spatial/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/spatial/cell2fate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/spatial/flash_deconv.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/spatial/stagate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/streaming/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/streaming/pipeline.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/tools/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/tools/leiden.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/tools/markers.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/tools/rank_genes_groups.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/tools/umap.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/variants/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/variants/monopogen.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/velocity/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/velocity/moments.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/velocity/velocity.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/gpu/version.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/io/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/io/convert.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/manifest_gen.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/mcp/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/mcp/__main__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/mcp/server.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/mcp/smoke_test.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/pipeline/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/pipeline/__main__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/pipeline/_binary.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/pipeline/_errors.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/pipeline/_run.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/pp/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/preprocessing/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/preprocessing/_detect.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/preprocessing/_download.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/preprocessing/_export.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/preprocessing/_qc.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/preprocessing/_quantify.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/preprocessing/_species.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/py.typed +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/refbundle/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/refbundle/_features.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/refbundle/_snp.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/atlas.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/builtin_recipes.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/bundle.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/cellcall.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/cells.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/codec.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/container.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/context.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/junctions.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/labels.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/labels_step.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/legacy.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/manifest.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/matrix.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/migrate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/09243cc59ea1b0223dcbf071e1df34e3.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/0bcd2ceb31fc6cad695901e449f667cc.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/15854e80854ce93702dc4c716e6a35c5.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/32bbdc195ae2486a1257e38d3c4c161e.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/5b24205cb61a91db46ebbc980e8ee6bc.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/88579b0570adecbc3f0e8602d65d243f.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/94e3bff7460f96e92311ff009efae582.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/99a51e8db8bc54baede2092c8b828737.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/a34ebca652f38b28f0ab5c0ec2a13249.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/b3961cb6986f392743ea332b879d1d5a.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/b6abb72f333412054fd8d2afa76f35b4.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/b708a9dbd566355a876377babed1a4a1.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/c46618191a313da3983d934abe51e751.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/ce5a05fc3282d0e3c39e0c7109619eb1.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/cef1acaf465ebfc4ff7404f308966e92.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/fd3fcc82842baa3a1d4c8bc6a8f99b90.pack +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs/index.json +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/packs_build.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/policy.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/rcp_adapter.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_cells.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_ctx.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_data/features_order_GRCm39-2024-A.u32.zst +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_extra.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_mtx.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_psi.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_pzw.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_qc.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_star.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_tables.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/recipes_tsv.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/sample.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/transport.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/util.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/s1/verify.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/store/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/store/migrate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/store/packs_build.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/store/verify.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/torch/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/torch/_stream.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/torch/_torch.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/v2/__init__.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/v2/migrate.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/v2/packs_build.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/v2/verify.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet/whitelists.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet.egg-info/dependency_links.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet.egg-info/entry_points.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet.egg-info/requires.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/python/singlet.egg-info/top_level.txt +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/setup.cfg +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/setup.py +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/common/singlet/pz2_client.h +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_abundance.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_ase.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_atac.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_cna.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_comm.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_cupy_ingest.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_disease.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_enrich.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_eqtl.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_fate.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_generative.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_grn.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_kernels.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_loader.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_metadata.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_network.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_nmf_new.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_perturbation.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_preprocess.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_qc_metrics.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_qc_new.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_results.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_score_genes.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_spatial_phaseb.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_bind_variants.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_cupy_interop.hpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_gpu_core.cpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_pz.cpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_pz2.cpp +0 -0
- {singlet-1.2.0 → singlet-1.3.0}/src/bindings/python/_singlepress.cpp +0 -0
|
@@ -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.
|
|
9
|
+
version = "1.3.0"
|
|
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"}
|
|
@@ -67,7 +67,7 @@ Retired (raise NotImplementedError; their hosts were never in service):
|
|
|
67
67
|
base_url, singlet.atlas.*
|
|
68
68
|
"""
|
|
69
69
|
|
|
70
|
-
__version__ = "1.
|
|
70
|
+
__version__ = "1.3.0"
|
|
71
71
|
|
|
72
72
|
from singlet._aggregate import aggregate
|
|
73
73
|
from singlet._ambient_rna_score import ambient_rna_score
|
|
@@ -55,6 +55,7 @@ import numpy as np
|
|
|
55
55
|
|
|
56
56
|
from . import FORMATS, PREFIXES, SAMPLE_SUFFIXES
|
|
57
57
|
from . import labels as L
|
|
58
|
+
from . import sample_facts as SF
|
|
58
59
|
from . import transport as T
|
|
59
60
|
from .transport import NotFound, Transport, TransportError
|
|
60
61
|
|
|
@@ -1630,11 +1631,14 @@ def _study_to_anndata(
|
|
|
1630
1631
|
cell_type_level: int = L.CELL_TYPE_LEVEL,
|
|
1631
1632
|
cell_type_min_score: float = L.CELL_TYPE_MIN_SCORE,
|
|
1632
1633
|
include_unvalidated: bool = False,
|
|
1634
|
+
sample_facts: bool = True,
|
|
1633
1635
|
) -> "anndata.AnnData":
|
|
1634
1636
|
"""AnnData of the called cells; ``obs`` carries the per-cell labels, cell calls and QC columns of the cells table
|
|
1635
1637
|
(:mod:`singlet.s1.labels`: ``cell_type`` at level <= ``cell_type_level`` with path score >= ``cell_type_min_score``;
|
|
1636
|
-
``qc_doublet_score`` only with ``include_unvalidated``), then the GEO sample metadata
|
|
1637
|
-
|
|
1638
|
+
``qc_doublet_score`` only with ``include_unvalidated``), then the GEO sample metadata, then the structured sample facts of
|
|
1639
|
+
:mod:`singlet.s1.sample_facts` (``tissue_type``, ``cell_line``, ``tumor_sample_type``, ``disease``, ``donor_status``, ...; read
|
|
1640
|
+
from the study API, so only for a study read over HTTP and not with ``sample_facts=False`` or ``$SINGLET_OFFLINE``). ``layers``
|
|
1641
|
+
holds ``spliced`` and ``unspliced``; anndata 0.13 and newer also list ``X`` itself under the key ``None``."""
|
|
1638
1642
|
mods = normalize_modalities(modalities, layers=layers)
|
|
1639
1643
|
gsms = _select_samples(study, samples, obs_filter)
|
|
1640
1644
|
if not gsms:
|
|
@@ -1696,6 +1700,7 @@ def _study_to_anndata(
|
|
|
1696
1700
|
|
|
1697
1701
|
perms = [_cell_order(r.cols, r.sel, cell_order) for r in ok]
|
|
1698
1702
|
gsm_meta = study.study_meta.get("gsm_meta", {})
|
|
1703
|
+
facts = SF.study_facts(study) if sample_facts else {}
|
|
1699
1704
|
parts, index = [], []
|
|
1700
1705
|
for r, perm in zip(ok, perms):
|
|
1701
1706
|
n = len(r.sel)
|
|
@@ -1714,6 +1719,8 @@ def _study_to_anndata(
|
|
|
1714
1719
|
)
|
|
1715
1720
|
)
|
|
1716
1721
|
d.update(_geo_obs(info, n))
|
|
1722
|
+
if facts:
|
|
1723
|
+
d.update(SF.facts_obs(facts.get(r.gsm), n))
|
|
1717
1724
|
parts.append(d)
|
|
1718
1725
|
index.extend(f"{r.gsm}_{b}" for b in bc)
|
|
1719
1726
|
import pandas as pd
|
|
@@ -1824,6 +1831,7 @@ def _study_cells(
|
|
|
1824
1831
|
cell_type_level: int = L.CELL_TYPE_LEVEL,
|
|
1825
1832
|
cell_type_min_score: float = L.CELL_TYPE_MIN_SCORE,
|
|
1826
1833
|
include_unvalidated: bool = False,
|
|
1834
|
+
sample_facts: bool = True,
|
|
1827
1835
|
) -> "anndata.AnnData":
|
|
1828
1836
|
"""Cell-level slice: the cells of ``samples`` that satisfy ``where`` (evaluated on the cells table), as a cells x genes AnnData.
|
|
1829
1837
|
|
|
@@ -1835,7 +1843,8 @@ def _study_cells(
|
|
|
1835
1843
|
``modalities`` picks the matrices (default ``counts``, plus the spliced/unspliced layers with ``layers=True``); only the chunk
|
|
1836
1844
|
runs of those members are fetched. ``obs`` has ``gsm_id``, ``column`` (the cell's column in the sample object) and the
|
|
1837
1845
|
per-cell columns (``columns=`` keeps only those; ``qc_doublet_score``, unvalidated, only with ``include_unvalidated`` or when
|
|
1838
|
-
named in ``columns``)
|
|
1846
|
+
named in ``columns``), then the structured sample facts (``tissue_type``, ``cell_line``, ``disease``, ...; see
|
|
1847
|
+
:mod:`singlet.s1.sample_facts`; ``sample_facts=False`` leaves them out)."""
|
|
1839
1848
|
import anndata as ad
|
|
1840
1849
|
import pandas as pd
|
|
1841
1850
|
|
|
@@ -1892,6 +1901,7 @@ def _study_cells(
|
|
|
1892
1901
|
index=pd.Index(var_ids.astype(object), name="gene_id"),
|
|
1893
1902
|
),
|
|
1894
1903
|
)
|
|
1904
|
+
facts = SF.study_facts(study) if sample_facts else {}
|
|
1895
1905
|
parts, index = [], []
|
|
1896
1906
|
for r in ok:
|
|
1897
1907
|
n = len(r.sel)
|
|
@@ -1910,6 +1920,8 @@ def _study_cells(
|
|
|
1910
1920
|
**lab,
|
|
1911
1921
|
)
|
|
1912
1922
|
)
|
|
1923
|
+
if facts:
|
|
1924
|
+
d.update(SF.facts_obs(facts.get(r.gsm), n))
|
|
1913
1925
|
parts.append(d)
|
|
1914
1926
|
index.extend(f"{r.gsm}_{b}" for b in bc)
|
|
1915
1927
|
obs = L.to_frame(parts, index=pd.Index(index, dtype=object))
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"""Structured per-sample facts from the singlet.bio study API, as obs columns.
|
|
2
|
+
|
|
3
|
+
``GET {API_BASE}/gse/<GSE>`` returns, for every sample, ``facts`` taken from the sample's own GEO record (never inferred):
|
|
4
|
+
|
|
5
|
+
* ``tissue_type``: CELLxGENE schema ``tissue_type`` (``tissue``, ``organoid``, ``primary cell culture``, ``cell line``);
|
|
6
|
+
* ``cell_line``: Cellosaurus lines, ``[{"id": "CVCL_0004", "name": "K-562"}]``;
|
|
7
|
+
* ``tumor_sample_type``: GDC/TCGA-style ``tumor``, ``primary tumor``, ``metastatic``, ``recurrent tumor``, ``adjacent normal``;
|
|
8
|
+
* ``disease``: MONDO terms, or PATO:0000461 ``normal`` for healthy donors, ``[{"id": ..., "label": ...}]``;
|
|
9
|
+
* ``donor_status`` (``healthy`` / ``diseased``) and ``sample_kind`` (``primary``, ``cell_line``, ``stem_cell``, ``organoid``,
|
|
10
|
+
``xenograft``).
|
|
11
|
+
|
|
12
|
+
:func:`facts_obs` turns one sample's facts into the columns of :data:`FACT_OBS_COLUMNS`, repeated on each of its cells. A field
|
|
13
|
+
the record does not state is missing (NaN in the categorical), not an empty string. Several lines or diseases are joined with
|
|
14
|
+
``"; "``, ids in the same order as the names. The facts are fetched once per study and process; with ``$SINGLET_OFFLINE`` set,
|
|
15
|
+
for a study read from a local directory, or when the API cannot be reached, there are no facts and no columns are added.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
import json
|
|
21
|
+
import threading
|
|
22
|
+
from typing import Dict, Optional
|
|
23
|
+
|
|
24
|
+
import numpy as np
|
|
25
|
+
|
|
26
|
+
#: obs columns built from the facts, in order (ontology pairs follow the CELLxGENE naming)
|
|
27
|
+
FACT_OBS_COLUMNS = (
|
|
28
|
+
"tissue_type",
|
|
29
|
+
"cell_line",
|
|
30
|
+
"cell_line_cellosaurus_id",
|
|
31
|
+
"tumor_sample_type",
|
|
32
|
+
"disease",
|
|
33
|
+
"disease_ontology_term_id",
|
|
34
|
+
"donor_status",
|
|
35
|
+
"sample_kind",
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
_SCALARS = ("tissue_type", "tumor_sample_type", "donor_status", "sample_kind")
|
|
39
|
+
_memo: Dict[str, Dict[str, dict]] = {}
|
|
40
|
+
_lock = threading.Lock()
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _join(items, key: str) -> Optional[str]:
|
|
44
|
+
vals = [str(x.get(key) or "") for x in items if isinstance(x, dict)]
|
|
45
|
+
vals = [v for v in vals if v]
|
|
46
|
+
return "; ".join(vals) if vals else None
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def flatten(facts: Optional[dict]) -> Dict[str, Optional[str]]:
|
|
50
|
+
"""One sample's ``facts`` object -> {column: value or None} for :data:`FACT_OBS_COLUMNS`."""
|
|
51
|
+
f = facts if isinstance(facts, dict) else {}
|
|
52
|
+
out: Dict[str, Optional[str]] = {c: None for c in FACT_OBS_COLUMNS}
|
|
53
|
+
for k in _SCALARS:
|
|
54
|
+
v = f.get(k)
|
|
55
|
+
out[k] = str(v) if v not in (None, "") else None
|
|
56
|
+
lines = f.get("cell_line") if isinstance(f.get("cell_line"), list) else []
|
|
57
|
+
out["cell_line"] = _join(lines, "name") or _join(lines, "id")
|
|
58
|
+
out["cell_line_cellosaurus_id"] = _join(lines, "id")
|
|
59
|
+
dis = f.get("disease") if isinstance(f.get("disease"), list) else []
|
|
60
|
+
out["disease"] = _join(dis, "label") or _join(dis, "id")
|
|
61
|
+
out["disease_ontology_term_id"] = _join(dis, "id")
|
|
62
|
+
return out
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def parse_study_payload(payload) -> Dict[str, dict]:
|
|
66
|
+
"""``/api/gse/<GSE>`` JSON -> {GSM: facts} for the samples that carry any."""
|
|
67
|
+
out: Dict[str, dict] = {}
|
|
68
|
+
if not isinstance(payload, dict):
|
|
69
|
+
return out
|
|
70
|
+
for s in payload.get("samples") or []:
|
|
71
|
+
if (
|
|
72
|
+
isinstance(s, dict)
|
|
73
|
+
and s.get("gsm_id")
|
|
74
|
+
and isinstance(s.get("facts"), dict)
|
|
75
|
+
and s["facts"]
|
|
76
|
+
):
|
|
77
|
+
out[str(s["gsm_id"]).upper()] = s["facts"]
|
|
78
|
+
return out
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def fetch_sample_facts(gse: str, *, timeout: float = 15.0) -> Dict[str, dict]:
|
|
82
|
+
"""{GSM: facts} for a study from the live API, memoised per process; {} when offline or unreachable (never raises)."""
|
|
83
|
+
import urllib.error
|
|
84
|
+
import urllib.parse
|
|
85
|
+
import urllib.request
|
|
86
|
+
|
|
87
|
+
from singlet.find import _api_base, _offline, _request_headers
|
|
88
|
+
|
|
89
|
+
gse = str(gse).strip().upper()
|
|
90
|
+
with _lock:
|
|
91
|
+
if gse in _memo:
|
|
92
|
+
return _memo[gse]
|
|
93
|
+
if _offline():
|
|
94
|
+
return {}
|
|
95
|
+
url = f"{_api_base()}/gse/{urllib.parse.quote(gse)}"
|
|
96
|
+
try:
|
|
97
|
+
req = urllib.request.Request(url, headers=_request_headers())
|
|
98
|
+
with urllib.request.urlopen(req, timeout=timeout) as resp:
|
|
99
|
+
facts = parse_study_payload(json.load(resp))
|
|
100
|
+
except (urllib.error.URLError, OSError, ValueError):
|
|
101
|
+
return {} # not memoised: a later call may reach the API
|
|
102
|
+
with _lock:
|
|
103
|
+
_memo[gse] = facts
|
|
104
|
+
return facts
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def clear_memo() -> None:
|
|
108
|
+
"""Forget the facts fetched so far (tests, or to pick up a catalog update in a long session)."""
|
|
109
|
+
with _lock:
|
|
110
|
+
_memo.clear()
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def study_facts(study) -> Dict[str, dict]:
|
|
114
|
+
"""The facts for a :class:`~singlet.s1.client.Study`, fetched only when it is read over HTTP(S) from a non-loopback host (a
|
|
115
|
+
local directory or a local test server has no study API behind it)."""
|
|
116
|
+
from urllib.parse import urlparse
|
|
117
|
+
|
|
118
|
+
base = str(getattr(getattr(study, "transport", None), "base", "") or "")
|
|
119
|
+
if not base.startswith(("http://", "https://")):
|
|
120
|
+
return {}
|
|
121
|
+
host = (urlparse(base).hostname or "").lower()
|
|
122
|
+
if host in ("localhost", "::1") or host.startswith("127."):
|
|
123
|
+
return {}
|
|
124
|
+
return fetch_sample_facts(study.gse)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def facts_obs(facts: Optional[dict], n: int) -> Dict[str, np.ndarray]:
|
|
128
|
+
"""The fact columns for ``n`` cells of one sample (object arrays; None is missing)."""
|
|
129
|
+
flat = flatten(facts)
|
|
130
|
+
return {c: np.full(n, flat[c], dtype=object) for c in FACT_OBS_COLUMNS}
|
|
@@ -340,6 +340,7 @@ python/singlet/s1/recipes_star.py
|
|
|
340
340
|
python/singlet/s1/recipes_tables.py
|
|
341
341
|
python/singlet/s1/recipes_tsv.py
|
|
342
342
|
python/singlet/s1/sample.py
|
|
343
|
+
python/singlet/s1/sample_facts.py
|
|
343
344
|
python/singlet/s1/transport.py
|
|
344
345
|
python/singlet/s1/util.py
|
|
345
346
|
python/singlet/s1/verify.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|