dekoning-lab / slim-tree

4 stars 1 forks source link

R script crashes when codon_stationary_distribution has only one column #90

Closed jasondk closed 3 months ago

jasondk commented 8 months ago

Duplicating the single column fixed it for me

jasondk commented 8 months ago

In utils/fitness_profile_finder.R, it crashes on:

Error in colSums(freqs[, -ncol(freqs)]) : 'x' must be an array of at least two dimensions

jasondk commented 8 months ago

To reproduce the error: python3 SLiMTree.py -n 100 -v 0.0000025 -b 10 -r 0 -g 1 -k 100 simple-tree.txt codons3.csv -f start.fasta.txt codons3.csv simple-tree.txt start.fasta.txt

ebrintn commented 3 months ago

I think I fixed this with the most recent additions to unit tests