I'm trying to convert ped/map to bed and ran into the same error. I generated my ped/map files using vcftools. My original vcf looks like this:
##fileformat=VCFv4.1
##fileDate=20150624
##source=pyRAD.v.3.0.5
##reference=common_allele_at_each_locus
##INFO=<ID=NS,Number=1,Type=Integer,Description="Number of Samples With Data">
##INFO=<ID=DP,Number=1,Type=Integer,Description="Total Depth">
##INFO=<ID=AF,Number=A,Type=Float,Description="Allele Frequency">
##INFO=<ID=AA,Number=1,Type=String,Description="Ancestral Allele">
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality">
##FORMAT=<ID=DP,Number=1,Type=Integer,Description="Read Depth">
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT 10056 20978 20979 20980
1 91 . G A 20 PASS NS=49;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
2 24 . G T 20 PASS NS=56;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
2 35 . G T 20 PASS NS=56;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
2 50 . A G 20 PASS NS=56;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
2 66 . G A,T 20 PASS NS=56;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
3 48 . T A 20 PASS NS=57;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
3 70 . A G 20 PASS NS=57;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
4 3 . C T 20 PASS NS=58;DP=5 GT 1|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
4 27 . A C 20 PASS NS=58;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
4 81 . T C 20 PASS NS=58;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
5 16 . A G 20 PASS NS=58;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
5 17 . G C 20 PASS NS=58;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
5 90 . C T 20 PASS NS=58;DP=5 GT 0|0 ./. ./. ./. ./. ./. ./. ./. ./. ./. ./.
6 52 . A G 20 PASS NS=90;DP=5 GT 0|0 1|1 1|1 1|1 1|1 1|1 1|1 1|1 1|1 1|1 1|1
6 72 . T C 20 PASS NS=90;DP=5 GT 0|0 1|1 1|1 1|1 1|1 1|1 1|1 1|1 1|1 1|1 1|1
6 88 . T C 20 PASS NS=90;DP=5 GT 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0
6 91 . A G 20 PASS NS=90;DP=5 GT 0|0 1|1 1|1 1|1 1|1 1|1 1|1 1|1 1|1 1|1 1|1
7 6 . C T 20 PASS NS=90;DP=5 GT 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0
...
...
..
After conversion with vcf tools i get a ped file that looks like this (first two columns are sample IDs)
10056 10056 0 0 0 0 G G G G G G A A
20978 20978 0 0 0 0 0 0 0 0 0 0 0 0
20979 20979 0 0 0 0 0 0 0 0 0 0 0 0
20980 20980 0 0 0 0 0 0 0 0 0 0 0 0
20981 20981 0 0 0 0 0 0 0 0 0 0 0 0
20982 20982 0 0 0 0 0 0 0 0 0 0 0 0
20983 20983 0 0 0 0 0 0 0 0 0 0 0 0
20984 20984 0 0 0 0 0 0 0 0 0 0 0 0
20985 20985 0 0 0 0 0 0 0 0 0 0 0 0
20986 20986 0 0 0 0 0 0 0 0 0 0 0 0
20987 20987 0 0 0 0 0 0 0 0 0 0 0 0
20988 20988 0 0 0 0 G G G G G G A A
20989 20989 0 0 0 0 G G G G G G A A
20990 20990 0 0 0 0 0 0 G G G G A A
21008 21008 0 0 0 0 0 0 0 0 0 0 0 0
21009 21009 0 0 0 0 0 0 0 0 0 0 0 0
21010 21010 0 0 0 0 G G G G G G A A
21011 21011 0 0 0 0 0 0 G G G G A A
21012 21012 0 0 0 0 G G G G G G A A
I ran into the same error when it reaches the map file with a chromosome number 27. I am using the latest build (1.9) and tried using the flag --aec or --aec 0. I always get the same error. I'm wondering this is a problem with my ped/map file. The vcf file are from anonymous SNP data so there are no chromosome information. I assume the #CHROM refers to the SNP loci. I executed plink using: