Skip to content

Commit

Permalink
End-of-day push, 2023-0908: Have updated scripts in 2023-0215 to use …
Browse files Browse the repository at this point in the history
…new repo name in work-directory path, and have begun writing to-be-determined.R to implement JM's method for estimating total RNA between Q and G1, and Q and log
  • Loading branch information
Kris Alavattam committed Sep 9, 2023
1 parent e8c0117 commit 53b7a51
Show file tree
Hide file tree
Showing 50 changed files with 1,527 additions and 747 deletions.
8 changes: 4 additions & 4 deletions results/2023-0215/rough-draft_coverage-tracks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# Run grabnode with defaults except request 8 nodes
cd ~/2022_transcriptome-construction/results/2023-0215 \
cd ~/2022-2023_RRP6-NAB3/results/2023-0215 \
|| echo "cd'ing failed; check on this..."

# mamba create -n coverage_env -c bioconda deeptools # Only if not installed
Expand All @@ -18,16 +18,16 @@ source activate coverage_env
# Initialize variables, arrays -----------------------------------------------
job_name="rough-draft_coverage-tracks"

p_bam="${HOME}/2022_transcriptome-construction/results/2023-0215/bams_renamed/UT_prim_UMI" # ., "${p_bam}"
p_bw="${HOME}/2022_transcriptome-construction/results/2023-0215/bws/UT_prim_UMI" # ., "${p_bw}"
p_bam="${HOME}/2022-2023_RRP6-NAB3/results/2023-0215/bams_renamed/UT_prim_UMI" # ., "${p_bam}"
p_bw="${HOME}/2022-2023_RRP6-NAB3/results/2023-0215/bws/UT_prim_UMI" # ., "${p_bw}"
p_eo="${p_bw}/err_out" # ., "${p_eo}"

err_out="${p_eo}/${job_name}" # echo "${err_out}"

# threads="${SLURM_CPUS_ON_NODE}" # echo "${threads}"
threads=8 # echo "${threads}"

p_excl="/home/kalavatt/2022_transcriptome-construction_2023-0215/outfiles_gtf-gff3/already" # ., "${p_excl}"
p_excl="/home/kalavatt/2022-2023_RRP6-NAB3_2023-0215/outfiles_gtf-gff3/already" # ., "${p_excl}"
# f_excl="SC_features-rRNA-tRNA.bed"
f_excl="SC_features-rRNA-tRNA_intergenic-MEP2-AAH1.bed"
# do_blacklist=FALSE
Expand Down
484 changes: 242 additions & 242 deletions results/2023-0215/rough-draft_coverage-tracks_timecourse_size-effect.sh

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion results/2023-0215/rough-draft_draw_scatter-plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ theme_AG_boxed_no_legend <- theme_AG_boxed + theme(legend.position = "none")
# Get situated, load RDS files ===============================================
# Set work dir
p_base <- "/Users/kalavatt/projects-etc"
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"

setwd(paste(p_base, p_exp, sep = "/"))

Expand Down
2 changes: 1 addition & 1 deletion results/2023-0215/rough-draft_estimate-RNA-degredation.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_base <- "/Users/kalavatt/projects-etc"
}
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"

# Set work dir
paste(p_base, p_exp, sep = "/") %>% setwd()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_local <- "/Users/kalavatt/projects-etc"
}
p_wd <- "2022_transcriptome-construction/results/2023-0215"
p_wd <- "2022-2023_RRP6-NAB3/results/2023-0215"

setwd(paste(p_local, p_wd, sep = "/"))
getwd()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_local <- "/Users/kalavatt/projects-etc"
}
p_wd <- "2022_transcriptome-construction/results/2023-0215"
p_wd <- "2022-2023_RRP6-NAB3/results/2023-0215"
setwd(paste(p_local, p_wd, sep = "/"))
getwd()
Expand Down Expand Up @@ -185,7 +185,7 @@ underscore$`n3-d_Q_day7_tcn_N_aux-T_tc-F_rep1_tech1` %>% sum() # [1] 21827889
grabnode # 1 CPU, defaults
ml SAMtools/1.16.1-GCC-11.2.0
cd /home/kalavatt/tsukiyamalab/kalavatt/2022_transcriptome-construction \
cd /home/kalavatt/tsukiyamalab/kalavatt/2022-2023_RRP6-NAB3 \
|| echo "cd'ing failed; check on this"
cd results/2023-0215/bams_renamed/UT_prim_UMI \
Expand Down
6 changes: 3 additions & 3 deletions results/2023-0215/rough-draft_handle-matrices-gtfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# library(rtracklayer)
# library(tidyverse)
#
# setwd("~/projects-etc/2022_transcriptome-construction/results/2023-0215")
# setwd("~/projects-etc/2022-2023_RRP6-NAB3/results/2023-0215")
# getwd()
#
# list.dirs()
Expand All @@ -37,7 +37,7 @@ library(GenomicRanges)
library(rtracklayer)
library(tidyverse)

setwd("~/projects-etc/2022_transcriptome-construction/results/2023-0215")
setwd("~/projects-etc/2022-2023_RRP6-NAB3/results/2023-0215")
getwd()

t_mat <- "all-samples.combined-SC-KL-20S.hc-strd-eq.mRNA.tsv"
Expand Down Expand Up @@ -166,7 +166,7 @@ library(GenomicRanges)
library(rtracklayer)
library(tidyverse)

setwd("~/projects-etc/2022_transcriptome-construction/results/2023-0215")
setwd("~/projects-etc/2022-2023_RRP6-NAB3/results/2023-0215")
getwd()

t_mat <- "all-samples.combined-AG.hc-strd-eq.XUT.tsv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_local <- "/Users/kalavatt/projects-etc"
}
p_wd <- "2022_transcriptome-construction/results/2023-0215"
p_wd <- "2022-2023_RRP6-NAB3/results/2023-0215"

setwd(paste(p_local, p_wd, sep = "/"))
getwd()
Expand Down
2 changes: 1 addition & 1 deletion results/2023-0215/rough-draft_new-approach-to-analyses.R
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ theme_AG_boxed_no_legend <- theme_AG_boxed + theme(legend.position = "none")

# Get situated, load counts matrix ===========================================
p_base <- "/Users/kalavatt/projects-etc"
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"

# Set work dir
paste(p_base, p_exp, sep = "/") %>% setwd()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_base <- "/Users/kalavatt/projects-etc"
}
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"

paste(p_base, p_exp, sep = "/") %>% setwd()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_base <- "/Users/kalavatt/projects-etc"
}
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"

# Set work dir
paste(p_base, p_exp, sep = "/") %>% setwd()
Expand Down
2 changes: 1 addition & 1 deletion results/2023-0215/rough-draft_plot-distributions_length.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_base <- "/Users/kalavatt/projects-etc"
}
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"

# Set work dir
paste(p_base, p_exp, sep = "/") %>% setwd()
Expand Down
2 changes: 1 addition & 1 deletion results/2023-0215/rough-draft_run-analyses_Fig-5B-5C.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ theme_AG_boxed_no_legend <- theme_AG_boxed + theme(legend.position = "none")
# Get situated, load RDS files, and load TPM dataframe =======================
# Set work dir
p_base <- "/Users/kalavatt/projects-etc"
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"

paste(p_base, p_exp, sep = "/") %>% setwd()

Expand Down
2 changes: 1 addition & 1 deletion results/2023-0215/rough-draft_run-analyses_GO.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_base <- "/Users/kalavatt/projects-etc"
}
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"

# Set work dir
paste(p_base, p_exp, sep = "/") %>% setwd()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_base <- "/Users/kalavatt/projects-etc"
}
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"

# Set work dir
paste(p_base, p_exp, sep = "/") %>% setwd()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ theme_slick_no_legend <- theme_slick + theme(legend.position = "none")

# Get situated, load counts matrix ===========================================
p_base <- "/Users/kalavatt/projects-etc"
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"
p_tsv <- "outfiles_htseq-count/already/combined-SC-KL-20S/UT_prim_UMI"
f_tsv <- "all-samples.combined-SC-KL-20S.hc-strd-eq.mRNA.tsv"
# paste(p_base, p_exp, p_tsv, f_tsv, sep = "/") %>%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ theme_slick_no_legend <- theme_slick + theme(legend.position = "none")

# Get situated, load counts matrix ===========================================
p_base <- "/Users/kalavatt/projects-etc"
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"
p_tsv <- "outfiles_htseq-count/already/combined-SC-KL-20S/UT_prim_UMI"
f_tsv <- "all-samples.combined-SC-KL-20S.hc-strd-eq.mRNA.tsv"
# paste(p_base, p_exp, p_tsv, f_tsv, sep = "/") %>%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ theme_slick_no_legend <- theme_slick + theme(legend.position = "none")

# Get situated, load counts matrix ===========================================
p_base <- "/Users/kalavatt/projects-etc"
p_exp <- "2022_transcriptome-construction/results/2023-0215"
p_exp <- "2022-2023_RRP6-NAB3/results/2023-0215"
p_tsv <- "outfiles_htseq-count/already/combined-SC-KL-20S/UT_prim_UMI"
f_tsv <- "all-samples.combined-SC-KL-20S.hc-strd-eq.mRNA.tsv"
# paste(p_base, p_exp, p_tsv, f_tsv, sep = "/") %>%
Expand Down
2 changes: 1 addition & 1 deletion results/2023-0215/rough-draft_write-gtf-blacklist.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_local <- "/Users/kalavatt/projects-etc"
}
p_wd <- "2022_transcriptome-construction/results/2023-0215"
p_wd <- "2022-2023_RRP6-NAB3/results/2023-0215"

setwd(paste(p_local, p_wd, sep = "/"))
getwd()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if(stringr::str_detect(getwd(), "kalavattam")) {
} else {
p_local <- "/Users/kalavatt/projects-etc"
}
p_wd <- "2022_transcriptome-construction/results/2023-0215"
p_wd <- "2022-2023_RRP6-NAB3/results/2023-0215"

setwd(p_wd)
# getwd()
Expand Down
Loading

0 comments on commit 53b7a51

Please sign in to comment.