Open Chris-Wills opened 15 hours ago
There may be some issue with the weights. Can you try with ncore = 1
, and send us the error messages?
output on 1 core:
2024-10-11 15:10:41.534125 INFO::Load weight: /scratch/c.c1214964/cell_specific_TWAS/data/DB_files/Astrocytes.weights_main.db
2024-10-11 15:10:41.535846 INFO::weight_name: Astrocytes_expression
2024-10-11 15:10:41.536955 INFO::type: expression
2024-10-11 15:10:41.537959 INFO::context: Astrocytes
2024-10-11 15:10:41.53914 INFO::Load PredictDB weights
2024-10-11 15:10:46.857979 INFO::Number of molecular traits in weights: 11041
2024-10-11 15:10:46.859248 INFO::No 'protein_coding' in 'extra_table$gene_type'. Skipped filtering protein coding genes.
2024-10-11 15:10:46.860123 INFO::Load PredictDB LD
2024-10-11 15:41:30.813686 INFO::Remove 7 molecular traits without predictdb LD
2024-10-11 15:41:31.265229 INFO::Number of molecular traits in weights: 11034
2024-10-11 15:41:31.556502 INFO::Number of variants in weights: 1949168
2024-10-11 15:41:34.617714 INFO::10986 molecular traits and 1585419 variants left after filtering by GWAS and the reference.
2024-10-11 15:41:35.861548 INFO::Harmonizing and processing weights ...
Error in `[<-`(`*tmp*`, i, j, value = 1) : subscript out of bounds
Thanks! Sorry, the message is not very informative. If convenient, would you mind sharing your input to this function? You can put the weight file, region_info, z_snp$id, and snp_map in a zip file on Dropbox, Google Drive, etc. and share the link. (you can skip the snp_map if you use the snp_map we provided). I could help check it.
Hi, im receiving this error when following the new cTWAS version tutorials and i'm not sure where to begin solving it:
Thanks