#!/usr/bin/env python # coding: utf-8 # # Myeloid cell annotations # # In this notebook, we upload cell type annotations assigned by our domain experts. These annotations were generated using markers and by interactive investigation of our .h5ad files. # # As these are derived from our .h5ad files, we'll connect them to the HISE analysis chain by chaching those files and using `hisepy.upload.upload_files()`. # In[1]: import hisepy from datetime import date # For Myeloid cells, this was done in two steps - all Myeloid cells, and a focused, iterative round of clustering to better identify Dendritic cell types. # # Here, we'll combine these steps to build the link in our reproducibility chain. # In[2]: in_files = [ 'c38df326-662d-459b-982d-0186c022f70d', # Myeloid Cell .h5ad '892e4fb0-8dad-4cb6-bcec-8f29b3dcd15e' # Dendritic Cell .h5ad ] hise_res = hisepy.reader.cache_files(in_files) # In[3]: out_files = [ 'annotations/pbmc_ref_myeloid_annotations_2024-02-29.csv', 'annotations/pbmc_ref_myeloid-dcs_annotations_2024-02-29.csv' ] # In[4]: study_space_uuid = '64097865-486d-43b3-8f94-74994e0a72e0' title = 'Myeloid cell annotations {d}'.format(d = date.today()) # In[5]: hisepy.upload.upload_files( files = out_files, study_space_id = study_space_uuid, title = title, input_file_ids = in_files ) # In[6]: import session_info session_info.show() # In[ ]: