-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from bento-platform/releases/v3.2
releases/v3.2
- Loading branch information
Showing
15 changed files
with
457 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package dtos | ||
|
||
import ( | ||
"api/models/constants" | ||
"api/models/indexes" | ||
) | ||
|
||
// ---- Variants | ||
type VariantReponse struct { | ||
Status int `json:"status,omitempty"` | ||
Message string `json:"message,omitempty"` | ||
} | ||
type VariantGetReponse struct { | ||
VariantReponse | ||
Results []VariantGetResult `json:"results"` | ||
} | ||
type VariantCountReponse struct { | ||
VariantReponse | ||
Results []VariantCountResult `json:"results"` | ||
} | ||
|
||
type VariantResult struct { | ||
Query string `json:"query,omitempty"` | ||
AssemblyId constants.AssemblyId `json:"assembly_id"` | ||
Chromosome string `json:"chromosome"` | ||
Start int `json:"start"` | ||
End int `json:"end"` | ||
} | ||
|
||
type VariantGetResult struct { | ||
VariantResult | ||
Calls []VariantCall `json:"calls"` | ||
} | ||
type VariantCountResult struct { | ||
VariantResult | ||
Count int `json:"count"` | ||
} | ||
|
||
type VariantCall struct { | ||
Chrom string `json:"chrom,omitempty"` | ||
Pos int `json:"pos,omitempty"` | ||
Id string `json:"id,omitempty"` | ||
Ref []string `json:"ref,omitempty"` | ||
Alt []string `json:"alt,omitempty"` | ||
Format []string `json:"format,omitempty"` | ||
Qual int `json:"qual,omitempty"` | ||
Filter string `json:"filter,omitempty"` | ||
|
||
Info []indexes.Info `json:"info,omitempty"` // TODO; refactor? | ||
|
||
SampleId string `json:"sample_id"` | ||
GenotypeType string `json:"genotype_type"` | ||
// TODO: GenotypeProbability, PhredScaleLikelyhood ? | ||
|
||
AssemblyId constants.AssemblyId `json:"assemblyId,omitempty"` | ||
} | ||
|
||
// -- Genes | ||
type GenesResponseDTO struct { | ||
Status int `json:"status"` | ||
Message string `json:"message"` | ||
Term string `json:"term"` | ||
Count int `json:"count"` | ||
Results []indexes.Gene `json:"results"` // []Gene | ||
} |
4 changes: 1 addition & 3 deletions
4
src/api/models/elasticsearch.go → src/api/models/indexes/main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package structs | ||
|
||
import ( | ||
"api/models" | ||
"api/models/indexes" | ||
"sync" | ||
) | ||
|
||
type IngestionQueueStructure struct { | ||
Variant *models.Variant | ||
Variant *indexes.Variant | ||
WaitGroup *sync.WaitGroup | ||
} | ||
|
||
type GeneIngestionQueueStructure struct { | ||
Gene *models.Gene | ||
Gene *indexes.Gene | ||
WaitGroup *sync.WaitGroup | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.