Open jordur opened 7 years ago
Hi Jordur,
Your "samtools flagstat" output indicates only 1290858 of the 1637356 reads in the file are paired (have mates). I do agree Pilon should be more graceful about this, and I'll look into that. Was this bam created by only keeping the aligned reads, discarding the unmapped mates? Ideally, you would keep both reads of a pair when only one of the reads is aligned, since Pilon can use that information in local reassembly (if you're doing that). Otherwise, if you are just polishing bases, perhaps you could create two bams, one with the mapped pairs and feed in the rest through the --unpaired bam argument.
Hi @w1bw . Thank you for your suggestions. I was trying to polish canu assemblies with an Ilumina mapping to these resulting contigs. I mean, the --bam argument resulted from:
bowtie2 -x NB01.bowtie --very-sensitive-local -S BAC1.sam -1 Bac1High_S11_L001_R1_001.fastq.gz_good.fastq_clean.fastq-common.fq.notCombined_1.fastq -2 Bac1High_S11_L001_R1_001.fastq.gz_good.fastq_clean.fastq-common.fq.notCombined_2.fastq -U Bac1High_singles.fastq
I was wondering if "Inappropriate call if not paired read" meant that no paired reads were detected at all but as you saw, I got ~80% of paired reads and remarkably 99.69% of read mapped to contigs. Thus, finally I got the polished pilon fasta file with the --unpaired option, which ended without error. However, I am not sure about the assumptions I did with that option. How can I improve the polishing? Thank you in advance for your help
The best thing would be to filter out the unpaired reads from the input bam and use only the paired reads (or create a separate --unpaired bam with the singletons). However, I will try to do a future enhancement for Pilon to be able to handle a mixed paired/unpaired BAM.
hi w1bw, the bam file need to be run picard-tools-1.54/MarkDuplicates.jar before run pilon ? or just bwa mem and sort ?
Hi all / @broadinstitute, Related with #2, I tried to use Pilon v1.22 in order to polish some canu-assembled nanopore reads with the alignment of Illumina reads to those contigs. I had a set of BACs and most of them were corrected successfully. However a couple of them returned the following error:
The samtools flagstat of the bam file returned:
So it seems to be a properly paired file! Moreover, attached you will find files.tar.gz the Canu-assembled contig file. What I am doing wrong? Thank you in advance.