Save AnnotatedInteractions object and bed files. The object is stored in
        a pickle and the bed files are saved as separate bed files. The object
        can be reloaded by reading the pickle using cPickle and the BedTool
        objects can be recreated using .load_saved_bts().
            
        Parameters
        ----------
        path : str
            Path to save files to. Path should include a basename for the files.
            For instance, path='~/abc' will create files like ~/abc.pickle,
            ~/abc_anchor1.bed, etc.
            
        name : str
            Descriptive name used for bed file trackline.

def save(
        self,
        path,
        name,
    ):
        """
        Save AnnotatedInteractions object and bed files. The object is stored in
        a pickle and the bed files are saved as separate bed files. The object
        can be reloaded by reading the pickle using cPickle and the BedTool
        objects can be recreated using .load_saved_bts().
            
        Parameters
        ----------
        path : str
            Path to save files to. Path should include a basename for the files.
            For instance, path='~/abc' will create files like ~/abc.pickle,
            ~/abc_anchor1.bed, etc.
            
        name : str
            Descriptive name used for bed file trackline.
        """
        t = 'track type=bed name="{}_anchor1"'.format(name)
        self.bt1.saveas(path + '_anchor1.bed', trackline=t)
        self._bt1_path = path + '_anchor1.bed'
        t = 'track type=bed name="{}_anchor2"'.format(name)
        self.bt2.saveas(path + '_anchor2.bed', trackline=t)
        self._bt2_path = path + '_anchor2.bed'
        t = 'track type=bed name="{}_loop"'.format(name)
        self.bt_loop.saveas(path + '_loop.bed', trackline=t)
        self._bt_loop_path = path + '_loop.bed'
        t = 'track type=bed name="{}_loop_inner"'.format(name)
        self.bt_loop_inner.saveas(path + '_loop_inner.bed', trackline=t)
        self._bt_loop_inner_path = path + '_loop_inner.bed'
        import cPickle
        cPickle.dump(self, open(path + '.pickle', 'w'))