-
Notifications
You must be signed in to change notification settings - Fork 15
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
prepare_graph_inputs translation error #10
Comments
Hi @sanjaynagi, did you ever find a solution to this? I'm having the same issue, the grid is empty if translated=True. If I change to translated=False, prepare_graph_inputs runs but I then get an error that the Cholesky factorization is not positive definite:
I've tried messing around with a few things in the code, for me the initial problem seems to be coming in at create_tile_dict, specifically line 38 of utils.py where it checks for intersections between the outer polygon and the grid. When translate=True, there are no intersections so the grid is empty. When translate=False the grid is not empty, and I'm not familiar enough with the methods of spatial graph fitting to understand what might be causing the non-positive definite matrix. |
I didn't unfortunately. I was using my own grid (it needed to be denser, as I'm looking at a small region), and I don't know if that why? were you using your own grid or the one that comes with the software? If i use the original grid, I can get FEEMS to work, but I have to include more samples from a wider region, which is not what I want to do. |
No, I've tried both of the original grids. I wonder if it's a grid size issue since it works for you with the original grid. Would you mind sharing your denser grid, unless it's region-specific? I'm having trouble installing the dgreathgrid package used to make new grids as described in #9 |
theres a link in the first post! :) and the code to generate it is below, you just need the boundary of your area in a geopandas dataframe (gpd_df_outer_boundary). Although I cant fully promise its correct.
|
Thanks! I've requested access. I'm making some progress leaving the outer boundary out altogether: |
ooops didnt realise it needed access approval. Yeah, I agree, I have both a lot of samples and SNPs, but I think the reason I get it is because my small region is too genetically uniform for it to find any signal. |
Dear FEEMS authors,
Thank you for your software. I am having trouble running the notebook on my own data - encountering the following error when using the prepare_graph_inputs function. I should add the test data works smoothly.
If I turn translation=False, the code runs with no errors, but I later get a CHOLMOD error when fitting the model, in that one my matrices is not positive definite (I don't know if that is related). I'm not clear on what translation=True is actually doing.
links to my own data files -
grid shape file - https://drive.google.com/file/d/1OHcAEPxTPLGRwuuro2vv_AyXJf3PoNB9/view?usp=sharing
outer boundary - https://drive.google.com/file/d/16HMvTlwzT4Ia4AHVhZtNjG0jb431WCey/view?usp=sharing
sample coords - https://drive.google.com/file/d/1XW0baGLR9X-nEBJkWY9VXZozNTZ4MxJB/view?usp=sharing
Your help is much appreciated.
Cheers
Sanjay
The text was updated successfully, but these errors were encountered: