Skip to content

Commit

Permalink
Update parser and README
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshw5 committed Sep 4, 2015
1 parent bc52594 commit 0d8cd3a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 32 deletions.
67 changes: 36 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,41 +33,46 @@ Note: BAM file support requires [samtools](http://samtools.sourceforge.net)
Usage
-----

simple NGS read quality assessment using Python

positional arguments:
input input file (one of .sam, .bam, or .fastq(.gz) or stdin
(-))

optional arguments:
-h, --help show this help message and exit
-q, --quiet do not print any messages (default: False)
-s BINSIZE, --binsize BINSIZE
number of reads to bin for sampling (default: auto)
-n NREADS, --nreads NREADS
number of reads sample from input (default: 2000000)
-k {2,3,4,5,6,7,8,9,10}, --kmer {2,3,4,5,6,7,8,9,10}
length of kmer for over-repesented kmer counts
(default: 5)
-o OUTPUT, --output OUTPUT
base name for output files (default: plot)
-ll LEFTLIMIT, --leftlimit LEFTLIMIT
leftmost cycle limit (default: 1)
-rl RIGHTLIMIT, --rightlimit RIGHTLIMIT
rightmost cycle limit (-1 for none) (default: -1)
--aligned only aligned reads (default: False)
--unaligned only unaligned reads (default: False)
--nofigures don't produce figures (default: False)
--nokmer do not count kmers (default: False)
--gemstone reads have convolution string (default: False)
```shell
usage: fastqp [-h] [-q] [-s BINSIZE] [-a NAME] [-n NREADS] [-p BASE_PROBS] [-k {2,3,4,5,6,7}] [-o OUTPUT]
[-ll LEFTLIMIT] [-rl RIGHTLIMIT] [-mq MEDIAN_QUAL] [--aligned-only | --unaligned-only] [-d]
input

simple NGS read quality assessment using Python

positional arguments:
input input file (one of .sam, .bam, .fq, or .fastq(.gz) or stdin (-))

optional arguments:
-h, --help show this help message and exit
-q, --quiet do not print any messages (default: False)
-s BINSIZE, --binsize BINSIZE
number of reads to bin for sampling (default: auto)
-a NAME, --name NAME sample name identifier for text and graphics output (default: input file name)
-n NREADS, --nreads NREADS
number of reads sample from input (default: 2000000)
-p BASE_PROBS, --base-probs BASE_PROBS
probabilites for observing A,T,C,G,N in reads (default: 0.25,0.25,0.25,0.25,0.1)
-k {2,3,4,5,6,7}, --kmer {2,3,4,5,6,7}
length of kmer for over-repesented kmer counts (default: 5)
-o OUTPUT, --output OUTPUT
base name for output files (default: fastqp_figures)
-ll LEFTLIMIT, --leftlimit LEFTLIMIT
leftmost cycle limit (default: 1)
-rl RIGHTLIMIT, --rightlimit RIGHTLIMIT
rightmost cycle limit (-1 for none) (default: -1)
-mq MEDIAN_QUAL, --median-qual MEDIAN_QUAL
median quality threshold for failing QC (default: 30)
--aligned-only only aligned reads (default: False)
--unaligned-only only unaligned reads (default: False)
-d, --count-duplicates
calculate sequence duplication rate (default: False)
```
Changes
-------
New in 0.1.5:

- Added `.fq` as acceptable file extension. (Thanks @danielecook)
- Added cycle-specific kmer plots
See [releases page](https://github.com/mdshw5/fastqp/releases) for details.
Examples
--------
Expand Down
1 change: 0 additions & 1 deletion fastqp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ def main():
align_group = parser.add_mutually_exclusive_group()
align_group.add_argument('--aligned-only', action="store_true", default=False, help="only aligned reads (default: %(default)s)")
align_group.add_argument('--unaligned-only', action="store_true", default=False, help="only unaligned reads (default: %(default)s)")
parser.add_argument('--no-figures', action="store_true", default=False, help="don't produce figures (default: %(default)s)")
parser.add_argument('-d', '--count-duplicates', action="store_true", default=False, help="calculate sequence duplication rate (default: %(default)s)")

args = parser.parse_args()
Expand Down

0 comments on commit 0d8cd3a

Please sign in to comment.