Skip to content

Having issues with combine_vcf.py #5

@ilariastewart

Description

@ilariastewart

Hi there,
I ran the newest vamos on my cohort and trying to merge the vcf files. I am running into issues with the combine_vcf.py script. I had to make a change to the script to initialize the sample variable and now am getting issues with the readOneVCF function:

python3 combine_vcf.py -i vamos_calls.csv -o vamos_merged_output.vcf
2023-12-11 10:45:34 - INFO - Parsing Input Arguements...
2023-12-11 10:45:34 - INFO - Required Argument - inVCFs: vamos_calls.csv
2023-12-11 10:45:34 - INFO - Required Argument - outVCF: vamos_merged_output.vcf
2023-12-11 10:45:34 - INFO - Parsing Input Arguements Completed

Traceback (most recent call last):
  File "/mnt/scratch/ilaria/VNTR/vamos_sherlock/ADRC_vamos/combine_vcf.py", line 197, in <module>
    samplesAll, header, vcfDict = readAllVCF(inVCFs)
                                  ^^^^^^^^^^^^^^^^^^
  File "/mnt/scratch/ilaria/VNTR/vamos_sherlock/ADRC_vamos/combine_vcf.py", line 160, in readAllVCF
    readOneVCF(vcfs[0],vcfDict)
  File "/mnt/scratch/ilaria/VNTR/vamos_sherlock/ADRC_vamos/combine_vcf.py", line 90, in readOneVCF
    coor, constant, altannoH1, altannoH2 = readOneVCFLine(line,vcfDict)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/scratch/ilaria/VNTR/vamos_sherlock/ADRC_vamos/combine_vcf.py", line 61, in readOneVCFLine
    chr,pos,id,ref,alt,qual,filter,info,_,_ = line.strip().split('\t')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 10, got 3)

Thank you for any insights you can provide!

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