my code after fixing it looks like this.
Code:
awk 'BEGIN {OFS="\t"} { gsub(/chr(3|7|10|11|14|17|20)/, "chr1", $1); print }' inFile > outFile
You are currently viewing the SEQanswers forums as a guest, which limits your access. Click here to register now, and join the discussion
awk 'BEGIN {OFS="\t"} { gsub(/chr(3|7|10|11|14|17|20)/, "chr1", $1); print }' inFile > outFile
awk '{ gsub(/chr[3|7|10|11|14|17|20]/, "ch1", $1); print }' inFile > outFile
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 12-02-2026, 11:10 AM
|
0 responses
16 views
0 reactions
|
Last Post
by SEQadmin2
12-02-2026, 11:10 AM
|
||
|
Single-Nucleus Sequencing Links Type 2 Diabetes Risk Variants to Specific Muscle Cell Types
by SEQadmin2
Started by SEQadmin2, 12-01-2026, 11:06 AM
|
0 responses
24 views
0 reactions
|
Last Post
by SEQadmin2
12-01-2026, 11:06 AM
|
||
|
Started by SEQadmin2, 11-23-2026, 11:11 AM
|
0 responses
62 views
0 reactions
|
Last Post
by SEQadmin2
11-23-2026, 11:11 AM
|
||
|
Started by SEQadmin2, 11-17-2026, 06:27 AM
|
0 responses
60 views
0 reactions
|
Last Post
by SEQadmin2
11-17-2026, 06:27 AM
|
Leave a comment: