Skip to content

Commit

Permalink
fix missing samples bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk committed Jan 23, 2024
1 parent b6376dc commit 1efb192
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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
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 1efb192

Please sign in to comment.