Skip to content

Commit

Permalink
Merge branch 'main' into julianguyn/rna-sequencing
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah authored Nov 27, 2024
2 parents 8a699c8 + 73d51b6 commit d065118
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 39 deletions.
17 changes: 17 additions & 0 deletions docs/General/Meetings/owl_basics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Lab Owl meeting Basics

The Owl is a device that works as video and audio input for all meetings conducted in the BHK lab. It is pivotal to include the Owl in all lab meetings to bridge the gap between the users tuning in remote to the users on site.

## How to find/obtain the Owl

1. Go to Jermiah's work station (W-16).
2. Grab the key located on the bottom side of Jermiah's desk.
3. Using the key open the top drawer of the filing cabinet under Jermiah's workstation and grab the key labelled "Owl key".
4. Use this new key to open the bottom drawer of the filing cabinet directly to the right of the lab/GPU server and pull out the green Owl duffle bag.

## How to use the Owl

The Owl has two major setup components. The Owl must be connected to an electrical outlet and also be connected to your computer via a USB connection.
If you have a Mac laptop you may need to use an adapter to allow direct USB connection. Once the Owl is connected to power and your computer you may set it down in a spot that will
be able to easily see/hear everyone participating in the meeting physically. If you're hosting the meeting you also want to verify that the Owl is being used as the
audio and video input to the call.
52 changes: 52 additions & 0 deletions docs/disciplines/Bioinformatics/deseq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# DESeq2
DESeq2 is a popular R package used for analyzing RNA count data - transcriptomics. It is widely used for differentially expressed analysis (DE) between different conditions (e.g. WT vs. mutant). The package also integrates many powerful data processing and analysis tools.
## Features:
**Normalization**: DESeq2 normalizes the count data to account for differences in sequencing depth and RNA composition.
**Statistical Modeling**: It uses a negative binomial distribution to model the count data, which is appropriate for overdispersed count data.
**Differential Expression Analysis**: DESeq2 provides statistical tests to identify genes that are differentially expressed between conditions.
**Visualization**: The package includes functions for visualizing results, such as MA plots and heatmaps.

## Example

One may follow the workflow template from below (data preprocessing and further analysis are needed, and they vary between different analyses):
```
# Create DESeqDataSet object
dds <- DESeqDataSetFromMatrix(countData = countData, ## your raw count
colData = colData, ## your column metadata (i.e. sample/cell data)
design = ~ condition) ## specifies the experimental design (e.g. conditions, treatments, etc.)
# Run the DESeq2 pipeline
dds <- DESeq(dds)
DEresults = results(dds)
DEresults <- DEresults[order(DEresults$padj),]
# Extract results
res <- results(dds)
## MA plot to check how well normalization works
plotMA(dds)
```
One can perform QC through PCA plot:
```
rld <- rlog(dds)
DESeq2::plotPCA(rld, ntop = 500, intgroup = 'group') +
ylim(-50, 50) + theme_bw()
```
## Visually DE result with volcano plot
```
dds <- DESeq(dds)
DEresults = results(dds)
library(EnhancedVolcano)
# DEseq object is S4 object - we need to convert it to a data frame (S3)
DEresults <- as.data.frame(DEresults)
EnhancedVolcano(DEresults,
lab = row.names(DEresults),
x = 'log2FoldChange',
y = 'padj',
pCutoff = 5e-2,
FCcutoff = 1,
labSize = 2.5,
legendLabels=c('Not sig.',expression(paste('Log'[2],'FC')),'padj', expression(paste('padj & Log'[2],'FC'))),
ylab = "padj")
```
71 changes: 71 additions & 0 deletions docs/onboarding_offboarding/Onboarding/vpn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# [Configuring UHN VPN](#configuring-vpn)

## Quick introduction: why do we need a VPN?

A Virtual Private Network (VPN) is essential in the workplace to ensure secure and private access to the company network, especially when working remotely or on public Wi-Fi.

A VPN encrypts internet traffic, protecting sensitive data from potential cyber threats and unauthorized access. This helps maintain confidentiality, ensures data integrity, and supports secure access to internal resources, safeguarding the organization's digital environment.

GlobalProtect is UHN's VPN service for workers. GlobalProtect provides secure, encrypted access to the corporate network, ensuring users can safely connect to company resources from any location, while maintaining data security and compliance with organizational policies.

## Steps for configuring VPN on personal devices

Most likely you will need to configure the VPN on your personal device. The person onboarding you or your supervisor will probably tell you so and either request VPN access to IT for you or help you to do it.

IT will generally accept the request quickly, and send instructions to your corporate email on the steps to follow to install and configure the VPN.

If you are a Windows or Mac user, that's it. The manual is pretty good, simple and straightforward. Follow the steps and you've got this. Easy.

If you are on Ubuntu... There's no downloading link or steps. You get stuck on the very first step. Don't worry, you don't have to open a ticket on Helpdesk and wait for them to respond... The next section will make things easier for you.

## Downloading GlobalProtect software on Ubuntu
After contacting Helpdesk a few times, I finally got an email with the downloading instructions for Ubuntu. Here I leave the email, I think it may be useful.

> Download the installation file from the [link](https://roseshare.rose-hulman.edu/portal/s/162637781701644125980.tgz) or via the curl command:
>
curl https://roseshare.rose-hulman.edu/portal/s/162637781701644125980.tgz --output PanGPLinux-5.3.0-c32.tgz --ciphers 'DEFAULT:!DH'

> Unzip tar file, by running: tar -xvf PanGPLinux-5.3.0-c32.tgz
> Install the program:
> On Ubuntu/Debian, this is done through the command:
>
sudo dpkg –i GlobalProtect_deb-5.3.0.0-32.deb

> On Redhat/CentOS, this is done through the command:
>
sudo yum localinstall GlobalProtect_rpm-5.3.0.0-32.rpm

> To start the program, simply enter in a shell
>
globalprotect

> and then a prompt should display.
> From the prompt, run
>
connect -portal connect2.uhn.ca


> Login with your email address ([email protected]) as your username and password.
> Type quit to exit the prompt.
## That's it - just remember connecting and disconnecting the VPN every time you need it

Now that you have your laptop configured for the VPN, don't forget connecting every time you want to use it, running the following command:

globalprotect

And then running in the prompt:

connect -portal connect2.uhn.ca

When you want to disconnect from the VPN, you have to run

globalprotect

And then in the prompt:

disconnect
77 changes: 38 additions & 39 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d065118

Please sign in to comment.