-
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.
- Loading branch information
Showing
7 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
json.array! @ecnumbers do |ecnumber| | ||
json.code ecnumber.code | ||
json.name ecnumber.name | ||
end |
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,2 @@ | ||
json.name @error_name | ||
json.message @error_message |
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,5 @@ | ||
json.array! @goterms do |goterm| | ||
json.code goterm.code | ||
json.name goterm.name | ||
json.namespace goterm.namespace | ||
end |
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,5 @@ | ||
json.array! @interpros do |interpro| | ||
json.code interpro.code | ||
json.category interpro.category | ||
json.name interpro.name | ||
end |
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 @@ | ||
json.db_version @data[:db_version] |
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,10 @@ | ||
json.lca @lca_taxon ? @lca_taxon.id : -1 | ||
json.common_lineage(@common_lineage.map(&:id)) | ||
json.proteins @entries do |entry| | ||
json.uniprotAccessionId entry.uniprot_accession_number | ||
json.name entry.name | ||
json.organism entry.taxon_id | ||
json.ecNumbers(entry.ec_cross_references.map(&:ec_number_code)) | ||
json.goTerms(entry.go_cross_references.map(&:go_term_code)) | ||
json.interproEntries(entry.interpro_cross_references.map(&:interpro_entry_code)) | ||
end |
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,6 @@ | ||
json.array! @taxa do |taxon| | ||
json.id taxon.id | ||
json.name taxon.name | ||
json.rank taxon.rank | ||
json.lineage(Lineage.ranks.map { |rank| taxon.lineage.send(rank) }) | ||
end |