Hi! Thank you for this new program! Could you explain me why I get the error "sorry, Dude. Didn't generate enough snps." during preprocessing?
The error occurs using the function sample_ts with the following code: geno_mat, locs = training_generator.sample_ts(trees[i], args.seed). The function runs for about 1h and then generates this error message. Here is the command line I am using below:
python mapnn.py --preprocess --gpu_index any --seed 123 --num_snps 100 --n 49 --map_width 649 --slim_width 649 --sample_grid 1 --tree_list ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/preprocessing_mapNN/sim_mapNN/chr_t_top_100_sim_123_tree_list.txt --target_list ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/preprocessing_mapNN/cookie_mapNN/chr_t_top_100_cookie_list.txt --habitat_map ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/data_mapNN/depth_map_wio_rgb_cropped.png --empirical ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/data_mapNN/Chr_t_unlinked_snp_subset_top_100_loci_dapc_fixed_mapnn --out ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/preprocessing_mapNN/preprocess_mapNN
The trees were generated with 2 SliM iterations (for the test as I have a big region):
defineConstant("W", 649); defineConstant("L", 4); defineConstant("G", 1e8); defineConstant("FECUN", 1/L); defineConstant("maxgens", 2);
Thank you in advance, ER
Hi! Thank you for this new program! Could you explain me why I get the error "sorry, Dude. Didn't generate enough snps." during preprocessing?
The error occurs using the function
sample_tswith the following code:geno_mat, locs = training_generator.sample_ts(trees[i], args.seed). The function runs for about 1h and then generates this error message. Here is the command line I am using below:python mapnn.py --preprocess --gpu_index any --seed 123 --num_snps 100 --n 49 --map_width 649 --slim_width 649 --sample_grid 1 --tree_list ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/preprocessing_mapNN/sim_mapNN/chr_t_top_100_sim_123_tree_list.txt --target_list ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/preprocessing_mapNN/cookie_mapNN/chr_t_top_100_cookie_list.txt --habitat_map ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/data_mapNN/depth_map_wio_rgb_cropped.png --empirical ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/data_mapNN/Chr_t_unlinked_snp_subset_top_100_loci_dapc_fixed_mapnn --out ../ADLIFISH_eruiz/test1_mapNN_chr_t_top_100_snp/preprocessing_mapNN/preprocess_mapNNThe trees were generated with 2 SliM iterations (for the test as I have a big region):
defineConstant("W", 649); defineConstant("L", 4); defineConstant("G", 1e8); defineConstant("FECUN", 1/L); defineConstant("maxgens", 2);Thank you in advance, ER