From c27627044c39c3825ef3f055230d907d65731cff Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Wed, 14 May 2025 07:39:20 +0800 Subject: Awk command to count the number of columns --- Code/buildRmatrix.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Code/buildRmatrix.py b/Code/buildRmatrix.py index bb5fdfb..ece3794 100644 --- a/Code/buildRmatrix.py +++ b/Code/buildRmatrix.py @@ -3,6 +3,8 @@ # # Purpose: make a TPM table, where each row is a gene, and each column is an experiment. The column name is RNA-seq experiment ID. # +# Tips: use awk to get the number of columns in the TPM table. awk -F'\t' '{print NF; exit}' ../Data/history/expr/TPM.txt +# # 23 Dec 2016, hui, slcu # Last modified 5 Apr 2017, hui, slcu # Last modified 25 Oct 2019, hui, zjnu [Comments; add a variable WARN_NA to turn on/off print NA warnings.] -- cgit v1.2.1