Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use R packet ggplot2 to draw a dumbbell diagram to show the CNV mutation frequency of the gene

Shulou Source: shulou.com Published: 2022-06-01 05:12:44 10月03日 Update

This article is about how to use R packet ggplot2 to draw a dumbbell map to show the frequency of gene CNV mutation. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The dumbbell diagram drawn by R packet ggplot2 shows the CNV mutation frequency of the gene.

Usage: $Rscript scripts/cnv_dumbbell_plot.r-husage: scripts/cnv_dumbbell_plot.r [- h]-c CNV_DATA-g GENE_SYMBOL [- H HEIGHT] [- W WIDTH] [- o OUTDIR] [- p PREFIX] CNV_Dumbbell_plot: arguments:-h,-help show this help message and exit-c CNV_DATA -- cnv_data CNV_DATA input cnv data file path [required]-- g GENE_SYMBOL,-- gene_symbol GENE_SYMBOL Enter the file path that contains the gene symbol [required]-H HEIGHT,-- height HEIGHT the height of dumbbell plot [optional,default 6]-W WIDTH -- width WIDTH the width of dumbbell plot [optional,default 8]-o OUTDIR,-- outdir OUTDIR output file directory [optional,default cwd]-p PREFIX,-- prefix PREFIX out file name prefix [optional,default m6a_cnv] parameter description:

-C input the result file of copy number variation data analyzed by GISTIC software:

Gene Symbol

Locus ID

Cytoband

TCGA-3Z-A93Z-01A-11D-A36W-01

TCGA-6D-AA2E-01A-11D-A36W-01

TCGA-A3-3306-01A-01D-0858-01

TCGA-A3-3307-01A-01D-0858-01

TCGA-A3-3308-01A-02D-1322-01

ACAP3

116983

1p36.33

-0.001

0.002

0.009

0.015

0.005

ACTRT2

140625

1p36.32

-0.001

0.002

0.009

0.015

0.005

-g enter the gene file used to draw the dumbbell map:

ID

Group

RBM15

W

RBM15B

W

METTL14

W

-H and-W specify the height and width of the generated picture. The default height is 6 and the width is 8.

Use examples: Rscript. / scripts/cnv_dumbbell_plot.r-g.. / m6a.tsv\-c. / 01.TCGA_data/TP_CNV_Gistic2_Level_4/all_data_by_genes.txt Thank you for your reading! This is the end of the article on "how to use R packet ggplot2 to draw a dumbbell map to show the CNV mutation frequency of the gene". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Dumbbells genes frequency content files more articles input good practical usage parameters variation pictures copies data articles methods look knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Tech Info macOS Apple NVidia