Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions documentation/query_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ default.mutations(minProportion:=0.9, sequenceNames:={main, S})

| Field | Type | Description |
|-------|------|-------------|
| `mutation` | string | Substitution formatted as `<from><position><to>`, e.g. `A23403G`, `E156-` |
| `mutationFrom` | string | Reference symbol at this position |
| `mutationTo` | string | Observed symbol (`-` for a deletion) |
| `position` | integer | 1-based position in the sequence |
Expand All @@ -201,7 +200,7 @@ default.mutations(minProportion:=0.9, sequenceNames:={main, S})
| `count` | integer | Number of sequences carrying this mutation |

```json
{"mutation": "N501Y", "mutationFrom": "N", "mutationTo": "Y", "position": 501, "sequenceName": "S", "proportion": 0.44086021505376344, "coverage": 93, "count": 41}
{"mutationFrom": "N", "mutationTo": "Y", "position": 501, "sequenceName": "S", "proportion": 0.44086021505376344, "coverage": 93, "count": 41}
```

### `aminoAcidMutations(minProportion:=p [, sequenceNames:={...}] [, fields:={...}])`
Expand All @@ -225,14 +224,13 @@ default.insertions(sequenceNames:={main})

| Field | Type | Description |
|-------|------|-------------|
| `insertion` | string | Formatted as `ins_<position>:<symbols>`, e.g. `ins_22204:CAGAA` |
| `insertedSymbols` | string | The inserted nucleotide sequence |
| `position` | integer | 1-based position after which the insertion occurs (0 = before position 1) |
| `sequenceName` | string | Name of the sequence |
| `count` | integer | Number of sequences carrying this exact insertion |

```json
{"insertion": "ins_22204:CAGAA", "insertedSymbols": "CAGAA", "position": 22204, "sequenceName": "main", "count": 1}
{"insertedSymbols": "CAGAA", "position": 22204, "sequenceName": "main", "count": 1}
```

