Skip to content

Commit 8597a12

Browse files
committed
Revert "Merge branch 'Multiplex_Major_Patch' into devel"
This reverts commit c5e923d, reversing changes made to 1463b08. revert merge
1 parent c5e923d commit 8597a12

File tree

49 files changed

+515
-2943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+515
-2943
lines changed

.github/workflows/check-bioc.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ env:
4040
run_covr: 'false'
4141
run_pkgdown: 'false'
4242
has_RUnit: 'false'
43-
cache-version: 'cache-v4'
43+
cache-version: 'cache-v3'
4444
run_docker: 'false'
4545

4646
jobs:
@@ -56,7 +56,7 @@ jobs:
5656
config:
5757
- { os: ubuntu-latest, r: '4.4.2', bioc: '3.20', cont: "bioconductor/bioconductor_docker:RELEASE_3_20", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
5858
- { os: macOS-latest, r: '4.4.2', bioc: '3.20'}
59-
## - { os: windows-latest, r: '4.4', bioc: '3.20'}
59+
##- { os: windows-latest, r: '4.3', bioc: '3.18'}
6060
## Check https://github.com/r-lib/actions/tree/master/examples
6161
## for examples using the http-user-agent
6262
env:
@@ -81,7 +81,7 @@ jobs:
8181
## https://github.com/r-lib/actions/blob/master/examples/check-standard.yaml
8282
## If they update their steps, we will also need to update ours.
8383
- name: Checkout Repository
84-
uses: actions/checkout@v4
84+
uses: actions/checkout@v3
8585

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

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

113113
- name: Cache R packages on Linux
114114
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os == 'Linux' "
115-
uses: actions/cache@v4
115+
uses: actions/cache@v3
116116
with:
117117
path: /home/runner/work/_temp/Library
118118
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.4.2-${{ hashFiles('.github/depends.Rds') }}

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
env:
1616
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v2
1919

2020
- uses: r-lib/actions/setup-r@v2
2121
with:

.github/workflows/pr-commands.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v2
1818

1919
- uses: r-lib/actions/pr-fetch@v2
2020
with:
@@ -49,7 +49,7 @@ jobs:
4949
env:
5050
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5151
steps:
52-
- uses: actions/checkout@v4
52+
- uses: actions/checkout@v2
5353

5454
- uses: r-lib/actions/pr-fetch@v2
5555
with:

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v3
2020

2121
- uses: r-lib/actions/setup-r@v2
2222
with:

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ Imports:
8686
Rsamtools,
8787
methods,
8888
Rcpp,
89-
xgboost,
90-
Matrix
89+
xgboost
9190
VignetteBuilder:
9291
knitr
9392
LazyData: true

NAMESPACE

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ export(readFromGTF)
77
export(transcriptToGeneExpression)
88
export(writeBambuOutput)
99
export(writeToGTF)
10-
export(writeAnnotationsToGTF)
1110
export(trainBambu)
12-
export(setNDR)
1311
export(compareTranscripts)
1412
importFrom(stats,predict)
1513
importFrom(BiocGenerics,basename)
@@ -75,8 +73,7 @@ import(data.table, except=c(last, first, shift, second, between))
7573
import(dplyr, except=c(last, first, desc, union, setdiff, intersect, slice))
7674
import(IRanges, except=c(slice, collapse, setdiff, intersect,cor))
7775
import(SummarizedExperiment)
78-
import(Matrix)
79-
import(S4Vectors, except=c(rename, setequal, setdiff, intersect,cor, unname, expand))
76+
import(S4Vectors, except=c(rename, setequal, setdiff, intersect,cor))
8077
useDynLib(bambu, .registration = TRUE)
8178
import(xgboost)
8279
import(BSgenome)

R/bambu-assignDist.R

Lines changed: 0 additions & 110 deletions
This file was deleted.

R/bambu-extendAnnotations-utilityCombine.R

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ isore.combineTranscriptCandidates <- function(readClassList,
1919
min.readCount, min.readFractionByGene,
2020
min.txScore.multiExon, min.txScore.singleExon, verbose)
2121
combinedSplicedTranscripts[,confidenceType := "highConfidenceJunctionReads"]
22-
# when single exon min score is greater than 1, skip unspliced transcripts combination
23-
# this is a very customized config, useful when data is very big
24-
if (min.txScore.singleExon > 1)
25-
return(combinedSplicedTranscripts)
2622
combinedUnsplicedTranscripts <-
2723
combineUnsplicedTranscriptModels(readClassList, bpParameters,
2824
stranded, min.readCount, min.readFractionByGene,
@@ -39,11 +35,11 @@ isore.combineTranscriptCandidates <- function(readClassList,
3935
combineSplicedTranscriptModels <- function(readClassList, bpParameters,
4036
min.readCount, min.readFractionByGene, min.txScore.multiExon,
4137
min.txScore.singleExon, verbose){
42-
bpParameters$progressbar <- FALSE
38+
bpParameters$progressbar = FALSE
4339
options(scipen = 999) #maintain numeric basepair locations not sci.notfi.
4440
start.ptm <- proc.time()
4541
n_sample <- length(readClassList)
46-
nGroups <- max(ceiling(n_sample/10),min(bpworkers(bpParameters),
42+
nGroups = max(ceiling(n_sample/10),min(bpworkers(bpParameters),
4743
round(n_sample/2)))
4844
indexList <- sample(rep(seq_len(nGroups), length.out=n_sample))
4945
indexList <- splitAsList(seq_len(n_sample), indexList)
@@ -132,7 +128,7 @@ combineFeatureTibble <- function(combinedFeatureTibble,
132128
maxTxScore.noFit, NSampleReadCount, NSampleReadProp,NSampleTxScore,
133129
starts_with('start'), starts_with('end'), starts_with('readCount'))
134130
} else {
135-
combinedTable <- full_join(combinedFeatureTibble,
131+
combinedTable = full_join(combinedFeatureTibble,
136132
featureTibbleSummarised, by = c('intronStarts', 'intronEnds', 'chr',
137133
'strand'), suffix=c('.combined','.new')) %>%
138134
mutate(NSampleReadCount=pmax0NA(NSampleReadCount.combined) +
@@ -212,7 +208,7 @@ combineUnsplicedTranscriptModels <-
212208
min.readFractionByGene, min.txScore.multiExon,
213209
min.txScore.singleExon, verbose){
214210
start.ptm <- proc.time()
215-
bpParameters$progressbar <- FALSE
211+
bpParameters$progressbar = FALSE
216212
newUnsplicedSeList <-
217213
bplapply(seq_along(readClassList), function(sample_id)
218214
extractNewUnsplicedRanges(readClassSe =
@@ -289,7 +285,7 @@ reduceUnsplicedRanges <- function(rangesList, stranded){
289285
makeUnsplicedTibble <- function(combinedNewUnsplicedSe,newUnsplicedSeList,
290286
colDataNames,min.readCount, min.readFractionByGene,
291287
min.txScore.multiExon, min.txScore.singleExon, bpParameters){
292-
bpParameters$progressbar <- FALSE
288+
bpParameters$progressbar = FALSE
293289
newUnsplicedTibble <- as_tibble(combinedNewUnsplicedSe) %>%
294290
rename(chr = seqnames) %>% select(chr, start, end, strand, row_id) %>%
295291
separate_rows(row_id, sep = "\\+")

0 commit comments

Comments
 (0)