# HG changeset patch # User abims-sbr # Date 1516373472 18000 # Node ID 82cc91f8cacb5a4fba36341c0280ecbcc63a25fc # Parent d557212b575b2e4f87791b96500a4d603a0263ca planemo upload for repository htpps://github.com/abims-sbr/adaptearch commit fe249b6d8df132b24f70207d6dd002dbf6942c2e diff -r d557212b575b -r 82cc91f8cacb orthogroups_tool.xml --- a/orthogroups_tool.xml Wed Jan 17 11:32:14 2018 -0500 +++ b/orthogroups_tool.xml Fri Jan 19 09:51:12 2018 -0500 @@ -1,4 +1,4 @@ - + This tool takes Orthogroups found by OrthoFinder and proceeds to retrieve nucleic sequences back, then write each orthogroups in its own fasta file. @@ -93,6 +93,8 @@ = mini: - list_orthogroups_withpara.append(group) - writeOutputFile(group, hashTable, j, True) - j += 1 + group.sort() + if verbose and len(group) >= mini: + list_orthogroups_withpara.append(group) + if paralogs and len(group) >= mini: + writeOutputFile(group, hashTable, j, True) + j += 1 new_group = [] rang=-1 # Keep only one paralogs per species (1st encounter) @@ -157,7 +152,7 @@ # Build hashtable print " Building hashTable IDs/sequences ...\n" - path = glob.glob('*.fasta') + path = glob.glob('*.fasta') hashTable = hashSequences(path) # Open txt file with orthogroups @@ -179,7 +174,8 @@ os.system("mv {} filtered_orthogroups".format(file)) print " \nFiltered orthogroups are written in the directory 'filtered_orthogroups'" - print " \nFull orthogroups files are written in the directory 'orthogroups_withParalogs'\n" + if args.paralogs: + print " \nFull orthogroups files are written in the directory 'orthogroups_withParalogs'\n" if __name__ == "__main__": main()