Skip to content

Commit 9f842b7

Browse files
committed
fix inconsitency bugs
1 parent 0b104de commit 9f842b7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

R/minION_function.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ demultiplexByMarkerMinION <- function (sampleTable, markerTable, outputDir, trim
4545
}))
4646
resM <- merge.data.frame(sampleTable[, c("SampleID", "SampleName",
4747
"BarcodePair")], resM, by = c("SampleID", "BarcodePair"))
48+
# temporary fix of historical issues
49+
sampleTable$ReadFile <- sampleTable$FileR1
50+
sampleTable$FileR1 <- NULL
4851
return(resM)
4952
}
5053

docs/documentation/minIonDR_workflow.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To install HaplotypR start R and first install ShortRead and dada2 by typing:
2020
```R
2121
if (!requireNamespace("BiocManager", quietly = TRUE))
2222
install.packages("BiocManager")
23-
BiocManager::install(c("ShortRead","dada2")
23+
BiocManager::install(c("ShortRead","dada2"))
2424
```
2525

2626
Then install devtools by typing
@@ -116,11 +116,9 @@ write.csv(finalTab, file=file.path(outputDir, "finalHaplotypList_vMinION.csv"),
116116

117117
Calculate mismatch rate and call SNPs
118118
```R
119-
dePlexMarker <- dePlexMarker[dePlexMarker$]
120-
121119
refSeq <- DNAStringSet(markerTab$ReferenceSequence)
122120
names(refSeq) <- markerTab$MarkerID
123-
snpLst <- createSNPsList(outputDir, sampleTable=dePlexMarker, markerTable=markerTab, refSeq=refSeq, postfix=postfix)
121+
snpLst <- createSNPsList(outputDir, sampleTable=dePlexMarker, markerTable=markerTab, refSeq=refSeq)
124122
```
125123

126124

docs/documentation/minIon_workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To install HaplotypR start R and first install ShortRead and dada2 by typing:
2020
```R
2121
if (!requireNamespace("BiocManager", quietly = TRUE))
2222
install.packages("BiocManager")
23-
BiocManager::install(c("ShortRead","dada2")
23+
BiocManager::install(c("ShortRead","dada2"))
2424
```
2525

2626
Then install devtools by typing

0 commit comments

Comments
 (0)