Skip to content

Commit

Permalink
Merge pull request #3 from nvnieuwk/dev
Browse files Browse the repository at this point in the history
Version 0.1.1 patch release
  • Loading branch information
nvnieuwk authored Jan 23, 2024
2 parents 4d27add + 87fce5a commit 2e88d49
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 0.1.1 - Transform
## Fixes
- Fixed a bug where the samples were missing from the header

# 0.1.0 - Change

Initial release
2 changes: 1 addition & 1 deletion svync.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func main() {
Name: "svync",
Usage: "A tool to standardize VCF files from structural variant callers",
HideHelpCommand: true,
Version: "0.1.0",
Version: "0.1.1",
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "nodate",
Expand Down
9 changes: 4 additions & 5 deletions svync_api/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,13 @@ func parseLine(
stdout bool,
variantCount *int,
) {
if !strings.HasSuffix(line, "#") && !*headerIsMade {
writeHeader(config, Cctx, header, outputFile, stdout)
*headerIsMade = true
}

if strings.HasPrefix(line, "#") {
header.parse(line)
} else {
if !*headerIsMade {
writeHeader(config, Cctx, header, outputFile, stdout)
*headerIsMade = true
}
// id := strings.Split(line, "\t")[2]
variant := createVariant(line, header, Cctx)

Expand Down

0 comments on commit 2e88d49

Please sign in to comment.