Mercurial > repos > erasmus-medical-center > hla_dq
diff hla_dq.py @ 1:4fc47a3ff9e8 draft default tip
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/hla_dq commit 3f631031b57350f0437e90e4de3352725bb84716
author | erasmus-medical-center |
---|---|
date | Wed, 30 May 2018 09:21:15 -0400 |
parents | 10a407fb5072 |
children |
line wrap: on
line diff
--- a/hla_dq.py Wed May 30 07:50:21 2018 -0400 +++ b/hla_dq.py Wed May 30 09:21:15 2018 -0400 @@ -42,12 +42,12 @@ ''' each combination of DQA1,DQB1,type ''' associated_combinations = [ - ['02:01', '02:02', 'DQ2.2'], - ['03:03', '02:02', 'DQ2.3'], - ['05:01', '02:01', 'DQ2.5'], - ['03:01', '03:02', 'DQ8'], - ['03:02', '03:02', 'DQ8'], - ['03:03', '03:02', 'DQ8']] + ['02:01', '02:02', ' DQ2.2 (02:01-02:02)'], + ['03:03', '02:02', ' DQ2.3 (03:03-02:02)'], + ['05:01', '02:01', ' DQ2.5 (05:01-02:01)'], + ['03:01', '03:02', ' DQ8 (03:01-03:02)'], + ['03:02', '03:02', ' DQ8 (03:02-03:02)'], + ['03:03', '03:02', ' DQ8 (03:03-03:02)']] return [a[2] for a in associated_combinations if a[0] in typesA and a[1] in typesB] @@ -83,4 +83,4 @@ outfile.write( 'A' + str(bcount) + '\t' + '\t'.join([';'.join(sorted(set(l))) - if l else '-' for l in line])+'\n') + if l else ' -' for l in line])+'\n')