Closed Hendricks27 closed 1 year ago
This looks like a mmap()
error. Maybe the vg process does not have the permissions to read the GFA file.
Try converting the GFA to GBZ manually with the following command:
vg gbwt -p --num-jobs 14 -g graph.gbz --gbz-format -G graph.gfa
It will probably fail for the same reason, but you will get error messages from the right process.
Thank you for your timely reply! I tried the command you used, the gbz graph was built successfully actually.
Building input GBWTs
Input type: GFA
Opening GFA file hprc.gfa
Validating GFA file hprc.gfa
Found 34407114 segments, 47280701 links, 0 paths, and 1379 walks in 16.6829 seconds
GBWT insertion batch size: 100000000 nodes
Parsing segments
Breaking segments into 1024 bp nodes
...
...
...
Finished job 14 in 12.3696 seconds
Finished job 15 in 13.7681 seconds
Finished job 16 in 10.9984 seconds
Finished job 19 in 8.54661 seconds
Finished job 21 in 7.4406 seconds
Finished job 18 in 10.2888 seconds
Finished job 17 in 11.9977 seconds
Finished job 20 in 9.88862 seconds
Finished job 1 in 31.8691 seconds
Finished job 0 in 33.0857 seconds
Merging partial indexes
Indexed 0 paths and 1379 walks in 45.1209 seconds
Parsing GFA header tags
Parsed header tags in 3.27453e-05 seconds
GBWTs built in 125.411 seconds, 32.6866 GiB
Building GBWTGraph
Saving GBWT and GBWTGraph to graph.gbz
GBWTGraph built in 48.0159 seconds, 32.6866 GiB
In that case, you can build the other indexes with:
vg index -j graph.dist graph.gbz
vg minimizer -p -t 16 -o graph.min -d graph.dist graph.gbz
Thank you so much! I will try it soon!
Thank you! It is resolved now.
1. What were you trying to do? Build giraffe index
2. What actually happened? I got an error
3. What data and command can the vg dev team use to make the problem happen? I tried home-built gfa and gfa downloaded from the paper "A draft human pangenome reference".
4. What does running
vg version
say?5. Output