Open Adelaam opened 5 years ago
Hi, can you paste the command you are using?
Best regards, Robert
'/home/markwilks/racon/build/bin/racon' -t 4 '/home/markwilks/Desktop/M.abscessus/barcode02/barcode02new/barcode02silter2kbq7.fastq.gz' '/home/markwilks/Desktop/M.abscessus/barcode02/barcode02new/barcode02newminimap/barcode02newoverlap.paf.gz' '/home/markwilks/Desktop/M.abscessus/barcode02/barcode02new/barcode02newminimap/barcode02newminimap.contigs.fa' [racon::Polisher::initialize] loaded target sequences [racon::Polisher::initialize] loaded sequences [racon::Polisher::initialize] error: empty overlap set! I called the second overlap but is the one I got from minimap2 (reads-assembly). BW,
Could you please copy the minimap2 command you used to get the .paf file?
'/home/markwilks/minimap2-2.13_x64-linux/minimap2' -t 4 -map-ont '/home/markwilks/Desktop/M.abscessus/barcode02/barcode02new/barcode02newminimap/barcode02newminimap.contigs.fa' '/home/markwilks/Desktop/M.abscessus/barcode02/barcode02new/barcode02silter2kbq7.fastq.gz' | gzip -1 > '/home/markwilks/Desktop/M.abscessus/barcode02/barcode02new/barcode02newminimap/barcode02newoverlap.paf.gz'
Yeah, I did a mistake with the output got from minimpa2.
Thank you!
Hi, I am encountering similar problem, empty overlap set. I am very new to the metagenomics as well as racon. My commands are following,
minimap2 -x map-ont 98ZLc_assembly_NP.fasta 98ZLc_nanopore_filt.fastq > 98ZLc_assembly_minimap_NP.paf
racon 98ZLc_nanopore_filt.fastq 98ZLc_assembly_minimap_NP.paf 98ZLc_nanopore_filt_ava_assembly.fasta > \ 98ZLc_nanopore_filt_racon.fasta
could you please help me to resolve this problem?
Thanks.
Hi,
it appears that you misplaced the reference file, i.e. in the minimap2 command you are mapping reads to 98ZLc_assembly_NP.fasta
and in the racon command you want to polish 98ZLc_nanopore_filt_ava_assembly.fasta
. Those two files should match.
Best regards, Robert
Thanks for your kind reply. It has worked. Now i am getting slightly different following error,
minimap2 -x sr 98ZLc_nanopore_assembly_racon_metka2.fasta 98ZLc_combineraw_IL.fastq > 98ZLc_mini_IL.paf
racon 98ZLc_nanopore_raw.fastq 98ZLc_mini_IL.paf 98ZLc_nanopore_assembly_racon_metka2.fasta > 98ZLc_nanopore_assembly_racon_metka2_raconIL.fa [racon::Polisher::initialize] loaded target sequences 1.170 s [racon::Polisher::initialize] loaded sequences 152.444 s [racon::Polisher::initialize] loaded overlaps 116.237 s [racon::Overlap::find_breaking_points] error: overlap is not transmuted!
Could you please give some insight on this error and any possibility to overcome.
It appears again that you misplaced the files :D You are mapping 98ZLc_combineraw_IL.fastq
to your assembly with minimap2 and in racon you are using different reads 98ZLc_nanopore_raw.fastq
. These two files should also match :)
my bad. Thanks. But again some error so, anbu@bubulin:~/polyplax/downstreamanalysiswithvaclavassembly$ racon -t 19 98ZLc_combineraw_IL.fastq 98ZLc_mini_IL.paf 98ZLc_nanopore_assembly_racon_metka2.fasta > 98ZLc_nanopore_assembly_racon_metka2_raconIL.fa [racon::Polisher::initialize] loaded target sequences 1.175 s [racon::Polisher::initialize] loaded sequences 200.535 s [racon::Overlap::transmute] error: unequal lengths in sequence and overlap file for sequence A00419:60:H7KWLDRXX:2:2101:3522:1016!
Was the Illumina file 98ZLc_combineraw_IL.fastq
created by joining 2 paired end files?
yes, it is !
The error is probably that reads from a pair have equal names up to the first white space. You can add 1 to the first read and 2 to the second read name. Here is a script I wrote a while back: https://github.com/isovic/racon/issues/68#issuecomment-386223150. Usage is here: https://github.com/isovic/racon/issues/68#issuecomment-453412183.
thanks. so i made script.py file and saved it my working directory and ran the script. got the following error,
anbu@bubulin:~/polyplax/downstreamanalysiswithvaclavassembly$ python script.py 98ZLc_combineraw_IL.fastq
Traceback (most recent call last):
File "script.py", line 46, in
am i doing something wrong?
Hmmm that is weird, I tried with both python2 and python3 and it works.
i have fastq file, is it ok
Yeah, It should be a fastq file. Did you by any chance mess up the indentation in the script?
i just copied it. ii have not changed anything.
if you have script.py file, could you please attach it. I will try with it.
There you go.
Thanks. It is running now. i guess it will run for a while?
If you have a big file it might take a while :)
it is 22.1 gb, i guess big enough.
Indeed it is. I hope you run the command with piping to a new file!
no i did not do, i am new to scripting. could you give me how to do. it is running on the screen itself.
python rename.py 98ZLc_combineraw_IL.fastq > 98ZLc_renamed_IL.fastq
thanks.
do i need to do the minimap with the renamed file before polishing with racon?
Unfortunately yes.
great, thanks.
Hi, I used racon to polish my nanopore sequence assembly by mapping the Illumina sequences. As we discussed above i need to rename my illumina sequences. I used the renamed sequences for polishing my nanopore assembly. The process was done without any error in racon. But I used the polished assembly output to make coverage profile using minimap and samtools. Here comes the problem, my scaffolds are not making any coverage profile for both nanopore and illumina. I wonder could it be problem related to renaming the file? Could you give me an idea for solving this problem.
Not sure what could be wrong. Can you paste all the commands you were using?
Please find the following commands,
minimap2 -x sr 98ZLc_nanopore_assembly_racon_metka2.fasta 98ZLc_combineraw__renamed_IL.fastq > 98ZLc_mini_renamed_IL.paf
racon 98ZLc_combineraw_renamed_IL.fastq 98ZLc_mini_renamed_IL.paf 98ZLc_nanopore_assembly_racon_metka2.fasta > 98ZLc_nanopore_assembly_racon_metka2_racon2.fa
Is the file 98ZLc_nanopore_assembly_racon_metka2_racon2.fa
empty by any chance?
no. they seem to be normal as earlier assembly.
I mean size of the file is similar to 98ZLc_nanopore_assembly_racon_metka2.fasta.
Did you run coverage profiles on the unpolished assembly file and it worked? Did you change any parameters in those commands?
Yes, I tried with 98ZLc_nanopore_assembly_racon_metka2.fasta and it worked. I have not changed any parameters.
Are you using different files now? Can you copy these commands as well?
minimap2 -t 19 -ax map-ont 98ZLc_nanopore_assembly_racon_metka2.fasta 98ZLc_nanopore_raw.fastq | samtools view --threads 19 -Sb -F 0x104 - | samtools sort --threads 19 - > np_cov.bam samtools depth -aa np_cov.bam | awk -F "\t" '{a[$1] += $3; b[$1]++} END{OFS = ","; for (i in a) print i, a[i]/b[i]}' > np_cov.csv
And you just replaced 98ZLc_nanopore_assembly_racon_metka2.fasta
with 98ZLc_nanopore_assembly_racon_metka2_racon2.fa
and it did not work? Any error message? Did you check that the path is alright?
Yes, I just replaced it. There was no error. I am using them in same folder, so path should not be a problem. The output is similar to others. But when i use .csv file in mmgenome2, Rstudio, then i came to know they are not creating the coverage as others.
No idea then :/
ok, thanks for your help. I will check it out.
Hi, I wonder could it be possible to modify your script (rename.zip) to change the name of the fasta file? if possible please give me some info for modification. Thanks in advance.
Do you want to change sequence names or the actual file that is being produced?
I wonder the error problem in creating the coverage file in my polished assembly using illumina could be due to the rename of the illumina sequence names. So i thought if i could change the assembly name also similar to illumina sequences would help me to solve this problem. so basically want to change the name of the assembly file produced by racon+illumina polishing. What do you think?
Not sure that this will help. Is the file np_cov.bam
empty?
bam file is not empty and all the files have similar size like normal files. thats why i was thinking it could be possibly due to the name change.
Can you run head -n 1 98ZLc_nanopore_assembly_racon_metka2.fasta
and head -n 1 98ZLc_nanopore_assembly_racon_metka2_racon2.fa
?
Hello,
I am trying Racon for first time. I am getting this error when I try to polish my data. I have tried with the files provided for the test and I get same error.
[racon::Polisher::initialize] loaded target sequences [racon::Polisher::initialize] loaded sequences [racon::Polisher::initialize] error: empty overlap set!
Thank you very much.