Replies: 2 comments 2 replies
-
Hi, thank you for the question! That would be interesting, one straight-forward idea I have is to use the classification training pipeline in the annotation tutorial while using the multi-omics data processing and model settings. Please note the current annotation tutorial assumes you have some "reference" data that has been annotated, and will train a classifier on these data and apply it to the actual query data. Is this what you need? |
Beta Was this translation helpful? Give feedback.
-
Hello, Thanks for the tips! Unfortunately I am still unable to complete this task. But I can get to phase 4: "Step 4: Finetune scGPT with task-specific objectives". When I try to do the training it returns an error that I cannot resolve. In summary, I made these changes: 3 -Load the pre-trained scGPT model (Multiomics/Annotation) The error occurs during training: This is the error message: AssertionError Traceback (most recent call last) 4 frames /usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs) /content/scGPT/scgpt/model/multiomic_model.py in forward(self, src, values, src_key_padding_mask, batch_labels, CLS, CCE, MVC, ECS, do_sample, mod_types) /content/scGPT/scgpt/model/multiomic_model.py in _encode(self, src, values, src_key_padding_mask, batch_labels) /content/scGPT/scgpt/model/multiomic_model.py in _check_batch_labels(self, batch_labels) AssertionError: From what I understand, the error indicates that batch_labels is None, but I defined this variable previously since my dataset has two different batches. I'm thinking that the error may be related to a parameter that I may be assigning wrong. Here is Setp1 -Specify hyper-parameter setup for integration task (Multiomics/Annotation): hyperparameter_defaults = dict( the hyper parameters above were taken from the multiomics tutorial and the parameters below were taken from the annotation tutorial: settings for input and preprocessing include_zero_gene = config.include_zero_gene # if True, include zero genes among hvgs in the training input/output representation settings for training explicit_zero_prob = MLM and include_zero_gene # whether explicit bernoulli for zeros per_seq_batch_sample = False settings for optimizer settings for the model logging I changed the CLS parameter to true in hyper_parameters. I don't know if I'm doing something wrong. Thank you in advance for all your help. |
Beta Was this translation helpful? Give feedback.
-
Hello, first I would like to congratulate you on the incredible work!
I'm currently using Multiomic tutorial to try to predict cell types, like the Annotation tutorial.
Does anyone have any ideas on how I can perform this task using multiomics data?
At first I'm trying to "merge" the two available tutorials: Multi_omic Tutorial with the Annotation Tutorial. But I'm having difficulty at some points.
If anyone has a tip on how to carry out this process, I would greatly appreciate it!
Thank you very much in advance!
Beta Was this translation helpful? Give feedback.
All reactions