diff options
| author | Jon Bernard <jbernard@tuxion.com> | 2011-06-04 09:59:25 -0400 |
|---|---|---|
| committer | Jon Bernard <jbernard@tuxion.com> | 2011-06-04 10:02:47 -0400 |
| commit | 5835a0cadda28041248de606bfa0e708b54b8513 (patch) | |
| tree | 4b42fd11d48fef3f330ba42107661ffff2dda420 /bin | |
| parent | 7b00448cbadec0ab9be73e7462afc57c3dba0f3a (diff) | |
| download | pepseq-5835a0cadda28041248de606bfa0e708b54b8513.zip | |
Reconfigure input parsing for new input set
This really needs to be rewritten for future iterations.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/pepseq | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -88,11 +88,11 @@ def main(): bucket4 = [] for char in config.get('DEFAULT', 'bucket4').split(' '): bucket4.append(pepseq.amino_acid.AminoAcid(char)) + bucket4.append(pepseq.amino_acid.AminoAcid('N')) bucket5 = [] for char in config.get('DEFAULT', 'bucket5').split(' '): bucket5.append(pepseq.amino_acid.AminoAcid(char)) - bucket5.append(pepseq.amino_acid.AminoAcid('N')) bucket6 = [] for char in config.get('DEFAULT', 'bucket6').split(' '): @@ -106,20 +106,15 @@ def main(): for char in config.get('DEFAULT', 'bucket8').split(' '): bucket8.append(pepseq.amino_acid.AminoAcid(char)) - bucket9 = [] - for char in config.get('DEFAULT', 'bucket9').split(' '): - bucket9.append(pepseq.amino_acid.AminoAcid(char)) - - possibilities = (bucket1, bucket2, bucket3, - bucket4, bucket5, bucket6, - bucket7, bucket8, bucket9) + possibilities = (bucket1, bucket2, bucket3, bucket4, + bucket5, bucket6, bucket7, bucket8) peptides = [] sequences = tuple(itertools.product(*possibilities)) for sequence in sequences: if sequence[4].letter == 'K': peptide = pepseq.amino_acid.Peptide(sequence) - peptide.branch_before(4) + peptide.branch_before(3) peptides.append(peptide) peptides.sort() |