How are the p-values (raw) calculated for the volcano-plot

It is based on the t-tests. For more details, please see the T-tests page