### `aminoAcidInsertions([sequenceNames:={...}])`
Expand Down
8 changes: 1 addition & 7 deletions endToEndTests/test/queries/aaInsertionsAction.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,40 @@
{
"testCaseName": "amino acid insertions action",
"query": "default.aminoAcidInsertions().orderBy({insertion, position})",
"query": "default.aminoAcidInsertions().orderBy({sequenceName, position, insertedSymbols})",
"expectedQueryResult": [
{
"count": 1,
"insertedSymbols": "F",
"insertion": "ins_ORF1a:3602:F",
"position": 3602,
"sequenceName": "ORF1a"
},
{
"count": 1,
"insertedSymbols": "T",
"insertion": "ins_S:143:T",
"position": 143,
"sequenceName": "S"
},
{
"count": 1,
"insertedSymbols": "IV",
"insertion": "ins_S:210:IV",
"position": 210,
"sequenceName": "S"
},
{
"count": 1,
"insertedSymbols": "*EPE",
"insertion": "ins_S:214:*EPE",
"position": 214,
"sequenceName": "S"
},
{
"count": 4,
"insertedSymbols": "EPE",
"insertion": "ins_S:214:EPE",
"position": 214,
"sequenceName": "S"
},
{
"count": 1,
"insertedSymbols": "SGE",
"insertion": "ins_S:247:SGE",
"position": 247,
"sequenceName": "S"
}
Expand Down
2 changes: 0 additions & 2 deletions endToEndTests/test/queries/aaInsertionsActionAndFilter.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
{
"count": 1,
"insertedSymbols": "*EPE",
"insertion": "ins_S:214:*EPE",
"position": 214,
"sequenceName": "S"
},
{
"count": 4,
"insertedSymbols": "EPE",
"insertion": "ins_S:214:EPE",
"position": 214,
"sequenceName": "S"
}
Expand Down
5 changes: 0 additions & 5 deletions endToEndTests/test/queries/aaInsertionsActionOneSequence.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,30 @@
{
"count": 1,
"insertedSymbols": "*EPE",
"insertion": "ins_S:214:*EPE",
"position": 214,
"sequenceName": "S"
},
{
"count": 4,
"insertedSymbols": "EPE",
"insertion": "ins_S:214:EPE",
"position": 214,
"sequenceName": "S"
},
{
"count": 1,
"insertedSymbols": "IV",
"insertion": "ins_S:210:IV",
"position": 210,
"sequenceName": "S"
},
{
"count": 1,
"insertedSymbols": "SGE",
"insertion": "ins_S:247:SGE",
"position": 247,
"sequenceName": "S"
},
{
"count": 1,
"insertedSymbols": "T",
"insertion": "ins_S:143:T",
"position": 143,
"sequenceName": "S"
}
Expand Down
26 changes: 0 additions & 26 deletions endToEndTests/test/queries/aaMutDistribution.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
{
"count": 37,
"coverage": 97,
"mutation": "T19R",
"mutationFrom": "T",
"mutationTo": "R",
"position": 19,
Expand All @@ -15,7 +14,6 @@
{
"count": 37,
"coverage": 91,
"mutation": "G142D",
"mutationFrom": "G",
"mutationTo": "D",
"position": 142,
Expand All @@ -25,7 +23,6 @@
{
"count": 35,
"coverage": 94,
"mutation": "E156-",
"mutationFrom": "E",
"mutationTo": "-",
"position": 156,
Expand All @@ -35,7 +32,6 @@
{
"count": 35,
"coverage": 94,
"mutation": "F157-",
"mutationFrom": "F",
"mutationTo": "-",
"position": 157,
Expand All @@ -45,7 +41,6 @@
{
"count": 34,
"coverage": 94,
"mutation": "R158G",
"mutationFrom": "R",
"mutationTo": "G",
"position": 158,
Expand All @@ -55,7 +50,6 @@
{
"count": 34,
"coverage": 99,
"mutation": "G339D",
"mutationFrom": "G",
"mutationTo": "D",
"position": 339,
Expand All @@ -65,7 +59,6 @@
{
"count": 33,
"coverage": 98,
"mutation": "S373P",
"mutationFrom": "S",
"mutationTo": "P",
"position": 373,
Expand All @@ -75,7 +68,6 @@
{
"count": 33,
"coverage": 99,
"mutation": "S375F",
"mutationFrom": "S",
"mutationTo": "F",
"position": 375,
Expand All @@ -85,7 +77,6 @@
{
"count": 38,
"coverage": 88,
"mutation": "L452R",
"mutationFrom": "L",
"mutationTo": "R",
"position": 452,
Expand All @@ -95,7 +86,6 @@
{
"count": 32,
"coverage": 93,
"mutation": "S477N",
"mutationFrom": "S",
"mutationTo": "N",
"position": 477,
Expand All @@ -105,7 +95,6 @@
{
"count": 69,
"coverage": 94,
"mutation": "T478K",
"mutationFrom": "T",
"mutationTo": "K",
"position": 478,
Expand All @@ -115,7 +104,6 @@
{
"count": 31,
"coverage": 93,
"mutation": "E484A",
"mutationFrom": "E",
"mutationTo": "A",
"position": 484,
Expand All @@ -125,7 +113,6 @@
{
"count": 31,
"coverage": 93,
"mutation": "Q493R",
"mutationFrom": "Q",
"mutationTo": "R",
"position": 493,
Expand All @@ -135,7 +122,6 @@
{
"count": 30,
"coverage": 93,
"mutation": "Q498R",
"mutationFrom": "Q",
"mutationTo": "R",
"position": 498,
Expand All @@ -145,7 +131,6 @@
{
"count": 41,
"coverage": 93,
"mutation": "N501Y",
"mutationFrom": "N",
"mutationTo": "Y",
"position": 501,
Expand All @@ -155,7 +140,6 @@
{
"count": 30,
"coverage": 93,
"mutation": "Y505H",
"mutationFrom": "Y",
"mutationTo": "H",
"position": 505,
Expand All @@ -165,7 +149,6 @@
{
"count": 98,
"coverage": 99,
"mutation": "D614G",
"mutationFrom": "D",
"mutationTo": "G",
"position": 614,
Expand All @@ -175,7 +158,6 @@
{
"count": 37,
"coverage": 99,
"mutation": "H655Y",
"mutationFrom": "H",
"mutationTo": "Y",
"position": 655,
Expand All @@ -185,7 +167,6 @@
{
"count": 34,
"coverage": 100,
"mutation": "N679K",
"mutationFrom": "N",
"mutationTo": "K",
"position": 679,
Expand All @@ -195,7 +176,6 @@
{
"count": 42,
"coverage": 100,
"mutation": "P681H",
"mutationFrom": "P",
"mutationTo": "H",
"position": 681,
Expand All @@ -205,7 +185,6 @@
{
"count": 38,
"coverage": 100,
"mutation": "P681R",
"mutationFrom": "P",
"mutationTo": "R",
"position": 681,
Expand All @@ -215,7 +194,6 @@
{
"count": 31,
"coverage": 95,
"mutation": "N764K",
"mutationFrom": "N",
"mutationTo": "K",
"position": 764,
Expand All @@ -225,7 +203,6 @@
{
"count": 34,
"coverage": 99,
"mutation": "D796Y",
"mutationFrom": "D",
"mutationTo": "Y",
"position": 796,
Expand All @@ -235,7 +212,6 @@
{
"count": 34,
"coverage": 97,
"mutation": "D950N",
"mutationFrom": "D",
"mutationTo": "N",
"position": 950,
Expand All @@ -245,7 +221,6 @@
{
"count": 33,
"coverage": 98,
"mutation": "Q954H",
"mutationFrom": "Q",
"mutationTo": "H",
"position": 954,
Expand All @@ -255,7 +230,6 @@
{
"count": 34,
"coverage": 99,
"mutation": "N969K",
"mutationFrom": "N",
"mutationTo": "K",
"position": 969,
Expand Down
Loading