{{define "pharma"}}{{$v := . -}} {{$inters := list -}} {{$alset := false}} {{with get $v "KEGG Entries"}}{{range . -}} {{range $int := .Interactions -}} {{$alset = false}} {{range $sint := $inters -}} {{if eq $int.Target $sint.Target}}{{$_ := $int.Action | append $sint.Actions | uniq | sortAlpha | set $sint "Actions"}} {{$alset = true}} {{end -}} {{end -}} {{if eq $alset false}}{{$inters = (dict "Target" $int.Target "Actions" (list $int.Action)) | append $inters}}{{end -}} {{end}}{{end}}{{end -}}
{{if any $v.Actives $v.SwissTargetPredictions $inters (get $v "ATC Code") -}}
{{with $ratc := get $v "ATC Code" -}} {{with $atc := kindIs "string" $ratc | ternary (list $ratc "") $ratc -}}
{{template "user" "{wkp 'Anatomical Therapeutic Chemical Classification System' 'ATC Classification'}"}}
{{$rmesh := get $v "MeSH Pharmacological Classification" -}} {{if kindIs "list" $rmesh}}{{with $mesh := $rmesh -}}
-
{{range $me := $mesh -}}
{{$name := $me.Name | replace "Central Nervous System Stimulant" "Stimulant" -}}
{{$name = $name | lower | trimSuffix "s" -}}
- {{printf "%s (%s)" $name $me.Id $me.Id -}} {{end -}}
{{if $v.Actives -}}
{{$v.Title}} acts as a {{$ac := "prodrug"}}{{range $cc := $v.Classes}}{{if eq (lower $cc) "codrug"}}{{$ac = "codrug"}}{{end}}{{end}}{{if eq $ac "codrug"}}codrug{{else}}prodrug{{end}} for:
| Metabolic pathways {{template "exnd" .collapse}} |
|---|
|
{{$off := 0}}{{range $active := $v.Actives}}{{$apiPath := printf "/api/substance/%s" (replace "_" "%20" (lower $active))}}{{$apiFile := httpInclude $apiPath}}{{$aars := fromJson $apiFile}}{{$off = add 200 $off}}{{end}}
At normal urine pH, about 30–40% of amphetamine is excreted unchanged and roughly 50% is excreted as the inactive metabolites (bottom row).[2] The remaining 10–20% is excreted as the active metabolites. */}}
|
{{if $inters}}
| {{$int.Target}} | {{range $i, $act:= $int.Actions}}{{.}}{{if eq (add1 $i) (len $int.Actions) | not}} / {{end}}{{end}} |
|---|