Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplex_Major_Patch #452

Open
wants to merge 168 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 139 commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
cd47663
Remove SE from being combined during extendAnno
andredsim Dec 1, 2022
cbec873
Copy over rowdata from equal read classes above NDR threshold
andredsim Apr 14, 2023
c7306ed
Add lowConfidenceTranscripts to metadata and speed up relSubsetCount
andredsim Apr 14, 2023
44f76ab
subset transcripts are added to metadata
andredsim Apr 14, 2023
7e32425
Add helper function to set NDR on extendedAnnotations
andredsim Apr 14, 2023
f5d4f17
function to set NDR threshold on extendedAnno
andredsim Apr 17, 2023
ba7c084
Revert "Add helper function to set NDR on extendedAnnotations"
andredsim Apr 14, 2023
46d9167
export setNDR
andredsim Apr 17, 2023
82fe064
readClass warnings kept only when rcFile is made and not when loaded in
andredsim Apr 18, 2023
50677f4
set seqlevels of reads to only seqnames in the reads to reduce warnings
andredsim Apr 20, 2023
d17cbf1
write NDR to gtf
andredsim Apr 26, 2023
232c160
Read in NDR if in gtf
andredsim Apr 26, 2023
0ae5c37
Allow setNDR to work on gtf files that are read in
andredsim Apr 26, 2023
3f464e0
Allow NDR filtering in NDR quant only mode
andredsim Apr 26, 2023
3043a1d
Add txScore to mcols
andredsim Apr 27, 2023
21187ce
read and write the txScore to GTF
andredsim Apr 27, 2023
0c288a7
NA's are loaded in as NAs from GTF
andredsim Apr 27, 2023
1741376
setNDR can now recommend NDR
andredsim Apr 27, 2023
8266e69
Add documentation to setNDR and carry arguments over
andredsim Apr 27, 2023
e159b48
Update test cases to include metadata and new warnings
andredsim Apr 27, 2023
d0b3b7d
Assign names to transcripts earler so subset and lowConf are given names
andredsim Apr 28, 2023
afc9e03
Remove unneeded argument
andredsim Apr 28, 2023
735a22e
Fix includeRef bug
andredsim Apr 28, 2023
d242796
Unit tests for setNDR
andredsim Apr 28, 2023
75458de
Unit tests for reading and writing NDR and txScore
andredsim Apr 28, 2023
5be3a63
Update documentation
andredsim May 3, 2023
108e8b9
fix setNDR test
andredsim May 3, 2023
f061a8e
Bambu now outputs 3 gtf files by default
andredsim May 9, 2023
601301a
4th GTF of novel transcripts only
andredsim May 9, 2023
49340ba
Include options to ignore GTF outputs
andredsim May 9, 2023
3923837
Update documentation with writeAnnotationsToGTF
andredsim May 9, 2023
584c811
Fix typo
andredsim Jun 13, 2023
3466f7f
Fix typo
andredsim Jun 26, 2023
754e5ed
Fix typo
andredsim Jun 26, 2023
897d735
Fix bug when rcOutDir not used
andredsim Jun 26, 2023
3645dae
Improve default outs to include counts of rcs and txs
andredsim Jun 26, 2023
0dfda6d
Ensure eqClasses is recalculated when setting NDR
andredsim Jul 10, 2023
d062a5b
Use one read class file for multiple samples
andredsim Sep 26, 2023
b54693e
quick fix hack to enable readGrgList as input
andredsim Sep 26, 2023
699034a
small temp hack to allow readClassInput for now
andredsim Sep 28, 2023
5fae869
Move getUniCountPerEquiRC outside bplapply
andredsim Sep 28, 2023
22a8aaf
Speed up bambu.quant
andredsim Sep 28, 2023
e7d3c7b
Clean up bambu.quantify and add calculateEqClassCounts
andredsim Sep 28, 2023
136f9a6
Tidy up code
andredsim Sep 28, 2023
df4476b
Also tidy up
andredsim Sep 28, 2023
ea452f0
Fix issue where old memory was used
andredsim Oct 2, 2023
d739035
MessyForest
andredsim Oct 2, 2023
59f3697
Merge branch 'combined_rcFile_rgrListHack' into messyForest
andredsim Oct 2, 2023
2456617
bug fix the merge
andredsim Oct 3, 2023
fc19125
Clean up combining SEs
andredsim Oct 3, 2023
0623322
Enable demultiplexing and speed up splitReadClassFiles()
andredsim Oct 4, 2023
32b5692
fix formatting issues
andredsim Oct 4, 2023
c2b3bf5
fix bugs
andredsim Oct 4, 2023
7b3eb82
Enable threading for demultiplexed samples
andredsim Oct 4, 2023
f68e30d
Remove progress bar
andredsim Oct 4, 2023
fe14668
adapt threading for demultiplexing
andredsim Oct 4, 2023
64f2d9d
Reduce memory input to threads
andredsim Oct 5, 2023
5f87c76
Reduce memory before threading
andredsim Oct 5, 2023
8495cc8
Clean up distTable code
andredsim Oct 6, 2023
5835168
Fix crash at end caused by sample names
andredsim Oct 6, 2023
970c628
add in missing variable
andredsim Oct 12, 2023
219d5e8
Instead calculate eqClass counts before parralellization
andredsim Oct 19, 2023
964fea8
Speed up addAval
andredsim Oct 20, 2023
82dc9d4
Make readClassDt a data.table from the start
andredsim Oct 20, 2023
f59f8bd
Fix bug where counts were not assigned to correct transcripts
andredsim Oct 27, 2023
9e5930f
Missed line
andredsim Oct 27, 2023
1b664b1
Tidy up
andredsim Oct 27, 2023
0e24641
Fix bug where reads were missing after splitReadClassFile
andredsim Oct 27, 2023
1f22942
Add in helper splitReadClassByRC for old functionality
andredsim Oct 31, 2023
e890af9
Fix bug caused by different sorting of unspliced reads
andredsim Nov 1, 2023
1ae237c
Stop incompatibleCounts from being converted away from sparseMatrix
andredsim Nov 14, 2023
85292f2
make transcriptToGene compatible with sparseMatrix
andredsim Nov 14, 2023
9ab0767
Enable Bambu to restart with readClassDt to help with R hogging memory
andredsim Nov 15, 2023
ff69eac
fix missing reference due to change
andredsim Nov 15, 2023
e6fa212
Resolve lack of incompatible rcs better
andredsim Dec 1, 2023
a1de0dc
Insert missing fix for assignGeneIds
andredsim Dec 4, 2023
98c3704
reallow deg bias
andredsim Dec 12, 2023
a8063cb
Reenable writeBambuOutput
andredsim Dec 20, 2023
22702d4
different bam input for CB
lingminhao Jan 5, 2024
3d2b794
update quantification output file format
lingminhao Jan 16, 2024
74532cf
added spatial location information
lingminhao Jan 19, 2024
77dae23
updated gzfile function
lingminhao Jan 23, 2024
c78c793
revert changes in gzfile
lingminhao Jan 23, 2024
95d8830
added ifelse test for spatial
lingminhao Jan 23, 2024
2fd51f8
Enable fusion mode again
andredsim Feb 2, 2024
11807cd
Remove warning about bambu annotations if discovery not being done
andredsim Feb 2, 2024
c392d08
Keep readnames even if demultiplexed
andredsim Feb 8, 2024
1ed88eb
Enable messyForest to take in multiple samples
andredsim Feb 8, 2024
ab54663
Add cleanRead argument
andredsim Feb 21, 2024
6ec31de
Tidy up clean reads
andredsim Feb 29, 2024
fac4872
UMI deduplication
andredsim Mar 5, 2024
04b5857
Merge branch 'devel' into remov_SE_combineAnno
andredsim Mar 12, 2024
26afc66
change order of UMI dedup with cleaning reads
andredsim Mar 12, 2024
f31c182
add extra messages
andredsim Mar 12, 2024
cb12d54
add in argument
andredsim Mar 19, 2024
a148465
Transcript discovery at cluster level
andredsim Apr 1, 2024
e4b57e9
Merge branch 'devel' into remov_SE_combineAnno
andredsim Apr 5, 2024
089f86b
keep txScore in extendAnno
andredsim Apr 11, 2024
50a0090
Allow demultiplexing from file
andredsim Apr 12, 2024
76681ea
Flexible BC and UMI lengths
andredsim Apr 19, 2024
28f2ca8
Refactor CB to BC
andredsim Apr 19, 2024
39e3862
Seperate umi dedup from cleanReads
andredsim Apr 25, 2024
0295a42
write rowData to gtf
andredsim Apr 29, 2024
ddc0ed9
read in attributes as rowData
andredsim Apr 29, 2024
31ca44d
Ensure assays stays a sparse matrix even if empty
andredsim Apr 29, 2024
0336e6b
Fix flexible barcode lengths
andredsim Apr 29, 2024
6790ce7
fix importing bam
andredsim Apr 29, 2024
8bbb0a1
importBambuOutput function
andredsim Apr 29, 2024
e905755
writeBambuOutput rights incompatibleCounts and can seperate samples
andredsim Apr 30, 2024
c568679
clean up warnings
andredsim May 2, 2024
0b47cb8
Report all possible transripts if NDR = 1
andredsim Jun 26, 2024
fbe8ee3
fix bug when reading in barcode map from file
andredsim Jul 22, 2024
73b0b8d
catch error when no drate is calculated due to low reads
andredsim Aug 1, 2024
9c2801b
return non em counts before quant step
andredsim Aug 13, 2024
1176eca
Fix the normal discovery impact cluster discovery
andredsim Aug 21, 2024
1f471a3
Enable clusters to be assigned before EM
andredsim Aug 23, 2024
1f3994a
Fix bug in denono
andredsim Aug 27, 2024
d795869
AssignDist step will now output uniqueCounts
andredsim Aug 27, 2024
efe30f6
Remove old gene count code
andredsim Aug 27, 2024
d43b253
Update low memory to process read classes together or seperately
andredsim Sep 2, 2024
716370c
Can now provide multiple clusterings per quant input
andredsim Sep 2, 2024
8fb23e0
tidy up
andredsim Sep 2, 2024
55177e2
clean up warnings
andredsim Sep 2, 2024
c64d667
Make sure column names are present when providing clusters
andredsim Sep 3, 2024
87dc794
fix colData bug missing names
andredsim Sep 4, 2024
8931903
Track sample names into quantData
andredsim Sep 4, 2024
7679912
Fix clustering to work with different input combinations
andredsim Sep 4, 2024
2e30fc4
bug fix missing sampleNames
andredsim Sep 4, 2024
0fd3f9e
make sure EM counts are labeled as such
andredsim Sep 4, 2024
e6736bf
undo EM counts naming
andredsim Sep 4, 2024
fe42c0b
name sampleData with prefix
andredsim Sep 4, 2024
f5b5e10
catch error when 0 or 1 genes have counts
andredsim Sep 20, 2024
e9ecc7b
pass fusionmode to contruct read classes
andredsim Oct 4, 2024
773d88c
Dont filter out reads that align up to the last nucleotide - fusions
andredsim Oct 21, 2024
d181c8e
Now will only combine SE read classes if min.txScore.singleExon < 1
andredsim Oct 25, 2024
fa1a758
Merge branch 'remov_SE_combineAnno' into Multiplex_Major_Patch
andredsim Oct 25, 2024
b829e03
Merge branch 'full_NDR_output' into Multiplex_Major_Patch
andredsim Oct 25, 2024
77cae13
Update release history
andredsim Oct 25, 2024
657e2b5
Merge branch 'messyForest' into Multiplex_Major_Patch
andredsim Oct 25, 2024
9f88889
Fix merge
andredsim Oct 28, 2024
e133c43
Refactor quantData input parameter and colData when not multiplexed
andredsim Oct 28, 2024
23e0212
update actions versions
cying111 Oct 28, 2024
2b08636
Merge remote-tracking branch 'origin/Multiplex_Major_Patch' into Mult…
andredsim Oct 28, 2024
c537224
Restore seperateSamples argument in writeBambuOutput lost in merge
andredsim Oct 28, 2024
0024c5f
Put gtf file extension at the end of writeBambuOutput
andredsim Oct 28, 2024
51f382e
Add the flags in writeBambuOutput to control which gtfs are written
andredsim Oct 28, 2024
d10f86a
Update release history
andredsim Oct 28, 2024
38cb052
Update xgboost models and include code to redo it
andredsim Oct 29, 2024
c1ab8af
Update quant test data due to assigndist changes
andredsim Oct 29, 2024
5515c43
Update remaining test data
andredsim Oct 29, 2024
75a49f7
Update version message
andredsim Oct 29, 2024
f2d2d83
Add in preset modes
andredsim Oct 29, 2024
09dcb4d
remove commas
andredsim Oct 29, 2024
c55383d
Fix mode
andredsim Oct 29, 2024
99d3148
Fix reccomendNDR
andredsim Nov 4, 2024
a605fe7
Fix quantification when running bulk
andredsim Nov 5, 2024
7a62db7
restore returnDistTable
andredsim Nov 5, 2024
10fd905
Return default degbias to on
andredsim Nov 5, 2024
df6b4b3
Restore trackreads
andredsim Nov 11, 2024
5d0af93
Add in descriptions for new arguments
andredsim Nov 11, 2024
121a3c2
Merge branch 'filter_barcodes' into Multiplex_Major_Patch
andredsim Nov 11, 2024
0b455ef
Clean up cluster discovery
andredsim Nov 11, 2024
11a8d8b
Fix issue with lowMem and multiple samples
andredsim Nov 22, 2024
f8053cf
Fix formatting in docu
andredsim Dec 4, 2024
1ac5e4b
returnDistTable now works when quant = TRUE
andredsim Dec 5, 2024
5e57188
max recommended NDR is now 0.999
andredsim Dec 5, 2024
22c169c
Return rcOutDir functionality
andredsim Dec 5, 2024
4de8392
return distTable now returns intermediate distTable
andredsim Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ env:
run_covr: 'false'
run_pkgdown: 'false'
has_RUnit: 'false'
cache-version: 'cache-v3'
cache-version: 'cache-v4'
run_docker: 'false'

