Skip to content

Commit 22f71ff

Browse files
committed
replace: add an example. #381
1 parent 1b9ac30 commit 22f71ff

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

doc/docs/usage.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3084,6 +3084,14 @@ Examples
30843084
CCCCAAAACCCCATGGCATCATTCA
30853085
>seq3 Hello
30863086
CCCCAAAACCCCATGTTGCTACTAG
3087+
3088+
If the target to replace is the sequence ID, meanwhile you would like to keep the description.
3089+
Please use this:
3090+
3091+
# ^(\S+) # ID
3092+
# (.+)$ # description
3093+
seqkit replace -p '^(\S+)(.+?)$' -r '{kv}$2' -k alias.txt test.fa
3094+
30873095

30883096
1. convert fasta to genbank style
30893097

0 commit comments

Comments
 (0)