-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from mklarqvist/oop_update
release 0.3.0
- Loading branch information
Showing
153 changed files
with
8,160 additions
and
6,059 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Specify colour scheme | ||
colors<-paste0(colorRampPalette(c("blue","red"))(10),seq(0,100,length.out = 11)) | ||
colors[1]<-paste0(colors[1],"0") | ||
colors[length(colors)]<- substr(colors[length(colors)],1,7) | ||
|
||
# Define support functions | ||
plotLDRegion<-function(dataSource, from, to, ...){ | ||
# B is A but sorted for plotting reasons (Z-stack) | ||
b<-dataSource[dataSource$V3>=from & dataSource$V3 <= to & dataSource$V5 >= from & dataSource$V5 <= to,] | ||
b<-b[order(b$V12,decreasing = F),] | ||
plot(b$V3,b$V5,pch=20,cex=.1,col=colors[cut(b$V12,breaks=seq(0,1,length.out = 11),include.lowest = T)],xlim=c(from,to),ylim=c(from,to),xaxs="i",yaxs="i", ...) | ||
} | ||
|
||
plotLDRegionTriangular<-function(dataSource, from, to, ...){ | ||
# B is A but sorted for plotting reasons (Z-stack) | ||
b<-dataSource[dataSource$V3>=from & dataSource$V5<=to & dataSource$V3>=from & dataSource$V5<=to,] | ||
b<-b[b$V3<b$V5,] # upper triangular only | ||
b<-b[order(b$V12,decreasing = F),] | ||
plot(b$V3 + ((b$V5-b$V3)/2),b$V5-b$V3,pch=20,cex=.2,col=colors[cut(b$V12,breaks=seq(0,1,length.out = 11),include.lowest = T)],xaxs="i",yaxs="i", ...) | ||
} | ||
|
||
# Load some LD data from Tomahawk | ||
ld<-read.delim("1kgp3_chr2_105_1.ld",h=F) | ||
plotLDRegion(ld, 2e6, 5e6, xlab="Coordinates",ylab="Coordinates",main="1KGP3 chr20 2e6-5e6", las=2) | ||
plotLDRegionTriangular(ld, 2e6, 5e6, xlab="Coordinates",ylab="Coordinates",main="1KGP3 chr20 2e6-5e6", las=2) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Release 0.3.0 | ||
|
||
## Breaking Changes | ||
* All changes are breaking. There is no backwards compatibility from this release! | ||
|
||
## Major Features And Improvements | ||
* All major classes are now implemented as STL-like container and are as decoupled as possible | ||
* External sort file handles now buffer a small amount of data to reduce random access lookups | ||
* `two`/`twk` entries are no longer forced to be accessed by unaligned memory addresses | ||
* Both `two` and `twk` are now self-indexing. All external indices are now invalid | ||
|
||
## Bug Fixes and Other Changes | ||
* Bug fixes | ||
* Too many to list here | ||
* Examples updates: | ||
* Added R script to demonstrate simple plotting using `base` | ||
* Added several figures demonstrating some keys concepts of Tomahawk |
Oops, something went wrong.