jobs:
Expand All @@ -54,9 +54,9 @@ jobs:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, r: '4.3', bioc: '3.18', cont: "bioconductor/bioconductor_docker:RELEASE_3_18", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: '4.3', bioc: '3.18'}
##- { os: windows-latest, r: '4.3', bioc: '3.18'}
- { os: ubuntu-latest, r: '4.4', bioc: '3.19', cont: "bioconductor/bioconductor_docker:RELEASE_3_19", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: '4.4', bioc: '3.19'}
- { os: windows-latest, r: '4.4', bioc: '3.19'}
## Check https://github.com/r-lib/actions/tree/master/examples
## for examples using the http-user-agent
env:
Expand All @@ -81,7 +81,7 @@ jobs:
## https://github.com/r-lib/actions/blob/master/examples/check-standard.yaml
## If they update their steps, we will also need to update ours.
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

## R is already included in the Bioconductor docker images
- name: Setup R from r-lib
Expand All @@ -104,15 +104,15 @@ jobs:

- name: Restore R package cache
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os != 'Linux'"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-RELEASE-r-4.3-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-RELEASE-r-4.3-

- name: Cache R packages on Linux
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os == 'Linux' "
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /home/runner/work/_temp/Library
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.3-${{ hashFiles('.github/depends.Rds') }}
Expand Down Expand Up @@ -337,9 +337,9 @@ jobs:

