|
|
@@ -98,7 +98,7 @@ const getInteractionsFromEntry = async (json:any) => {
|
|
|
|
|
|
// Reference scope = INTERACTION WITH
|
|
|
const scope_inter = jsonata(`entry.reference[scope ~> /INTERACTION WITH/i ]`).evaluate(json)
|
|
|
- let genes_scope_inter = []
|
|
|
+ let genes_scope_inter:any[] = []
|
|
|
if (scope_inter) {
|
|
|
const comment_scope_inters = Array.isArray(scope_inter) ? scope_inter : [scope_inter]
|
|
|
const comment_scope_inters_genes = comment_scope_inters.map((e:any) => ({
|
|
|
@@ -113,7 +113,7 @@ const getInteractionsFromEntry = async (json:any) => {
|
|
|
|
|
|
// Comment subunit
|
|
|
const comment_subunit = jsonata(`entry.comment[type="subunit"].text.value`).evaluate(json)
|
|
|
- let comment_subunits_genes = []
|
|
|
+ let comment_subunits_genes:any[] = []
|
|
|
if (comment_subunit) {
|
|
|
const comment_subunits = Array.isArray(comment_subunit) ? comment_subunit : [comment_subunit]
|
|
|
comment_subunits_genes = comment_subunits
|