diff options
author | Lan Hui <lanhui@zjnu.edu.cn> | 2025-05-14 07:39:20 +0800 |
---|---|---|
committer | Lan Hui <lanhui@zjnu.edu.cn> | 2025-05-14 07:39:20 +0800 |
commit | c27627044c39c3825ef3f055230d907d65731cff (patch) | |
tree | 4cf3fe74042ad1fb3c0e3eae5d66cea6a55c9f0c | |
parent | c7a0dc4983c4ad3e854d3af4b9309479887602b7 (diff) |
Awk command to count the number of columns
-rw-r--r-- | Code/buildRmatrix.py | 2 |
1 files changed, 2 insertions, 0 deletions
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.]
|