tseemann / snippy

:scissors: :zap: Rapid haploid variant calling and core genome alignment
GNU General Public License v2.0
463 stars 113 forks source link

paired end and single end #356

Closed acebollada closed 4 years ago

acebollada commented 4 years ago

Dear all, I have one question, is it possible run snippy at same time with fastq from two different sequence techniques (illumina and iontorrent), that ones are paired end and others are single end??

Thank you for your attention to this matter

Alberto Cebollada

tseemann commented 4 years ago

BWA MEM is not the best aligner for Ion Torrent data due to it's homopolymer errors. I don't think you will find any more SNPs using the Ion data compared to the Illumina.

That said, there is a way to possibly do what you want. You first need to interleave your Illumina R1/R2 into a single file, then append the ion torrent SE data, and then use --peil F Reads, paired-end R1/R2 interleaved (default '') option.

Something like:

seqtk mergepe R1.fq.gz R2.fq.gz > both.fq
zcat ION.fq,gz >> both.fq
snippy --peil both.fq
acebollada commented 4 years ago

Thank you very much for your response Torsten! I had thought about whether it would be a good strategy aligning separately ilumina reads with BWA for example and ion torrent with tmap, afther this, we run the snippy with the bam files obtained. Do you think if we use this strategy is correct?

tseemann commented 4 years ago

I thought the Ion Suite came with its own variant calling tool? Our old Ion Torrent setup had it years ago.

I would just call varaints with Snippy + Illumina --R1 --R2 Then try Snippy + Ion with --bam (from tmap) And examine the VCF files and look for differences. I doubt the Ion data will find any extra SNPs.

You could also try this with tmap instead of minimap2/bwa: http://thegenomefactory.blogspot.com/2018/10/a-unix-one-liner-to-call-bacterial.html

vappiah commented 2 years ago

Hi @tseemann

I have some reads which after trimming generated paired reads and the unpaired single reads

I tried running snippy specifiy both R1 R2 and se but I got an error.

Please advice.