How to map long Oxford Nanopore reads to reference genome (and view in IGV)

How to map long Oxford Nanopore reads to reference genome (and view in IGV)

Very long Oxford Nanopore reads cause a problem with BAM format. The max. CIGAR operations permitted to store per read are 65535 (https://samtools.github.io/hts-specs/SAMv1.pdf). So if you want to convert SAM to BAM you get an error. However, using the newer CRAM format (https://samtools.github.io/hts-specs/CRAMv3.pdf) you can avoid this problem. Also, CRAM has a smaller memory footprint. Here, I am going to show you how to map ONP reads using Graphmap (https://github.com/isovic/graphmap) and converting to CRAM (using samtools) and then how to…

Read More Read More

Get reads which map completely to reference using minimap (PacBio & Oxford Nanopore)

Get reads which map completely to reference using minimap (PacBio & Oxford Nanopore)

Minimap is a tool to find approximate mapping positions between two sets of long noisy reads or between genomes and long noisy reads like PacBio of Oxford Nanopore data (https://github.com/lh3/minimap). Standard output is in PAF format (https://github.com/lh3/miniasm/blob/master/PAF.md). If you want to filter the PAF file for reads which map entirely (or close to complete) to a genome you can use this simple awk command: awk ‘{if(($4-$3)>(0.9*$2)) print}’ mapping.paf > mapping.filtered.paf Nothing fancy at all. But it might help for example…

Read More Read More

Flying orchid

Flying orchid

Too many plants? No space left? Put your orchid on a string and hang it on the ceiling 🙂 And yes, it is growing happily. Just put the orchid (in my case a normal Phalaenopsis) into a pot of water (with a little bit of fertilizer) and let it soak overnight or up to one day. I do this every two weeks. Use a soft string and ideally wrap it around the basis of the leaves two to three times.

Climbing shoes too tight? – One possible solution.

Climbing shoes too tight? – One possible solution.

You just bought a real nice pair of climbing shoes and while using them on the wall you figure out that they are (much) too tight? However, they got already stinky in the meantime and you can not return them or sell it to anyone else – shit. Yes, climbing shoes are not supposed to be comfy, but if they crush your feet or even lead to long-term damage it does not improve your climbing. Happened to me recently. While…

Read More Read More