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

mismatched line lengths at line 3 within sequence #398

Closed
Ahmad-40 opened this issue May 9, 2024 · 1 comment
Closed

mismatched line lengths at line 3 within sequence #398

Ahmad-40 opened this issue May 9, 2024 · 1 comment

Comments

@Ahmad-40
Copy link

Ahmad-40 commented May 9, 2024

[vg autoindex] Executing command: vg autoindex --workflow giraffe -r /public/home/ahmad/outdir/in.fa.gz.bf3285f.11fba48.11fe66b.smooth.final.gfa -v /public/home/ahmad/outdir/in.fa.gz.bf3285f.11fba48.11fe66b.smooth.final.RAlphonso.vcf -p pangenome
[IndexRegistry]: Checking for phasing in VCF(s).
[IndexRegistry]: Chunking inputs for parallelism.
index file /public/home/ahmad//outdir/in.fa.gz.bf3285f.11fba48.11fe66b.smooth.final.gfa.fai not found, generating...
ERROR: mismatched line lengths at line 3 within sequence
File not suitable for fasta index generation. Note the GFA file was obtained as a result of pggb run ( partition-before-pggb -i /public/home/ahmad/pangen/in.fa.gz
-o /public/home/ahmad/outdir
-n 5
-t 15
-p 90
-s 5k
-V 'R:1000'). Here are more details of the file for consideration awk '{print length($0)}' /public/home/ahmad/outdir/in.fa.gz.bf3285f.11fba48.11fe66b.smooth.final.gfa
9
20
196
20
20
9
20
9
20
179
20
20
9
20
9
20
17
20
20
9
20
9
20
130
How to fix this issue?

@AndreaGuarracino
Copy link
Member

@Ahmad-40, you are giving to vg autoindex -r a GFA file instead of a FASTA file!

vg autoindex
usage: vg autoindex [options]
options:
  output:
    -p, --prefix PREFIX    prefix to use for all output (default: index)
    -w, --workflow NAME    workflow to produce indexes for, can be provided multiple
                           times. options: map, mpmap, rpvg, giraffe (default: map)
  input data:
    -r, --ref-fasta FILE   FASTA file containing the reference sequence (may repeat)
...

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