Hi, it's this part:
```{r}exampleSwitchList <- isoformSwitchAnalysisPart1( switchAnalyzeRlist = aSwitchList, outputSequences = TRUE, prepareForWebServers = TRUE)```
I haven't fixed any and had more new problems. so I totally have 13 samples, according to your manual, it is better to run step by step and use isoformSwitchTestSatuRn. so here are my recent script:
```{r}
salmonQuant <- importIsoformExpression(parentDir="salmonoutput", pattern="quant.sf")
myDesign <- data.frame(
sampleID = colnames(salmonQuant$abundance)[-1],
condition = c('FXS','FXS','Control','Control','FXS','FXS','FXS','FXS','Control','Control','Control','Control','Control')
)
aSwitchList <- importRdata(
isoformCountMatrix = salmonQuant$counts,
isoformRepExpression = salmonQuant$abundance,
designMatrix = myDesign,
isoformExonAnnoation="D:/experiment/data analysis/reference genome/gencode/gencode.v42.annotation.gtf.gz", isoformNtFasta="D:/experiment/data analysis/reference genome/gencode/gencode.v42.transcripts.fa.gz",
fixStringTieAnnotationProblem = TRUE,
showProgress = FALSE)
aslist <- preFilter(
switchAnalyzeRlist = aSwitchList,
geneExpressionCutoff = 4)
```
```{r}
aslist1 <- isoformSwitchTestSatuRn(
switchAnalyzeRlist = aslist,
reduceToSwitchingGenes=TRUE)
```
But when I ran the last part (red highlighted), I got the error:
Step 1 of 4: Creating SummarizedExperiment data object...
Step 2 of 4: Fitting linear models...
|++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed=02m 46s
Step 3 of 4: Testing pairwise comparison(s)...
Step 4 of 4: Preparing output...
Result added switchAnalyzeRlist
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'which': 'list' object cannot be coerced to type 'double'
In addition: There were 17 warnings (use warnings() to see them)