Skip to content

Commit

Permalink
added rename and update comment instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
gf777 committed Jan 18, 2025
1 parent 99621de commit 08a2be0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gfalibs
Submodule gfalibs updated 3 files
+4 −0 include/gfa.h
+20 −31 include/sak.h
+40 −97 src/gfa.cpp
16 changes: 16 additions & 0 deletions instructions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down
5 changes: 5 additions & 0 deletions testFiles/random1.comment.sak
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions testFiles/random1.rename.sak
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RENAME Header4 newHeader4
RENAME Header1 newHeader1
RENAME Header5 newHeader5
RENAME Header2 newHeader2
RENAME Header3 newHeader3

0 comments on commit 08a2be0

Please sign in to comment.