I'm trying to use the nQuire create command to assess the ploidy of an individual. Specifically, I'm trying to include a .bed file along with the .bam file, in order to assess ploidy for different regions of the genome (described here), using the command below:
nQuire create -x -r sample-6099.bed -b sample-6099.bam -o sample-6099
This command consistently throws the error "Could not open bam index"; the command below, however, works:
nQuire create -x -b sample-6099.bam -o sample-6099
Which suggests there's an issue with the .bed file. An example of the .bed file I'm using is shown below:
LG1 16730 16821 390_8_2113_18477_47366 0 -
LG1 33561 33595 390_8_2216_20730_30556 0 +
LG1 54112 54143 259_8_2202_22008_25386 0 -
LG1 79573 79664 259_8_1201_20446_16594 0 +
If anyone is familiar with nQuire and knows how to use it to assess ploidy in different regions, please let me know. Thanks!