Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixErnst committed Aug 25, 2021
1 parent 9018aee commit 114a9f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: RNAmodR
Type: Package
Title: Detection of post-transcriptional modifications in high throughput sequencing data
Version: 1.7.1
Date: 2021-07-27
Version: 1.7.2
Date: 2021-08-25
Authors@R: c(person("Felix G.M.",
"Ernst",
email = "felix.gm.ernst@outlook.com",
Expand Down
6 changes: 4 additions & 2 deletions R/SequenceData-pileup.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ setSequenceDataCoercions("Pileup")
strands_u <- .get_strand_u_GRangesList(grl)
pileup <- pileup[pileup[,"strand"] == strands_u]
# sort rev on minus strand
pileup[strands_u == "-"] <-
pileup[strands_u == "-"][order(pileup[strands_u == "-","pos"],decreasing = FALSE)]
f <- strands_u == "-"
if(any(f)){
pileup[f] <- pileup[f][order(pileup[f,"pos"],decreasing = FALSE)]
}
pileup <- pileup[,c("-","G","A","T","C")]
pileup
}
Expand Down

0 comments on commit 114a9f8

Please sign in to comment.