-
Notifications
You must be signed in to change notification settings - Fork 14
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 #57 from 4dn-dcic/0.3.6
0.3.6
- Loading branch information
Showing
56 changed files
with
746 additions
and
32 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
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 +1 @@ | ||
0.3.5 | ||
0.3.6 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+234 Bytes
(100%)
samples/merged_nodups.space.chrblock_sorted.subsample1.txt.gz.px2
Binary file not shown.
Binary file modified
BIN
+48 Bytes
(100%)
samples/merged_nodups.space.chrblock_sorted.subsample2.txt.gz.px2
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
samples/merged_nodups.space.chrblock_sorted.subsample3.bsorted.ff.pairs.gz.px2
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
samples/merged_nodups.space.chrblock_sorted.subsample3.bsorted.nofrag.pairs.gz.px2
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
samples/merged_nodups.space.chrblock_sorted.subsample3.bsorted.pairs.gz.px2
Binary file not shown.
Binary file modified
BIN
+25 Bytes
(100%)
samples/merged_nodups.space.chrblock_sorted.subsample3.txt.gz.px2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-25.4 KB
(79%)
samples/old_index/merged_nodup.tab.chrblock_sorted.txt.gz.px2
Binary file not shown.
Binary file modified
BIN
-758 KB
(83%)
samples/old_index/merged_nodups.space.chrblock_sorted.subsample1.txt.gz.px2
Binary file not shown.
Binary file modified
BIN
-15.1 KB
(69%)
samples/old_index/merged_nodups.space.chrblock_sorted.subsample2.txt.gz.px2
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-14.8 KB
(67%)
samples/old_index/test_juicer_shortform.bsorted.pairs.gz.px2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-16.4 KB
(75%)
samples/old_index/test_old_merged_nodups.bsorted.pairs.gz.px2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+19.3 KB
samples/old_index2/4dn.bsorted.chr21_22_only.nontriangle.pairs.gz.px2
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 added
BIN
+38.2 MB
samples/old_index2/merged_nodups.space.chrblock_sorted.subsample1.txt.gz
Binary file not shown.
Binary file added
BIN
+3.58 MB
samples/old_index2/merged_nodups.space.chrblock_sorted.subsample1.txt.gz.px2
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.
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
PATH=./bin:$PATH | ||
|
||
if [ $VALGRIND_TEST_ON -eq 1 ]; then | ||
|
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,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
PATH=./bin:$PATH | ||
|
||
if [ $VALGRIND_TEST_ON -eq 1 ]; then | ||
|
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,172 @@ | ||
#!/bin/bash | ||
|
||
PATH=./bin:$PATH | ||
|
||
if [ $VALGRIND_TEST_ON -eq 1 ]; then | ||
VALGRIND="valgrind --error-exitcode=42 --leak-check=full" | ||
else | ||
VALGRIND="" | ||
fi | ||
|
||
## 2D | ||
echo "test 1" | ||
$VALGRIND pairix samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz '10:1-1000000|20' > log1 | ||
gunzip -c samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz | awk '$2=="10" && $3>=1 && $3<=1000000 && $6=="20"' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 1 failed" | ||
return 1; | ||
fi | ||
|
||
echo "test 1b" | ||
$VALGRIND pairix -a samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz '10:1-1000000|20' > log1 | ||
gunzip -c samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz | awk '$2=="10" && $3>=1 && $3<=1000000 && $6=="20"' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 1b failed" | ||
return 1; | ||
fi | ||
|
||
echo "test 1c" | ||
$VALGRIND pairix -a samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz '20|10:1-1000000' > log1 | ||
gunzip -c samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz | awk '$2=="10" && $3>=1 && $3<=1000000 && $6=="20"' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 1c failed" | ||
return 1; | ||
fi | ||
|
||
echo "test 1d" | ||
$VALGRIND pairix samples/old_index2/test_4dn.pairs.gz 'chr22:50000000-60000000' > log1 | ||
$VALGRIND pairix samples/old_index2/test_4dn.pairs.gz 'chr22:50000000-60000000|chr22:50000000-60000000' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 1d failed" | ||
return 1; | ||
fi | ||
|
||
echo "test 1e" | ||
$VALGRIND pairix samples/old_index2/test_4dn.pairs.gz 'chrY:1-2000000' > log1 | ||
$VALGRIND pairix samples/old_index2/test_4dn.pairs.gz 'chrY:1-2000000|chrY:1-2000000' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 1e failed" | ||
return 1; | ||
fi | ||
|
||
echo "test 2" | ||
$VALGRIND pairix samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz '10:1-1000000|20:50000000-60000000' > log1 | ||
gunzip -c samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz | awk '$2=="10" && $3>=1 && $3<=1000000 && $6=="20" && $7>=50000000 && $7<=60000000' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 2 failed" | ||
return 1; | ||
fi | ||
|
||
echo "test 3" | ||
$VALGRIND pairix samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz '1:1-10000000|20:50000000-60000000' '3:5000000-9000000|X:70000000-90000000' > log1 | ||
gunzip -c samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz | awk '$2=="1" && $3>=1 && $3<=10000000 && $6=="20" && $7>=50000000 && $7<=60000000' > log2 | ||
gunzip -c samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz | awk '$2=="3" && $3>=5000000 && $3<=9000000 && $6=="X" && $7>=70000000 && $7<=90000000' >> log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 3 failed" | ||
return 1; | ||
fi | ||
|
||
echo "test 4" | ||
$VALGRIND pairix samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz '*|1:0-100000' > log1 | ||
gunzip -c samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz | awk '$6=="1" && $7>=0 && $7<=100000' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 4 failed" | ||
return 1; | ||
fi | ||
|
||
echo "test 5" | ||
$VALGRIND pairix samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz '1:0-100000|*' > log1 | ||
gunzip -c samples/old_index2/merged_nodup.tab.chrblock_sorted.txt.gz | awk '$2=="1" && $3>=0 && $3<=100000' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 5 failed" | ||
return 1; | ||
fi | ||
|
||
|
||
## 1D | ||
echo "test 6" | ||
$VALGRIND pairix samples/old_index2/SRR1171591.variants.snp.vqsr.p.vcf.gz chr10:1-4000000 > log1 | ||
gunzip -c samples/old_index2/SRR1171591.variants.snp.vqsr.p.vcf.gz | awk '$1=="chr10" && $2>=1 && $2<=4000000' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 6 failed" | ||
return 1; | ||
fi | ||
|
||
|
||
## 2D, space-delimited | ||
echo "test 7" | ||
$VALGRIND pairix samples/old_index2/merged_nodups.space.chrblock_sorted.subsample1.txt.gz '10:1-1000000|20' > log1 | ||
gunzip -c samples/old_index2/merged_nodups.space.chrblock_sorted.subsample1.txt.gz | awk '$2=="10" && $3>=1 && $3<=1000000 && $6=="20"' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 7 failed" | ||
return 1; | ||
fi | ||
|
||
|
||
## preset for pairs.gz | ||
echo "test 8" | ||
$VALGRIND pairix samples/old_index2/test_4dn.pairs.gz 'chr10|chr20' > log1 | ||
gunzip -c samples/old_index2/test_4dn.pairs.gz | awk '$2=="chr10" && $4=="chr20"' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test 8 failed" | ||
return 1; | ||
fi | ||
|
||
## linecount | ||
echo "test linecount" | ||
$VALGRIND pairix -n samples/old_index2/test_4dn.pairs.gz > log1 | ||
gunzip -c samples/old_index2/test_4dn.pairs.gz |wc -l | sed "s/ //g" > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "linecount test failed" | ||
return 1; | ||
fi | ||
|
||
|
||
## bgzf block count (currently no auto test for the accuracy of the result) | ||
echo "test bgzf block count" | ||
$VALGRIND pairix -B samples/old_index2/test_4dn.pairs.gz | ||
|
||
## check triangle | ||
echo "test check triangle" | ||
$VALGRIND pairix -Y samples/old_index2/4dn.bsorted.chr21_22_only.pairs.gz | ||
$VALGRIND pairix -Y samples/old_index2/4dn.bsorted.chr21_22_only.nontriangle.pairs.gz | ||
res=$(pairix -Y samples/old_index2/4dn.bsorted.chr21_22_only.nontriangle.pairs.gz) | ||
if [ "$res" != "The file is not a triangle." ]; then | ||
echo "test check triangle failed" | ||
return 1; | ||
fi | ||
|
||
echo "test check triangle #2" | ||
res=$(pairix -Y samples/old_index2/4dn.bsorted.chr21_22_only.pairs.gz) | ||
if [ "$res" != "The file is a triangle." ]; then | ||
echo "test check triangle #2 failed" | ||
return 1; | ||
fi | ||
|
||
|
||
# test large chromosome | ||
echo "test large chr" | ||
$VALGRIND pairix samples/old_index2/mock.largechr.pairs.gz 'chr21:800000000-900000000|chr22' > log1 | ||
gunzip -c samples/old_index2/mock.largechr.pairs.gz | awk '$2=="chr21" && $3>800000000 && $3<900000000 && $4=="chr22"' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test large chromosome failed" | ||
return 1; | ||
fi | ||
|
||
# test large chromosome | ||
echo "test large chr2" | ||
$VALGRIND pairix samples/old_index2/mock.largechr.pairs.gz 'chr22:800000000-997027270|chr22' > log1 | ||
gunzip -c samples/old_index2/mock.largechr.pairs.gz | awk '$2=="chr22" && $3>=800000000 && $3<=997027270 && $4=="chr22"' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test large chromosome2 failed" | ||
return 1; | ||
fi | ||
|
||
# test large chromosome | ||
echo "test large chr3" | ||
$VALGRIND pairix samples/old_index2/mock.largechr.pairs.gz 'chr22:1073741820-1073741824|chr22' > log1 | ||
gunzip -c samples/old_index2/mock.largechr.pairs.gz | awk '$2=="chr22" && $3>=1073741820 && $3<=1073741824 && $4=="chr22"' > log2 | ||
if [ ! -z "$(diff log1 log2)" ]; then | ||
echo "test large chromosome3 failed" | ||
return 1; | ||
fi |
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
Oops, something went wrong.