Create mint10_ttable_mc9.R

# A loop for setting up methylation values based on the minimum of ten (10) reads.
# The script requires two tables with identical structure
# [1] table with the number of reads (t)
# [2] table with methylation values
# It uses the ifelse function to create a temporary table 'mint' with 0 for t<10 and 1 for t>=10.
# Next it divides the methylation values in 'mc9' table by the values in the 'mint' table.
# Methylation values divided by zero are converted to "Inf", methylation values divided by 1 do not change.
# The last step creates a new table where methylation values based on <10 reads are replaced by "Inf" .