Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize grouping by column in metadata

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to group by column in metadata". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Instructions for use:

Metadata is grouped by column, and differences are compared and analyzed. You can use merge_tsv_files.r or merge_metadata_genexpdata.r to merge the compared information into metadata:

Usage: / share/nas1/huangls/test/TCGA_immu/scripts/compare_stat_boxplot.r [- h]-m filepath-v variate [variate.]-g group [- b groupby] [- G geom] [--addDot] [- p palette [palette...]] [- T title] [- x xlab] [- y ylab] [- o path] [- n prefix] [- H number] [- W number] box plot and stat: optional arguments:-h -- help show this help message and exit-m filepath,-- metadata filepath input metadata filepath [required]-v variate [variate...],-- variate variate [variate...] Variate for box [required]-g group,-- group name from metadata to test [required]-b groupby,-- groupby groupby main group name from metadata to subset [default NULL]-G geom,-- geom geom set type of plot: boxplot, violin, splitviolin [default=boxplot]-p palette [palette...],-- palette palette [palette...] Fill color palette [default ('# e41a1cregions,'# 377eb8trees,'# 4daf4a3bands,'# 984ea3bands,'# ff7f00','# ffff33','# a65628eggs,'# f781bffills,'# 999999')]-T title,-- title title the label for main title [optional, default:]-x xlab -- xlab xlab input xlab [default]-y ylab,-- ylab ylab input ylab [default value]-o path,-- outdir path output file directory [default / share/nas1/huangls/test/TCGA_immu/07.survival]-n prefix,-- name prefix out file name prefix [default demo]-H number -- height number the height of pic inches [default 5]-W number,-- width number the width of pic inches [default 3] parameter description:

-m specifies the metadata file

-v specifies the column name of the variable to be compared. You can have more than one

-g specifies the grouped column name

-G specifies the output boxplot type

Use example: Rscript $scriptdir/compare_stat_boxplot.r-m. / 08.Nomogram/nomogram_metadata.tsv\-v PDGFRL CXCR4 PAK3 CSF1R PDCD1\-g risk.group-n signature.geneExp-W 10-G boxplot-y "log2 (TPM)"how to group by column in metadata" is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report