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

terminate called after throwing an instance of 'std::invalid_argument' what(): [bioparser::SamParser] error: invalid file format #226

Open
MatsuSui opened this issue Dec 24, 2022 · 1 comment

Comments

@MatsuSui
Copy link

Hi, I have a problem with Racon.

Firstly, I got the .paf with minimap2.
minimap2 -t 35 /data3/suisn/nanopore/bp/miniasm/miniasm.fasta /data3/suisn/nanopore/bp/filter/NanoFilt/nanofilt_trimmed.fastq > racon_round0.paf

Then, I used the folllowing command to run Racon
conda activate racon
racon -t 35 /data3/suisn/nanopore/bp/filter/NanoFilt/nanofilt_trimmed.fastq ./racon_round0.paf /data3/suisn/nanopore/bp/miniasm/miniasm.fasta > ./racon_round1.fasta &

I got the error message:
[racon::Polisher::initialize] loaded target sequences 16.907044 s
[racon::Polisher::initialize] loaded sequences 518.917979 s
terminate called after throwing an instance of 'std::invalid_argument'
what(): [bioparser::SamParser] error: invalid file format

Please give me some advises. Thank you.

@rvaser
Copy link
Collaborator

rvaser commented Jan 17, 2023

Did you by any chance used the wrong input? Errors in form of 'invalid file format' happen when the file extension (e.g. .paf/.sam) does not match the format of the file. Maybe you run minimap2 without option -a and saved it as .sam?

Best regards,
Robert

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