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

Multiple entries for the same variant in custom databases #100

Open
algarsi3 opened this issue Mar 29, 2023 · 1 comment
Open

Multiple entries for the same variant in custom databases #100

algarsi3 opened this issue Mar 29, 2023 · 1 comment

Comments

@algarsi3
Copy link

I need to create a custom database where a variant can have zero, one, or many annotations.
For instance, I need an output like this:

{
...
"variants": [
        {
          "vid": "17-7125299-C-T",
          "chromosome": "chr17",
          "begin": 7125299,
          "end": 7125299,
          "refAllele": "C",
          "altAllele": "T",
          "my_db": [
            {
              "significance": "resistance",
              "disease": "colorectal cancer",
              "direction": "supports",
            },
            {
              "significance": "sensitivity response",
              "disease": "ovary adenocarcinoma",
              "direction": "supports",
            },
          ]
...
}

I tried creating a tsv file with duplicated entries, which threw an error. I can generate a custom database that leads to the following annotation:

{
...
"variants": [
        {
          "vid": "17-7125299-C-T",
          "chromosome": "chr17",
          "begin": 7125299,
          "end": 7125299,
          "refAllele": "C",
          "altAllele": "T",
          "my_db": {
            "significance": "resistance|sensitivity response",
            "disease": "colorectal cancer|ovary adenocarcinoma",
            "direction": "supports|supports"
          },
...
}

However, this is not what I would like to achieve. Could you help me achieve the desired output? This output is similar to the "transcripts" annotations, but I cannot see how to generate such custom databases in the documentation.

Thank you.

@algarsi3
Copy link
Author

Hello, would you be able to help me with this?

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