mirror of
https://github.com/dchakro/shared_Rscripts.git
synced 2026-05-17 09:12:16 -07:00
Updates
- add IsolateCanonicalVariant.R - remove variables used to check and install dependencies
This commit is contained in:
parent
b35647d0df
commit
a1a6dd9dcf
3 changed files with 77 additions and 1 deletions
|
|
@ -33,6 +33,7 @@
|
|||
dependencies <- c("stringi", "progress")
|
||||
missing_packages <- dependencies[!(dependencies %in% installed.packages()[, "Package"])]
|
||||
if(length(missing_packages)) install.packages(missing_packages)
|
||||
rm(missing_packages,dependencies)
|
||||
|
||||
unparalog <- function(DATA, paralog_separator = ";", annotation_separator = ",", GeneColName , AnnotationColName ){
|
||||
# Sanity checks
|
||||
|
|
@ -51,7 +52,7 @@ unparalog <- function(DATA, paralog_separator = ";", annotation_separator = ",",
|
|||
stop("Inconsistencies with these input parameters.\n Ensure they are correct and try again.")
|
||||
}
|
||||
# Cleanup
|
||||
rm(missing_packages,dependencies,check_paralog_sep,check_annotation_sep)
|
||||
rm(check_paralog_sep,check_annotation_sep)
|
||||
gc()
|
||||
|
||||
current.idx <- 1 # nrow(DATA)+1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue