8000 IndexError: arrays used as indices must be of integer (or boolean) type · Issue #28 · kr-colab/locator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
IndexError: arrays used as indices must be of integer (or boolean) type #28
Open
@nafusco22

Description

@nafusco22

Hello,

I am trying to run locator on a .vcf file. I keep running into the error below. I have tried adjusting the chromosome codes in the VCF to be numeric only to solve this problem. No matter what I change I keep getting this error. I am not sure if this has to do with the format of my files or the installation of the program.

I am attempting to run this line:

python locator.py --vcf 403_VCF_locator_4.vcf.gz --sample_data Locator_XY.txt --out Locator_403

And get this error:
WARNING:tensorflow:period argument is deprecated. Please use save_freq to specify the frequency in number of batches seen.
Traceback (most recent call last):
File "/gpfs/ycga/home/naf35/install/locator/scripts/locator.py", line 381, in
train,test,traingen,testgen,trainlocs,testlocs,pred,predgen=split_train_test(ac,locs)
File "/gpfs/ycga/home/naf35/install/locator/scripts/locator.py", line 219, in split_train_test
predgen=np.transpose(ac[:,pred])
IndexError: arrays used as indices must be of integer (or boolean) type

The files I used are attached. Your assistance is much appreciated.
403_VCF_locator_6.vcf.gz
Locator_XY.txt
e

-Nicole Fusco

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

      0