Quellcode durchsuchen

added MCOOL test file

lucananni93 vor 2 Jahren
Ursprung
Commit
0c8f168080
2 geänderte Dateien mit 19 neuen und 1 gelöschten Zeilen
  1. 19 1
      tests/create_test_data.sh
  2. BIN
      tests/testthat/data/test.mcool

+ 19 - 1
tests/create_test_data.sh

@@ -25,6 +25,21 @@ create_test_cool(){
 }
 
 
+create_test_mcool(){
+	cool_path=$1
+	outpath=$2
+	binsize=$3
+
+	if [[ ! -f ${outpath} ]]
+	then
+		cooler zoomify --resolutions ${binsize}N \
+					   --balance \
+					   --balance-args '--force --max-iters 1000' \
+					   --out ${outpath} ${cool_path}
+	fi
+}
+
+
 test_data_path="tests/testthat/data"
 
 mkdir -p ${test_data_path}
@@ -33,4 +48,7 @@ mkdir -p ${test_data_path}
 source_cool_file="https://data.4dnucleome.org/files-processed/4DNFI2EK1IOQ/@@download/4DNFI2EK1IOQ.pairs.gz"
 test_cool_binsize=50000
 
-create_test_cool ${source_cool_file} ${test_data_path} ${test_cool_binsize}
+create_test_cool ${source_cool_file} ${test_data_path} ${test_cool_binsize}
+
+# Creating MCOOL from COOL
+create_test_mcool ${test_data_path}/test.cool ${test_data_path}/test.mcool ${test_cool_binsize}

BIN
tests/testthat/data/test.mcool