Skip to content

Commit 9df2a05

Browse files
committed
fix rgfa tests post merge
1 parent 0ad32a2 commit 9df2a05

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/algorithms/gfa_to_handle.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,6 @@ tuple<string, size_t, string, pair<int64_t, int64_t>, GFAParser::chars_t, GFAPar
674674

675675
// Grab the haplotype number
676676
int64_t haplotype_number = take_number(cursor, end, -1, "parsing haplotype number");
677-
if (haplotype_number == -1) {
678-
// This field is required
679-
throw GFAFormatError("Missing haplotype number in W line", cursor);
680-
}
681677
take_tab(cursor, end, "parsing end of haplotype number");
682678

683679
// Grab the sequence/contig/locus name

test/t/48_vg_convert.t

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,15 +404,13 @@ is "${?}" "0" "GFA -> HashGraph -> GFA conversion preserves path metadata"
404404

405405
# We can't do rGFA to GBZ directly until the GBWTGraph GFA parser learns to read tags
406406
# rGFA to HashGraph to GBZ to GFA
407-
# todo: would be great if gbz could preserve the NO_HAPLOTYPE
408-
# gbz also strips the end of the subrange
409-
vg paths -M -x graphs/rgfa_with_reference.rgfa | sed -e 's/NO_HAPLOTYPE/0/g' -e 's/_rGFA_#/_rGFA_#0#/g' -e 's/-2//g' -e 's/-8//g' | sort >paths.truth.txt
407+
vg paths -M -x graphs/rgfa_with_reference.rgfa | sed -e 's/-2//g' -e 's/-8//g' | sort >paths.truth.txt
410408
vg convert -a graphs/rgfa_with_reference.rgfa > rgfa_with_reference.hg
411409
vg gbwt -x rgfa_with_reference.hg -E --gbz-format -g rgfa_with_reference.gbz
412410
vg paths -M -x rgfa_with_reference.gbz | sort >paths.gbz.txt
413411
cmp paths.gbz.txt paths.truth.txt
414412
is "${?}" "0" "rGFA -> HashGraph -> GBZ conversion preserves path metadata"
415-
vg paths -M -x graphs/rgfa_with_reference.rgfa | sed -e 's/NO_HAPLOTYPE/0/g' -e 's/_rGFA_#/_rGFA_#0#/g' | sort >paths.truth.txt
413+
vg paths -M -x graphs/rgfa_with_reference.rgfa | sort >paths.truth.txt
416414
vg convert -f rgfa_with_reference.gbz >extracted.gfa
417415
vg paths -M -x extracted.gfa | sort >paths.gfa.txt
418416
cmp paths.gfa.txt paths.truth.txt

0 commit comments

Comments
 (0)