Commit 7a2f30be authored by Penom Nom's avatar Penom Nom
Browse files

Component become static.

parent af90f42f
......@@ -27,9 +27,6 @@ class MothurCluster(Component):
Assign sequences to OTUs
"""
def __init__(self):
Component.__init__(self, is_dynamic=True)
def define_parameters(self, dist_files, names_files=None, count_table_files=None, cutoff=0.03, method="average"):
"""
/!\ si on realise le cluster avec un fichier en colonne il faut le fichier names
......@@ -62,8 +59,8 @@ class MothurCluster(Component):
if self.names_files :
cluster = ShellFunction(self.get_exec_path("mothur") + ' "#cluster(column=$1,name=$2,outputdir='+self.output_directory+'/,cutoff='+str(self.cutoff)+\
',method='+self.method+')" > $3',cmd_format='{EXE} {IN} {OUT}')
cluster = MultiMap(cluster, inputs=[self.dist_files,self.names_files], outputs=[self.stdout,self.an_sabund_files,self.an_rabund_files,self.an_list_files])
cluster = MultiMap(cluster, inputs=[self.dist_files,self.names_files], outputs=[self.stdout, self.an_sabund_files, self.an_rabund_files, self.an_list_files])
if self.count_table_files :
cluster = ShellFunction(self.get_exec_path("mothur") + ' "#cluster(column=$1,count=$2,outputdir='+self.output_directory+'/,cutoff='+str(self.cutoff)+\
',method='+self.method+')" > $3',cmd_format='{EXE} {IN} {OUT}')
cluster = MultiMap(cluster, inputs=[self.dist_files,self.count_table_files], outputs=[self.stdout,self.an_list_files])
\ No newline at end of file
cluster = MultiMap(cluster, inputs=[self.dist_files, self.count_table_files], outputs=[self.stdout, self.an_list_files])
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment