Skip to content

Commit a288bf6

Browse files
Script to run from BAM to SAM to RAM, to test timings and compression.
1 parent f073852 commit a288bf6

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

00_run_bamtosamtoram.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#
2+
# Script to convert a BAM to a SAM to a RAM file.
3+
#
4+
#
5+
# Best is to cut and paste the desired line from the script.
6+
#
7+
# Author: Fons Rademakers, 26/8/17.
8+
#
9+
fileid=$1
10+
11+
bamdir=/eos/genome/local/14007a/original_BAM
12+
samdir=/data3/rdm
13+
ramdir=../data
14+
15+
bam=$bamdir/$fileid.bam
16+
sam=$samdir/$fileid.sam
17+
ram=$ramdir/$fileid.root
18+
log1=$fileid-1.log
19+
log2=$fileid-2.log
20+
21+
cd /data/rdm/root
22+
source bin/thisroot.sh
23+
cd ../ramtools
24+
25+
date
26+
../samtools-1.7/samtools view -h -o $sam $bam
27+
date
28+
root.exe -b "samtoram.C+(\"$sam\",\"$ram\")"
29+
date
30+
31+
#nohup ../samtools-1.7/samtools view -h -o $sam $bam >& $log1 &
32+
#nohup root.exe -b "samtoram.C+(\"$sam\",\"$ram\")" >& $log2 &
33+
34+
#nohup root.exe -b "samtoram.C+(\"../data/6148s10.sam\",\"../data/6148s10.root\")" >& 6148s10.log &
35+
36+
#nohup root.exe -b "samtoram.C+(\"../data/6148s10.sam\",\"../data/6148s10-lz4.root\",true,true,true,ROOT::kLZ4)" >& 6148s10-lz4.log &

0 commit comments

Comments
 (0)