forked from odelaneau/shapeit5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix release commit/date labeling + remove singleton in calibration co…
…mputations
- Loading branch information
Showing
35 changed files
with
84 additions
and
29 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/bash | ||
|
||
#Upload docker image onto DNA Nexus | ||
LAB=shapeit5_$(date +'%d%m%Y')\_$(git rev-parse --short HEAD) | ||
LAB=shapeit5_$(git log -1 --format=%cd --date=short)\_$(git rev-parse --short HEAD) | ||
|
||
dx upload $LAB\.tar.gz --path "/docker/" |
Binary file not shown.
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
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
Binary file not shown.
Binary file not shown.
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,42 @@ | ||
###### COLORS ###### | ||
|
||
library(RColorBrewer) | ||
COLpair = brewer.pal(12,"Paired") | ||
COLdiff = brewer.pal(8,"Set1") | ||
|
||
###### VECTORS ###### | ||
REG=read.table("/home/olivier/Dropbox/Repository/shapeit5/tasks/phasingUKB/step2_wgs/step2_splitchunks/chr20.size4Mb.txt", head=FALSE) | ||
SIZE=c(2000,5000,10000,20000,50000,100000,147754) | ||
BIN=c(0,1,5,10,20,50,100,200,500,1000,2000,5000,10000,20000,50000,100000, 150000) | ||
PAR=c("default", "scaffold") | ||
TYPE=c("fqa", "fqc", "fqr", "fqf") | ||
nSIZE=length(SIZE) | ||
nTYPE=length(TYPE) | ||
nPAR=length(PAR) | ||
nREG=length(REG) | ||
nBIN=length(BIN) | ||
options(scipen=999) | ||
|
||
######################################################################################### | ||
# FIGURE1A # | ||
# Plot switch error rates vs sample size # | ||
######################################################################################### | ||
|
||
#LOAD BEAGLE SER BETWEEN ALL VARIANTS | ||
error = rep(0, 20) | ||
freq = rep(0, 20) | ||
total = rep(0, 20) | ||
for (s in nSIZE:nSIZE) { | ||
for (r in 1:nrow(REG)) { | ||
str1="~/Fuse/PhasingUKB/Phasing/PhasingWGS/step5_runshapeit_phase2/N"; | ||
str2="/benchmark_ukb23352_c20_qc_v1.subset.N"; | ||
tmp=paste(str1, SIZE[s], str2, SIZE[s], ".", REG$V3[r], ".shapeit5.default.fqf.calibration.switch.txt.gz", sep=""); | ||
cat (tmp, "\n") | ||
DATA = read.table(tmp, head=FALSE) | ||
error = error + DATA$V5 | ||
total = total + DATA$V6 | ||
freq = freq + DATA$V4 | ||
|
||
} | ||
} | ||
|
14 changes: 14 additions & 0 deletions
14
tasks/phasingUKB/step2_wgs/step2_splitchunks/chr20.size4Mb2.txt
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,14 @@ | ||
0 chr20 chr20:60061-4293150 chr20:60061-4043148 3983088 861265 | ||
1 chr20 chr20:3793152-8202604 chr20:4043152-7952602 3909451 861263 | ||
2 chr20 chr20:7702567-12266861 chr20:7952603-12016861 4064259 861264 | ||
3 chr20 chr20:11766860-16186937 chr20:12016862-15936931 3920070 861263 | ||
4 chr20 chr20:15686932-20128744 chr20:15936935-19878738 3941804 861264 | ||
5 chr20 chr20:19628749-23940686 chr20:19878749-23690686 3811938 861262 | ||
8 chr20 chr20:33209734-37755751 chr20:33459734-37505746 4046013 861264 | ||
9 chr20 chr20:37255734-41801423 chr20:37505749-41551423 4045675 861263 | ||
10 chr20 chr20:41301424-45796623 chr20:41551424-45546623 3995200 861264 | ||
11 chr20 chr20:45296627-49754422 chr20:45546636-49504423 3957788 861262 | ||
12 chr20 chr20:49254423-53599712 chr20:49504425-53349713 3845289 861264 | ||
13 chr20 chr20:53099714-57367594 chr20:53349714-57117595 3767882 861262 | ||
14 chr20 chr20:56867597-61158685 chr20:57117596-60908683 3791088 861263 | ||
15 chr20 chr20:60658672-64334127 chr20:60908687-64334127 3425441 861262 |
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.