Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93001637
bayesInsertEvid.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 25, 12:22
Size
348 B
Mime Type
text/x-shellscript
Expires
Wed, Nov 27, 12:22 (2 d)
Engine
blob
Format
Raw Data
Handle
22549577
Attached To
R1448 Lenstool-HPC
bayesInsertEvid.sh
View Options
#!/bin/sh
# Insert a fake Evidence column into an old format bayes.dat file.
#
if
(
[
! -e bayes.dat
]
)
then
echo
"bayes.dat not found in current directory."
exit
fi
if
(
[
! -z
"$(grep Evidence bayes.dat)"
]
)
then
echo
"bayes.dat already in the new format."
exit
fi
sed -i
"/#Chi2/ a #Evidence"
bayes.dat
sed -i
"s/^[0-9]* /&1 /"
bayes.dat
Event Timeline
Log In to Comment