Skip to content

Cell line transfer #1

@jason-lequyer

Description

@jason-lequyer

Hi, congrats on the fascinating preprint.

I'm attempting to run cell line transfer using the script you provide but am running into dimensionality issues with he Norman data I'm trying to apply it to (see below). I was wondering if you could supply the exact Norman h5ad you used that will be compatible with this, and also if possible the exact Replogle h5ad files needed to run the k562->RPE1 transfer that is done in your preprint.

Thanks a lot!
Jason

Traceback (most recent call last):
File "/home/user/Downloads/MORPH-main/analysis/cell_line_transfer/cell_line_transfer_ctrl_finetune.py", line 197, in
y_hat, x_recon, z_mu, z_logvar = model_ft_ctrl(x, c_1, c_2)
File "/home/user/anaconda3/envs/morph/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/user/Downloads/MORPH-main/morph/model.py", line 154, in forward
mu, var = self.encode(x)
File "/home/user/Downloads/MORPH-main/morph/model.py", line 89, in encode
h = self.leakyrelu(self.fc1(x))
File "/home/user/anaconda3/envs/morph/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/user/anaconda3/envs/morph/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (32x5044 and 5000x512)
Traceback (most recent call last):
File "/home/user/Downloads/MORPH-main/analysis/cell_line_transfer/cell_line_transfer_ctrl_finetune.py", line 197, in
y_hat, x_recon, z_mu, z_logvar = model_ft_ctrl(x, c_1, c_2)
File "/home/user/anaconda3/envs/morph/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/user/Downloads/MORPH-main/morph/model.py", line 154, in forward
mu, var = self.encode(x)
File "/home/user/Downloads/MORPH-main/morph/model.py", line 89, in encode
h = self.leakyrelu(self.fc1(x))
File "/home/user/anaconda3/envs/morph/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/user/anaconda3/envs/morph/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (32x5044 and 5000x512)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions