Skip to content
Permalink
e7a57b00c3
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
34 lines (22 sloc) 744 Bytes
#!/usr/bin/env python
# Supermatrix wrapper
# Have list of alignments you want concatenated
# Feed them to supermatrix script
# Concatenate first two alignments take product and add to next alignment in list ...
import sys
from subprocess import call
InFile1 = sys.argv[1]
File1 = open(InFile1, 'rU')
AlignmentFiles = []
OutFile = "OutFile"
for Line in File1:
Line = Line.strip("\n")
AlignmentFiles.append(Line)
File1.close()
X = 1
call("supermatrix.py " + AlignmentFiles[0] + " " + AlignmentFiles[1] + " " + OutFile + str(X), shell=True)
AlignmentFiles = AlignmentFiles[2:]
for Alignment in AlignmentFiles:
Y = X + 1
call("supermatrix.py " + OutFile + str(X) + " " + Alignment + " " + OutFile + str(Y), shell=True)
X = X + 1