odelaneau / shapeit4

Segmented HAPlotype Estimation and Imputation Tool
MIT License
90 stars 18 forks source link

ERROR: Parsing line 0 : incorrect number of columns, observed: 1 expected: 3 #50

Closed jessicahr closed 3 years ago

jessicahr commented 3 years ago

I'm trying to run Shapeit4 with some files and I obtain en Error (ERROR: Parsing line 0 : incorrect number of columns, observed: 4 expected: 3). I even tried with the unphased file in /test and I have the same error.

This is how I used it (same with .vcf): shapeit4 --input unphased.bcf --map ../maps/genetic_maps.b37.tar.gz --region 20 --output test-phased.bcf

This is the log, I don't obtain an output file: << SHAPEIT

Files:

Parameters:

Initialization:

ERROR: Parsing line 0 : incorrect number of columns, observed: 4 expected: 3

Does anyone had the same problem?? Thank you so much!

odelaneau commented 3 years ago

Untar genetic_maps.b37.tar.gz first and then specify the file matching your chr with --map.

Cheers,

jessicahr commented 3 years ago

That was the problem! Thank you so much! You can delete this Issue because it's just that I was not using the correct map.

Thanks!