-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: cannot unpack non-iterable NoneType object #76
Comments
Hi, Thanks for sharing your experience and issue. First, I think you made a good trial in the de novo mode, though the results indeed sound not satisfying. It seems more likely that the model doesn't converge well. You may check what candidate SNPs list you used for running cellsnp-lite. Is it the 1000 Genome common SNP list? If it's your own ones, what's the number of the SNPs? If it's more than 1 million, it should be OK. Also, you may check the coverage of your cells; usually, ~500,000 reads/cell should be sufficient. Second, when using the donor VCF in your latter trial, you may double check you have the Yuanhua |
Hello! Thanks for answering so quickly. I used the 1000 Genome common SNP list for cellsnp-lite, as suggested. The coverage of my cells is a bit lower, maybe that is a problem for the model. Anyway, in the donor VCF file the PL tag is present, so it should work in principle, right? |
Hi, You may also try to only keep SNPs in your donor VCF file, e.g., by the following command: bcftools view -i 'TYPE="snp"' |
Hello! First of all, thanks for your help. I have been manually analizing the VCF to see if something was wrong with it, and I did find some multiallellic sites. But after filtering them out and using the TYPE=snp filter beforehand I still get the same error. The format of my VCF file is as follows: I show it here in case it is useful, as I don't seem to find the problem, and can't understant why it is not working. Thank you very much! |
Thanks for the updates. Not fully sure about the reason for this issue. Possibly you can upgrade it to v0.5.8 and see if it helps. pip install -U git+https://github.com/single-cell-genetics/vireo |
Well, I already had tried updating to version 0.5.8. I really don't understand what is wrong. Thank you for your help. |
Hello! First of all, thank you for the package!
I am trying to automatically demultiplex blood cells coming from a patient with a bone marrow alotransplantation. I know that about 10% of the cells I have come from the patient, where the rest should be from the donor. I don't think vireo was developed for this, but in theory it should work.
I tried to run it without VCF from donor or patient, and it left 1/3 of the cells unassigned, a lot of doublets and the rest of the cells were assigned 50% to the patient and 50% to the donor. Since this results do not make much sense to me I got hands on a VCF from the patient before translpantation, thinking it could aid in separating the cells.
This is the script I ran (vireo_demultiplex.sh):
`
#!/bin/bash
CELL_DATA=/home/joan/OneDrive/Projectes/SC-TCR-Batlle/Resultats/cellsnp-lite/VCF
CELL_DATA_VCF=/home/joan/OneDrive/Projectes/SC-TCR-Batlle/Resultats/cellsnp-lite/VCF/cellSNP.cells.vcf.gz
POSITIONS=/home/joan/OneDrive/Projectes/SC-TCR-Batlle/Resultats/cellsnp-lite/VCF/cellSNP.base.vcf.gz
OUT_DIR=/home/joan/OneDrive/Projectes/SC-TCR-Batlle/Resultats/vireo/vireo_results_mtx_last
DONOR_GT=/home/joan/OneDrive/Projectes/SC-TCR-Batlle/Dades/VCF_pacient/S13.vcf.gz
n_donor=2
RAND_SEED=2
NPROC=10
#Compress the VCF file again
bcftools view $DONOR_GT -Oz -o donor_file.vcf.gz
bcftools index donor_file.vcf.gz
#Filtering
bcftools view donor_file.vcf.gz -R $CELL_DATA_VCF -Oz -o donor_filtrat.vcf.gz
#Running vireo
vireo -c $CELL_DATA -d donor_filtrat.vcf.gz -N $n_donor -o $OUT_DIR -p $NPROC --randSeed=$RAND_SEED`
I thought this should work, but I get a Python error, and I do not know the reason for it:
./vireo_demultiplex.sh [vireo] Loading cell folder ... [vireo] Loading donor VCF file ... Traceback (most recent call last): File "/home/joan/miniconda3/envs/sclast2/bin/vireo", line 8, in <module> sys.exit(main()) File "/home/joan/miniconda3/envs/sclast2/lib/python3.9/site-packages/vireoSNP/vireo.py", line 153, in main donor_vcf = load_VCF(options.donor_file, biallelic_only=True, File "/home/joan/miniconda3/envs/sclast2/lib/python3.9/site-packages/vireoSNP/utils/vcf_utils.py", line 157, in load_VCF RV["GenoINFO"], RV["n_SNP_tagged"] = parse_sample_info( TypeError: cannot unpack non-iterable NoneType object
Do you have any ideas on what could be the problem?
Thank you very much in advance!
The text was updated successfully, but these errors were encountered: