FelixKrueger / Bismark

A tool to map bisulfite converted sequence reads and determine cytosine methylation states
http://felixkrueger.github.io/Bismark/
GNU General Public License v3.0
386 stars 101 forks source link

writes out all the alignments for sequence with multiple alignments #23

Closed Shicheng-Guo closed 8 years ago

Shicheng-Guo commented 8 years ago

Added new option --ambig_bam --multiple for Bowtie2-mode only, which writes out a single all the alignments for sequences with multiple alignments to a special file ending in .ambiguous.bam.

FelixKrueger commented 8 years ago

Do you mean that Bismark is erroneously writing all alignments to a the file instead of just a single one?

Shicheng-Guo commented 8 years ago

No. I mean. Bismark only output one alignment randomly. I want to output all the possible alignments. Can you add a option to achieve it?

FelixKrueger commented 8 years ago

I am afraid this is nothing we are likely to add as an option because it would be hugely more time consuming and the output if not likely to be very useful to many. If you wanted to get a list of all alignments to any strand you could run Bowtie 2 (with options of your choice) separately against the CT and GA converted genomes (can be found inside the Bisulfite_genome folder) and merge the output afterwards.

Shicheng-Guo commented 8 years ago

Thanks Felix, Yes, you are quite right. I have tried the process you told to me. Yes. there will be more than 30 alignment for some reads and I do will be cost lots of time. Thanks.

bowtie2 -a -x ~/db/aligndb/hg19/bismark/Bisulfite_Genome/CT_conversion/BS_CT ZNF154.fastq

We can use bowtie2 -a to do this by ourself.

Many thanks.

FelixKrueger commented 8 years ago

Excellent.