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

Installation from scratch fail with file examples #37

Closed
fingels opened this issue Jan 16, 2024 · 2 comments
Closed

Installation from scratch fail with file examples #37

fingels opened this issue Jan 16, 2024 · 2 comments

Comments

@fingels
Copy link

fingels commented Jan 16, 2024

Hi,

I installed (today) ggcat following the instructions provided in the README section, on a Linux machine, with installation of rust / nightly toolchain, cloning the sources and so on.

I tried to build the colored graph on the examples provided with a file color_mapping.in :

A1	sal1.fa
A2	sal2.fa
A3	sal3.fa

And running the command ggcat build -k 21 -c -d color_mapping.in gave me the following error :

Allocator initialized: mem: 2 GiB chunks: 8192 log2: 18
Using m: 10 with k: 21
Add index with color A1 => 0
Add index with color A2 => 1
Add index with color A3 => 2
Thread panicked at location: crates/io/src/sequences_stream/fasta.rs:15:14
Backtrace:    0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: __libc_start_call_main
             at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  18: __libc_start_main_impl
             at ./csu/../csu/libc-start.c:392:3
  19: <unknown>

I was able to replicate the error on separate Linux machines.

@Guilucand
Copy link
Collaborator

Hi, the problem is that the files are not found, since the paths inside the mapping file were (wrongly) intended as relative to the current working directory. I fixed the problem, and now the relative paths inside a mapping file are adjusted using the mapping file path.

@fingels
Copy link
Author

fingels commented Jan 19, 2024

Thanks, it worked perfectly.

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

No branches or pull requests

2 participants