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

When X.shage[1]>X.shape[0] #1

Open
DorothyWen1 opened this issue Sep 12, 2018 · 3 comments
Open

When X.shage[1]>X.shape[0] #1

DorothyWen1 opened this issue Sep 12, 2018 · 3 comments

Comments

@DorothyWen1
Copy link

Hi there,

I am interested in using your program to analyse my data. However, when I used default setting, I get errors when the number of SNPs within the region is larger than the sample size. I checked regionsRanker.py. It looks to me that the problems are due to the below code. Could you please let me know how to fix this? Thanks.

def eigenDecompose(self, X, K, normalize=True):
if (X.shape[1] >= X.shape[0]):
s,U = la.eigh(K)

Cherry

@omerwe
Copy link
Owner

omerwe commented Sep 12, 2018 via email

@DorothyWen1
Copy link
Author

Hi Omer,

Thanks for the prompt reply. I think I printed out the K before to try to figure out the errors. However, it says the K is empty. By simply looking at the code, it looks like the K is not defined (i.e. s,U = self.eigenDecompose(X[:, np.array(r)], None) in rankRegions). I might be wrong as I don't know python that well. The code I used is : python MKLMM rank_regions.py --bfile_train trainplink --pheno_train phenoplink --out RankRegion. Thanks so much!

Cherry.

@omerwe
Copy link
Owner

omerwe commented Sep 13, 2018 via email

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

2 participants