wanglabcumc / CAMEOS

Code associated with CAMEOS project.
MIT License
6 stars 4 forks source link

julia v1.4.1 breaks script? #3

Open peej03 opened 2 years ago

peej03 commented 2 years ago

Hi, Just trying to run the example on Ubuntu 20.10 Julia Version 1.4.1 Installed julia packages

This is what I get when I run the example:

~/CAMEOS-master/main$ julia main.jl example.txt

┌ Warning: `@add_arg_table` is deprecated, use `@add_arg_table!` instead
└ @ ArgParse :-1
The random barcode on this run is: EXkVziIh
CAMEOS tensor built
Evaluating HMM seeds
Error encountered while load FileIO.File{FileIO.DataFormat{:JLD},String}("jlds/infA.jld").

When I modify the one instance of '@add_arg_table' to '@add_arg_table!' in the main.jl file (renaming to main2.jl), I get this.

~/CAMEOS-master/main$ julia main2.jl example.txt

The random barcode on this run is: HXRNIMN9
CAMEOS tensor built
Evaluating HMM seeds
Error encountered while load FileIO.File{FileIO.DataFormat{:JLD},String}("jlds/infA.jld").

Fatal error:

Any ideas what is going wrong for me? Thanks! Paul

tomblaze commented 2 years ago

Hi,

It looks like I lost track of some sort of change to julia command-line arguments. I'll look into updating the code soon. Sorry for the inconvenience.

If you need to run code before I make a change you could probably use an older version of julia (like the LTS v1.0.5).

peej03 commented 2 years ago

Thanks! I tried running with LTS v1.0.5 but got other errors:

ERROR: LoadError: LoadError: ArgumentError: Package StatsBase not found in current path:
- Run `import Pkg; Pkg.add("StatsBase")` to install the StatsBase package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:892
 [2] include(::Module, ::String) at ./Base.jl:377
 [3] include(::String) at /home/pjaschke/CAMEOS-master/main/main2.jl:5
 [4] top-level scope at /home/pjaschke/CAMEOS-master/main/main2.jl:10
 [5] include(::Module, ::String) at ./Base.jl:377
 [6] exec_options(::Base.JLOptions) at ./client.jl:288
 [7] _start() at ./client.jl:484
in expression starting at /home/pjaschke/CAMEOS-master/main/std_setup.jl:9
in expression starting at /home/pjaschke/CAMEOS-master/main/main2.jl:10

I got this error even if I added StatsBase package prior to running the code so not sure what's going on there.

junhaobearxiong commented 2 years ago

I had the same issue as OP. I think it is actually due to the files infA.jld and aroB.jld being corrupted. Regenerating these files by running CCMpred works me for me (took 1-2 hrs on my machine, including recomputing the pseudolikelihood and energy based on the new jld)