mapped reads using samtools flagstat options


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting mapped reads using samtools flagstat options
# 1  
Old 09-28-2012
mapped reads using samtools flagstat options

Hey guys,

Does anyone know how to calculate total number of mapped reads for a certain region of a bam file using samtools flagstat?
I know to use flagstat for the whole bam file. but for a specific region of it... is there an option?

Tnx

---------- Post updated at 12:27 PM ---------- Previous update was at 05:50 AM ----------

Oh I just realized that the tool was "samtools view" which is able to calculate the mapped reads of a certain region of a given bam file.

But I don't know how to do it yet; and which options should I use.
# 2  
Old 10-05-2012
Mapped files are read by VM page faults, so at least one per page. I suppose an aggressive OS might map ahead or in larger blocks to assist fastest sequential access at the cost of some extra VM churn. For instance, to optimize large SAN blocks and RAIS striped access, it might read 65K starting with the page of the next byte, or based at the modulo 65K address of that byte, into newly mapped pages. This exploits buffers and caching on the SAN and disk drives, as wells as being RAID tolerant by writing whole striped blocks across N drives.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Crontab not generating file in mapped drive in windows

Dear Experts, I've schedule scripts with the help of Cronjob, and output should be generated on windows mapped drive, Earlier 2 days its was working fine and now my cronjob is not generating file on windows network drive. Please suggest. Linux details given below. $ tail... (9 Replies)
Discussion started by: Mohammed Fareed
9 Replies

2. AIX

how will i know if a lun has been already mapped to a vio client

Hi im logged in to the vio servers now. when i give # lspv | wc -l i get the count as 6246 how will i know if a lun has been already mapped to a vio client or it is left free without mapping to any of the vio client ? (1 Reply)
Discussion started by: newtoaixos
1 Replies

3. UNIX for Dummies Questions & Answers

Difference between buffered disk reads and cached reads?

I was analyzing the Disk read using hdparm utility. This is what i got as a result. # hdparm -t /dev/sda /dev/sda: Timing buffered disk reads: 108 MB in 3.04 seconds = 35.51 MB/sec # hdparm -T /dev/sda /dev/sda: Timing cached reads: 3496 MB in 1.99 seconds = 1756.56 MB/sec... (1 Reply)
Discussion started by: pinga123
1 Replies

4. Solaris

Unexpected mapped volume in Solaris 10

Hi everybody, I'm facing a little trouble with my system. I have a SPARC M4000 server, which connected to a SAN with 2 Brocade 300 Switches and 1 STK 6140. The M4000 has 2 FC HBA cards, one port per card. Each card connect to one switch as follows... ____________M4000____________ ___FC-HBA... (2 Replies)
Discussion started by: nam.nguyen
2 Replies

5. UNIX for Advanced & Expert Users

Linux: Access time of mapped data

Before I forget, I'm running on a RedHat 5 box with the following uname -a output: Linux gnc141c 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux Now on to my question. I'm using a tool that maps a Matlab .mat file using the Linux mmap functionality and then... (1 Reply)
Discussion started by: rusttree
1 Replies

6. SCO

SCO Mapped Drive

We are running SCO OpenServer 5.0.7. Some of my users have drives mapped to the SCO box, some don't. The consultant, who setup the mapped drives, is long gone, and I need more users to have drive letter mapping. When I try to map a drive via windows, I am repeatedly asked for a user/password,... (1 Reply)
Discussion started by: bnhcomputing
1 Replies

7. Shell Programming and Scripting

Mapped list replacement

Hi to all. I've looked for this, and haven't found it, but please pardon me if I've overlooked something. I'm trying to come up with a relatively simple command line search and replace from and to which I can easily pipe. In particular, let's suppose there are 2 lists, A and B. If a string... (4 Replies)
Discussion started by: treesloth
4 Replies

8. Filesystems, Disks and Memory

Virtual Machine and Mapped Raw LUN's

Hello, I have a server running CentOS 5.1 on a virtual machine. Right now, there is one virtual disk on the system. Below are the result when I run the df commmand: Filesystem.....1K-blocks.........Used.....Available....Use%.....Mounted on... (1 Reply)
Discussion started by: kennyw1000
1 Replies

9. Linux

How to access mapped dirve in Linux

i want to access mounted/mapped drive in linux using C code is it possible to access the mapped drive in linux using C code ? waiting for replay NIrav (0 Replies)
Discussion started by: niravuchat
0 Replies
Login or Register to Ask a Question