From 08a2be0393032350281cac60da10c7e69797c162 Mon Sep 17 00:00:00 2001 From: Giulio Formenti Date: Fri, 17 Jan 2025 23:51:18 -0500 Subject: [PATCH] added rename and update comment instructions --- gfalibs | 2 +- instructions/README.md | 16 ++++++++++++++++ testFiles/random1.comment.sak | 5 +++++ testFiles/random1.rename.sak | 5 +++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 testFiles/random1.comment.sak create mode 100644 testFiles/random1.rename.sak diff --git a/gfalibs b/gfalibs index 59b98b4..e48917b 160000 --- a/gfalibs +++ b/gfalibs @@ -1 +1 @@ -Subproject commit 59b98b4329987f3b93e3d30717da5d471cabc93e +Subproject commit e48917bdbbb5ca45b0e30e5b1d476d51a22fbd3f diff --git a/instructions/README.md b/instructions/README.md index c6fc462..b3e0a64 100644 --- a/instructions/README.md +++ b/instructions/README.md @@ -91,6 +91,22 @@ The CLEAVE instruction breaks the specified segment at the given position genera CLEAVE segment1 50 segment2 segment3 [edge1] ``` +## RENAME + +The RENAME instruction renames a path. It can be used to rename FASTA headers. + +``` +RENAME path1 new_path +``` + +## COMMENT + +The COMMENT instruction add or replaces an existing comment associated with a specific path/header. + +``` +COMMENT path1 comment +``` + ## Yet to be implemented ``` diff --git a/testFiles/random1.comment.sak b/testFiles/random1.comment.sak new file mode 100644 index 0000000..c0c15d8 --- /dev/null +++ b/testFiles/random1.comment.sak @@ -0,0 +1,5 @@ +COMMENT Header3 This is header 3 +COMMENT Header2 This is header 2 +COMMENT Header5 This is header 5 +COMMENT Header4 This is header 4 +COMMENT Header1 This is header 1 diff --git a/testFiles/random1.rename.sak b/testFiles/random1.rename.sak new file mode 100644 index 0000000..569be65 --- /dev/null +++ b/testFiles/random1.rename.sak @@ -0,0 +1,5 @@ +RENAME Header4 newHeader4 +RENAME Header1 newHeader1 +RENAME Header5 newHeader5 +RENAME Header2 newHeader2 +RENAME Header3 newHeader3