Whippet.jl icon indicating copy to clipboard operation
Whippet.jl copied to clipboard

Missing dependencies for Julia

Open astrophys opened this issue 1 year ago • 5 comments

Hello,

I installed julia for Red Hat 8.4 Linux. When I tried running Whippet, e.g.

whippet-index.jl --fasta /reference/homo_sapiens/GRCh38/ensembl/release-96/Sequence/WholeGenomeFasta/Homo_sapiens.GRCh38.dna.primary_assembly.fa --gtf /export/apps/opt/Whippet/1.6.1/anno/refseq_hg19.flat.gz

I got multiple errors complaining about missing Julia packages. In ~/.julia/packages I've installed

/home/group/user/.julia/packages:
Automa         BioGenerics   BioSymbols  IntervalTrees  SIMD         TranscodingStreams
BioAlignments  BioSequences  FASTX       ScanByte       StringViews  Twiddle

Now when I run whippet-index.jl --fasta /reference/homo_sapiens/GRCh38/ensembl/release-96/Sequence/WholeGenomeFasta/Homo_sapiens.GRCh38.dna.primary_assembly.fa --gtf /export/apps/opt/Whippet/1.6.1/anno/refseq_hg19.flat.gz, I get

$ whippet-index.jl --fasta /reference/homo_sapiens/GRCh38/ensembl/release-96/Sequence/WholeGenomeFasta/Homo_sapiens.GRCh38.dna.primary_assembly.fa --gtf /export/apps/opt/Whippet/1.6.1/anno/refseq_hg19.flat.gz
Whippet v1.6.1 loading...
  Activating project at `/export/apps/opt/Whippet/1.6.1`
ERROR: LoadError: ArgumentError: Package FASTX does not have StringViews in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
  to ensure all packages in the environment are installed.
- Or, if you have FASTX checked out for development and have
  added StringViews as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with FASTX
Stacktrace:
 [1] macro expansion
   @ ./loading.jl:1167 [inlined]
 [2] macro expansion
   @ ./lock.jl:223 [inlined]
 [3] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1144
 [4] include
   @ ./Base.jl:419 [inlined]
 [5] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
   @ Base ./loading.jl:1554
 [6] top-level scope
   @ stdin:1
in expression starting at /home/group/user/.julia/packages/FASTX/SLQYz/src/FASTX.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile FASTX [c2308a5c-f048-11e8-3e8a-31650f418d12] to /home/group/user/.julia/compiled/v1.8/FASTX/jl_VxqiDM.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /export/apps/opt/Whippet/1.6.1/src/Whippet.jl:3
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile Whippet [0af2a87d-76f3-44e3-af6e-8f91dcdf7847] to /home/group/user/.julia/compiled/v1.8/Whippet/jl_WCiFEP.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base ./loading.jl:1707
 [3] compilecache
   @ ./loading.jl:1651 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1200
 [6] macro expansion
   @ ./loading.jl:1180 [inlined]
 [7] macro expansion
   @ ./lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1144
in expression starting at /export/apps/opt/Whippet/1.6.1/bin/whippet-index.jl:14

I was under the impression that this would work 'out of the box', so I'm confused about where I'm going wrong.

Question :

  1. How do I install all the dependencies for Whippet?

Thanks!

astrophys avatar Nov 02 '22 12:11 astrophys