mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-06-25 18:51:13 +08:00
Update README.md
This commit is contained in:
parent
e5c87fbe6f
commit
bee25d6e5d
12
README.md
12
README.md
@ -9,7 +9,7 @@
|
|||||||
[](LICENSE.txt)
|
[](LICENSE.txt)
|
||||||
[](https://zenodo.org/badge/latestdoi/283230219)
|
[](https://zenodo.org/badge/latestdoi/283230219)
|
||||||
|
|
||||||
YouPlot is a command line tool that draws plots in a terminal.
|
YouPlot is a command line tool that draws plots in the terminal.
|
||||||
|
|
||||||
:bar_chart: Powered by [UnicodePlot](https://github.com/red-data-tools/unicode_plot.rb)
|
:bar_chart: Powered by [UnicodePlot](https://github.com/red-data-tools/unicode_plot.rb)
|
||||||
|
|
||||||
@ -23,8 +23,7 @@ gem install youplot
|
|||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
* `cat data.tsv | uplot <command> [options]` or
|
`uplot <command> [options] <data.tsv>`
|
||||||
* `uplot <command> [options] <data.tsv>`
|
|
||||||
|
|
||||||
### barplot
|
### barplot
|
||||||
|
|
||||||
@ -103,10 +102,6 @@ curl -sL https://git.io/IRIStsv \
|
|||||||
|
|
||||||
### count
|
### count
|
||||||
|
|
||||||
In this example, YouPlot counts the number of chromosomes where the gene is located from the human gene annotation file and it creates a bar chart. The human gene annotation file can be downloaded from the following website.
|
|
||||||
|
|
||||||
* https://www.gencodegenes.org/human/
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cat gencode.v35.annotation.gff3 \
|
cat gencode.v35.annotation.gff3 \
|
||||||
| grep -v '#' | grep 'gene' | cut -f1 \
|
| grep -v '#' | grep 'gene' | cut -f1 \
|
||||||
@ -117,6 +112,9 @@ cat gencode.v35.annotation.gff3 \
|
|||||||
<img alt="count" src="https://user-images.githubusercontent.com/5798442/101999832-30b1ae80-3d24-11eb-96fe-e5000bed1f5c.png">
|
<img alt="count" src="https://user-images.githubusercontent.com/5798442/101999832-30b1ae80-3d24-11eb-96fe-e5000bed1f5c.png">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
In this example, YouPlot counts the number of chromosomes where genes are located.
|
||||||
|
* [GENCODE - Human Release 38](https://www.gencodegenes.org/human/)
|
||||||
|
|
||||||
Note: `count` is not very fast because it runs in a Ruby script.
|
Note: `count` is not very fast because it runs in a Ruby script.
|
||||||
This is fine in most cases, as long as the data size is small. If you want to visualize huge data, it is faster to use a combination of common Unix commands as shown below.
|
This is fine in most cases, as long as the data size is small. If you want to visualize huge data, it is faster to use a combination of common Unix commands as shown below.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user