Closed tobiasko closed 1 year ago
Please change
> data = '{\n\t"id" : "LGGNEQVTR_GAGSSEPVTGLDAK",\n "inputs" : [ {\n "name" : "peptides_in_str:0",\n "shape" : [ 1,2 ],\n "datatype" : "BYTES",\n "data" : ["LGGNEQVTR","GAGSSEPVTGLDAK"]\n} ]}'
to > data = '{\n\t"id" : "LGGNEQVTR_GAGSSEPVTGLDAK",\n "inputs" : [ {\n "name" : "peptides_in_str:0",\n "shape" : [ 2,1 ],\n "datatype" : "BYTES",\n "data" : ["LGGNEQVTR","GAGSSEPVTGLDAK"]\n} ]}'
The difference was between shape: [1,2]
and shape: [2,1]
Perfect! 🙏
> data = '{\n\t"id" : "LGGNEQVTR_GAGSSEPVTGLDAK",\n "inputs" : [ {\n "name" : "peptides_in_str:0",\n "shape" : [ 2,1 ],\n "datatype" : "BYTES",\n "data" : ["LGGNEQVTR","GAGSSEPVTGLDAK"]\n} ]}'
> res <- httr::POST(url = 'http://eubic2023.external.msaid.io:8501/v2/models/Deeplc_Triton_ensemble/infer', httr::add_headers(.headers=headers), body = data)
> status_code(res)
[1] 200
> str(content(res))
List of 5
$ id : chr "LGGNEQVTR_GAGSSEPVTGLDAK"
$ model_name : chr "Deeplc_Triton_ensemble"
$ model_version: chr "1"
$ parameters :List of 3
..$ sequence_id : int 0
..$ sequence_start: logi FALSE
..$ sequence_end : logi FALSE
$ outputs :List of 1
..$ :List of 4
.. ..$ name : chr "dense_323"
.. ..$ datatype: chr "FP32"
.. ..$ shape :List of 2
.. .. ..$ : int 2
.. .. ..$ : int 1
.. ..$ data :List of 2
.. .. ..$ : num 2.56
.. .. ..$ : num 3.5
Hi everyone,
I have the following issue: I am trying to predict RTs for multiple peptides using the DeepLC model. My R code is:
The model returns only 1 prediction for two input sequences. Does somebody know why and how to fix this?