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

Программа развёртывания и свёртывания src-db-VCF по полю ALT #32

Open
PlatonB opened this issue Oct 18, 2022 · 1 comment
Assignees
Labels
help wanted Extra attention is needed new tool Идея создания нового инструмента

Comments

@PlatonB
Copy link
Owner

PlatonB commented Oct 18, 2022

Раз задумка касается только VCF, то проге быть плагином.

Прототип:
MongoDB_unwind_group

Если с $unwind-стадией всё просто, то с формированием $group придётся чуть повозиться:

  1. Собрать имена всех полей (N штук) исходного VCF в список;
  2. Добавить в $group ID в качестве _id;
  3. Сгенерировать N $first-выражений, вставив туда вышеупомянутые имена полей;
  4. Добавить эти выражения в $group;
  5. Для ALT заменить $first на $push.
@PlatonB PlatonB added the new tool Идея создания нового инструмента label Oct 18, 2022
@PlatonB PlatonB self-assigned this Oct 18, 2022
@PlatonB PlatonB changed the title Программа развёртывания (и свёртывания?) src-db-VCF по полю ALT Программа развёртывания и свёртывания src-db-VCF по полю ALT Oct 18, 2022
@PlatonB
Copy link
Owner Author

PlatonB commented Nov 7, 2022

Надо предусмотреть случай наличия полей GT. К примеру, 1/3 должно превращаться в трижды 1/1. И наоборот. Как это сделать силами MongoDB $group, пока не знаю.

@PlatonB PlatonB added the help wanted Extra attention is needed label Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed new tool Идея создания нового инструмента
Projects
None yet
Development

No branches or pull requests

1 participant