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 running baysor preview - raises MethodError. #138

Open
alipirani88 opened this issue Sep 19, 2024 · 11 comments
Open

Error running baysor preview - raises MethodError. #138

alipirani88 opened this issue Sep 19, 2024 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@alipirani88
Copy link

How do I solve this error? Would appreciate any help solving this issue?

ERROR: MethodError: no method matching tryparse(::Type{Symbol}, ::String)

Closest candidates are:
tryparse(::Type{Union{}}, ::Any...; kwargs...)
@ Base parse.jl:257
tryparse(::Type{FilePathsBase.WindowsPath}, ::AbstractString)
@ FilePathsBase /home/viktor_petukhov/.julia/packages/FilePathsBase/Laclt/src/windows.jl:31
tryparse(::Type{Float16}, ::AbstractString)
@ Base parse.jl:302
...

Stacktrace:
[1] command_main(ARGS::Vector{String})
@ Baysor /home/viktor_petukhov/.julia/packages/Comonicon/F3QqZ/src/codegen/julia.jl:490
[2] command_main
@ /home/viktor_petukhov/.julia/packages/Comonicon/F3QqZ/src/codegen/julia.jl:90 [inlined]
[3] julia_main()
@ Baysor /home/viktor_petukhov/.julia/packages/Comonicon/F3QqZ/src/frontend/cast.jl:481
[4] top-level scope
@ none:1

@alipirani88
Copy link
Author

Hi @VPetukhov ,

Would appreciate any help in resolving this issue.

Thanks,

@VPetukhov
Copy link
Collaborator

Please, provide more information. The OS, the command you ran and full error stacktrace and full log.

@alipirani88
Copy link
Author

I was able to resolve this by downgrading to v0.6.2 and using binaries. It seems the issue is specific to the latest version.

Operating System: Red Hat Enterprise Linux 8.7 (Ootpa)
CPE OS Name: cpe:/o:redhat:enterprise_linux:8::baseos
Kernel: Linux 4.18.0-425.3.1.el8.x86_64
Architecture: x86-64

Commands:

baysor run -x x_location -y y_location -z z_location -g feature_name -m 5 -p -s 5 -o /rsrch5/home/neuro_rsrch/apirani/20240608__175715__Matri_GliomaProTMA_Met_SS_060824/baysor_run/default/ ~/20240608__175715__Matri_GliomaProTMA_Met_SS_060824/X0.0-24000.0_Y0.0-24000.0_filtered_transcripts_changed_cellid.csv

By the way, I am still getting the same error as my earlier post when I try to build it in MacOS. I was not able to build it in either MAC or Linux so had to opt for the binaries.

@alipirani88
Copy link
Author

Also, Preview still doesn;t output transcript plots.

@marzaidi
Copy link

hi, i had the same initial issue as you so i tried out your method with v0.6.2 and it installed successfully. however, every time i run the command, it takes a long time and eventually throws this error:

[11:53:05] Info: Run R61a6fa158
[11:53:06] Info: (2024-09-28) Run Baysor v0.6.2
[11:53:06] Info: Loading data...
[11:53:34] Info: Loaded 11908031 transcripts
[11:53:39] Info: Estimating noise level
[11:59:46] Info: Done
[12:02:51] Info: Clustering molecules...
Progress: 100%|█████████████████████████████████████████████████████████████████| Time: 0:27:00
Iteration: 469
Max. difference: 0.00642
Fraction of probs changed: 0.00171
[12:34:31] Info: Algorithm stopped after 469 iterations. Error: 0.00642. Converged: true.
[12:34:32] Info: Done
[12:34:48] Info: Initializing algorithm. Scale: 5.0, scale std: 1.25, initial #components: 4763212, #molecules: 11908031.
[12:48:07] Info: Using the following additional information about molecules: [:confidence, :cluster]
[12:48:07] Info: Using 3D coordinates
Killedss: 4%|██▍ | ETA: 7 days, 0:08:01

i even attempted to use a tmux session. did you have a similar issue?

@alipirani88
Copy link
Author

alipirani88 commented Oct 1, 2024

@marzaidi I didnt come across this error. However, I ran the job on a high memory node (~350Gb). If you can post the exact error, that might tell us what the actual issue is.

@alipirani88
Copy link
Author

@marzaidi Yes - still not able to use the latest version due to build errors and the binaries dont work out of the box. @VPetukhov Hopefully, there will be a fix soon.

@VPetukhov VPetukhov added the question Further information is requested label Oct 3, 2024
@VPetukhov
Copy link
Collaborator

@marzaidi

Killedss: 4%|██▍ | ETA: 7 days, 0:08:01

This suggests that the job was killed, which usually happens because too much memory was used. Baysor is memory-hungry, and 10x datasets are really big.

https://github.com/gustaveroussy/sopa may help here.

@VPetukhov
Copy link
Collaborator

VPetukhov commented Oct 3, 2024

@alipirani88 , could you please submit build errors to a separate issues?

Hopefully, there will be a fix soon.

Very approximate ETA is the end of October.

@VPetukhov
Copy link
Collaborator

VPetukhov commented Oct 3, 2024

@alipirani88 , @marzaidi , by the way, quick fix, try using config (-c option) instead of passing parameters manually.

VPetukhov pushed a commit that referenced this issue Oct 3, 2024
@VPetukhov
Copy link
Collaborator

The issue is now fixed in develop. You can install it as a Julia package. I need more time to fix other things before releasing the new version though.

@VPetukhov VPetukhov self-assigned this Oct 3, 2024
@VPetukhov VPetukhov added bug Something isn't working and removed question Further information is requested labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants