save freq patterns to file
add py to convert R to csv