Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: startproc must be called before process #35

Open
olivierlabayle opened this issue Mar 17, 2025 · 1 comment · May be fixed by #36
Open

ERROR: startproc must be called before process #35

olivierlabayle opened this issue Mar 17, 2025 · 1 comment · May be fixed by #36

Comments

@olivierlabayle
Copy link

Hi ,

I think some dependency needs to be updated (CodecZlib?) as I am having the following error:

using BGEN
b = Bgen(BGEN.datadir("example.8bits.bgen"))
v = variant_by_rsid(b, "RSID_10")
minor_allele_dosage!(b, v)

stacktrace:

ERROR: startproc must be called before process
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] process(codec::CodecZlib.ZlibDecompressor, input::TranscodingStreams.Memory, output::TranscodingStreams.Memory, error_ref::TranscodingStreams.Error)
   @ CodecZlib ~/.julia/packages/CodecZlib/lEc2s/src/decompression.jl:186
 [3] decompress(io::IOStream, v::BGEN.BgenVariant, h::BGEN.Header; decompressed::Nothing)
   @ BGEN ~/.julia/packages/BGEN/VXCjF/src/genotypes.jl:72
 [4] decompress
   @ ~/.julia/packages/BGEN/VXCjF/src/genotypes.jl:42 [inlined]
 [5] first_allele_dosage!(b::Bgen, v::BGEN.BgenVariant; T::Type, mean_impute::Bool, clear_decompressed::Bool, data::Nothing, decompressed::Nothing, is_decompressed::Bool)
   @ BGEN ~/.julia/packages/BGEN/VXCjF/src/genotypes.jl:571
 [6] first_allele_dosage!
   @ ~/.julia/packages/BGEN/VXCjF/src/genotypes.jl:549 [inlined]
 [7] minor_allele_dosage!(b::Bgen, v::BGEN.BgenVariant; T::Type, mean_impute::Bool, clear_decompressed::Bool, data::Nothing, decompressed::Nothing, is_decompressed::Bool)
   @ BGEN ~/.julia/packages/BGEN/VXCjF/src/genotypes.jl:678
 [8] minor_allele_dosage!(b::Bgen, v::BGEN.BgenVariant)
   @ BGEN ~/.julia/packages/BGEN/VXCjF/src/genotypes.jl:660
 [9] top-level scope
   @ REPL[9]:1
@olivierlabayle
Copy link
Author

Probably linked to: #34

@kose-y kose-y linked a pull request Mar 19, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant