API Reference¶
This section documents the Malva Python API and the full algorithmic framework underlying index construction and querying. The algorithmic documentation is intended to enable re-implementation and reproducibility; the Python API exposes the components available via the open-source distribution.
Algorithmic Framework¶
The indexing and query algorithms are fully documented below, including data structures, pseudocode, and default parameters.
Python Modules¶
The following modules are available in the open-source Python distribution:
- malva.indexes module
BackgroundModelMalvaIndexMalvaIndex.index_dirMalvaIndex.kmer_sizeMalvaIndex.verboseMalvaIndex.n_chunksMalvaIndex.add_reads()MalvaIndex.close()MalvaIndex.coord_limsMalvaIndex.data_lengthsMalvaIndex.get_cell_id()MalvaIndex.get_project_id()MalvaIndex.get_whole_sliding_sequence()MalvaIndex.get_whole_sliding_sequence_chunk()MalvaIndex.indexMalvaIndex.index_dirMalvaIndex.index_exists()MalvaIndex.index_fileMalvaIndex.initialize()MalvaIndex.initialize_kmer_index()MalvaIndex.jump_amountMalvaIndex.kmer_sizeMalvaIndex.load_index_to_memory()MalvaIndex.merge_chunks()MalvaIndex.n_chunksMalvaIndex.n_spatialMalvaIndex.open()MalvaIndex.project_mappingMalvaIndex.set_background_model()MalvaIndex.set_barcode_index()MalvaIndex.set_spatial_coords()MalvaIndex.set_spatial_index()MalvaIndex.spatial_coordMalvaIndex.verboseMalvaIndex.where()MalvaIndex.write()
SpatialIndexcreate_singlecell_index()create_spatial_index()
- malva.fastq_processing module
- malva.dbutils module
- malva.spacemake module
- malva.utils module
FormatErrorcheck_cell_string()conditional_track()safety_check_eval()get_module_path()save_pickle()load_pickle()check_file_exists()check_directory_exists()check_adata_structure()load_properties_from_adata()check_obs_unique()copytree2()get_package_path()get_absolute_package_path()h5_to_dict()write_key_to_h5()binary_search()group_intervals()defragment_hdf5_file()download_url_to_file()get_reference_cache()convert_to_bytes()