File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed
Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,13 @@ def read_value(d, k):
143143 fc_dir = rna_fold_changes .get (rna , 0 )
144144
145145 # Ignore inconsistent regulatory directions
146- if reg_dir == 0 or reg_dir * fc_dir < 0 :
146+ if reg_dir == 0 :
147147 continue
148148
149+ # Use default value if annotated direction does not match data direction
150+ if reg_dir * fc_dir < 0 :
151+ fc_dir = 0
152+
149153 regulated_genes .append (rna )
150154 regulation_direction .append (np .sign (reg_dir ))
151155 fold_changes .append (fc_dir )
Original file line number Diff line number Diff line change 1+ "Gene" "ppGpp" "DksA-ppGpp" "DksA" "sigma70" "sigmaS" "sigma32" "sigma54" "sigma24" "Curated Gene" "_notes"
2+ "alaS" -1 "alaS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
3+ "asnS" -1 "asnS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
4+ "aspS" -1 "aspS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
5+ "cysS" -1 "cysS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
6+ "glnS" -1 "glnS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
7+ "gltX" -1 "gltX" "tRNA synthetases are expected to be negatively regulated by ppGpp"
8+ "glyS" -1 "glyS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
9+ "hisS" -1 "hisS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
10+ "ileS" -1 "ileS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
11+ "leuS" -1 "leuS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
12+ "lysU" -1 "lysU" "tRNA synthetases are expected to be negatively regulated by ppGpp"
13+ "metG" -1 "metG" "tRNA synthetases are expected to be negatively regulated by ppGpp"
14+ "proS" -1 "proS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
15+ "serS" -1 "serS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
16+ "trpS" -1 "trpS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
17+ "tyrS" -1 "tyrS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
18+ "valS" -1 "valS" "tRNA synthetases are expected to be negatively regulated by ppGpp"
Original file line number Diff line number Diff line change 5454 "molecular_weight_keys.tsv" ,
5555 "ppgpp_fc.tsv" ,
5656 "ppgpp_regulation.tsv" ,
57+ "ppgpp_regulation_added.tsv" ,
5758 "ppgpp_regulation_removed.tsv" ,
5859 "protein_half_lives_measured.tsv" ,
5960 "protein_half_lives_n_end_rule.tsv" ,
139140 'equilibrium_reactions' : 'equilibrium_reactions_added' ,
140141 'metabolic_reactions' : 'metabolic_reactions_added' ,
141142 'metabolites' : 'metabolites_added' ,
143+ 'ppgpp_regulation' : 'ppgpp_regulation_added' ,
142144 'trna_charging_reactions' : 'trna_charging_reactions_added' ,
143145 }
144146
You can’t perform that action at this time.
0 commit comments