Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'N' in reference genome fasta not supported #156

Open
bricoletc opened this issue Mar 1, 2021 · 0 comments
Open

'N' in reference genome fasta not supported #156

bricoletc opened this issue Mar 1, 2021 · 0 comments

Comments

@bricoletc
Copy link
Member

bricoletc commented Mar 1, 2021

When running gramtools build with --ref <ref.fa> and <ref.fa> contains 'N' bases (or indeed anything else than A/C/G/T) we get:

2021-03-01 17:27:35,872 gramtools    ERROR    Did not receive a nucleotide: N not in {A,C,G,T}
2021-03-01 17:27:35,872 gramtools    ERROR    Unsuccessful vcf_to_PRG_string_conversion.

The current recommended workaround is to replace these with a given base, eg replace all 'N's with 'C's.

A possible fix is to use a dedicated integer for non-A/C/G/T bases in the binary prg string, which should trigger read mapping to fail when reached.

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

No branches or pull requests

1 participant