Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Feb 9, 2024
1 parent df956e1 commit 71d9f49
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 20 additions & 2 deletions benchmarks/workflows/benchmark_load.nf
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,18 @@ process preprocess_pairs_zst {
'''
set -o pipefail
cat > header.txt <<- EOM
## pairs format v1.0
#sorted: chr1-chr2-pos1-pos2
#shape: upper triangle
#columns: readID chr1 pos1 chr2 pos2 strand1 strand2
EOM
cat header.txt | zstd -19 > '!{outname}'
zcat '!{pairs}' |
grep -P 'chr[\\dXY]+\\s\\d+\\schr[\\dXY]+\\s' |
zstd -T'!{task.cpus}' -19 -o '!{outname}'
zstd -T'!{task.cpus}' -19 >> '!{outname}'
'''
}

Expand All @@ -106,9 +115,18 @@ process preprocess_pairs_gz {
'''
set -o pipefail
cat > header.txt <<- EOM
## pairs format v1.0
#sorted: chr1-chr2-pos1-pos2
#shape: upper triangle
#columns: readID chr1 pos1 chr2 pos2 strand1 strand2
EOM
cat header.txt | pigz -9 > '!{outname}'
zcat '!{pairs}' |
grep -P 'chr[\\dXY]+\\s\\d+\\schr[\\dXY]+\\s' |
pigz -p '!{task.cpus}' -9 > '!{outname}'
pigz -p '!{task.cpus}' -9 >> '!{outname}'
'''
}

Expand Down
2 changes: 1 addition & 1 deletion bin/run_hic_tools_pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi

path_to_pairs="$1"
path_to_output="$2"
tmpdir="$(mktemp -d -t "$3/hictk-tmp-XXXXXXXXXX")"
tmpdir="$(mktemp -d -p "$3" -t "hictk-tmp-XXXXXXXXXX")"
hic_tools_jar="$4"
resolution="$5"
cpus="$6"
Expand Down

0 comments on commit 71d9f49

Please sign in to comment.