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

GCAE cannot run 'project' with a phenotype, how to fix? #21

Closed
richelbilderbeek opened this issue Dec 3, 2021 · 1 comment
Closed

Comments

@richelbilderbeek
Copy link
Contributor

Dear GenoCAE maintainers,

Thanks for GenoCAE and its Continuous Integration (GitHub Actions) script!

When I run GenoCAE with the added/experimental phenotype, I can now (thanks to #19) train the neural network. Great!

However, when I want to project the genotypes I get the wrong error messages that are too early.

Training goes great, as confirmed by this example GitHub Actions log:

 python3 run_gcae.py train --datadir example_tiny --data issue_2_bin --model_id M1  --epochs 20 --save_interval 2  --train_opts_id ex3  --data_opts_id b_0_4 --pheno_model_id=p1

The last line of the output is also clear:

Done training. Wrote to /home/runner/work/GenoCAE/GenoCAE/ae_out/ae.M1.ex3.b_0_4.issue_2_bin.p1

Note the .p1 addition to the folder name, which is not there when not working with a phenotype.

When I start using the project option, that I copy from the doc, I get unexpected and/or too early error messages:

When I run on GHA like this:

python3 run_gcae.py project --datadir example_tiny --data issue_2_bin --model_id M1 --train_opts_id ex3 --data_opts_id b_0_4 --superpops example_tiny/HO_superpopulations --pheno_model_id=p1

I get the error:

Invalid command. Run 'python run_gcae.py --help' for more information.

as if the --pheno_model_id=p1 is not supported yet.

Sure, I can delete that flag altogether, but then I get:

FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/GenoCAE/GenoCAE/ae_out/ae.M1.ex3.b_0_4.issue_2_bin/weights'

Note the absence of .p1 in the folder name.

The error I expect would be that the dataset used (issue_2_bin) would not work with the file specified with --superpops example_tiny/HO_superpopulations (although it might work by sheer luck).

How can I use project on a neural net that can also do a phenotype?

@richelbilderbeek
Copy link
Contributor Author

@richelbilderbeek richelbilderbeek changed the title 'project' does not work with a phenotype, how to fix? GCAE cannot run 'project' with a phenotype, how to fix? Dec 8, 2021
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