Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to filter out chromosomes/specific regions from a BAM file? fcr Bioinformatics 6 10-29-2018 06:24 AM
How to filter a SAM/BAM file by bp alisrpp Bioinformatics 5 01-17-2014 01:11 PM
Filter paired & mapped reads from SAM/BAM file pirates.genome Bioinformatics 2 06-19-2012 02:21 AM
how to filter a bam file paolo.kunder Bioinformatics 2 01-20-2012 02:07 AM
Filter paired end BAM file based on iSize Leif Bergsagel Bioinformatics 2 12-16-2010 12:50 PM

Thread Tools
Old 11-25-2016, 04:36 AM   #1
Junior Member
Location: Brasil

Join Date: Jan 2016
Posts: 1
Default How to filter a .bam file and keep the subjects

Hello All,

I have multiple alignments generated to DEG analysis. I know that grep for unaligned reads is not trust and the best way is the -f4 flag. But here what I want is the contigs with no alignment with those reds from specific libraries.

I already have the counts matrices and I can grep those sequences from the matrix, but I want to do a sanity check .

Thank's in advanced.
leorippel is offline   Reply With Quote
Old 11-25-2016, 06:33 AM   #2
Senior Member
Location: uk

Join Date: Mar 2009
Posts: 667

Samtools idxstats should give you a list of how many reads aligned to each of the contigs in your reference genome, i.e. the sequences that are listed in the sam/bam headers.
mastal is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 04:23 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO