This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree | |
├── app | |
│ └── myapp | |
│ └── app.R | |
└── compose.yml | |
$ mkdir -p app/myapp | |
$ sudo chmod 777 app/myapp # shiny user can write | |
$ docker compose up | |
# Click the 'Write Output File' button |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8' standalone='yes'?> | |
<sbgn xmlns="http://sbgn.org/libsbgn/0.3"> | |
<map id="causative.nwt" language="sif"> | |
<extension> | |
<renderInformation | |
xmlns="http://www.sbml.org/sbml/level3/version1/render/version1" id="renderInformation" program-name="sbgnviz" program-version="6.0.1" background-color="#00000000"> | |
<listOfColorDefinitions> | |
<colorDefinition id="color_1" value="#ffffffff"/> | |
<colorDefinition id="color_2" value="#323232"/> | |
<colorDefinition id="color_3" value="#ff8164"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. The Elevator Pitch Summary | |
Prompt: "Summarise this paper in 3–5 sentences, as if you're explaining it to a colleague in an elevator ride." | |
2. Key Findings Extraction | |
Prompt: "List the top 5 key findings or conclusions from this paper, along with a brief explanation of each." | |
3. Methodology Breakdown | |
Prompt: "Explain the methodology used in this study in simple terms. What are its strengths and potential limitations?" | |
4. Literature Review Assistant |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
calculate_total <- function(items) { | |
subtotal <- sum(items) | |
tax_rate <- getOption("TAX_RATE", default = 0.1) # Default 10% tax | |
total <- subtotal * (1 + tax_rate) | |
return(round(total, 2)) | |
} | |
# Test the function with default tax rate | |
cart1 <- c(10, 20, 30) | |
print(calculate_total(cart1)) # Output: 66.00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests.auth import HTTPBasicAuth | |
username = "USERNAME" | |
app_password = "API_PASSWORD" | |
base_url = f"https://api.bitbucket.org/2.0/repositories/{username}" | |
def fetch_repositories(url): | |
response = requests.get(url, auth=HTTPBasicAuth(username, app_password)) | |
response.raise_for_status() # Raises an error for bad status codes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
# Define the UI | |
ui <- fluidPage( | |
titlePanel("Rainbow Color Palette"), | |
sidebarLayout( | |
sidebarPanel( | |
sliderInput("s_value", "Saturation (s):", min = 0, max = 1, value = 1, step = 0.01), | |
sliderInput("v_value", "Value (v):", min = 0, max = 1, value = 1, step = 0.01) | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(survival) | |
# Function to generate survival data | |
generate_data <- function(sample_size, event_rate_group1, event_rate_group2) { | |
group <- c(rep(1, sample_size), rep(0, sample_size)) | |
event_times <- c(rexp(sample_size, rate = event_rate_group1), | |
rexp(sample_size, rate = event_rate_group2)) | |
observed <- rep(1, sample_size * 2) # Assuming all events are observed | |
data <- data.frame(group = group, event_times = event_times, observed = observed) | |
return(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo singularity build rnaseq3 rnaseq3.def | |
./rnaseq3 cat /etc/os-release # debian 11, host=ubuntu 2204 | |
./rnaseq3 samtools --version # 1.10 | |
./rnaseq3 STAR --version # 2.5.2b | |
./rnaseq3 fastqc -v # v0.12.1 | |
./rnaseq3 kallisto | head 1 # 0.50.1 | |
./rnaseq3 subread # command not found | |
./rnaseq3 featureCounts -v | head # v2.0.6 | |
./rnaseq3 ls /opt/conda/bin | |
./rnaseq3 which gcc # 10.2.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download Raw counts | |
```{r} | |
library(TCGAbiolinks) | |
proj <- "TCGA-GBM" | |
query <- GDCquery( | |
project = proj, | |
data.category = "Transcriptome Profiling", | |
data.type = "Gene Expression Quantification", | |
workflow.type = "STAR - Counts" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-3.2510638297872343 | -231.0344827586207 | |
---|---|---|
-2.2808510638297874 | -170.68965517241372 | |
-2.612765957446809 | -151.72413793103442 | |
3.1063829787234054 | 246.55172413793102 | |
3.846808510638298 | 246.55172413793102 | |
2.7234042553191484 | 175.86206896551727 | |
2.340425531914893 | 194.82758620689657 | |
2.519148936170212 | 158.62068965517244 | |
2.187234042553192 | 162.0689655172414 | |
2.187234042553192 | 146.55172413793105 |
NewerOlder