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

New multivalue field dnaSequenceID #1099

Open
thomasstjerne opened this issue Oct 22, 2024 · 2 comments
Open

New multivalue field dnaSequenceID #1099

thomasstjerne opened this issue Oct 22, 2024 · 2 comments

Comments

@thomasstjerne
Copy link

thomasstjerne commented Oct 22, 2024

  1. Create a new searchable multivalue field named dnaSequenceID in the ES index
  2. When a DNA derived data extension has data in the field DNA_sequence, populate dnaSequenceID as follows:
  • Uppercase the DNA_sequence
  • Remove non IUPAC chars and gaps with a regex like /[^ACGTURYSWKMBDHVN]/g
  • Do a MD5 hash of the uppercased, cleaned sequence and insert it in dnaSequenceID

We want this to be a multivalue field because some occurrences may have multiple lines in DNA derived data extension.

@tobiasgf
Copy link

tobiasgf commented Nov 6, 2024

I suggest using the broader and more unambiguous: dnaSequenceID - it also indicates the connetion to the field (DNA_sequence) from which the value is derived.

Reasoning: "ASV" is strictly speaking a DNA sequence resulting from only some particular sequencing and bioinformatic processing pipelines, not all. BOLD sequences (e.g.) are for the major part Sanger sequences (not ASVs). Currently we do not identify and separate DNA sequences of different "types" or from different sources (environmental DNA or specimens etc) to handle them differently. Thus, we need a more accommodating term than asvID, I think.

@thomasstjerne thomasstjerne changed the title New multivalue field asvID New multivalue field dnaSequenceID Nov 7, 2024
@thomasstjerne
Copy link
Author

I have updated this issue according to @tobiasgf ´s comment

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

2 participants