Skip to content

Commit fa90827

Browse files
committed
tweaks
1 parent a57e5bc commit fa90827

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ checks that:
99
+ the VCF has a #CHROM header
1010
+ the chromosome are in the order specified by the genome file (and present)
1111
+ the positions are sorted
12-
+ the position are <= the chromosome lengths defined in the genome file.
12+
+ the positions are <= the chromosome lengths defined in the genome file.
1313

1414
As a result, any new genome going into GGD will have a .genome file that will dictate
1515
the sort order and presence or absence of the 'chr' prefix for chromosomes.

cmd/check-sort-order/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func checkLine(iline int, line []byte, lastChrom []byte, lastStart int,
6868
if !bytes.Equal(chrom, lastChrom) {
6969
if len(lastChrom) != 0 {
7070
if !cmp(string(lastChrom), string(chrom)) {
71-
return chrom, start, fmt.Errorf("chromosomes not in specified sort order: %s, %s at line %d\n", lastChrom, chrom, iline)
71+
return chrom, start, fmt.Errorf("chromosomes not in specified sort order: %s, %s at line %d\nuse gsort (https://github.com/brentp/gsort/) to order according to the genome file", lastChrom, chrom, iline)
7272
}
7373
}
7474
lastChrom = chrom

0 commit comments

Comments
 (0)