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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Sample_ID Validation</title> | |
<!-- Bootstrap CSS --> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
.invalid { |
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
geom_boxplot(outlier.colour=NA ) |
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
renamer 's@_R([12])\.fastq\.gz@-R$1.fastq.gz@' *.gz -v |
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 sys | |
import openai | |
import json | |
import pandas as pd | |
from Bio import Entrez | |
from datetime import datetime | |
from PyQt6 import QtWidgets, QtGui | |
from PyQt6.QtCore import Qt | |
# Replace with your own ChatGPT API key |
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
func <- function(num) { | |
result <- c() | |
vec <- c("TT", "TT", "HT", "TH", "HH", "HH") | |
# bst <- sample(vec, num, replace = T) | |
for (i in 1:num) { | |
coin <- sample(vec, 1)[1] | |
if (startsWith(coin, "H")) { | |
result <- c(result, coin) |
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
Dockerfile | |
FROM rocker/r-ver | |
RUN /rocker_scripts/install_tidyverse.sh | |
RUN /rocker_scripts/install_python.sh | |
RUN R --quiet -e 'BiocManager::install("preprocessCore")' | |
RUN R --quiet -e 'install.packages("pacman", repos="http://cran.us.r-project.org")' | |
RUN R --quiet -e 'pacman::p_install("methods")' | |
RUN R --quiet -e 'pacman::p_install("lattice")' |
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
rle <- function(vec) { | |
n <- length(vec) | |
return (round( (prod(vec) ^ (1/n)))) | |
} | |
vec <- c(65,78,67,34,56,23) | |
rle(vec) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### I am going to make up the tech variable as a batch effect. For example, tech1 is measured by technician 1 and tech2 is measure by technician 2. And I am not interested in the effect of the tech variale, but would like to ignore or remove the effect of the tech variable. " | |
] | |
}, | |
{ |
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(naniar) | |
vis_miss(airquality) | |
reference | |
https://cran.r-project.org/web/packages/naniar/vignettes/naniar-visualisation.html |
NewerOlder