- name: Upload check results
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}-biocversion-RELEASE-r-4.3-results
name: ${{ runner.os }}-biocversion-RELEASE-r-4.4-results
path: check

- uses: docker/build-push-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: r-lib/actions/pr-fetch@v2
with:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: r-lib/actions/pr-fetch@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ Imports:
Rsamtools,
methods,
Rcpp,
xgboost
xgboost,
Matrix
VignetteBuilder:
knitr
LazyData: true
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export(readFromGTF)
export(transcriptToGeneExpression)
export(writeBambuOutput)
export(writeToGTF)
export(writeAnnotationsToGTF)
export(trainBambu)
export(setNDR)
export(compareTranscripts)
importFrom(stats,predict)
importFrom(BiocGenerics,basename)
Expand Down Expand Up @@ -76,4 +78,5 @@ import(SummarizedExperiment)
import(S4Vectors, except=c(rename, setequal, setdiff, intersect,cor))
useDynLib(bambu, .registration = TRUE)
import(xgboost)
import(Matrix)
import(BSgenome)
83 changes: 83 additions & 0 deletions R/bambu-assignDist.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#' Create equivilence classes and assign to transcripts
#' @inheritParams bambu
#' @import data.table
#' @noRd
assignReadClasstoTranscripts <- function(readClassList, annotations, isoreParameters, verbose, demultiplexed, spatial) {
metadata(readClassList)$readClassDist <- calculateDistTable(readClassList, annotations, isoreParameters, verbose)
readClassList = splitReadClassFiles(readClassList)
readClassDt <- genEquiRCs(metadata(readClassList)$readClassDist, annotations, verbose)
readClassDt$eqClass.match = match(readClassDt$eqClassById,metadata(readClassList)$eqClassById)
readClassDt <- simplifyNames(readClassDt)
readClassDt = readClassDt %>% group_by(eqClassId, gene_sid) %>%
mutate(multi_align = length(unique(txid))>1) %>% ungroup() %>% mutate(aval = 1) %>%
data.table()

#return non-em counts
ColData = generateColData(colnames(metadata(readClassList)$countMatrix), clusters = NULL, demultiplexed, spatial)
quantData <- SummarizedExperiment(assays = SimpleList(
counts = generateUniqueCounts(readClassDt, metadata(readClassList)$countMatrix, annotations)),
rowRanges = annotations,
colData = ColData)
colnames(quantData) = ColData$id
if(sum(metadata(readClassList)$incompatibleCountMatrix)==0){
metadata(quantData)$incompatibleCounts = NULL
} else{
metadata(quantData)$incompatibleCounts = generateIncompatibleCounts(metadata(readClassList)$incompatibleCountMatrix, annotations)
}
metadata(quantData)$nonuniqueCounts = generateNonUniqueCounts(readClassDt, metadata(readClassList)$countMatrix, annotations)
metadata(quantData)$readClassDt = readClassDt
metadata(quantData)$countMatrix = metadata(readClassList)$countMatrix
metadata(quantData)$incompatibleCountMatrix = metadata(readClassList)$incompatibleCountMatrix
metadata(quantData)$sampleNames = metadata(readClassList)$sampleNames
return(quantData)

}


