Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93482647
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
Fri, Nov 29, 02:58
Size
348 B
Mime Type
text/x-shellscript
Expires
Sun, Dec 1, 02:58 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22646785
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