You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a small issue to report, please see the details below:
Background
We're performing pooled single nucleus RNA-seq experiments, and are planning to demultiplex the samples with vireo mode 2 using donor-specific SNPs (obtained with shallow WGS for each donor). For testing purposes, we also sequenced some of the samples as individual snRNA-seq libraries (i.e. no pooling).
As a bioinformatics sanity check, we wanted to try running vireo in mode 2 on one of the unpooled libraries, using a VCF file that has genotypes for multiple donors, while specifying -N 1 in the vireo command. E.g. the library has donor A nuclei only, but the VCF file has genotypes for donors A, B, and C.
We were hoping that vireo would correctly identify that the sample is from donor A, and assign all of the nuclei to donor A (or at least the majority of nuclei assigned to donor A, and maybe a few unassigned). But unfortunately we get some error messages instead.
How to reproduce the error
When we run this command on our data:
It gives the following error message (I've shortened some of the filepaths):
[vireo] Loading cell folder ...
[vireo] Loading donor VCF file ...
[vireo] 158953 out 197549 variants matched to donor VCF
[vireo] Demultiplex 27219 cells to 1 donors with 158953 variants.
[vireo] lower bound ranges [-7665415.0, -7665415.0, -7665415.0]
[vireo] allelic rate mean and concentrations:
[[0.4 0.451 0.534]]
[[1981897.3 5929198.2 4157211.5]]
[vireo] donor size before removing doublets:
donor0
27219
Traceback (most recent call last):
File ".../envs/cellsnp_vireo/bin/vireo", line 8, in <module>
sys.exit(main())
File ".../vireoSNP/vireo.py", line 204, in main
res_vireo = vireo_wrap(cell_dat['AD'], cell_dat['DP'], n_donor=n_donor,
File ".../vireoSNP/utils/vireo_wrap.py", line 152, in vireo_wrap
doublet_prob, ID_prob, doublet_LLR = predict_doublet(modelCA, AD, DP)
File ".../vireoSNP/utils/vireo_doublet.py", line 39, in predict_doublet
GT_both = add_doublet_GT(vobj.GT_prob)
File ".../vireoSNP/utils/vireo_doublet.py", line 118, in add_doublet_GT
s_idx1 = sp_idx[:, 0]
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
As a workaround, I tried running with doublet detection disabled:
Giving -N 1 doesn't make much sense as it would be the same as making no groups. Better use -N 3 (or omit it at all). If you have 1 sample only and you have 3 genotypes in your VCF, vireo should hopefully assign all/most cells to only one of your samples.
Hello vireo developers,
I have a small issue to report, please see the details below:
Background
We're performing pooled single nucleus RNA-seq experiments, and are planning to demultiplex the samples with vireo mode 2 using donor-specific SNPs (obtained with shallow WGS for each donor). For testing purposes, we also sequenced some of the samples as individual snRNA-seq libraries (i.e. no pooling).
As a bioinformatics sanity check, we wanted to try running vireo in mode 2 on one of the unpooled libraries, using a VCF file that has genotypes for multiple donors, while specifying
-N 1
in the vireo command. E.g. the library has donor A nuclei only, but the VCF file has genotypes for donors A, B, and C.We were hoping that vireo would correctly identify that the sample is from donor A, and assign all of the nuclei to donor A (or at least the majority of nuclei assigned to donor A, and maybe a few unassigned). But unfortunately we get some error messages instead.
How to reproduce the error
When we run this command on our data:
It gives the following error message (I've shortened some of the filepaths):
As a workaround, I tried running with doublet detection disabled:
But this results in a new error message:
Expected result
The command runs successfully without errors, and assigns the cells to donor A
Software versions (installed via conda/pip)
Is it possible to do this with vireo? I was hoping you could please advise of a potential solution or a workaround, if any exist?
Thank you very much for the help!
The text was updated successfully, but these errors were encountered: