xpclr报错AttributeError: 'NoneType' object has no attribute 'keys'


有哪位大佬用过xpclr,我的命令:xpclr --out /hpc/home/t2024096/FST/out --format vcf --input /hpc/home/t2024096/data/cxx.vcf.gz --samplesA /txtlist/nong.txt --samplesB /txtlist/19.txt --size 200000 --step 100000 --chr chr1A
出现以下报错

2025-02-18 17:34:41 : INFO : running xpclr v1.1.2

2025-02-18 17:34:41 : INFO : Loading VCF

/hpc/home/t2024096/.conda/envs/xpclr/lib/python3.9/site-packages/allel/io/vcf_read.py:1042: UserWarning: tabix not found, falling back to scanning to region

  warnings.warn('tabix not found, falling back to scanning to region')

Traceback (most recent call last):

  File "/hpc/home/t2024096/.conda/envs/xpclr/bin/xpclr", line 196, in <module>

    main()

  File "/hpc/home/t2024096/.conda/envs/xpclr/bin/xpclr", line 97, in main

    g1, g2, positions, genetic_dist = xpclr.util.load_vcf_format_data(

  File "/hpc/home/t2024096/.conda/envs/xpclr/lib/python3.9/site-packages/xpclr/util.py", line 133, in load_vcf_format_data

    pos1, geno1 = load_vcf_wrapper(vcf_fn, chrom, samples1, s1)

  File "/hpc/home/t2024096/.conda/envs/xpclr/lib/python3.9/site-packages/xpclr/util.py", line 119, in load_vcf_wrapper

    assert "samples" in callset.keys(), "None of the samples provided in {0!r} are found in {1!r}".format(

AttributeError: 'NoneType' object has no attribute 'keys'


请先 登录 后评论