-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ddfd7d
commit a64fa69
Showing
7 changed files
with
103 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
``` | ||
bam_stat.py -h | ||
``` | ||
|
||
Usage: bam_stat.py [options] | ||
|
||
Summarizing mapping statistics of a BAM or SAM file. | ||
|
||
|
||
|
||
Options: | ||
--version show program's version number and exit | ||
-h, --help show this help message and exit | ||
-i INPUT_FILE, --input-file=INPUT_FILE | ||
Alignment file in BAM or SAM format. | ||
-q MAP_QUAL, --mapq=MAP_QUAL | ||
Minimum mapping quality (phred scaled) to determine | ||
"uniquely mapped" reads. default=30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/bash | ||
|
||
|
||
set -eo pipefail | ||
|
||
bam_stat.py \ | ||
--input $par_input \ | ||
--mapq $par_map_qual \ | ||
--input "${par_input}" \ | ||
${par_map_qual:+--mapq "${par_map_qual}"} \ | ||
> $par_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
#================================================== | ||
#All numbers are READ count | ||
#================================================== | ||
|
||
Total records: 200 | ||
|
||
QC failed: 0 | ||
Optical/PCR duplicate: 0 | ||
Non primary hits 0 | ||
Unmapped reads: 3 | ||
mapq < mapq_cut (non-unique): 1 | ||
|
||
mapq >= mapq_cut (unique): 196 | ||
Read-1: 99 | ||
Read-2: 97 | ||
Reads map to '+': 98 | ||
Reads map to '-': 98 | ||
Non-splice reads: 196 | ||
Splice reads: 0 | ||
Reads mapped in proper pairs: 192 | ||
Proper-paired reads map to different chrom:0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
#================================================== | ||
#All numbers are READ count | ||
#================================================== | ||
|
||
Total records: 200 | ||
|
||
QC failed: 0 | ||
Optical/PCR duplicate: 0 | ||
Non primary hits 0 | ||
Unmapped reads: 3 | ||
mapq < mapq_cut (non-unique): 20 | ||
|
||
mapq >= mapq_cut (unique): 177 | ||
Read-1: 88 | ||
Read-2: 89 | ||
Reads map to '+': 96 | ||
Reads map to '-': 81 | ||
Non-splice reads: 177 | ||
Splice reads: 0 | ||
Reads mapped in proper pairs: 175 | ||
Proper-paired reads map to different chrom:0 |
Binary file not shown.