def __init__(self,parent,urls): self.pairs=False self.parent=parent self.files=SeqUtils.Filename(urls[0]) self.basename=self.files.ID self.aln="_".join([self.parent.basename,self.basename]) self.dir=os.path.join(self.parent.dir,self.basename) if nonexist(self.dir): os.mkdir(self.dir)
def __init__(self,parent,urls): self.files=list() for url in urls: self.files.append(SeqUtils.Filename(url)) self.pairs=True self.urls=list(map(os.path.abspath,urls)) self.parent=parent self.basename=self.files[0].ID self.aln="_".join([self.parent.basename,self.basename]) self.dir=os.path.join(self.parent.dir,self.basename) if nonexist(self.dir): os.mkdir(self.dir)