-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRBL-19.rmd
More file actions
76 lines (52 loc) · 2.08 KB
/
RBL-19.rmd
File metadata and controls
76 lines (52 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
title: "RBL-19"
author: "Wilfried Guiblet"
output:
github_document:
html_preview: true
date: "`r Sys.Date()`"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE)
setwd("/Users/guibletwm/Lab_Work/CCRRBL-15")
library(ggplot2)
library(dplyr)
library(ggpubr)
library(rstatix)
```
# Tailer Analysis
```{bash, eval=FALSE}
module load python
#pip install jla-tailer
Tailer -a references/gencode.v49.annotation.gtf rawfiles/17.bam
Tailer -a references/gencode.v49.annotation.gtf rawfiles/17multi.bam
Tailer -a references/gencode.v49.annotation.gtf rawfiles/99.bam
Tailer -a references/gencode.v49.annotation.gtf rawfiles/99multi.bam
Tailer -a references/gencode.v49.annotation.gtf rawfiles/ctrl.bam
Tailer -a references/gencode.v49.annotation.gtf rawfiles/c_multi.bam
mv rawfiles/*_tail.csv Tailer/gencode_genes/
```
export NXF_SINGULARITY_CACHEDIR=$PWD/.singularity
export SINGULARITY_CACHEDIR=$PWD/.singularity
singularity pull bed2gtf.sif docker://wilfriedguiblet/bed2gtf:v0.1
singularity shell -B $(pwd)/:/data2/ bed2gtf.sif
bed2gtf -b hg38-tRNAs.bed -o hg38-tRNAs.gtf --no-gene
# Appends gene_name "<gene_id_value>" at the end of the line:
sed -E 's/(gene_id "([^"]+)";)/\1 gene_name "\2"/' hg38-tRNAs.gtf > hg38-tRNAs.withnames.gtf
# switch to exon
vim /home/guibletwm/.local/lib/python3.10/site-packages/Tailer/TailerFunctions.py
```{bash, eval=FALSE}
module load python
#pip install jla-tailer
Tailer -a references/hg38-tRNAs.withnames.gtf rawfiles/17.bam
Tailer -a references/hg38-tRNAs.withnames.gtf rawfiles/17multi.bam
Tailer -a references/hg38-tRNAs.withnames.gtf rawfiles/99.bam
Tailer -a references/hg38-tRNAs.withnames.gtf rawfiles/99multi.bam
Tailer -a references/hg38-tRNAs.withnames.gtf rawfiles/ctrl.bam
Tailer -a references/hg38-tRNAs.withnames.gtf rawfiles/c_multi.bam
#c_multi is too big
samtools view -s 0.25 -b rawfiles/c_multi.bam > rawfiles/c_multi.subset.bam
samtools index rawfiles/c_multi.subset.bam
Tailer -a references/hg38-tRNAs.withnames.gtf rawfiles/c_multi.subset.bam
mv rawfiles/c_multi.subset_tail.csv Tailer/tRNAs/
```