Mercurial > repos > iuc > virhunter
comparison predict.py @ 2:ea2cccb9f73e draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/VirHunter commit c3685ed6a70b47012b62b95a2a3db062bd3b7475
author | iuc |
---|---|
date | Thu, 05 Jan 2023 14:27:54 +0000 |
parents | 9b12bc1b1e2c |
children | 302332b914ef |
comparison
equal
deleted
inserted
replaced
1:9b12bc1b1e2c | 2:ea2cccb9f73e |
---|---|
102 """ | 102 """ |
103 df = ( | 103 df = ( |
104 df.groupby(["id", "length", 'RF_decision'], sort=False).size().unstack(fill_value=0) | 104 df.groupby(["id", "length", 'RF_decision'], sort=False).size().unstack(fill_value=0) |
105 ) | 105 ) |
106 df = df.reset_index() | 106 df = df.reset_index() |
107 df = df.reindex(['length', 'id', 'virus', 'plant', 'bacteria'], axis=1) | 107 df = df.reindex(['length', 'id', 'virus', 'plant', 'bacteria'], axis=1).fillna(value=0) |
108 conditions = [ | 108 conditions = [ |
109 (df['virus'] > df['plant']) & (df['virus'] > df['bacteria']), | 109 (df['virus'] > df['plant']) & (df['virus'] > df['bacteria']), |
110 (df['plant'] > df['virus']) & (df['plant'] > df['bacteria']), | 110 (df['plant'] > df['virus']) & (df['plant'] > df['bacteria']), |
111 (df['bacteria'] >= df['plant']) & (df['bacteria'] >= df['virus']), | 111 (df['bacteria'] >= df['plant']) & (df['bacteria'] >= df['virus']), |
112 ] | 112 ] |