Skip to content

Commit

Permalink
Reflect schema change in InterPro payload (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblum authored Aug 28, 2024
1 parent e1da885 commit 2587aad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ type InterProExtraField struct {
}

type InterProFragment struct {
Start json.Number `json:"start"`
End json.Number `json:"end"`
SeqFeature string `json:"seq_feature"`
Representative bool `json:"representative"`
Start json.Number `json:"start"`
End json.Number `json:"end"`
SeqFeature string `json:"seq_feature"`
}

type InterProLocation struct {
Fragments []InterProFragment `json:"fragments"`
Fragments []InterProFragment `json:"fragments"`
Representative bool `json:"representative"`
}

type InterProMatch struct {
Expand Down
2 changes: 1 addition & 1 deletion data/interpro.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func GetProteinMatches(database string, accession string) ([]GraphicFeature, err
for _, m := range e.Matches {
for _, l := range m.Locations {
for _, f := range l.Fragments {
if !filterDomains || f.Representative {
if !filterDomains || l.Representative {
gf := GraphicFeature{
Text: e.ExtraFields.ShortName,
Type: e.Metadata.Type,
Expand Down

0 comments on commit 2587aad

Please sign in to comment.