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

SyntaxError #37

Open
seyoun209 opened this issue Oct 16, 2024 · 3 comments
Open

SyntaxError #37

seyoun209 opened this issue Oct 16, 2024 · 3 comments

Comments

@seyoun209
Copy link

Dear Marc Jan Bonder,

I am sharing what I have noticed to see if other people had the same error.
I have noticed syntax errors in both [run_QTL_analysis.py] and the [run_interaction_QTL_analysis.py].

The error was below in my log file:
 File "Limix_QTL/run_QTL_analysis.py", line 161
    print("Feature: "+feature_id+" not tested not enough samples do QTL test (n="+str(sum(~np.isnan(phenotype_df.loc[feature_id,:])))+").")")

                     ^
SyntaxError: EOL while scanning string literal

And I have modified the code to be below:
print("Feature: "+feature_id+" not tested not enough samples do QTL test (n="+str(sum(~np.isnan(phenotype_df.loc[feature_id,:])))+")")

Another error I have noticed is that while I was running the run_interaction_QTL_analysis.py
The error was below
UnboundLocalError: local variable 'u_snp_matrix' referenced before assignment

And I have included this before line 618 of the qtl_utilities.py

 if not isinstance(snp_matrix_DF, pd.DataFrame):
snp_matrix_DF = pd.DataFrame(snp_matrix_DF)

It seems to be running and providing results :) Let me know if this works too 👍

@Bonder-MJ
Copy link
Contributor

Bonder-MJ commented Oct 16, 2024 via email

@seyoun209
Copy link
Author

Thank you very much for telling me about memory use. I noticed that 1000 permutations took a long time. I still couldn't figure out the option for the -blocksize, so I broke down to make my own -feature_filename and made my block(?) (ex, ten genes at a time) run simultaneously. Would it be great to know memory usage, etc updates :)

@Bonder-MJ
Copy link
Contributor

Bonder-MJ commented Oct 16, 2024 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