Entering edit mode
                    4.0 years ago
        Assa Yeroslaviz
        
    
        ★
    
    1.9k
    I would like to find reads in one bam files which are not in a second bam file.
Is there an easy way to do this?
My way for now is:
- sort both bam files by read name
- extract read headers of both files (using cut -f1) for easier handling
- run diffon both files
- manually search for differences
But this seems to me very tedious. Is there a better way?
thanks
Thanks, my goal is to identify reads which are in bam1 but are not in bam2. I would go about it by extracting the reads in bam1 using
samtools view, then list the reads of both bam files usingsamgrep. Next, i can comapre them. But how do I see if a read is in one and not in the other? Can it show me that?how, then you just need
commThanks again, i have found your tool, but I get this strange error:
any ideas what causes it? I do have only two bam files in the input.
this option
--samtoolswas removed , the doc hasn't been updated.