# HG changeset patch
# User iuc
# Date 1684908414 0
# Node ID 2b0a6af4b85ef3bf9eadfc0ecd4550041ceb99b5
# Parent 2c4e879a81cf4e572bc42272737854fc574fa16f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/isoformswitchanalyzer commit d00628bfc2ac36914885e0941a2b4453ca0bff9a
diff -r 2c4e879a81cf -r 2b0a6af4b85e IsoformSwitchAnalyzeR.R
--- a/IsoformSwitchAnalyzeR.R Fri May 19 21:26:00 2023 +0000
+++ b/IsoformSwitchAnalyzeR.R Wed May 24 06:06:54 2023 +0000
@@ -34,6 +34,7 @@
type = "integer",
help = "Read length (required for stringtie)")
parser$add_argument("--annotation", required = FALSE, help = "Annotation")
+parser$add_argument("--stringtieAnnotation", required = FALSE, help = "Stringtie annotation")
parser$add_argument("--transcriptome", required = FALSE, help = "Transcriptome")
parser$add_argument(
"--fixStringTieAnnotationProblem",
@@ -105,6 +106,12 @@
help = "Overwrite IF values"
)
parser$add_argument(
+ "--removeNonConvensionalChr",
+ required = FALSE,
+ action = "store_true",
+ help = "Remove non-conventional chromosomes"
+)
+parser$add_argument(
"--reduceToSwitchingGenes",
required = FALSE,
action = "store_true",
@@ -348,27 +355,50 @@
)
if (args$toolSource == "stringtie") {
- SwitchList <- importRdata(
- isoformCountMatrix = quantificationData$counts,
- isoformRepExpression = quantificationData$abundance,
- designMatrix = myDesign,
- isoformExonAnnoation = args$annotation,
- isoformNtFasta = args$transcriptome,
- showProgress = TRUE,
- fixStringTieAnnotationProblem = args$fixStringTieAnnotationProblem
- )
+ if (!is.null(args$stringtieAnnotation)) {
+ SwitchList <- importRdata(
+ isoformCountMatrix = quantificationData$counts,
+ isoformRepExpression = quantificationData$abundance,
+ designMatrix = myDesign,
+ removeNonConvensionalChr = args$removeNonConvensionalChr,
+ isoformExonAnnoation = args$stringtieAnnotation,
+ isoformNtFasta = args$transcriptome,
+ addAnnotatedORFs = FALSE,
+ showProgress = TRUE,
+ fixStringTieAnnotationProblem = args$fixStringTieAnnotationProblem
+ )
+
+ SwitchList <- addORFfromGTF(
+ SwitchList,
+ removeNonConvensionalChr = args$removeNonConvensionalChr,
+ pathToGTF = args$annotation
+ )
+
+ } else {
+ SwitchList <- importRdata(
+ isoformCountMatrix = quantificationData$counts,
+ isoformRepExpression = quantificationData$abundance,
+ designMatrix = myDesign,
+ removeNonConvensionalChr = args$removeNonConvensionalChr,
+ isoformNtFasta = args$transcriptome,
+ isoformExonAnnoation = args$annotation,
+ showProgress = TRUE,
+ fixStringTieAnnotationProblem = args$fixStringTieAnnotationProblem
+ )
+ }
+
} else {
SwitchList <- importRdata(
isoformCountMatrix = quantificationData$counts,
isoformRepExpression = quantificationData$abundance,
designMatrix = myDesign,
+ removeNonConvensionalChr = args$removeNonConvensionalChr,
isoformExonAnnoation = args$annotation,
isoformNtFasta = args$transcriptome,
showProgress = TRUE
)
}
-
geneCountMatrix <- extractGeneExpression(
SwitchList,
extractCounts = TRUE,
@@ -484,16 +514,18 @@
showProgress = TRUE,
)
- SwitchList <- analyzeNovelIsoformORF(
- SwitchList,
- analysisAllIsoformsWithoutORF = TRUE,
- minORFlength = args$minORFlength,
- orfMethod = args$orfMethod,
- PTCDistance = args$PTCDistance,
- startCodons = "ATG",
- stopCodons = c("TAA", "TAG", "TGA"),
- showProgress = TRUE,
- )
+ if (!is.null(args$stringtieAnnotation)) {
+ SwitchList <- analyzeNovelIsoformORF(
+ SwitchList,
+ analysisAllIsoformsWithoutORF = TRUE,
+ minORFlength = args$minORFlength,
+ orfMethod = args$orfMethod,
+ PTCDistance = args$PTCDistance,
+ startCodons = "ATG",
+ stopCodons = c("TAA", "TAG", "TGA"),
+ showProgress = TRUE,
+ )
+ }
### Extract Sequences
SwitchList <- extractSequence(
diff -r 2c4e879a81cf -r 2b0a6af4b85e isoformswitchanalyzer.xml
--- a/isoformswitchanalyzer.xml Fri May 19 21:26:00 2023 +0000
+++ b/isoformswitchanalyzer.xml Wed May 24 06:06:54 2023 +0000
@@ -42,6 +42,15 @@
#end if
#if $functionMode.tool_source.selector == 'stringtie'
#set $filename = 't_data.ctab'
+ #if $functionMode.tool_source.novoisoforms.selector == 'novel'
+ #if $functionMode.tool_source.novoisoforms.stringtieAnnotation.is_of_type("gtf.gz"):
+ ln -s '${$functionMode.tool_source.novoisoforms.stringtieAnnotation}' './stringtie_annotation.gtf.gz' &&
+ #set $stringtie_annotation = './stringtie_annotation.gtf.gz'
+ #else
+ ln -s '${$functionMode.tool_source.novoisoforms.stringtieAnnotation}' './stringtie_annotation.gtf' &&
+ #set $stringtie_annotation = './stringtie_annotation.gtf'
+ #end if
+ #end if
#else
#set $filename = 'quant.sf'
#end if
@@ -61,8 +70,12 @@
--parentDir './input_files'
--annotation $annotation
--transcriptome $transcriptome
+ $functionMode.removeNonConvensionalChr
--toolSource $functionMode.tool_source.selector
#if $functionMode.tool_source.selector == 'stringtie'
+ #if $functionMode.tool_source.novoisoforms.selector == 'novel'
+ --stringtieAnnotation $stringtie_annotation
+ #end if
--readLength $functionMode.tool_source.averageSize
$functionMode.tool_source.fixStringTieAnnotationProblem
#end if
@@ -224,18 +237,32 @@
+
+
+
+
+
+
+
+
+
+
-
+
+
diff -r 2c4e879a81cf -r 2b0a6af4b85e macros.xml
--- a/macros.xml Fri May 19 21:26:00 2023 +0000
+++ b/macros.xml Wed May 24 06:06:54 2023 +0000
@@ -1,6 +1,6 @@
1.20.0
- 1
+ 2
bioconductor-isoformswitchanalyzer