Hi,
I have to use this code below which works fine :
output=$path
tmp_dir=$path1
mu=200
sigma=80
output_dir=$output
tmp_dir=$tmp
mu_length=$mu
sigma_length=$sigma
echo "input_format=sam
sv_type=all
mates_orientation=RF
read1_length=100
read2_length=100
output_dir=$output
tmp_dir=$tmp
mu_length=$mu
sigma_length=$sigma
window_size=$((sigma*2 + mu*2))" > abc.txt
What I need to do is
window_size=$((sigma*2.82 + mu*2)) # float multiplication
Will this thing work :
window_size=$(('scale=4; sigma*2.82 + mu*2' | bc))
Or any other way by which I can do float multiplication.
Thanks in advance for the help
I have to use this code below which works fine :
output=$path
tmp_dir=$path1
mu=200
sigma=80
output_dir=$output
tmp_dir=$tmp
mu_length=$mu
sigma_length=$sigma
echo "input_format=sam
sv_type=all
mates_orientation=RF
read1_length=100
read2_length=100
output_dir=$output
tmp_dir=$tmp
mu_length=$mu
sigma_length=$sigma
window_size=$((sigma*2 + mu*2))" > abc.txt
What I need to do is
window_size=$((sigma*2.82 + mu*2)) # float multiplication
Will this thing work :
window_size=$(('scale=4; sigma*2.82 + mu*2' | bc))
Or any other way by which I can do float multiplication.
Thanks in advance for the help
Comment