isovic / racon

Ultrafast consensus module for raw de novo genome assembly of long uncorrected reads. http://genome.cshlp.org/content/early/2017/01/18/gr.214270.116 Note: This was the original repository which will no longer be officially maintained. Please use the new official repository here:
https://github.com/lbcb-sci/racon
MIT License
261 stars 48 forks source link

what(): [bioparser::PafParser] error: invalid file format! #163

Closed fengyuanli304 closed 3 years ago

fengyuanli304 commented 4 years ago

Hi, I have a problem with Racon.

Firstly, I got the .paf with minimap2. minimap2 -t 16 -ax map-pb /home/lfy/genome/pacbio/rawdata/preseven.ctg.fa /home/lfy/genome/pacbio/rawdata/merge1.fastq > /home/lfy/genome/pacbio/minimap2/1/round1_1.paf Then, I used the folllowing command to run Racon /racon/build/bin/racon_wrapper -t 16 /home/lfy/genome/pacbio/rawdata/merge1.fastq /home/lfy/genome/pacbio/minimap2/1/round1_1.paf /home/lfy/genome/pacbio/rawdata/preseven.ctg.fa --subsample 3942657983 50 > racon1_1.fasta

I got the error message"[RaconWrapper::run] preparing data with rampler [RaconWrapper::run] processing data with racon [racon::Polisher::initialize] loaded target sequences 37.596671 s [racon::Polisher::initialize] loaded sequences 20.070395 s terminate called after throwing an instance of 'std::invalid_argument' what(): [bioparser::PafParser] error: invalid file format!" The version of Racon is v.1.4.13 Please give me some advises. Thank you.

P.S. I have used a small file (zcat merge.fastq.gz | head -n 1000 > small.fastq) to run minimap2 + Racon (3 rounds) and it is succeed.

Best wishes, Fengyuan

rvaser commented 4 years ago

Hi Fengyuan, option -a of minimap produces a SAM file, so you need to rename round_1_1.paf to round_1_1.sam. This should resolve this issues.

Best regads, Robert

fengyuanli304 commented 4 years ago

Thank you for your reply. I will try it.