diff --git a/CT_GA_count.R b/CT_GA_count.R index 3522047..fb8ff55 100644 --- a/CT_GA_count.R +++ b/CT_GA_count.R @@ -7,9 +7,9 @@ CT_GA_count <- function(SampleID,Ref_Base,Alt_Base){ # # Please read and abide by the terms of the included LICENSE. # # Copyright 2020, Deepankar Chakroborty, All rights reserved. # # -# # Author : Deepankar Chakroborty (https://gitlab.utu.fi/deecha) -# # Report issues: https://gitlab.utu.fi/deecha/shared_scripts/-/issues -# # License: https://gitlab.utu.fi/deecha/shared_scripts/-/blob/master/LICENSE +# # Author : Deepankar Chakroborty (https://github.com/dchakro) +# # Report issues: https://github.com/dchakro/shared_Rscripts/issues +# # License: https://github.com/dchakro/shared_Rscripts/blob/master/LICENSE # #<----------------------------> # # PURPOSE: diff --git a/IsolateCanonicalVariant.R b/IsolateCanonicalVariant.R index 8813f2e..d70dcbd 100644 --- a/IsolateCanonicalVariant.R +++ b/IsolateCanonicalVariant.R @@ -11,9 +11,9 @@ IsolateCanonicalVariant <- function (AAchangeAnnotations){ # # Please read and abide by the terms of the included LICENSE. # # Copyright 2020, Deepankar Chakroborty, All rights reserved. # # -# # Author : Deepankar Chakroborty (https://gitlab.utu.fi/deecha) -# # Report issues: https://gitlab.utu.fi/deecha/shared_scripts/-/issues -# # License: https://gitlab.utu.fi/deecha/shared_scripts/-/blob/master/LICENSE +# # Author : Deepankar Chakroborty (https://github.com/dchakro) +# # Report issues: https://github.com/dchakro/shared_Rscripts/issues +# # License: https://github.com/dchakro/shared_Rscripts/blob/master/LICENSE # #<----------------------------> diff --git a/MutSiteFind.R b/MutSiteFind.R index 70ccda6..ae69cf2 100644 --- a/MutSiteFind.R +++ b/MutSiteFind.R @@ -11,9 +11,9 @@ MutSiteFind <- function(MutationColumn){ # # Please read and abide by the terms of the included LICENSE. # # Copyright 2020, Deepankar Chakroborty, All rights reserved. # # -# # Author : Deepankar Chakroborty (https://gitlab.utu.fi/deecha) -# # Report issues: https://gitlab.utu.fi/deecha/shared_scripts/-/issues -# # License: https://gitlab.utu.fi/deecha/shared_scripts/-/blob/master/LICENSE +# # Author : Deepankar Chakroborty (https://github.com/dchakro) +# # Report issues: https://github.com/dchakro/shared_Rscripts/issues +# # License: https://github.com/dchakro/shared_Rscripts/blob/master/LICENSE # #<----------------------------> @@ -25,7 +25,12 @@ MutSiteFind <- function(MutationColumn){ # # (i.e. returns only the start position) +# # USAGE: +# # AA.pos <- as.integer(MutSiteFind(mut)) + + return(unlist(x = stringi::stri_extract_first_regex(str = MutationColumn,pattern = "[[:digit:]]+"), use.names = F)) } + diff --git a/ggplotBreaks.R b/ggplotBreaks.R index 48121ac..0c28a94 100644 --- a/ggplotBreaks.R +++ b/ggplotBreaks.R @@ -5,9 +5,9 @@ ggplotBreaks <- function(range,tick,skip.steps=0){ # # Please read and abide by the terms of the included LICENSE. # # Copyright 2020, Deepankar Chakroborty, All rights reserved. # # -# # Author : Deepankar Chakroborty (https://gitlab.utu.fi/deecha) -# # Report issues: https://gitlab.utu.fi/deecha/shared_scripts/-/issues -# # License: https://gitlab.utu.fi/deecha/shared_scripts/-/blob/master/LICENSE +# # Author : Deepankar Chakroborty (https://github.com/dchakro) +# # Report issues: https://github.com/dchakro/shared_Rscripts/issues +# # License: https://github.com/dchakro/shared_Rscripts/blob/master/LICENSE # #<----------------------------> diff --git a/unparalogMutations.R b/unparalogMutations.R index ddf3ff5..1e1698a 100644 --- a/unparalogMutations.R +++ b/unparalogMutations.R @@ -11,9 +11,9 @@ unparalog <- function(DATA, paralog_separator = ";", annotation_separator = ",", # # Please read and abide by the terms of the included LICENSE. # # Copyright 2020, Deepankar Chakroborty, All rights reserved. # # -# # Author : Deepankar Chakroborty (https://gitlab.utu.fi/deecha) -# # Report issues: https://gitlab.utu.fi/deecha/shared_scripts/-/issues -# # License: https://gitlab.utu.fi/deecha/shared_scripts/-/blob/master/LICENSE +# # Author : Deepankar Chakroborty (https://github.com/dchakro) +# # Report issues: https://github.com/dchakro/shared_Rscripts/issues +# # License: https://github.com/dchakro/shared_Rscripts/blob/master/LICENSE # #<---------------------------->