save content
This commit is contained in:
parent
1c1e98ad4f
commit
b133b8be24
4 changed files with 5 additions and 20 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
# one with OR
|
||||
# --> select/drop down option to remove empty positions
|
||||
# --> easy peasy, just select the merged_df3_comp
|
||||
# --> select/drop down option for colour
|
||||
# --> if clustalx and taylor, set variable to black bg + white font
|
||||
# --> if chemistry and hydrophobicity, then grey bg + black font
|
||||
|
@ -17,13 +16,6 @@
|
|||
# --> select/drop down option for colour
|
||||
# --> should include WT
|
||||
|
||||
# Data used
|
||||
#wide_df_or # or logo plot
|
||||
#wide_df_or_mult # > 1 sites
|
||||
#wide_df_logor_m #make it as a scale option. REDUNDANT
|
||||
#tab_mt # mutant logo plot
|
||||
#tab_wt # wt logo plot
|
||||
|
||||
# Make it hover over position and then get the corresponding data table!
|
||||
#%%======================================================================
|
||||
|
||||
|
@ -40,9 +32,6 @@
|
|||
#, xtt_col =
|
||||
#, ytt_col =
|
||||
|
||||
# ADD legend for hydrophobicity: done
|
||||
# ADD option to remove empty positions
|
||||
|
||||
LogoPlotCustomH <- function(plot_df
|
||||
, x_axis_colname = "position"
|
||||
, y_axis_colname = "or_mychisq"
|
||||
|
@ -198,4 +187,4 @@ LogoPlotCustomH <- function(plot_df
|
|||
|
||||
return(LogoPlot)
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
source("~/git/LSHTM_analysis/scripts/plotting/Header_TT.R")
|
||||
source("~/git/LSHTM_analysis/scripts/functions/ed_pfm_data.R")
|
||||
###########################################
|
||||
PlotLogolasMSA <- function(msaSeq_mut # chr vector
|
||||
LogoPlotMSA <- function(msaSeq_mut # chr vector
|
||||
, msaSeq_wt # chr vector
|
||||
#, msa_method = c("custom") # can be "bits", "probability" or "custom"
|
||||
, logo_type = c("EDLogo") #"bits_pfm", "probability_pfm", "bits_raw", "probability_raw") # can be "bits", "probability" or "custom"
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#source("~/git/LSHTM_analysis/config/gid.R")
|
||||
#source("~/git/LSHTM_analysis/config/pnca.R")
|
||||
source("~/git/LSHTM_analysis/config/pnca.R")
|
||||
#source("~/git/LSHTM_analysis/config/embb.R")
|
||||
#source("~/git/LSHTM_analysis/config/katg.R")
|
||||
#source("~/git/LSHTM_analysis/config/alr.R")
|
||||
#source("~/git/LSHTM_analysis/config/rpob.R")
|
||||
#---------------------------------------------------
|
||||
#source("~/git/LSHTM_analysis/scripts/plotting/get_plotting_dfs.R")
|
||||
source("~/git/LSHTM_analysis/scripts/plotting/get_plotting_dfs.R")
|
||||
|
||||
################################
|
||||
# Logo plot with custom Y axis
|
||||
|
@ -70,7 +70,6 @@
|
|||
# specify {plot_positions}
|
||||
# To plot entire MSA, simply don't specify {plot_positions}
|
||||
# script: logoP_msa.R
|
||||
# TODO: Add scaled data option
|
||||
########################################
|
||||
# LogoPlotMSA(msaSeq_mut = msa_seq
|
||||
# , msaSeq_wt = wt_seq
|
||||
|
|
|
@ -173,10 +173,9 @@ if(!require(protr)){
|
|||
# install.packages("BiocManager")
|
||||
|
||||
#BiocManager::install("Logolas")
|
||||
library("Logolas")
|
||||
#library("Logolas")
|
||||
library("Biostrings")
|
||||
|
||||
|
||||
####################################
|
||||
# Load all my functions:
|
||||
# only works if tidyverse is loaded
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue