Hi Julia,
We have been using the matlab function RetroTS.m to create regressors of no interest from physiological recordings. The program @afni_proc.py can use RetroTS's output as part of the resting state pre-processing pipeline. If you don't have matlab, see if you can use the stand-alone version per the instructions
here.
cheers,
Ziad