generateUniqueCounts <- function(readClassDt, countMatrix, annotations){
x = readClassDt %>% filter(!multi_align & !is.na(eqClass.match))
uniqueCounts = countMatrix[x$eqClass.match,]
uniqueCounts.tx = sparse.model.matrix(~ factor(x$txid) - 1)
uniqueCounts = t(uniqueCounts.tx) %*% uniqueCounts
rownames(uniqueCounts) = names(annotations)[match(as.numeric(levels(factor(x$txid))),mcols(annotations)$txid)]
counts = sparseMatrix(length(annotations), ncol(uniqueCounts), x = 0)
rownames(counts) = names(annotations)
counts[rownames(uniqueCounts),] = uniqueCounts
return(counts)

counts.total = colSums(countMatrix) + colSums(incompatibleCountMatrix)
counts.total[counts.total==0] = 1
counts.CPM = counts/counts.total * 10^6

}

generateIncompatibleCounts <- function(incompatibleCountMatrix, annotations){
genes = levels(factor(unique(mcols(annotations)$GENEID)))
rownames(incompatibleCountMatrix) = genes[as.numeric(rownames(incompatibleCountMatrix))]
geneMat = sparseMatrix(length(genes), ncol(incompatibleCountMatrix), x = 0)
rownames(geneMat) = genes
geneMat[rownames(incompatibleCountMatrix),] = incompatibleCountMatrix
return(geneMat)
}

