Skip to content

WenchaoLin/fasta_length_hist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fasta_length_hist

Description

Script to plot the histogram of sequence length in a given fasta file.

Options

usage: fasta_length_hist.py [-h] -i INPUT [-o OUTPUT] [-of {pdf,png,jpeg}]
                            [--x_log] [--y_log] [--grid] [--xmin XMIN]
                            [--xmax XMAX]

fasta_length_hist.py v1.0

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        The fasta file to process
  -o OUTPUT, --output OUTPUT
                        The output file of the histogram. Default:seqHist.pdf
  -of {pdf,png,jpeg}, --format {pdf,png,jpeg}
                        Set ouput format. Default to "pdf"
  --x_log               xAxis will be set to a log scale
  --y_log               yAxis will be set to a log scale
  --grid                Trun on grid of the plot
  --xmin XMIN           Set the limits (min) of x-axis
  --xmax XMAX           Set the limits (max) of x-axis 

Examples

Here we plot the distribution of sequence lengths from a FASTA file sample.fasta.

python fasta_length_hist.py --input sample.fasta -of png --xmin 200 --xmax 600 --grid

Output

Image of Examples

About

Script to plot the histogram of fasta lengths

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages