def copy(self, name):
<EOL>subdict = {i:j for i, j in self.__dict__.iteritems() if i != "<STR_LIT>"}<EOL>newdict = copy.deepcopy(subdict)<EOL>newobj = Treemix(<EOL>data=newdict["<STR_LIT:data>"],<EOL>name=name,<EOL>workdir=newdict["<STR_LIT>"],<EOL>imap={i:j for i, j in newdict["<STR_LIT>"].items()},<EOL>mapfile=newdict['<STR_LIT>'],<EOL>minmap={i:j for i, j in newdict["<STR_LIT>"].items()},<EOL>seed=np.random.randint(<NUM_LIT:0>, int(<NUM_LIT>)),<EOL>)<EOL>for key, val in newobj.params.__dict__.iteritems():<EOL><INDENT>newobj.params.__setattr__(key, self.params.__getattribute__(key))<EOL><DEDENT>return newobj<EOL>
Returns a copy of the treemix object with the same parameter settings
but with the files attributes cleared, and with a new 'name' attribute. 

Parameters
----------
name (str):
    A name for the new copied treemix bject that will be used for the 
    output files created by the object.