Skip to content

Forcibly normalize all sequences when reading in a GFA#4961

Open
faithokamoto wants to merge 1 commit into
masterfrom
norm-gfa
Open

Forcibly normalize all sequences when reading in a GFA#4961
faithokamoto wants to merge 1 commit into
masterfrom
norm-gfa

Conversation

@faithokamoto

Copy link
Copy Markdown
Contributor

Changelog Entry

To be copied to the draft changelog by merger:

  • When reading in a GFA, node sequences are normalized (uppercased, non-ACGT converted to N) even if not strictly required for output format

Description

Resolves #3871 by forcing even vg convert -g <lowercase.gfa> -v to output with normalized base sequences. (We could also make this warn, e.g. with sanitize_sequence_in_place(), but since it doesn't warn on conversion to PG I kept everything silent.)

@faithokamoto

Copy link
Copy Markdown
Contributor Author

Also resolves #2919 which is a more direct explanation of the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lowercase entries in gfa file are not reported in variant calling

2 participants