Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: tuple index out of range #15

Open
mpmorley opened this issue Sep 26, 2018 · 0 comments
Open

IndexError: tuple index out of range #15

mpmorley opened this issue Sep 26, 2018 · 0 comments

Comments

@mpmorley
Copy link

mpmorley commented Sep 26, 2018

Hi

As a background I converted a umich dosage file to to a plink binary using the following cmd.

plink2 --vcf chr1.dose.vcf.gz dosage=HDS --make-bed --out chr1

However markers with the same name and thus position were left in. I did recieve a warning that they were being renamed.

I ran nearly 50% of of the SNPs when this error popped up. Any hints?

Traceback (most recent call last):
  File "/anaconda3/lib/python3.6/site-packages/genetest/analysis.py", line 168, in _gwas_worker
    results = fit(y[not_missing], X[not_missing])
  File "//anaconda3/lib/python3.6/site-packages/genetest/statistics/models/survival.py", line 82, in fit
    fitted = model.fit()
  File "//anaconda3/lib/python3.6/site-packages/statsmodels/duration/hazard_regression.py", line 449, in fit
    fit_rslts = super(PHReg, self).fit(**args)
  File "//anaconda3/lib/python3.6/site-packages/statsmodels/base/model.py", line 466, in fit
    full_output=full_output)
  File "//anaconda3/lib/python3.6/site-packages/statsmodels/base/optimizer.py", line 191, in _fit
    hess=hessian)
  File "//anaconda3/lib/python3.6/site-packages/statsmodels/base/optimizer.py", line 276, in _fit_newton
    H[np.diag_indices(H.shape[0])] += ridge_factor
IndexError: tuple index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant