Skip to content

Commit

Permalink
load herbs metabolites
Browse files Browse the repository at this point in the history
  • Loading branch information
xieguigang committed Nov 18, 2024
1 parent 2642d28 commit 7323e4a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Rscript/Library/mzkit_app/src/mzkit/annotations/Massbank.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1003,9 +1003,25 @@ Module Massbank
Return HERB.HerbReader.LoadDatabase(repo).ToArray
End Function

''' <summary>
''' load herbs species information
''' </summary>
''' <param name="file"></param>
''' <returns></returns>
<ExportAPI("load_herbs_list")>
<RApiReturn(GetType(HERB_herb_info))>
Public Function load_herbs_list(file As String) As Object
Return file.LoadCsv(Of HERB_herb_info)(mute:=True, tsv:=True).ToArray
End Function

''' <summary>
''' load the herb compound information
''' </summary>
''' <param name="file"></param>
''' <returns></returns>
<ExportAPI("load_HERB_ingredient")>
<RApiReturn(GetType(HERB_ingredient_info))>
Public Function HERB_ingredient_info(file As String) As Object
Return file.LoadCsv(Of HERB_ingredient_info)(mute:=True, tsv:=True).ToArray
End Function
End Module

0 comments on commit 7323e4a

Please sign in to comment.