Git Product home page Git Product logo

Comments (3)

yupenghe avatar yupenghe commented on May 31, 2024

The term "multi-mapped reads" is a bit confusing. It can refer to two not mutually exclusive cases:

  1. reads mapped to multiple locations in the C-to-T (forward reference) genome or G-to-A (reverse reference) genome.
  2. reads mapped to both C-to-T genome and G-to-A genome.

If you are interested in case 2, you can set --keep-temp-files to True to keep the results of read alignment to C-to-T genome and G-to-A genome. The files are * _forward_strand_hits.sam and * _reverse_strand_hits.sam. Please make sure there are enough hard drive space since they will usually occupy ~500g or more.

If you care about reads falling in case 1 or both case 1 and 2, in addition to setting --keep-temp-files to True, you will need to set --aligner-options` such that the aligner (e.g. bowtie2) will report reads mapped to multiple locations.

from methylpy.

KaushikPanda1 avatar KaushikPanda1 commented on May 31, 2024

You are right, the term was confusing. I am interested in case 1, when reads map to multiple locations in the genome.

I tried the --aligner-options with bowtie2, but I do not think that positively worked, because of 2 reasons:

  1. I think after the bam alignment files are made, the methylpy program filters through the reads to only analyze unique-mapped reads. This is done by using samtools after the alignment files are made. So, correct me if I am wrong please, changing the aligner option might not have the desired effect.

  2. When I remove one of the regions in my genome (delete the sequence), that I know causes the loss of many reads due to multi-loci mapping, as it exactly matches another region of the genome, I actually get more reads in the bam file, compared to when I use the "--all" option in the --aligner-options. This demonstrates that "--all" option is not working as expected.

That is why I was wondering, if there is any way to not exclude the multi-loci mapping reads in the methylpy pipeline, not just at the aligner stage but during methylation calling too.

from methylpy.

yupenghe avatar yupenghe commented on May 31, 2024

You are right that methylpy filter out multi-map reads. So, the multi-map reads (either case 1 or case 2) won't be available in the final bam file. However, with --keep-temp-files set to True and the bowtie2 options that allow reporting multimap reads, you should be able to find multimap reads in * _forward_strand_hits.sam and * _reverse_strand_hits.sam files.

from methylpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.