Bold bold text Italic italicized text Ordered List
- First item
- Second item
- Third item Unordered List
- First item
library(ggplot2) | |
library(yaml) | |
# Function to summarize a ggplot object | |
# TODO: dendrograms with hclust do not work | |
summarize_ggplot <- function(object) { | |
wrap <- function(x) paste( | |
paste(strwrap(x, exdent = 2), collapse = "\n"), | |
"\n", sep = "" | |
) |
// ==UserScript== | |
// @name PubMed Central LLM Summaries | |
// @namespace http://example.com | |
// @version 0.2 | |
// @description Add LLM Summaries to PMC | |
// @author cannin | |
// @match https://pubmed.ncbi.nlm.nih.gov/?term=* | |
// @match https://pubmed.ncbi.nlm.nih.gov/*/ | |
// @match https://www.ncbi.nlm.nih.gov/labs/pmc/articles/*/ | |
// @match https://www.ncbi.nlm.nih.gov/pmc/articles/*/ |
import json | |
import dspy | |
from dspy.teleprompt import BootstrapFewShot, LabeledFewShot | |
from dspy.evaluate import Evaluate, answer_exact_match | |
from dspy.datasets import DataLoader | |
# PURPOSE ---- | |
# Example with dataset read from CSV using LLM judge to evaluate the answer |
\begingroup | |
\fontsize{6pt}{12pt}\selectfont | |
\begin{verbatim} | |
6pt-tiny | |
\end{verbatim} | |
\endgroup |
https://hub.docker.com/r/cannin/caiman
docker pull cannin/caiman:1.9.15-20230906
sudo docker rm -f cm; sudo docker run --name cm -d -p 4444:4444 -p 5900:5900 -8888:8888 -e SE_VNC_PASSWORD=password -v /home/ubuntu/tmp:/home/seluser/tmp --shm-size="4g" cannin/caiman:1.9.15-20230906
library(lintr) | |
# Excluded linters | |
# closed_curly_linter | |
# camel_case_linter | |
# implicit_integer_linter | |
# paren_brace_linter | |
# pipe_continuation_linter | |
# trailing_blank_lines_linter | |
# commented_code_linter |
cancer_type | cancer_type_color | organ_system | organ_system_color | |
---|---|---|---|---|
BRCA | #ED2891 | Breast | #e6308e | |
GBM | #B2509E | Central Nervous System | #c48cbc | |
LGG | #D49DC7 | Central Nervous System | #c48cbc | |
COAD | #00AEEF | Core_GI | #7aa8d9 | |
ESCA | #007EB5 | Core_GI | #7aa8d9 | |
READ | #DAF1FC | Core_GI | #7aa8d9 | |
STAD | #00AEEF | Core_GI | #7aa8d9 | |
COADREAD | #00AEEF | Core_GI | #7aa8d9 | |
STES | #007EB5 | Core_GI | #7aa8d9 |
Imagine you are helping me interact with several dataset of cancer genomics data. At any given point of time, you have the following abilities. You are also required to output code for some of the requests.
Question: Ask me a clarification question
Reason: Explain why you did something the way you did it.
PARTICIPANT_A INTERACTION_TYPE PARTICIPANT_B INTERACTION_DATA_SOURCE INTERACTION_PUBMED_ID PATHWAY_NAMES MEDIATOR_IDS | |
ACTA2 in-complex-with CALD1 Reactome NA Smooth Muscle Contraction http://pathwaycommons.org/pc12/Complex_0518f6295b1ef06468655bd97bab06cd;http://pathwaycommons.org/pc12/Complex_31d66cd5a279d9da536a7808146a93e4;http://pathwaycommons.org/pc12/Complex_c0fb59281e2cbea8227d357ffd78f564;http://pathwaycommons.org/pc12/Complex_73a822be281ea321fb7bbc8d3b2e5b10 | |
ACTA2 in-complex-with ITGA1 Reactome NA Smooth Muscle Contraction http://pathwaycommons.org/pc12/Complex_0518f6295b1ef06468655bd97bab06cd;http://pathwaycommons.org/pc12/Complex_31d66cd5a279d9da536a7808146a93e4;http://pathwaycommons.org/pc12/Complex_c0fb59281e2cbea8227d357ffd78f564;http://pathwaycommons.org/pc12/Complex_73a822be281ea321fb7bbc8d3b2e5b10 | |
ACTA2 in-complex-with ITGB5 Reactome NA Smooth Muscle Contraction http://pathwaycommons.org/pc12/Complex_0518f6295b1ef06468655bd97bab06cd;http://pathwaycommons.org/pc12/Complex_31d66cd5a279d9da536a7 |