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

R how to merge table files horizontally according to the common ID

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article "r language how to merge table files horizontally according to the common ID" is not understood by most people, so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "r language how to merge table files horizontally according to the common ID" article.

Merge_tsv_files.r merges table files horizontally according to the common ID

How to use it:

$Rscript $scriptdir/merge_tsv_files.r-husage: / work/STAD_immu_demo1/scripts/merge_tsv_files.r [- h]-I input [input...] [- b by [by...]] [- t type] [- p prefix] [- o outdir] merge tsv files by rownamesoptional arguments:-h -- help show this help message and exit-I input [input...],-- input input [input...] Input gct format file [required]-b by [by...],-- by by [by...] Character vector of variable names to join by. If omitted,will match on all common variables. -t type,-- type of join: left (default), right, inner or full-p prefix,-- prefix prefix output file name prefix [default demo]-o outdir,-- outdir outdir output file directory [default cwd]

Instructions for use:

-I specify the path where multiple table files are located

-- by the two tables share the same column name as ID:

-- type merge type. Left is based on the ID of the leftmost key column of the table. ID that does not exist will be removed. Inner takes intersection.

Examples of use:

Rscript $scriptdir/merge_tsv_files.r-I $workdir/metadata.tsv hclust/hclusters.tsv\ immu/estimate_score.tsv-p metadata.group-- by barcode above is about the content of this article about "how r language merges form files horizontally according to common ID". I believe you all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

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