generateNonUniqueCounts <- function(readClassDt, countMatrix, annotations){
#fuse multi align RCs by gene
x = readClassDt %>% filter(multi_align & !is.na(eqClass.match))
x = x %>% distinct(eqClassId, .keep_all = TRUE)
nonuniqueCounts = countMatrix[x$eqClass.match,, drop = FALSE]
if(nrow(x)>1){
nonuniqueCounts.gene = sparse.model.matrix(~ factor(x$gene_sid) - 1)
nonuniqueCounts = t(nonuniqueCounts.gene) %*% nonuniqueCounts
}
#covert ids into gene ids
geneids = as.numeric(levels(factor(x$gene_sid)))
geneids = x$txid[match(geneids, x$gene_sid)]
geneids = mcols(annotations)$GENEID[as.numeric(geneids)]
rownames(nonuniqueCounts) = geneids
#create matrix for all annotated genes
genes = levels(factor(unique(mcols(annotations)$GENEID)))
geneMat = sparseMatrix(length(genes), ncol(nonuniqueCounts), x = 0)
rownames(geneMat) = genes
geneMat[rownames(nonuniqueCounts),] = nonuniqueCounts
return(geneMat)
}
3 changes: 3 additions & 0 deletions R/bambu-extendAnnotations-utilityCombine.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ isore.combineTranscriptCandidates <- function(readClassList,
stranded, ## stranded used for unspliced reduce
min.readCount , min.readFractionByGene,
min.txScore.multiExon, min.txScore.singleExon, bpParameters ,verbose){
message("starting combineSplicedTranscriptModels")
combinedSplicedTranscripts <-
combineSplicedTranscriptModels(readClassList, bpParameters,
min.readCount, min.readFractionByGene,
min.txScore.multiExon, min.txScore.singleExon, verbose) %>% data.table()
message("finished combineSplicedTranscriptModels")
combinedSplicedTranscripts[,confidenceType := "highConfidenceJunctionReads"]
if (min.txScore.singleExon < 1) {return(combinedSplicedTranscripts)}
combinedUnsplicedTranscripts <-
combineUnsplicedTranscriptModels(readClassList, bpParameters,
stranded, min.readCount, min.readFractionByGene,
Expand Down
Loading
Loading