index
int64
0
731k
package
stringlengths
2
98
name
stringlengths
1
76
docstring
stringlengths
0
281k
code
stringlengths
4
8.19k
signature
stringlengths
2
42.8k
embed_func_code
sequencelengths
768
768
20,448
metevolsim.metevolsim
initialize
Initialize the MCMC algorithm. Parameters ---------- None Returns ------- None
def initialize( self ): """ Initialize the MCMC algorithm. Parameters ---------- None Returns ------- None """ success = self.model.compute_wild_type_steady_state() assert success, "Wild-type model is not stable. Exit." success = self.model.compute_mutant_steady_state() assert success, "Wild-type model is not stable. Exit." self.model.compute_sum_distance() self.model.compute_moma_distance() self.initialize_output_file() self.wild_type_abund = self.model.get_wild_type_species_array() self.mutant_abund = self.model.get_mutant_species_array() self.wild_type_flux = self.model.get_wild_type_reaction_array() self.mutant_flux = self.model.get_mutant_reaction_array()
(self)
[ -0.014032949693500996, -0.00035246575134806335, -0.003995178267359734, 0.027033133432269096, -0.011097717098891735, -0.03326597437262535, -0.06736540794372559, -0.012809935957193375, -0.016442740336060524, 0.03674476593732834, -0.030656877905130386, 0.06975708156824112, 0.0033542283345013857, 0.08812946081161499, -0.043847307562828064, 0.022974539548158646, 0.02630838379263878, 0.05406626686453819, -0.024822648614645004, -0.004819579888135195, -0.03939010202884674, -0.0035105023998767138, -0.0479421392083168, 0.05392131581902504, -0.00288767134770751, -0.008946118876338005, -0.04551422968506813, -0.017158430069684982, -0.018861589953303337, -0.013607160188257694, -0.018526393920183182, 0.0026543927378952503, -0.008619981817901134, 0.02150692231953144, 0.007034593727439642, -0.07515645772218704, 0.05384884029626846, 0.016696402803063393, -0.1308896392583847, 0.025003835558891296, 0.06450264900922775, -0.06827134639024734, 0.07812792807817459, -0.0005860273959115148, -0.05055123195052147, -0.012991123832762241, -0.01810966245830059, 0.047253627330064774, -0.057001497596502304, -0.045840367674827576, -0.07479408383369446, 0.018191196024417877, 0.038846541196107864, 0.027467982843518257, -0.0201480183750391, 0.048123326152563095, 0.04620274156332016, 0.005322374403476715, 0.05026133358478546, -0.009032182395458221, -0.008801168762147427, 0.020782174542546272, 0.049500346183776855, 0.018698520958423615, -0.0008000548114068806, -0.0003051872190553695, -0.030946776270866394, 0.03605625778436661, 0.03324785456061363, 0.07943248003721237, 0.02806589938700199, 0.003718867665156722, 0.018408620730042458, 0.04685501381754875, 0.04536927863955498, 0.010662867687642574, -0.041093260049819946, -0.03078370913863182, -0.0009274520562030375, 0.010699105449020863, -0.00724295899271965, 0.07091667503118515, -0.0726560726761818, -0.04069465026259422, -0.03484230116009712, -0.05330527946352959, 0.05229062959551811, 0.00004016552702523768, 0.019205845892429352, -0.011396676301956177, -0.08523046970367432, 0.028120256960392, 0.02694253996014595, -0.0008566757896915078, 0.034969132393598557, 0.06026287004351616, -0.020981479436159134, -0.02766728773713112, -0.007827287539839745, -0.008796639740467072, -0.01701347902417183, 0.020274849608540535, 0.0657709613442421, 0.012728402391076088, -0.04620274156332016, -0.012492858804762363, -0.01857168972492218, -0.019531982019543648, -0.022376621142029762, -0.022267909720540047, -0.07812792807817459, 0.03605625778436661, -0.023373151198029518, 0.004964530002325773, 0.0031866300851106644, -0.03754199296236038, -0.005390319507569075, 0.014123544096946716, 0.018535451963543892, 0.02489512413740158, -0.013743050396442413, 0.008860055357217789, -0.04141939803957939, -0.011704694479703903, 0.01675075851380825, 0.01380646601319313, 0.021814940497279167, -0.04149187356233597, 0.007772931829094887, -0.048159562051296234, -0.0063415528275072575, -0.02806589938700199, -0.009811287745833397, 0.01904277689754963, -0.030185790732502937, -0.04645640403032303, 0.028192730620503426, -0.0937100276350975, 0.029352329671382904, 0.06446640938520432, 0.03212449327111244, -0.0033519635908305645, 0.020039306953549385, -0.018644165247678757, 0.004011032171547413, 0.05874089524149895, -0.010264256037771702, -0.06207473948597908, -0.0023214612156152725, -0.013317260891199112, 0.014069187454879284, -0.030928658321499825, -0.0001048196354531683, -0.006962118670344353, -0.012266374193131924, -0.005191013682633638, 0.023626813665032387, -0.008330082520842552, 0.012963945046067238, 0.007786520756781101, -0.030058959499001503, 0.007428675889968872, -0.013960475102066994, 0.0502975732088089, -0.0398249514400959, 0.026018483564257622, -0.039317626506090164, -0.0381217896938324, -0.02335503324866295, 0.017774466425180435, -0.03913643956184387, -0.034534282982349396, -0.043847307562828064, -0.041600584983825684, 0.020474156364798546, 0.04417344555258751, -0.004932822193950415, -0.008443323895335197, 0.00308244745247066, 0.011958356015384197, -0.03899148851633072, -0.03426250442862511, -0.0438835434615612, 0.01854451186954975, -0.028845004737377167, 0.02607284113764763, 0.037940602749586105, -0.0169863011687994, 0.04141939803957939, 0.04080336168408394, 0.028392037376761436, -0.004674630239605904, -0.011867762543261051, 0.06356047838926315, 0.06493750214576721, 0.0018016804242506623, 0.03515031933784485, -0.006033534184098244, 0.013009241782128811, 0.013136073015630245, -0.02083653025329113, 0.012420384213328362, 0.007496620994061232, -0.048376988619565964, -0.006318903993815184, 0.014612749218940735, -0.025456804782152176, 0.06903232634067535, -0.05363141745328903, 0.028011543676257133, -0.016143780201673508, -0.03081994503736496, 0.04939163476228714, 0.007034593727439642, 0.008755872026085854, -0.11074163019657135, 0.09349260479211807, 0.024116018787026405, -0.0011618629796430469, 0.01190400030463934, 0.035005372017621994, 0.005372201092541218, -0.07675090432167053, 0.02020237408578396, -0.04355740547180176, 0.05870465934276581, -0.004262429196387529, 0.04844946041703224, -0.04892054945230484, -0.02243097685277462, -0.010092128068208694, 0.023844238370656967, 0.006735634990036488, -0.03732456639409065, 0.010481680743396282, -0.02605472132563591, -0.016895707696676254, 0.06167612969875336, -0.09015876054763794, -0.04323127120733261, -0.028609462082386017, -0.03672664985060692, -0.002229735255241394, -0.004353023134171963, -0.0035557991359382868, -0.027359269559383392, 0.017819762229919434, -0.0007264474988915026, -0.02016613818705082, 0.032468751072883606, -0.03103736974298954, -0.01334443874657154, -0.03607437387108803, -0.017511744052171707, 0.0020836531184613705, -0.053595177829265594, 0.021814940497279167, 0.003227397333830595, 0.06587967276573181, -0.018662283197045326, 0.07327210903167725, -0.034969132393598557, 0.013634338043630123, 0.05464606359601021, -0.08515799045562744, 0.011170191690325737, -0.03558516874909401, 0.006789991166442633, 0.016406502574682236, -0.002244456671178341, 0.038375452160835266, 0.047905899584293365, -0.030928658321499825, -0.01740303263068199, -0.030874302610754967, -0.008330082520842552, 0.03127291426062584, -0.014938886277377605, -0.03629180043935776, 0.0648287832736969, 0.030910538509488106, -0.039100199937820435, 0.013099836185574532, 0.027268676087260246, -0.053124092519283295, -0.03013143502175808, -0.04015108570456505, 0.01949574425816536, 0.011007123626768589, -0.03333844989538193, -0.0014664840418845415, 0.02263028360903263, 0.039788711816072464, 0.01947762630879879, 0.09124588221311569, -0.07827287912368774, -0.038882777094841, 0.007338082417845726, 0.03484230116009712, -0.011804346926510334, -0.01877099648118019, -0.032740529626607895, 0.03344716131687164, -0.023499982431530952, -0.006794520653784275, 0.03533150628209114, 0.008416146039962769, 0.014177899807691574, 0.049282923340797424, 0.013090776279568672, 0.04453581944108009, 0.042723946273326874, 0.035476457327604294, 0.057001497596502304, 0.042687710374593735, -0.012601571157574654, 0.008814757689833641, -0.032957956194877625, 0.03527715057134628, 0.04308632016181946, -0.0035490046720951796, 0.003336109686642885, 0.032939836382865906, 0.01678699627518654, -0.034787945449352264, -0.07055430114269257, 0.0393538624048233, -0.0271780826151371, -0.006599744316190481, -0.01831802725791931, -0.029732823371887207, 0.020963361486792564, 0.006590684875845909, 0.01326290424913168, -0.0023237259592860937, -0.014685223810374737, -0.03103736974298954, -0.03531339019536972, 0.042470283806324005, -0.051565881818532944, 0.056494176387786865, -0.011342319659888744, -0.05453735217452049, 0.018970301374793053, 0.05689278617501259, -0.028899360448122025, 0.005616803653538227, -0.04283265769481659, -0.010907470248639584, -0.014902648515999317, 0.029171142727136612, 0.07696832716464996, -0.01394235622137785, 0.09204310923814774, 0.043847307562828064, 0.04555046558380127, -0.045188091695308685, -0.03714337944984436, -0.04047722369432449, 0.011025242507457733, 0.02375364489853382, 0.0579436719417572, -0.038882777094841, 0.012021771632134914, 0.009938118979334831, -0.06881490349769592, -0.00011111872299807146, -0.0038049316499382257, 0.010961826890707016, -0.008941588923335075, -0.010354849509894848, -0.057690009474754333, -0.04036851227283478, 0.0299140103161335, 0.00986564438790083, 0.011043361388146877, -0.021796822547912598, -0.0009699178044684231, 0.015745168551802635, 0.011387616395950317, -0.020256731659173965, 0.016705460846424103, -0.025927890092134476, -0.02987777255475521, -0.05214568227529526, -0.02491324208676815, 0.04228909686207771, 0.05145717039704323, 0.026543928310275078, 0.015228785574436188, 0.04058593511581421, -0.025094429031014442, 0.02424285002052784, -0.0003227397392038256, 0.05091360956430435, 0.08175167441368103, 0.04330374673008919, 0.043376218527555466, -0.04580412805080414, -0.019984949380159378, 0.048811838030815125, -0.04297760874032974, 0.008076420053839684, 0.07037311792373657, -0.04015108570456505, -0.052870430052280426, 0.003037150716409087, 0.016941005364060402, 0.008814757689833641, 0.037904366850852966, 0.0313272699713707, 0.01740303263068199, -0.0172218456864357, -0.001538958982564509, -0.015971653163433075, -0.054682303220033646, 0.02018425613641739, -0.04442710429430008, 0.020057424902915955, 0.04439086839556694, 0.031834594905376434, 0.028174612671136856, 0.09399992972612381, 0.042687710374593735, 0.05232686921954155, 0.033374685794115067, 0.023137608543038368, 0.01326290424913168, -0.03315725922584534, -0.017267141491174698, -0.08812946081161499, 0.07609862834215164, -0.02556551620364189, -0.01010118704289198, 0.01144197303801775, 0.02177870273590088, -0.04464453086256981, -0.017756346613168716, -0.001562739722430706, 0.0190608948469162, -0.022775232791900635, -0.0014562922297045588, 0.03830297663807869, -0.026652639731764793, -0.048123326152563095, 0.0032024839892983437, -0.0042714886367321014, -0.00023342009808402508, -0.042216621339321136, 0.00763704115524888, -0.015328438952565193, 0.036817241460084915, -0.013906119391322136, -0.039969898760318756, 0.032523106783628464, 0.04681877791881561, -0.015808584168553352, 0.02873629331588745, 0.014920767396688461, -0.058342285454273224, -0.017692930996418, 0.0074422648176550865, -0.013181369751691818, -0.024605223909020424, 0.01541903242468834, 0.007306374609470367, 0.0038479636423289776, -0.0020983745343983173, -0.020981479436159134, -0.029334209859371185, -0.006373260170221329, 0.027993425726890564, 0.04772471264004707, -0.024134136736392975, -0.005648511461913586, -0.07421428710222244, -0.06939470767974854, -0.02333691343665123, 0.017067836597561836, -0.058523472398519516, 0.010517917573451996, -0.004232986364513636, 0.02971470355987549, 0.017584219574928284, -0.03989742696285248, -0.04189048334956169, 0.028609462082386017, -0.06279949098825455, 0.09450725466012955, -0.07236617803573608, -0.06548105925321579, 0.03674476593732834, 0.0512397438287735, -0.024387799203395844, -0.0030439451802521944, 0.050406284630298615, 0.011641278862953186, 0.005612274166196585, 0.0363280363380909, -0.018499214202165604, 0.028428275138139725, 0.015509625896811485, -0.05297914147377014, -0.029261736199259758, -0.061241280287504196, 0.0471811518073082, -0.03143598139286041, -0.08863678574562073, -0.009901881217956543, 0.02012990042567253, 0.0348241850733757, -0.07878020405769348, -0.028935598209500313, -0.021669991314411163, 0.03721585497260094, 0.009621040895581245, -0.033845771104097366, 0.011405735276639462, -0.04616650193929672, 0.04844946041703224, -0.01280087698251009, -0.017339617013931274, -0.000720785406883806, 0.017339617013931274, -0.025076311081647873, -0.002344109583646059, -0.019115252420306206, -0.010934649035334587, 0.0162796713411808, -0.011849643662571907, -0.0008159087155945599, -0.07232993841171265, -0.016370264813303947, 0.07834535092115402, 0.01064474880695343, -0.03797684237360954, 0.03346527740359306, -0.02922549843788147, -0.02246721461415291, -0.024768292903900146, -0.029986483976244926, -0.06022663041949272, 0.02380800060927868, -0.06156741827726364, 0.02058286778628826, -0.010010593570768833, -0.005326904356479645, 0.03647298738360405, -0.02152504213154316, 0.007664219476282597, -0.002946557244285941, -0.035693880170583725, -0.047688476741313934, -0.016189077869057655, 0.07863525301218033, -0.05033380910754204, 0.04163682088255882, -0.023952949792146683, 0.029297973960638046, 0.0579436719417572, -0.018680403009057045, -0.02148880437016487, -0.036799125373363495, 0.0033927306067198515, -0.009630100801587105, 0.006142246536910534, -0.009457972832024097, 0.024134136736392975, -0.058523472398519516, -0.011025242507457733, 0.06526363641023636, -0.0030643288046121597, -0.01119737047702074, 0.043811067938804626, -0.059828020632267, 0.007999415509402752, -0.018626045435667038, 0.013987652957439423, 0.02103583514690399, -0.002116493182256818, 0.06087890639901161, -0.01133326068520546, 0.009231489151716232, 0.0023056073114275932, 0.004892054945230484, 0.011514447629451752, -0.018626045435667038, 0.01679605431854725, 0.02989589050412178, -0.011025242507457733, -0.005580566357821226, 0.01884347014129162, -0.02036544308066368, -0.0036033608485013247, -0.018716638907790184, 0.01927831955254078, 0.030058959499001503, -0.04163682088255882, 0.03768694028258324, 0.01121548842638731, -0.045840367674827576, 0.030258266255259514, -0.03437121585011482, 0.04004237428307533, -0.0031549225095659494, -0.025456804782152176, -0.03457052260637283, 0.056240513920784, 0.01043638400733471, 0.036545462906360626, 0.005607744213193655, -0.03243251144886017, 0.04808708652853966, -0.023844238370656967, 0.0027246028184890747, -0.05819733440876007, -0.002038356149569154, -0.03156281262636185, 0.070771723985672, 0.018227433785796165, 0.015962593257427216, -0.030240146443247795, -0.024587105959653854, 0.0057073975913226604, -0.012520036660134792, -0.04036851227283478, -0.018444858491420746, -0.0984208956360817, 0.010880292393267155, 0.01020989939570427, 0.04080336168408394, 0.003895525122061372, -0.011749991215765476, -0.025493040680885315, 0.03058440238237381, 0.032994192093610764, -0.0029035252518951893, 0.016814174130558968, 0.03768694028258324, 0.04196295887231827, 0.0017246758798137307, 0.036563578993082047, 0.07008321583271027, -0.028355799615383148, -0.0393538624048233, -0.03178023919463158, -0.026580164209008217, 0.03873782604932785, 0.0008906483999453485, 0.025637991726398468, -0.010699105449020863, -0.014241315424442291, 0.020927123725414276, 0.05113103240728378, -0.022594045847654343, -0.04015108570456505, -0.03426250442862511, 0.011777169071137905, 0.05997296795248985, -0.037904366850852966, -0.01540997251868248, 0.07479408383369446, 0.01494794525206089, -0.011423854157328606, 0.04054969921708107, -0.04352116957306862, 0.013598100282251835, -0.024116018787026405, -0.027323031798005104, 0.02560175396502018, -0.01088935136795044, 0.0476522371172905, 0.04370235651731491, 0.031127963215112686, -0.032994192093610764, -0.010246137157082558, 0.030964896082878113, 0.0025751234497874975, 0.02241285890340805, 0.03592942655086517, 0.02877253107726574, 0.055153388530015945, -0.01494794525206089, -0.04602155461907387, 0.04507938027381897, 0.01971316896378994, -0.0363280363380909, 0.011451032012701035, -0.008887233212590218, -0.023210082203149796, -0.03797684237360954, 0.02920737862586975, 0.0278847124427557, 0.005304255988448858, 0.015265023335814476, 0.031580932438373566, -0.077765554189682, -0.08138930052518845, -0.008724164217710495, -0.011025242507457733, 0.05486349016427994, 0.035458337515592575, -0.05953811854124069, 0.018055306747555733, -0.04326750710606575, -0.01583576202392578, -0.04181801155209541, 0.059828020632267, 0.003415378974750638, -0.01945950649678707, 0.03440745174884796, 0.039969898760318756, -0.007976767607033253, -0.026797588914632797, 0.02420661225914955, 0.026453332975506783, 0.004242045804858208, 0.04330374673008919, 0.00024389498867094517, -0.03563952445983887, 0.01655145175755024, -0.0507686585187912, 0.014984183013439178, 0.015953535214066505, 0.0011329862754791975, 0.0027110136579722166, -0.04069465026259422, -0.034316860139369965, 0.07272855192422867, -0.047217387706041336, -0.026888182386755943, -0.03833921626210213, -0.014177899807691574, 0.0278847124427557, 0.03268617391586304, -0.06439393758773804, 0.009756932035088539, 0.027286795899271965, 0.014857351779937744, 0.012755580246448517, -0.057653773576021194, -0.04232533276081085, -0.012637807987630367, 0.020274849608540535, 0.01449497789144516, 0.003175305901095271, 0.026670757681131363, -0.001781296799890697, 0.021090192720294, 0.011958356015384197, 0.012927708216011524, -0.05185578018426895, 0.07638853043317795, 0.009702575393021107, 0.036309920251369476, 0.02034732513129711, 0.0226484015583992, -0.030022721737623215, -0.004269223660230637, -0.06758283078670502, -0.011025242507457733, -0.08827441185712814, 0.04442710429430008, 0.029153022915124893, -0.004180895164608955, 0.07088044285774231, 0.06414027512073517, 0.00906389020383358 ]
20,449
metevolsim.metevolsim
initialize_output_file
Initialize the output file (write the header). Parameters ---------- None Returns ------- None
def initialize_output_file( self ): """ Initialize the output file (write the header). Parameters ---------- None Returns ------- None """ header = "nb_iterations nb_accepted nb_rejected param_metaid param_id param_previous param_val" for species_id in self.model.species: if not self.model.species[species_id]["constant"]: header += " "+species_id for reaction_id in self.model.reactions: header += " "+reaction_id header += " wild_type_absolute_sum mutant_absolute_sum absolute_sum_dist absolute_moma_dist relative_moma_dist absolute_moma_all_dist relative_moma_all_dist\n" self.output_file = open("output/iterations.txt", "a") self.output_file.write(header) self.output_file.close()
(self)
[ -0.025723136961460114, -0.0033394352067261934, -0.019019944593310356, -0.04514196515083313, 0.04397450014948845, -0.020741954445838928, -0.08787117153406143, 0.03753398731350899, -0.01510893739759922, -0.02126731351017952, 0.024263804778456688, 0.019749609753489494, -0.012608617544174194, 0.04288486763834953, 0.038409583270549774, 0.048527609556913376, 0.036483269184827805, 0.005166030954569578, -0.044636063277721405, 0.03800097107887268, 0.013260452076792717, -0.01337719801813364, -0.06028008833527565, 0.003032975597307086, 0.020216595381498337, -0.018134616315364838, -0.029342276975512505, -0.042456794530153275, 0.026209579780697823, -0.005200081970542669, -0.0734335258603096, -0.07121533900499344, -0.016539081931114197, 0.00813820119947195, -0.024166516959667206, -0.014437645673751831, 0.035841163247823715, 0.02792186103761196, -0.030256791040301323, 0.03961596637964249, 0.09612125158309937, -0.042456794530153275, 0.0060416292399168015, 0.001407038071192801, -0.07977674901485443, 0.0193701833486557, -0.019350726157426834, 0.007257738150656223, 0.010001280345022678, -0.06288742274045944, -0.03572441637516022, -0.019467471167445183, -0.004219898022711277, 0.030412452295422554, -0.037281036376953125, -0.0007211525808088481, 0.02099490538239479, -0.05175759643316269, 0.030295705422759056, -0.01406794786453247, -0.03911006450653076, 0.015147852711379528, 0.06300417333841324, 0.01460303645581007, -0.007038838695734739, 0.022999051958322525, -0.04611485078930855, 0.037981513887643814, 0.011168744415044785, 0.07654675841331482, 0.07818121463060379, -0.03416779637336731, 0.02936173416674137, 0.03788422420620918, 0.030509741976857185, 0.04611485078930855, -0.06086381897330284, -0.05132952705025673, 0.02408868633210659, -0.02819426916539669, -0.02687114290893078, 0.05090145766735077, 0.00988453347235918, -0.02387465164065361, 0.021598095074295998, -0.07098184525966644, 0.058645639568567276, -0.029653601348400116, -0.01558565255254507, 0.0012817787937819958, -0.06421054899692535, 0.018932383507490158, 0.008434931747615337, 0.0031959342304617167, 0.02117002382874489, -0.016568267717957497, -0.009938042610883713, -0.017920581623911858, -0.01847512647509575, -0.05210783705115318, -0.060357920825481415, 0.0030402722768485546, 0.031210219487547874, 0.020741954445838928, -0.026929516345262527, -0.0800880715250969, 0.023563327267766, 0.004022888373583555, -0.005837323144078255, -0.0008634373662061989, -0.04786604642868042, 0.01750224083662033, 0.014106864109635353, -0.029186613857746124, 0.0712931677699089, -0.04704882204532623, -0.015118665993213654, 0.03401213511824608, 0.04595918953418732, -0.005501676816493273, 0.01550782099366188, -0.020294426009058952, -0.03165774792432785, 0.020741954445838928, 0.014155508019030094, -0.02056683413684368, -0.01863078959286213, 0.010147213004529476, 0.07541821151971817, -0.0533142164349556, 0.0076614865101873875, -0.017307663336396217, 0.0059686629101634026, -0.04234004765748978, 0.0031837732531130314, -0.030898896977305412, -0.006596175022423267, -0.02547018602490425, 0.0307626910507679, 0.06463862210512161, 0.05638853833079338, -0.050706878304481506, -0.035996824502944946, -0.003962082788348198, 0.004925241228193045, 0.023894108831882477, 0.02227911539375782, -0.007131262682378292, 0.005409252364188433, -0.04358534514904022, 0.0010829450329765677, -0.025703677907586098, -0.08335696905851364, -0.05798407271504402, 0.036210861057043076, -0.0046260785311460495, 0.007836606353521347, -0.008872730657458305, -0.020119305700063705, -0.050123147666454315, 0.015537007711827755, -0.0008226977079175413, 0.013610691763460636, 0.05350879207253456, -0.00873652659356594, 0.03340894356369972, -0.03130750730633736, 0.012336209416389465, 0.00425151688978076, -0.05062904581427574, -0.027591079473495483, -0.06312091648578644, -0.05222458392381668, -0.018932383507490158, 0.0033297063782811165, 0.03465424105525017, 0.036055199801921844, -0.06101948395371437, -0.010079110972583294, 0.06677897274494171, 0.011694103479385376, -0.07977674901485443, -0.051134947687387466, 0.03572441637516022, 0.01724928990006447, -0.01521595474332571, 0.04339076578617096, -0.015225684270262718, 0.04918917641043663, 0.02169538289308548, 0.06802427023649216, -0.012559973634779453, -0.03122967854142189, 0.050084229558706284, 0.026559818536043167, -0.05681661143898964, 0.04568678140640259, -0.00888732448220253, 0.06989221274852753, -0.054870836436748505, -0.03449857980012894, 0.04257354140281677, 0.004329347983002663, -0.026131749153137207, 0.03144371137022972, 0.034829359501600266, 0.013357740826904774, -0.0387403666973114, -0.07257737964391708, 0.0449863038957119, 0.0005256630829535425, -0.02329091913998127, 0.05627179145812988, -0.03782585263252258, 0.00038702666643075645, -0.006138917990028858, 0.02792186103761196, 0.036833506077528, -0.05253590643405914, -0.007116669323295355, -0.017366034910082817, 0.0033613250125199556, 0.0050687422044575214, 0.011363321915268898, -0.014447374269366264, -0.0076566217467188835, 0.024166516959667206, 0.0009880885481834412, -0.04833303391933441, -0.010108297690749168, 0.0214813482016325, 0.02120894007384777, -0.00851762667298317, -0.011927596293389797, -0.07456207275390625, -0.0018594305729493499, -0.04988965392112732, 0.009694820269942284, -0.09409764409065247, -0.020955989137291908, -0.05794515833258629, -0.01460303645581007, 0.0074377222917973995, -0.012569702230393887, -0.016626641154289246, -0.01460303645581007, 0.041483908891677856, 0.003813717747107148, -0.06133080646395683, 0.004312322475016117, 0.058606721460819244, -0.01747305318713188, -0.04179523140192032, -0.03975217044353485, 0.048099540174007416, -0.016451522707939148, -0.07323894649744034, -0.03130750730633736, 0.02920607291162014, -0.009660769253969193, 0.029186613857746124, 0.03609411418437958, 0.002843262627720833, -0.02889474853873253, -0.0062070200219750404, -0.012083258479833603, -0.06561151146888733, 0.006367546506226063, -0.033389486372470856, -0.014223610050976276, 0.05740034207701683, 0.08086638152599335, -0.05238024517893791, -0.03144371137022972, -0.03150208666920662, -0.023388206958770752, 0.04090017452836037, -0.012900483794510365, -0.05642745643854141, 0.058061905205249786, 0.05366445705294609, -0.036969710141420364, 0.007890114560723305, 0.024691876024007797, 0.012161089107394218, 0.014379272237420082, -0.04560894891619682, 0.050278808921575546, 0.003874523099511862, -0.04183414950966835, 0.007676079869270325, 0.04156173765659332, 0.015206226147711277, 0.05265265330672264, 0.02724084071815014, -0.024108143523335457, -0.007865793071687222, -0.04471389204263687, 0.05062904581427574, -0.0016137765487655997, -0.025353439152240753, -0.03566604480147362, 0.049850739538669586, -0.06288742274045944, -0.0677129477262497, 0.016811490058898926, 0.008848408237099648, -0.0028505593072623014, 0.021092193201184273, 0.010351519100368023, 0.01722010225057602, 0.03202744573354721, 0.03214419260621071, 0.020119305700063705, 0.0388571135699749, 0.024127600714564323, -0.006926956586539745, 0.004604188259691, 0.04323510453104973, 0.036483269184827805, -0.03346731886267662, 0.008970019407570362, 0.02377736195921898, -0.04253462702035904, 0.032319311052560806, -0.09075091034173965, 0.05490975081920624, 0.019039401784539223, -0.012277835980057716, -0.025333981961011887, -0.04198981076478958, -0.03833175450563431, 0.016714202240109444, 0.02297959476709366, -0.0007150720339268446, 0.010225043632090092, 0.016928236931562424, -0.0347515307366848, 0.048838935792446136, 0.0014641952002421021, 0.017657902091741562, -0.04568678140640259, -0.049850739538669586, 0.026131749153137207, -0.019438285380601883, -0.009471056051552296, -0.025917714461684227, -0.04595918953418732, -0.0006153511349111795, -0.032222021371126175, 0.02914769947528839, 0.07779205590486526, 0.045647867023944855, 0.06288742274045944, 0.05175759643316269, 0.015157582238316536, -0.04444148391485214, -0.03763127699494362, -0.0019737447146326303, 0.010195857845246792, -0.00813820119947195, 0.055143244564533234, 0.015702398493885994, 0.014398730359971523, 0.010779589414596558, -0.056466370820999146, 0.00735502690076828, 0.06981438398361206, 0.03992728888988495, -0.021500805392861366, -0.03500448167324066, -0.05004531517624855, 0.02936173416674137, -0.023621700704097748, 0.023582784458994865, 0.022259658202528954, -0.04588135704398155, 0.0193701833486557, 0.003928031772375107, -0.06701246649026871, -0.018105430528521538, 0.011110370978713036, -0.01869889162480831, -0.02644307352602482, -0.054870836436748505, -0.047943878918886185, 0.023368749767541885, 0.021812129765748978, 0.029750889167189598, 0.02632632665336132, 0.03965488076210022, 0.03726157918572426, -0.003375918371602893, -0.0097434651106596, 0.053275302052497864, 0.038448501378297806, 0.004920376930385828, 0.031093472614884377, -0.058489974588155746, 0.029322819784283638, 0.01580941677093506, -0.05592155456542969, -0.03358406573534012, 0.07475665211677551, -0.03693079575896263, -0.05607721582055092, 0.030665403231978416, 0.012550244107842445, 0.03981054201722145, -0.05378120020031929, -0.018436212092638016, 0.005613558925688267, 0.019467471167445183, 0.004018024075776339, 0.000359968253178522, 0.04930591955780983, -0.033973220735788345, -0.020644664764404297, 0.025236692279577255, 0.015682941302657127, 0.025664763525128365, 0.04817737266421318, 0.09503161907196045, 0.11768043041229248, 0.046348344534635544, -0.011840037070214748, -0.011587086133658886, 0.011635730043053627, 0.015488363802433014, 0.016772573813796043, -0.0654558464884758, -0.00376507337205112, -0.03335057199001312, 0.03405104950070381, 0.028019150719046593, -0.0204695463180542, -0.0033491640351712704, -0.011003353632986546, -0.0193701833486557, 0.05751708894968033, 0.05584372207522392, -0.019350726157426834, 0.015498092398047447, 0.031112931668758392, -0.022162368521094322, 0.03687242418527603, -0.007175042759627104, 0.004163957200944424, -0.015624567866325378, 0.01817353256046772, 0.06638982146978378, 0.007189636118710041, 0.009446734562516212, -0.056193962693214417, 0.007452315650880337, -0.004154228139668703, 0.026423614472150803, 0.0006785888108424842, 0.00010154509800486267, -0.03233876824378967, -0.008848408237099648, 0.07607977837324142, 0.040861260145902634, 0.020741954445838928, -0.004100719466805458, -0.07911518216133118, -0.022940678521990776, 0.01961340568959713, -0.02825264260172844, -0.012102716602385044, -0.03821500763297081, 0.03408996760845184, -0.03101564198732376, -0.032903045415878296, -0.006912363227456808, 0.015089480206370354, -0.04156173765659332, -0.014651680365204811, -0.03313653543591499, -0.02292122133076191, -0.025781510397791862, 0.003957218490540981, -0.03021787479519844, -0.012209733948111534, 0.024828080087900162, 0.03154100105166435, 0.0015468905912712216, -0.05086253955960274, 0.0038502009119838476, -0.05304180830717087, -0.015614839270710945, -0.0014313602587208152, -0.04763255640864372, -0.05751708894968033, 0.00047701873700134456, 0.08001024276018143, 0.00851762667298317, 0.03444020450115204, -0.044324737042188644, 0.01113955769687891, 0.017327120527625084, -0.02078086882829666, -0.018552958965301514, -0.04327401891350746, -0.05109603330492973, 0.022259658202528954, -0.04424690827727318, -0.06389922648668289, -0.0038574975915253162, 0.024691876024007797, 0.029653601348400116, -0.051835428923368454, -0.017414679750800133, 0.026248496025800705, 0.0019117232877761126, 0.018416753038764, -0.03021787479519844, 0.0026754396967589855, 0.005059013143181801, 0.060513582080602646, -0.0276689101010561, 0.018377838656306267, -0.041600655764341354, -0.024322178214788437, -0.010166671127080917, 0.04047210514545441, 0.00432205107063055, -0.004754986148327589, 0.02889474853873253, 0.02025550976395607, -0.03085998073220253, -0.041016921401023865, -0.001860646647401154, 0.05047338455915451, -0.015644025057554245, -0.02819426916539669, 0.0428459495306015, -0.025022657588124275, 0.008079827763140202, -0.038078803569078445, -0.01406794786453247, 0.029186613857746124, 0.002636524150148034, -0.08966127783060074, 0.024419467896223068, 0.006858854554593563, 0.014933818019926548, -0.0011492229532450438, 0.04541437327861786, -0.03208581730723381, -0.0328446701169014, 0.005156301893293858, -0.009373767301440239, -0.03918789327144623, 0.004166389349848032, 0.02745487540960312, 0.03309762105345726, 0.018864281475543976, 0.05794515833258629, 0.044791724532842636, 0.0023957346566021442, 0.016655828803777695, -0.010964438319206238, -0.020216595381498337, 0.05837322771549225, 0.052263498306274414, 0.005350879393517971, 0.00009288032015319914, -0.08584756404161453, 0.002361683640629053, 0.03741724044084549, 0.027435418218374252, -0.03751453012228012, -0.008216031827032566, -0.02868071384727955, -0.03848741576075554, 0.03895440325140953, 0.08001024276018143, 0.04856652766466141, -0.012238920666277409, -0.023621700704097748, -0.007082618307322264, 0.029439564794301987, -0.04514196515083313, 0.023952482268214226, 0.017093626782298088, -0.009972093626856804, 0.0040836939588189125, 0.00012556325236801058, 0.01804705709218979, -0.049539413303136826, -0.013260452076792717, 0.01039043441414833, -0.06709029525518417, -0.016159655526280403, 0.05751708894968033, 0.01545917708426714, -0.023154715076088905, -0.0020418469794094563, 0.023855192586779594, -0.061914537101984024, 0.017638444900512695, -0.06156430020928383, 0.08927212655544281, 0.0133285541087389, -0.032222021371126175, -0.013824726454913616, 0.025548016652464867, -0.051057118922472, 0.06459970772266388, -0.009762922301888466, 0.0066302260383963585, 0.0234465803951025, -0.07195473462343216, -0.061953455209732056, -0.04047210514545441, 0.07654675841331482, -0.012414040043950081, -0.000032872943847905844, -0.0015785094583407044, -0.00810415018349886, 0.009704549796879292, -0.0328446701169014, 0.05222458392381668, -0.058489974588155746, 0.0531974695622921, -0.04109475389122963, -0.02846667729318142, 0.0408223457634449, -0.019749609753489494, -0.0053216926753520966, -0.026773855090141296, -0.006644819397479296, -0.010779589414596558, 0.01811515912413597, 0.020741954445838928, -0.018591873347759247, 0.0010482858633622527, 0.0025416677817702293, 0.0024078956339508295, 0.019409099593758583, 0.026715481653809547, 0.0347515307366848, -0.03165774792432785, -0.028486136347055435, -0.017726004123687744, -0.02185104601085186, -0.016587726771831512, 0.017599528655409813, -0.03938247263431549, -0.038818199187517166, 0.00698046525940299, 0.0409390926361084, 0.014330627396702766, 0.01985662616789341, -0.09643257409334183, 0.013095061294734478, 0.003166747745126486, 0.033292196691036224, -0.026306869462132454, 0.0030281112994998693, -0.001517703989520669, 0.05740034207701683, -0.07288870215415955, 0.0296341422945261, 0.0008932320051826537, 0.004879029002040625, -0.034770987927913666, -0.06479428708553314, -0.010594741441309452, -0.008220896124839783, 0.02877800166606903, 0.05023989453911781, 0.02099490538239479, -0.022512609139084816, -0.01875726506114006, 0.007544740103185177, 0.030023297294974327, 0.06413272023200989, 0.01918533444404602, 0.03383701667189598, 0.029244987294077873, 0.017881665378808975, -0.059034790843725204, 0.03325328230857849, -0.010186128318309784, -0.05339204892516136, 0.025820424780249596, -0.002867584815248847, -0.019749609753489494, -0.07666350901126862, 0.016957422718405724, -0.02056683413684368, -0.016626641154289246, 0.03150208666920662, 0.03346731886267662, -0.010672572068870068, -0.00968509167432785, 0.0035583346616476774, 0.001749980729073286, 0.04798279330134392, 0.02669602446258068, 0.02488645352423191, 0.02936173416674137, -0.05887912958860397, 0.0015225684037432075, -0.0008470198954455554, -0.010001280345022678, -0.022901764139533043, -0.03656109794974327, 0.013951201923191547, 0.05366445705294609, -0.005847051739692688, -0.012881025671958923, -0.021461891010403633, 0.04739906266331673, -0.01670447178184986, 0.04401341453194618, -0.009738600812852383, -0.036852966994047165, 0.03969379514455795, 0.0017864640103653073, 0.007773368153721094, 0.03607465699315071, -0.03720320388674736, -0.020955989137291908, -0.06899715960025787, -0.016597455367445946, 0.0737837627530098, 0.00036179242306388915, -0.02521723508834839, -0.02813589572906494, -0.04210655763745308, 0.036755677312612534, 0.04136716201901436, -0.0001571820757817477, -0.0005502892890945077, 0.009271614253520966, 0.04502521827816963, 0.014106864109635353, -0.0244583822786808, -0.006537801586091518, 0.03827337920665741, 0.018990756943821907, 0.04113366827368736, 0.051057118922472, 0.09666606783866882, -0.011295219883322716, -0.0326695516705513, 0.05705010145902634, 0.024419467896223068, -0.028972579166293144, 0.051290612667798996, 0.04342968389391899, 0.03560766950249672, 0.0036361657548695803, 0.06082490459084511, -0.010370977222919464, 0.024049770087003708, -0.014496018178761005, 0.001396093051880598, -0.05561022832989693, 0.039148978888988495, 0.028155354782938957, 0.034732069820165634, 0.10670626163482666, 0.04833303391933441, -0.04541437327861786 ]
20,450
metevolsim.metevolsim
iterate
Iterate the MCMC algorithm. Parameters ---------- None Returns ------- None
def iterate( self ): """ Iterate the MCMC algorithm. Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Save previous state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.previous_abund = np.copy(self.mutant_abund) self.previous_flux = np.copy(self.mutant_flux) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Introduce a new random mutation # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.param_metaid = self.model.get_random_parameter() self.param_id = self.model.parameters[self.param_metaid]["id"] self.param_previous, self.param_value = self.model.random_parameter_mutation(self.param_metaid, self.sigma) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Compute the new steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# success = self.model.compute_mutant_steady_state() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 4) Evaluate model stability and select the new iteration event # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# if not success: self.reload_previous_state() self.nb_unstable += 1 self.param_metaid = "_" self.param_id = "_" self.param_value = 0.0 self.param_previous = 0.0 else: self.nb_unstable = 0 self.model.compute_sum_distance() self.model.compute_moma_distance() self.mutant_abund = self.model.get_mutant_species_array() self.mutant_flux = self.model.get_mutant_reaction_array() #-----------------------------------------------------------------# # 4.1) If the simulation is a mutation accumulation experiment, # # keep all the mutational events. # #-----------------------------------------------------------------# if self.selection_scheme == "MUTATION_ACCUMULATION": self.nb_iterations += 1 self.nb_accepted += 1 self.update_statistics() self.compute_statistics() #-----------------------------------------------------------------# # 4.2) If the simulation is a absolute metabolic sum selection # # experiment, keep only mutations for which the SUM distance # # is lower than a given selection threshold. # #-----------------------------------------------------------------# elif self.selection_scheme == "ABSOLUTE_METABOLIC_SUM_SELECTION" and self.model.absolute_sum_distance < self.selection_threshold: self.nb_iterations += 1 self.nb_accepted += 1 self.update_statistics() self.compute_statistics() elif self.selection_scheme == "ABSOLUTE_METABOLIC_SUM_SELECTION" and self.model.absolute_sum_distance >= self.selection_threshold: self.nb_iterations += 1 self.nb_rejected += 1 self.reload_previous_state() self.update_statistics() self.compute_statistics() self.param_metaid = "_" self.param_id = "_" self.param_value = 0.0 self.param_previous = 0.0 #-----------------------------------------------------------------# # 4.3) If the simulation is a absolute target fluxes selection # # experiment, keep only mutations for which the MOMA # # distance is lower than a given selection threshold. # #-----------------------------------------------------------------# elif self.selection_scheme == "ABSOLUTE_TARGET_FLUXES_SELECTION" and self.model.absolute_moma_distance < self.selection_threshold: self.nb_iterations += 1 self.nb_accepted += 1 self.update_statistics() self.compute_statistics() elif self.selection_scheme == "ABSOLUTE_TARGET_FLUXES_SELECTION" and self.model.absolute_moma_distance >= self.selection_threshold: self.nb_iterations += 1 self.nb_rejected += 1 self.reload_previous_state() self.update_statistics() self.compute_statistics() self.param_metaid = "_" self.param_id = "_" self.param_value = 0.0 self.param_previous = 0.0 #-----------------------------------------------------------------# # 4.4) If the simulation is a relative target fluxes selection # # experiment, keep only mutations for which the MOMA # # distance is lower than a given selection threshold. # #-----------------------------------------------------------------# elif self.selection_scheme == "RELATIVE_TARGET_FLUXES_SELECTION" and self.model.relative_moma_distance < self.selection_threshold: self.nb_iterations += 1 self.nb_accepted += 1 self.update_statistics() self.compute_statistics() elif self.selection_scheme == "RELATIVE_TARGET_FLUXES_SELECTION" and self.model.relative_moma_distance >= self.selection_threshold: self.nb_iterations += 1 self.nb_rejected += 1 self.reload_previous_state() self.update_statistics() self.compute_statistics() self.param_metaid = "_" self.param_id = "_" self.param_value = 0.0 self.param_previous = 0.0 #-----------------------------------------------------------------# # 4.5) If the simulation is a absolute ALL fluxes selection # # experiment, keep only mutations for which the MOMA # # distance is lower than a given selection threshold. # #-----------------------------------------------------------------# elif self.selection_scheme == "ABSOLUTE_ALL_FLUXES_SELECTION" and self.model.absolute_moma_all_distance < self.selection_threshold: self.nb_iterations += 1 self.nb_accepted += 1 self.update_statistics() self.compute_statistics() elif self.selection_scheme == "ABSOLUTE_ALL_FLUXES_SELECTION" and self.model.absolute_moma_all_distance >= self.selection_threshold: self.nb_iterations += 1 self.nb_rejected += 1 self.reload_previous_state() self.update_statistics() self.compute_statistics() self.param_metaid = "_" self.param_id = "_" self.param_value = 0.0 self.param_previous = 0.0 #-----------------------------------------------------------------# # 4.6) If the simulation is a relative ALL fluxes selection # # experiment, keep only mutations for which the MOMA # # distance is lower than a given selection threshold. # #-----------------------------------------------------------------# elif self.selection_scheme == "RELATIVE_ALL_FLUXES_SELECTION" and self.model.relative_moma_all_distance < self.selection_threshold: self.nb_iterations += 1 self.nb_accepted += 1 self.update_statistics() self.compute_statistics() elif self.selection_scheme == "RELATIVE_ALL_FLUXES_SELECTION" and self.model.relative_moma_all_distance >= self.selection_threshold: self.nb_iterations += 1 self.nb_rejected += 1 self.reload_previous_state() self.update_statistics() self.compute_statistics() self.param_metaid = "_" self.param_id = "_" self.param_value = 0.0 self.param_previous = 0.0 #~~~~~~~~~~~~~~~~~~~~~~
(self)
[ 0.06080935522913933, -0.021589232608675957, -0.05243372544646263, 0.04463177174329758, -0.0006178938201628625, -0.006195669993758202, -0.0694909393787384, -0.08566852658987045, -0.053887031972408295, 0.014437440782785416, -0.052051275968551636, 0.012238360941410065, 0.007868883199989796, 0.055646296590566635, -0.0363326333463192, 0.0443258136510849, -0.007543801795691252, -0.00900666881352663, 0.049412380903959274, -0.004465089179575443, -0.027899637818336487, -0.001923000207170844, -0.04807380959391594, 0.08643341809511185, -0.0011521269334480166, -0.040348343551158905, -0.018959898501634598, -0.015833379700779915, -0.013624737039208412, 0.03904801979660988, -0.02120678499341011, -0.040463078767061234, 0.027172984555363655, -0.02527986280620098, -0.01573776639997959, -0.05495788902044296, 0.051248133182525635, 0.05136286839842796, -0.07400383800268173, -0.038034528493881226, -0.02028890699148178, -0.05465192720293999, 0.06876429170370102, 0.015489174984395504, -0.05239548161625862, -0.004467479884624481, -0.03518528491258621, 0.09301154315471649, -0.0015943333273753524, -0.0021990803070366383, 0.013806400820612907, -0.009723760187625885, 0.01034523919224739, 0.06153600662946701, 0.016760816797614098, 0.023864803835749626, 0.029697146266698837, -0.007357358001172543, 0.10425553470849991, -0.025853537023067474, 0.04080728441476822, 0.026331597939133644, 0.03725051134824753, -0.01820456050336361, -0.005636338610202074, -0.036638591438531876, -0.0016899454640224576, 0.04585560783743858, -0.014083676040172577, 0.059088334441185, -0.0034037940204143524, -0.010689442977309227, 0.06635486334562302, 0.026293352246284485, -0.0031097866594791412, -0.05140111595392227, -0.007013154216110706, -0.03201096132397652, -0.010431290604174137, -0.009398678317666054, 0.04180165007710457, 0.024744436144828796, -0.010192260146141052, -0.05132462456822395, -0.026102129369974136, -0.00589927239343524, 0.014609542675316334, 0.022660089656710625, 0.045549649745225906, -0.06654608249664307, -0.027937881648540497, 0.05736731365323067, 0.03518528491258621, 0.06145951896905899, 0.01825236715376377, 0.026465455070137978, -0.056449439376592636, -0.029964860528707504, -0.012123625725507736, -0.04971833899617195, -0.018711306154727936, 0.07136493921279907, 0.015384001657366753, 0.03518528491258621, 0.004806903190910816, -0.02120678499341011, -0.045587893575429916, -0.01605328731238842, 0.014886817894876003, -0.04164867103099823, -0.06493980437517166, 0.09041088819503784, -0.06145951896905899, -0.010010596364736557, -0.03996589779853821, 0.005282573401927948, -0.042145855724811554, -0.0042404006235301495, -0.0295441672205925, 0.008280015550553799, 0.0027082152664661407, 0.02069047838449478, -0.03281410411000252, 0.021895192563533783, 0.011655125766992569, 0.024859169498085976, 0.04883870854973793, 0.022851314395666122, -0.0023496695794165134, -0.03878030553460121, -0.07396559417247772, -0.03965993598103523, 0.006731098517775536, 0.03845522552728653, 0.006927103269845247, -0.025413719937205315, -0.02983100339770317, -0.04520544409751892, -0.002361621242016554, 0.022851314395666122, 0.02579616941511631, 0.04956535995006561, -0.0037479980383068323, 0.004357525613158941, 0.001601504161953926, 0.0022648137528449297, 0.014485247433185577, -0.017315367236733437, -0.04138095676898956, -0.061077069491147995, -0.009049694053828716, 0.020135927945375443, -0.008380408398807049, -0.02723035216331482, -0.009556438773870468, 0.033120062202215195, -0.008858469314873219, -0.026025637984275818, -0.028530677780508995, -0.026561066508293152, -0.038914162665605545, -0.04646752402186394, 0.02818647399544716, 0.05090393126010895, -0.0031695442739874125, 0.03602667525410652, -0.04050132632255554, 0.018625255674123764, -0.07499819993972778, 0.031035717576742172, 0.015364879742264748, 0.009288724511861801, -0.017401419579982758, -0.03317743167281151, -0.0726652666926384, 0.08803970366716385, 0.014026308432221413, -0.04864748194813728, 0.0016254072543233633, -0.03122694231569767, -0.03369373828172684, -0.07622203975915909, -0.01768825575709343, -0.03464986011385918, -0.024859169498085976, -0.041227977722883224, 0.03327304124832153, -0.0247635580599308, 0.05419299006462097, 0.02858804538846016, -0.029180841520428658, -0.07603081315755844, 0.025451965630054474, 0.013280533254146576, -0.021914314478635788, 0.004852318670600653, 0.042260587215423584, -0.006147863809019327, 0.07331542670726776, -0.01768825575709343, -0.01373947225511074, -0.05407825484871864, 0.013863767497241497, -0.019017264246940613, -0.07220632582902908, -0.012850278988480568, -0.0002693574642762542, 0.05048323795199394, 0.0407307930290699, 0.024667944759130478, -0.05235723778605461, -0.017315367236733437, 0.08031424134969711, 0.042872507125139236, 0.042031120508909225, -0.056449439376592636, 0.07840199768543243, 0.0015513078542426229, 0.03596930578351021, 0.0043981606140732765, 0.022220272570848465, -0.0487239733338356, -0.07350665330886841, 0.010880667716264725, 0.006941445171833038, 0.0027082152664661407, -0.005206083878874779, 0.040348343551158905, 0.006324746645987034, -0.02703912742435932, 0.04906817525625229, -0.00484275771304965, 0.021436253562569618, -0.030079595744609833, -0.019514448940753937, 0.026771413162350655, -0.02120678499341011, 0.028282087296247482, -0.04356091469526291, -0.03317743167281151, -0.05602874606847763, -0.0551108680665493, 0.043790385127067566, 0.034076184034347534, -0.018271489068865776, -0.01952400989830494, 0.08253244310617447, 0.03325391933321953, -0.02799524925649166, 0.00032328872475773096, 0.010985841043293476, -0.0019863431807607412, -0.06279809027910233, 0.015307512134313583, 0.01653134822845459, -0.042184099555015564, 0.03600755333900452, 0.07442452758550644, 0.0678846538066864, -0.04103675112128258, 0.0071852561086416245, -0.04004238545894623, -0.02447672188282013, 0.05178356170654297, -0.052969153970479965, -0.004857099149376154, -0.008977985009551048, 0.020613988861441612, -0.004823634866625071, 0.018749549984931946, 0.03587369620800018, 0.0427195280790329, -0.051056910306215286, 0.010670321062207222, -0.04948887228965759, -0.010287871584296227, 0.039028897881507874, -0.00371931423433125, -0.07606905698776245, 0.008394750766456127, 0.003112176898866892, -0.009518194012343884, 0.0026938735973089933, 0.01573776639997959, -0.07235930860042572, 0.026006516069173813, 0.009699856862425804, -0.018979020416736603, 0.05174531787633896, -0.0033775006886571646, -0.011712493374943733, -0.012037575244903564, 0.04050132632255554, -0.02256447821855545, 0.07044706493616104, -0.02675229124724865, -0.0295441672205925, 0.018539203330874443, 0.00304046762175858, 0.018548766151070595, 0.018386224284768105, -0.02267921157181263, 0.021053804084658623, -0.022832190617918968, 0.004474650602787733, 0.038072776049375534, 0.07006461173295975, -0.037193141877651215, 0.0487239733338356, -0.030289942398667336, 0.03386583924293518, 0.030289942398667336, 0.04811205342411995, 0.005143935792148113, 0.03709753230214119, -0.024744436144828796, -0.005569410044699907, -0.042948998510837555, 0.03661946952342987, 0.06417490541934967, 0.006778904236853123, 0.029257331043481827, 0.016741694882512093, 0.013490879908204079, -0.007386041805148125, -0.06077110767364502, 0.019227612763643265, -0.004551140125840902, -0.03621789813041687, -0.055646296590566635, -0.06941445171833038, -0.012439146637916565, 0.0121809933334589, 0.02564319036900997, 0.007668097969144583, -0.04975658655166626, -0.005904052872210741, 0.01225748285651207, 0.07415681332349777, 0.0067024147137999535, 0.07710167020559311, 0.005636338610202074, -0.014236655086278915, 0.027249474078416824, 0.04264303669333458, -0.02051837556064129, 0.06000621244311333, 0.03361724689602852, -0.0014807938132435083, -0.021742211654782295, -0.007414725609123707, 0.10685618966817856, -0.006296062842011452, 0.09530623257160187, 0.06000621244311333, 0.0245532114058733, -0.004570262972265482, -0.048418015241622925, -0.03782418370246887, 0.012075820006430149, 0.015756890177726746, 0.045549649745225906, -0.006554215680807829, 0.018787795677781105, 0.04692646488547325, -0.0746922418475151, -0.030768003314733505, -0.015384001657366753, 0.026446333155035973, -0.08750427514314651, -0.011913279071450233, -0.04103675112128258, 0.03187710419297218, 0.0035280899610370398, -0.0049479310400784016, 0.022985171526670456, -0.044975973665714264, 0.012898084707558155, -0.011989768594503403, 0.018156755715608597, 0.07327718287706375, -0.002190714469179511, -0.03591194003820419, 0.0056984866969287395, 0.027402454987168312, -0.01988733559846878, 0.04788258671760559, -0.04084552824497223, 0.027498066425323486, -0.0016122605884447694, 0.05771151930093765, -0.006544654723256826, -0.023061661049723625, 0.009398678317666054, 0.014886817894876003, 0.04000414162874222, 0.027727534994482994, 0.0319344736635685, -0.08650991320610046, -0.0243619866669178, 0.0011718468740582466, -0.018797356635332108, -0.06287457793951035, 0.025509333238005638, -0.026905270293354988, -0.08781024068593979, 0.01772649958729744, 0.02051837556064129, -0.027765780687332153, 0.05465192720293999, -0.03086361475288868, -0.0038029749412089586, -0.011253555305302143, 0.016818184405565262, -0.008084011264145374, -0.03151378035545349, -0.029773635789752007, -0.046505771577358246, 0.036562103778123856, 0.03904801979660988, 0.05228074640035629, 0.023214640095829964, 0.06738747656345367, 0.034286532551050186, 0.006640266627073288, 0.01449480839073658, -0.02675229124724865, 0.03118869662284851, -0.06394543498754501, 0.030729759484529495, -0.02818647399544716, -0.007190037053078413, 0.00028414747794158757, -0.023424986749887466, -0.00018285831902176142, -0.00002112058427883312, -0.05262495204806328, -0.02527986280620098, 0.016961602494120598, 0.017238877713680267, 0.02212466113269329, 0.009255260229110718, 0.033846717327833176, -0.019829967990517616, -0.031571146100759506, -0.014380074106156826, -0.0299457386136055, 0.0030739319045096636, -0.06337176263332367, 0.005645900033414364, 0.026408087462186813, 0.055684540420770645, -0.001900292350910604, -0.031284309923648834, 0.050177279859781265, 0.01673213392496109, -0.035204410552978516, 0.008820224553346634, 0.0016720182029530406, -0.04581736400723457, 0.014169726520776749, 0.019581377506256104, -0.037996284663677216, 0.03279498219490051, 0.03266112506389618, 0.021780457347631454, 0.015039797872304916, -0.00276080216281116, -0.009513413533568382, 0.037996284663677216, -0.022335007786750793, 0.003659556619822979, -0.01704765297472477, -0.02072872407734394, -0.020939070731401443, -0.04994780942797661, -0.08092615753412247, -0.017802990972995758, -0.018864285200834274, -0.03380846977233887, 0.020499253645539284, -0.0239604152739048, 0.028377698734402657, 0.017869919538497925, -0.027842270210385323, -0.015058920718729496, 0.04501422122120857, -0.03333041071891785, 0.02128327451646328, -0.04730891436338425, -0.08452117443084717, -0.0702940821647644, 0.06807588040828705, 0.02986924909055233, -0.034286532551050186, 0.020116806030273438, 0.014542614109814167, 0.003334475215524435, 0.06803763657808304, -0.0185678880661726, 0.04099850729107857, 0.042260587215423584, -0.016799062490463257, 0.002756021451205015, -0.008934959769248962, 0.013510002754628658, -0.017984652891755104, -0.023864803835749626, -0.033559881150722504, 0.004713681060820818, 0.026178618893027306, -0.11289887875318527, 0.04887695237994194, -0.013012818992137909, 0.02818647399544716, -0.03530002012848854, -0.004744755104184151, 0.018596570938825607, 0.018749549984931946, 0.0011007353896275163, -0.0015321853570640087, -0.03378934785723686, -0.02300429344177246, -0.02069047838449478, 0.00900188833475113, 0.011186626739799976, -0.06042690575122833, -0.0479208305478096, 0.004159130156040192, -0.029161717742681503, -0.0197726022452116, -0.03310094028711319, 0.03417179733514786, 0.04975658655166626, 0.026580190286040306, -0.05962376296520233, 0.053734052926301956, -0.09339398890733719, -0.04876221716403961, 0.0061908895149827, -0.017305806279182434, 0.011052769608795643, 0.02835857681930065, -0.03769032657146454, -0.013261411339044571, 0.0002718971809372306, 0.03122694231569767, 0.004567872267216444, 0.0036619468592107296, 0.013529125601053238, 0.0022815458942204714, 0.021130293607711792, -0.037594713270664215, 0.0063773333095014095, 0.06486330926418304, -0.018462713807821274, 0.030500289052724838, 0.03401881828904152, 0.05082743987441063, 0.03180061653256416, -0.016760816797614098, -0.04256654903292656, -0.001596723566763103, -0.044746506959199905, 0.014265338890254498, 0.026541944593191147, 0.0013995234621688724, -0.0319344736635685, -0.022583600133657455, 0.013643859885632992, 0.038474347442388535, 0.01960049942135811, -0.019715234637260437, 0.0015979188028723001, -0.020900825038552284, -0.03323479741811752, 0.014934624545276165, -0.03086361475288868, -0.02091994695365429, -0.009231356903910637, 0.04853275045752525, 0.007997959852218628, 0.00037886330392211676, -0.027689291164278984, 0.02751718834042549, 0.07553362846374512, -0.03461161255836487, 0.02564319036900997, 0.04880046471953392, 0.03900977596640587, -0.022851314395666122, 0.030079595744609833, -0.0379389189183712, -0.0562964603304863, -0.03409530594944954, 0.07694869488477707, -0.002686702646315098, -0.004773438908159733, -0.0014353779843077064, 0.030959228053689003, -0.04543491452932358, 0.0021512743551284075, 0.0183671023696661, -0.015001553110778332, -0.02527986280620098, -0.035032305866479874, -0.004517676308751106, 0.037154898047447205, 0.0427195280790329, 0.016990287229418755, 0.006472945213317871, -0.006989251356571913, 0.001687555224634707, -0.028014373034238815, -0.03784330561757088, -0.02204817160964012, -0.005029201507568359, 0.02543284371495247, 0.0734684094786644, -0.010287871584296227, -0.022946925833821297, 0.014141043648123741, -0.052930910140275955, -0.0021237859036773443, -0.03893328458070755, -0.055875763297080994, 0.019466642290353775, -0.07323893904685974, -0.019657867029309273, -0.02635071985423565, -0.025738801807165146, -0.023214640095829964, 0.022067293524742126, -0.020174171775579453, 0.05683188885450363, -0.020461009815335274, 0.025528455153107643, 0.006745439954102039, -0.06769343465566635, -0.013051064684987068, 0.053887031972408295, 0.044784750789403915, 0.016512226313352585, -0.015231022611260414, -0.02051837556064129, 0.014169726520776749, -0.02168484590947628, 0.04000414162874222, 0.0754571408033371, 0.05059797316789627, -0.011224871501326561, 0.010565146803855896, -0.027823148295283318, -0.01733449101448059, -0.022583600133657455, -0.05411650240421295, -0.035835448652505875, 0.04103675112128258, 0.046544015407562256, -0.02971627004444599, -0.025624066591262817, 0.05675539746880531, 0.021092049777507782, -0.05055972561240196, 0.01091891247779131, -0.03225955367088318, -0.01159775909036398, 0.014351390302181244, 0.014714716002345085, 0.07182388007640839, -0.0038053651805967093, -0.02168484590947628, 0.004778219386935234, 0.05518735572695732, 0.004658704157918692, -0.005617216229438782, 0.03086361475288868, -0.009432142600417137, -0.02084345743060112, 0.014743399806320667, 0.021053804084658623, 0.04424932226538658, -0.029735391959547997, -0.0039153192192316055, 0.04738540202379227, 0.011081453412771225, -0.03610316291451454, -0.011569075286388397, 0.030978349968791008, -0.012439146637916565, -0.053122133016586304, -0.001398328342474997, -0.010966718196868896, 0.011157942935824394, -0.022143783047795296, -0.008294357918202877, -0.054804909974336624, -0.017745623365044594, 0.033521633595228195, -0.01179854478687048, 0.04635279253125191, 0.0033918425906449556, -0.011358728632330894, 0.03652385622262955, -0.01729624532163143, 0.04818854480981827, -0.05166883021593094, 0.0006609192932955921, 0.024094272404909134, -0.03642824664711952, 0.005956639535725117, 0.047614872455596924, -0.04180165007710457, 0.012142748571932316, 0.02300429344177246, 0.029964860528707504, -0.02898961678147316, 0.020556621253490448, 0.010947596281766891, 0.0009423776646144688, 0.0007744587492197752, 0.003910538740456104, 0.00850470457226038, 0.01537444069981575, -0.05698486790060997, 0.026522822678089142, 0.0323360450565815, -0.0407307930290699, 0.07530416548252106, -0.011368289589881897, 0.007888006046414375, 0.03652385622262955, -0.004271474666893482, 0.002650848124176264, 0.040348343551158905, -0.07052355259656906, 0.038072776049375534, 0.004175862297415733, -0.05725258216261864, 0.01992558129131794, 0.005593313369899988, -0.009857617318630219, -0.03461161255836487, -0.0038436101749539375, -0.052051275968551636, 0.05010078847408295, 0.015508297830820084, -0.007811516057699919, 0.025968272238969803, -0.06291282176971436, 0.05411650240421295, -0.048303280025720596, 0.04237532243132591, 0.025662312284111977, 0.04325495660305023, 0.04413458704948425, 0.040195364505052567, -0.026369841769337654, -0.01680862344801426, -0.0515158474445343, -0.01196108479052782, -0.028970494866371155, 0.06887902319431305, 0.02619774080812931, -0.04183989390730858, 0.028721902519464493, -0.005956639535725117, 0.0082847960293293 ]
20,451
metevolsim.metevolsim
reload_previous_state
Reload the previous MCMC state. Parameters ---------- None Returns ------- None
def reload_previous_state( self ): """ Reload the previous MCMC state. Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Restore the mutated parameter # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.model.set_mutant_parameter_value(self.param_metaid, self.param_previous) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Retrieve previous values # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.mutant_abund = np.copy(self.previous_abund) self.mutant_flux = np.copy(self.previous_flux) index = 0 for species_id in self.model.species: if not self.model.species[species_id]["constant"]: self.model.species[species_id]["mutant_value"] = self.mutant_abund[index] index += 1 index = 0 for reaction_id in self.model.reactions: self.model.reactions[reaction_id]["mutant_value"] = self.mutant_flux[index] index += 1
(self)
[ 0.017794620245695114, -0.014131021685898304, 0.01357092335820198, 0.053916413336992264, -0.036709439009428024, -0.012606818228960037, -0.07683455944061279, -0.03900492563843727, 0.07543890923261642, -0.0050684367306530476, -0.05178620293736458, -0.0318797342479229, -0.006615595426410437, 0.08102153241634369, -0.0374990850687027, 0.023101788014173508, 0.010724518448114395, 0.011734533123672009, -0.015003307722508907, -0.03243064880371094, 0.016619330272078514, -0.018079260364174843, -0.04914179816842079, 0.05784628912806511, 0.0030438166577368975, -0.029731156304478645, -0.02916187420487404, -0.05241057276725769, -0.011881443671882153, 0.005706582218408585, 0.022697782143950462, -0.03601161018013954, -0.03134717792272568, 0.019227003678679466, -0.003314684145152569, -0.06618349999189377, -0.008277528919279575, 0.0156093155965209, -0.07507162541151047, -0.008970765396952629, 0.008791717700660229, -0.07143557816743851, 0.05560589209198952, -0.00040515357977710664, -0.026021648198366165, -0.025323819369077682, -0.025544187054038048, 0.052814580500125885, 0.025140181183815002, -0.027986586093902588, 0.015508314594626427, 0.014176932163536549, -0.004228288307785988, 0.06082124263048172, 0.01567358896136284, -0.00737769715487957, 0.04425700008869171, 0.020402293652296066, 0.054357148706912994, -0.01380965393036604, 0.037425629794597626, -0.01827208139002323, 0.00332845700904727, -0.018446538597345352, 0.045211926102638245, -0.05795647203922272, 0.03237555921077728, 0.043044984340667725, 0.004246652126312256, 0.0022943399380892515, -0.04579956829547882, 0.006211589556187391, 0.026113467290997505, -0.006881872192025185, -0.01302918791770935, -0.010375604033470154, -0.029033327475190163, -0.015232856385409832, -0.029014963656663895, 0.012368087656795979, -0.0023666478227823973, 0.011091796681284904, -0.027986586093902588, 0.033550847321748734, -0.08065425604581833, -0.04770941659808159, 0.033991582691669464, -0.021614311262965202, 0.01398411113768816, -0.04297152906656265, 0.007533790543675423, 0.05674445629119873, -0.007111420854926109, 0.008107662200927734, 0.08528196066617966, -0.00219333847053349, -0.011881443671882153, 0.020035015419125557, -0.009806322865188122, -0.06901153922080994, -0.04381626844406128, 0.017757892608642578, 0.00717110326513648, -0.02216522954404354, -0.006551321595907211, -0.005206165835261345, 0.012873094528913498, -0.017326340079307556, 0.028317134827375412, -0.04388972371816635, -0.09762249886989594, 0.03340393677353859, -0.07466762512922287, 0.00020429839787539095, 0.01638978160917759, -0.015590951777994633, -0.02534218318760395, -0.007740384433418512, -0.010467424057424068, 0.03114517591893673, 0.02053084224462509, 0.03676452860236168, -0.012726183980703354, 0.02914351038634777, -0.03656252846121788, 0.0506843663752079, 0.049545805901288986, 0.018308809027075768, 0.006422774400562048, -0.06787297874689102, -0.05619353801012039, -0.03022698126733303, -0.039408933371305466, 0.0229916051030159, 0.01739061437547207, -0.015994958579540253, 0.012551726773381233, -0.0568179115653038, 0.03966602683067322, 0.021026667207479477, 0.025544187054038048, 0.0740799754858017, 0.018896454945206642, 0.04370608553290367, 0.03180627524852753, 0.0031700683757662773, 0.01483803242444992, 0.0407678596675396, -0.05909503251314163, -0.023230334743857384, 0.018501630052924156, 0.01122034341096878, 0.0008521997951902449, -0.03224701061844826, -0.004340766929090023, 0.03320193290710449, -0.042751163244247437, -0.026756204664707184, -0.003135636216029525, -0.03224701061844826, -0.018988274037837982, -0.019061729311943054, 0.0047332956455647945, 0.010669426992535591, -0.008236209861934185, 0.022697782143950462, 0.020402293652296066, -0.02071448042988777, -0.07466762512922287, 0.035075049847364426, -0.0358646996319294, -0.023395610973238945, 0.0044578369706869125, -0.016692785546183586, -0.03384466841816902, 0.059168491512537, -0.03222864493727684, -0.04300825670361519, 0.02190813422203064, 0.018134351819753647, -0.03863764926791191, -0.01774870976805687, -0.046019937843084335, -0.02100830338895321, 0.0009445931646041572, -0.05501824989914894, 0.003902328899130225, -0.018345536664128304, 0.0666242316365242, 0.033257026225328445, 0.03683798760175705, -0.006592640653252602, 0.022863056510686874, 0.0208981204777956, 0.01810680702328682, -0.03573615103960037, -0.008396893739700317, -0.04914179816842079, 0.07452071458101273, 0.014948215335607529, 0.00038965902058407664, -0.05130873993039131, 0.04609339311718941, -0.03386303409934044, -0.03210010007023811, 0.008401485159993172, -0.008300483226776123, 0.0422002449631691, -0.012450724840164185, 0.0237077958881855, -0.029437333345413208, 0.026811296120285988, 0.09578610956668854, -0.012772093527019024, -0.007891886867582798, -0.07933205366134644, 0.06126197427511215, 0.010430695489048958, 0.03593815490603447, -0.0014059861423447728, 0.00918654166162014, -0.008901901543140411, -0.06724860519170761, 0.009558410383760929, -0.027288757264614105, 0.02073284424841404, -0.050647638738155365, 0.007901068776845932, -0.0544673316180706, 0.013828017748892307, 0.03929875046014786, -0.0012590750120580196, 0.02264269068837166, -0.10261747986078262, 0.031071720644831657, 0.03819691389799118, -0.040878042578697205, -0.0004966861451976001, -0.03711344301700592, 0.05347568169236183, -0.04859088361263275, -0.0047975690104067326, 0.07925859838724136, 0.04018021747469902, 0.01864854246377945, 0.001913288957439363, 0.07727529853582382, 0.012597636319696903, -0.05641390383243561, 0.0014691121177747846, 0.02045738510787487, 0.03169609233736992, -0.04686467722058296, 0.04583629593253136, 0.047489047050476074, -0.04488137364387512, 0.04175950959324837, 0.026958206668496132, 0.03966602683067322, -0.01745488867163658, 0.009714503772556782, -0.037076715379953384, 0.013010824099183083, -0.01575622707605362, -0.07830367237329483, 0.004446359351277351, 0.005656081717461348, 0.06868099421262741, 0.008805491030216217, 0.01551749650388956, 0.08763253688812256, 0.019777921959757805, -0.05733209848403931, 0.01117443386465311, 0.010944885201752186, -0.028464047238230705, 0.011826352216303349, -0.016858061775565147, -0.0389314703643322, 0.00036727802944369614, 0.007611837238073349, -0.04770941659808159, 0.030741170048713684, 0.013424011878669262, -0.03918856382369995, -0.02653583697974682, -0.007088466081768274, -0.030832991003990173, 0.034267038106918335, 0.0370950810611248, 0.04789305478334427, -0.01353419478982687, 0.013883109204471111, -0.007350151427090168, 0.03176954761147499, -0.07808330655097961, -0.06420020014047623, 0.02216522954404354, 0.00581676559522748, 0.06254744529724121, 0.02796822227537632, -0.03630543127655983, -0.025562550872564316, 0.005536716431379318, -0.0047103408724069595, 0.011734533123672009, 0.02635219879448414, -0.005366850178688765, -0.0036681892815977335, -0.01573786325752735, 0.0436326302587986, 0.05986631661653519, -0.025378910824656487, -0.00009605180821381509, 0.009457409381866455, -0.0483337864279747, 0.01728043146431446, -0.04157587140798569, 0.07463089376688004, 0.040400583297014236, -0.02146740071475506, -0.010944885201752186, 0.007368515245616436, 0.041135139763355255, -0.026205286383628845, -0.026939842849969864, -0.001868526916950941, 0.017234520986676216, 0.0036199840251356363, -0.013525012880563736, -0.0704071968793869, -0.02914351038634777, 0.013139371760189533, 0.01800580509006977, 0.005518352147191763, -0.028115132823586464, -0.03900492563843727, -0.03233883157372475, 0.06640386581420898, -0.013782108202576637, 0.056450631469488144, -0.04146568849682808, -0.03395485505461693, -0.0208981204777956, 0.020659388974308968, 0.032816290855407715, 0.05828702077269554, 0.044587552547454834, 0.010219510644674301, 0.008984538726508617, -0.06489802896976471, 0.058066654950380325, 0.006767097394913435, 0.08631033450365067, 0.02760094404220581, 0.057075005024671555, -0.01845572143793106, -0.038050003349781036, 0.000053692889196099713, -0.04554247483611107, 0.026774568483233452, 0.009843051433563232, -0.04025367274880409, 0.010706154629588127, 0.03428540378808975, -0.03744399547576904, -0.06779952347278595, -0.005766265094280243, -0.010807155631482601, -0.05005999654531479, -0.02082466334104538, -0.04517519846558571, 0.02135721780359745, 0.04297152906656265, 0.006813007406890392, 0.0032274555414915085, -0.08954238146543503, -0.0025250364560633898, 0.04319189488887787, -0.001797366887331009, 0.058433935046195984, -0.050904735922813416, -0.04370608553290367, 0.013387284241616726, 0.009677776135504246, 0.014277933165431023, 0.04491810128092766, -0.019135184586048126, 0.027490759268403053, -0.009944052435457706, 0.02570946142077446, -0.028831325471401215, -0.008649397641420364, -0.023873072117567062, 0.023303790017962456, 0.04627703130245209, 0.021118486300110817, 0.01999828778207302, -0.03513014316558838, -0.03193482384085655, 0.03410176560282707, -0.013818835839629173, -0.04697486013174057, -0.0007012714631855488, -0.045469019562006, -0.03527705371379852, -0.020475750789046288, 0.055716075003147125, -0.04065767675638199, -0.024277077987790108, -0.01900663785636425, 0.0358646996319294, 0.021026667207479477, -0.02787640132009983, 0.04837051406502724, -0.03356921300292015, 0.005114346276968718, -0.07011337578296661, 0.048921432346105576, 0.08432703465223312, 0.029712792485952377, 0.06706497073173523, 0.006101406179368496, 0.03448740765452385, 0.018878091126680374, 0.042494066059589386, -0.04565265774726868, 0.019392279908061028, -0.09387626498937607, 0.0812418982386589, -0.014103475958108902, -0.01380965393036604, 0.01339646615087986, 0.02271614596247673, 0.0031517045572400093, 0.0038288733921945095, -0.0003041521122213453, 0.002942815190181136, -0.04135550558567047, 0.05567934736609459, 0.03992312029004097, 0.02400161884725094, 0.02425871416926384, -0.017225340008735657, -0.01132134534418583, -0.004315516911447048, -0.020659388974308968, 0.022661054506897926, -0.04881124943494797, -0.016059231013059616, 0.01390147302299738, 0.052373845130205154, -0.021853042766451836, -0.012818003073334694, 0.04837051406502724, 0.02905169129371643, -0.04469773545861244, 0.009255406446754932, 0.024772902950644493, -0.016059231013059616, 0.00140942947473377, 0.020292110741138458, -0.038233641535043716, 0.03085135482251644, 0.04543229192495346, 0.008015843108296394, -0.010843883268535137, -0.025856373831629753, -0.04124532267451286, 0.030355527997016907, -0.01811598800122738, -0.051455650478601456, 0.005775447003543377, -0.01483803242444992, -0.07867095619440079, -0.040510766208171844, -0.0624372623860836, -0.019025001674890518, 0.013460739515721798, -0.030704442411661148, -0.03656252846121788, -0.028096769005060196, 0.006229953374713659, 0.02895987220108509, -0.00741901621222496, -0.027949858456850052, -0.0011144592426717281, 0.016674421727657318, 0.04337553307414055, -0.030539168044924736, -0.06996646523475647, 0.011440710164606571, 0.018878091126680374, 0.041869696229696274, -0.04752577468752861, 0.019300460815429688, -0.0338263064622879, 0.0013841791078448296, 0.06508166342973709, 0.009388544596731663, 0.05215347930788994, -0.009870597161352634, -0.025213636457920074, 0.010100145824253559, -0.020108472555875778, 0.011596803553402424, -0.023028332740068436, -0.014599301852285862, 0.002871655160561204, 0.029749520123004913, -0.003064475953578949, -0.062143441289663315, 0.06423692405223846, 0.016417328268289566, -0.02771112695336342, -0.05527534335851669, -0.045469019562006, 0.05196984112262726, 0.04399990662932396, 0.019061729311943054, 0.0017755597364157438, -0.013607650995254517, 0.0021244739182293415, -0.015003307722508907, -0.017904803156852722, -0.006532957777380943, -0.024754539132118225, -0.0568179115653038, -0.014939033426344395, -0.013589287176728249, -0.024589262902736664, -0.051639288663864136, 0.03531378135085106, 0.07463089376688004, 0.027564216405153275, -0.056303720921278, 0.041502416133880615, -0.0755123645067215, -0.07529199868440628, -0.037076715379953384, -0.03549741953611374, -0.04723195359110832, 0.020200291648507118, 0.024203622713685036, -0.012643545866012573, -0.02179795131087303, -0.0029497016221284866, 0.021210305392742157, -0.0694890022277832, 0.006675278302282095, -0.07257413864135742, -0.048113420605659485, -0.038233641535043716, 0.00020702429173979908, 0.009016675874590874, -0.008364756591618061, 0.014902305789291859, 0.0269765704870224, 0.06309836357831955, 0.023964891210198402, 0.01458093710243702, -0.02001665160059929, 0.057699378579854965, -0.01565522514283657, 0.014094294048845768, 0.04462428018450737, -0.03287138417363167, 0.038784559816122055, -0.05729537084698677, -0.0017801506910473108, 0.07690801471471786, 0.006234544329345226, 0.018161898478865623, 0.037866365164518356, 0.0006042871391400695, 0.011110160499811172, 0.08322519809007645, -0.030006615445017815, 0.039776209741830826, 0.021761223673820496, 0.07771603018045425, 0.0007913693552836776, 0.006776279769837856, -0.042310427874326706, 0.03215518966317177, 0.0637594684958458, -0.029014963656663895, 0.10489460080862045, 0.05847066268324852, -0.008768762461841106, -0.02995152212679386, 0.07874441146850586, 0.00023457015049643815, -0.0412820503115654, 0.0161969605833292, 0.021522492170333862, 0.033275388181209564, -0.015104308724403381, -0.0239097997546196, 0.0595724955201149, -0.02207340858876705, -0.014149385504424572, 0.040584221482276917, -0.01603168621659279, -0.051896385848522186, -0.06588967889547348, -0.00905799400061369, 0.02234886772930622, 0.040400583297014236, 0.037241991609334946, 0.026388926431536674, -0.05332876741886139, -0.014479936100542545, -0.007203240413218737, 0.010577606968581676, -0.04142896085977554, -0.03004334308207035, -0.03746235743165016, 0.005853493697941303, 0.04594648256897926, -0.04344899207353592, -0.01565522514283657, -0.0671384260058403, -0.006032541394233704, -0.052630942314863205, -0.03621361404657364, 0.003461595391854644, -0.043852996081113815, -0.025029998272657394, -0.026040012016892433, -0.008328028954565525, -0.025048362091183662, 0.04565265774726868, -0.02264269068837166, 0.007992887869477272, -0.02262432686984539, 0.027545852586627007, 0.020163564011454582, -0.030465712770819664, -0.003229751018807292, 0.0129006402567029, 0.018859727308154106, 0.021063394844532013, -0.009576774202287197, -0.07125193625688553, -0.017675254493951797, -0.022734509781003, -0.01999828778207302, 0.026021648198366165, 0.0351485051214695, -0.00964104849845171, 0.02752748876810074, 0.00005871427129022777, 0.01648160070180893, -0.02868441306054592, -0.03672780096530914, 0.01398411113768816, 0.02589310146868229, 0.05836047977209091, -0.03237555921077728, -0.04388972371816635, 0.07088465988636017, -0.0027224484365433455, -0.02289978414773941, 0.09490463882684708, 0.013543376699090004, -0.026297107338905334, 0.0722435861825943, 0.01964937523007393, -0.00649163918569684, -0.06431037932634354, -0.025048362091183662, -0.03112681210041046, 0.002492899540811777, 0.004648362286388874, -0.04994980990886688, 0.03584633395075798, -0.012974096462130547, 0.03314684331417084, 0.05953576788306236, 0.010614334605634212, 0.08366593718528748, 0.004441768396645784, 0.02497490495443344, 0.03900492563843727, 0.08138880878686905, -0.00349602778442204, 0.025544187054038048, 0.0025456957519054413, -0.01475539430975914, -0.02381798066198826, 0.023028332740068436, 0.008148981258273125, -0.02144903689622879, -0.013598469085991383, -0.015058399178087711, -0.06779952347278595, -0.06893808394670486, -0.062143441289663315, 0.0028969054110348225, 0.016077594831585884, 0.020420657470822334, -0.019961560145020485, -0.007161921355873346, -0.0020934846252202988, 0.012358905747532845, -0.008396893739700317, -0.012285449542105198, -0.05567934736609459, -0.008497895672917366, 0.06633041054010391, 0.03595651686191559, -0.001373849343508482, 0.039151836186647415, 0.041943151503801346, 0.025580914691090584, -0.03230210393667221, -0.052998218685388565, -0.012166084721684456, 0.009282952174544334, -0.008479530923068523, 0.025929829105734825, -0.00801125168800354, 0.03176954761147499, 0.012790457345545292, 0.006666095927357674, 0.006767097394913435, -0.020751208066940308, -0.003528164466843009, -0.04102495685219765, -0.03584633395075798, -0.006583458743989468, 0.018712814897298813, 0.004115809220820665, 0.05505497753620148, -0.05623026564717293, 0.024515807628631592, 0.023395610973238945, -0.005761674139648676, 0.04190642386674881, -0.0431184396147728, -0.0027936084661632776, -0.024938177317380905, 0.0407678596675396, -0.002747698687016964, 0.002010847209021449, 0.04135550558567047, -0.025452367961406708, 0.031824640929698944, -0.05828702077269554, 0.04763596132397652, -0.0044532460160553455, 0.03681962192058563, 0.005307167302817106, 0.06409001350402832, 0.016812151297926903, 0.026278743520379066, -0.0050638457760214806, -0.009172768332064152, -0.014103475958108902, -0.024313805624842644, -0.051198557019233704, 0.03213682770729065, 0.04679122194647789, -0.010935703292489052, 0.017060063779354095, 0.013772926293313503, -0.02198158949613571 ]
20,452
metevolsim.metevolsim
update_statistics
Update statistics trackers for the current state. Parameters ---------- None Returns ------- None
def update_statistics( self ): """ Update statistics trackers for the current state. Parameters ---------- None Returns ------- None """ ########### self.sum_abund += self.mutant_abund self.sqsum_abund += self.mutant_abund*self.mutant_abund for i in range(self.N_abund): if self.wild_type_abund[i] > 0.0: self.relsum_abund[i] += (self.mutant_abund[i]/self.wild_type_abund[i]) self.relsqsum_abund[i] += (self.mutant_abund[i]/self.wild_type_abund[i])*(self.mutant_abund[i]/self.wild_type_abund[i]) ########### self.sum_flux += self.mutant_flux self.sqsum_flux += self.mutant_flux*self.mutant_flux for i in range(self.N_flux): if self.wild_type_flux[i] > 0.0: self.relsum_flux[i] += (self.mutant_flux[i]/self.wild_type_flux[i]) self.relsqsum_flux[i] += (self.mutant_flux[i]/self.wild_type_flux[i])*(self.mutant_flux[i]/self.wild_type_flux[i])
(self)
[ -0.010033965110778809, -0.024497579783201218, -0.0025555675383657217, 0.05570240318775177, 0.013566925190389156, -0.03830661252140999, -0.055881742388010025, -0.04555187001824379, -0.04479864984750748, 0.03809140622615814, -0.06682136654853821, 0.002842508489266038, 0.018104178830981255, 0.01395250204950571, -0.0579979307949543, 0.06423889845609665, -0.005676049739122391, 0.01699228212237358, 0.016203194856643677, -0.02456931583583355, -0.036513231694698334, -0.04053040221333504, -0.053263407200574875, 0.09512091428041458, -0.032442256808280945, -0.02783326804637909, -0.015934187918901443, -0.06136948615312576, -0.012114286422729492, 0.018794629722833633, 0.010760284028947353, -0.020444540306925774, 0.02932177484035492, -0.04393782839179039, 0.00703005213290453, -0.10207922756671906, 0.024354109540581703, 0.04257485643029213, -0.09999890625476837, 0.05021465942263603, 0.060472797602415085, -0.05150589346885681, 0.04332807660102844, 0.013566925190389156, 0.016221128404140472, 0.019476113840937614, -0.016041791066527367, 0.043722622096538544, 0.021538501605391502, -0.02421063929796219, -0.02101842127740383, -0.01448154915124178, -0.015234769321978092, 0.06621161848306656, 0.021036354824900627, 0.08041518926620483, 0.04332807660102844, 0.0055236127227544785, 0.05003532022237778, -0.0398847870528698, 0.03599315136671066, 0.016014888882637024, 0.03158143535256386, -0.029375575482845306, -0.0021699906792491674, -0.037840332835912704, -0.005182870198041201, 0.03902396559715271, -0.008119530975818634, 0.0013551232405006886, -0.030469538643956184, 0.01744062639772892, 0.028245745226740837, -0.004584329202771187, -0.000005888908617635025, -0.0017676008865237236, -0.012087386101484299, -0.0370512455701828, 0.013907667249441147, -0.040745608508586884, 0.06495624780654907, -0.002831299789249897, 0.025179065763950348, -0.002566776005551219, -0.021681971848011017, -0.014607085846364498, 0.04365088418126106, 0.0007274400559253991, 0.026326827704906464, -0.0074649471789598465, -0.04730938374996185, -0.0077608549036085606, 0.053909022361040115, 0.004088907968252897, 0.01214118767529726, 0.006469620857387781, -0.09354273974895477, -0.09727296978235245, -0.04777565971016884, -0.023260148242115974, -0.015028529800474644, 0.006509971804916859, 0.041462961584329605, 0.04200097545981407, 0.012679201550781727, -0.011181728914380074, 0.0007627472514286637, -0.052259113639593124, -0.00960355345159769, 0.014867126010358334, -0.06025759130716324, -0.019117437303066254, -0.03697951138019562, -0.018382152542471886, -0.04139122739434242, -0.02838921546936035, -0.00950491800904274, 0.02082115039229393, 0.020731480792164803, 0.03507852554321289, 0.012177054770290852, 0.02159230411052704, 0.003225843422114849, 0.013809030875563622, 0.008966903202235699, 0.017306122928857803, 0.03748165816068649, 0.017584098502993584, -0.009150724858045578, -0.0006422544829547405, -0.03321341052651405, -0.02440791204571724, -0.005411526188254356, 0.08141948282718658, 0.05989891663193703, -0.01603282243013382, 0.026308894157409668, -0.053227540105581284, 0.0370512455701828, 0.02460518293082714, 0.0016330973012372851, 0.015575511381030083, -0.0020265202037990093, -0.012589532881975174, 0.006469620857387781, 0.04426063597202301, -0.013145480304956436, 0.024820389226078987, -0.05268952623009682, -0.06667789071798325, -0.008706863038241863, 0.010939622297883034, -0.01049127709120512, -0.00006588572432519868, -0.008966903202235699, -0.0010597759392112494, 0.015145099721848965, -0.019565783441066742, 0.003642804455012083, 0.0005738818435929716, -0.032765064388513565, -0.026004020124673843, 0.009800825268030167, -0.020444540306925774, -0.05494918301701546, 0.019673386588692665, 0.010787185281515121, -0.005420492962002754, -0.05534372851252556, 0.03020053170621395, 0.004770392552018166, -0.04053040221333504, -0.051649365574121475, 0.04644855856895447, 0.010078799910843372, 0.01566518098115921, -0.014526383951306343, -0.027815334498882294, -0.013907667249441147, 0.01929677650332451, -0.0029164853040128946, -0.08192162960767746, -0.058787018060684204, -0.06538666039705276, -0.04422476887702942, 0.004999048542231321, 0.05010705813765526, -0.06850714236497879, 0.06359327584505081, 0.023995433002710342, 0.005815037060528994, -0.06660615652799606, -0.02928590588271618, -0.028927231207489967, 0.07015705108642578, -0.00035279159783385694, 0.010222270153462887, -0.030989618971943855, 0.032478123903274536, -0.03559860587120056, -0.011845279484987259, -0.027653930708765984, 0.014490515924990177, -0.0025757430121302605, 0.008890684694051743, 0.009217976592481136, 0.008146432228386402, 0.052940599620342255, -0.021215694025158882, -0.0031518666073679924, -0.019350577145814896, 0.005846421234309673, 0.00948698353022337, 0.035849679261446, -0.012033584527671337, -0.04479864984750748, 0.04659203067421913, -0.019260909408330917, 0.025950219482183456, 0.0027887069154530764, 0.001421254244633019, -0.04680723696947098, -0.06506384909152985, -0.013262050226330757, -0.01920710690319538, 0.048062603920698166, 0.024067169055342674, 0.04921036586165428, 0.013979402370750904, -0.020372804254293442, 0.026326827704906464, 0.04218031466007233, -0.019924459978938103, -0.018310416489839554, -0.03281886503100395, 0.02512526325881481, -0.03995652124285698, 0.03213738277554512, -0.005348757840692997, 0.0039162952452898026, -0.04860061779618263, -0.06154882535338402, 0.039203301072120667, 0.05624041706323624, -0.06854300945997238, -0.08687136322259903, 0.007357344496995211, 0.022865604609251022, -0.030541272833943367, 0.006886581890285015, -0.02388782985508442, -0.022883538156747818, -0.02525079995393753, 0.0044924188405275345, 0.017324058338999748, -0.07367207854986191, 0.007460463792085648, 0.07618281245231628, 0.0185256227850914, -0.09153415262699127, 0.02247105911374092, -0.03298027068376541, -0.0010945226531475782, 0.027940871194005013, -0.08887995034456253, 0.020677680149674416, 0.05179283395409584, 0.01985272392630577, -0.023995433002710342, 0.02428237535059452, 0.0235650222748518, 0.04153469577431679, -0.037158846855163574, -0.0020186740439385176, -0.04422476887702942, 0.020157599821686745, 0.0704798623919487, -0.0055056787095963955, -0.022883538156747818, -0.014867126010358334, 0.02440791204571724, -0.039777182042598724, 0.02489212341606617, 0.04261072352528572, 0.00873824767768383, -0.0017541504930704832, -0.017333025112748146, -0.011181728914380074, 0.015925221145153046, -0.004066490568220615, 0.024067169055342674, -0.003355863504111767, 0.022291721776127815, 0.00837508775293827, 0.04192924126982689, -0.005469811148941517, -0.03999238833785057, 0.018776696175336838, 0.006698276847600937, 0.03269333019852638, -0.01804140955209732, -0.014553284272551537, 0.045408397912979126, 0.006249931640923023, -0.0013472771970555186, -0.011504537425935268, 0.09002771228551865, -0.008173332549631596, 0.05530786141753197, -0.052761260420084, 0.025179065763950348, 0.03229878470301628, 0.03801967203617096, 0.0640236884355545, 0.02239932492375374, -0.03656703233718872, -0.0455160029232502, -0.020552143454551697, 0.02424650639295578, 0.0850062444806099, -0.015925221145153046, -0.011558338068425655, 0.08873647451400757, 0.03895222768187523, -0.021233627572655678, -0.04056626930832863, -0.006272349040955305, -0.02049834094941616, -0.003302062163129449, -0.04225204885005951, -0.09210803359746933, -0.050967879593372345, 0.04960491135716438, 0.01000706385821104, -0.0418933741748333, -0.0025712596252560616, 0.0032549859024584293, -0.030074995011091232, 0.03801967203617096, -0.025555673986673355, 0.011441769078373909, 0.05283299461007118, 0.0007722745649516582, 0.07033639401197433, 0.033446550369262695, -0.018938099965453148, 0.04060214012861252, -0.03145589679479599, 0.03740992024540901, 0.03156350180506706, -0.02379816211760044, -0.001239674398675561, -0.02747459150850773, 0.07948262989521027, 0.0805586576461792, 0.045372530817985535, 0.007460463792085648, -0.07890874892473221, -0.022704198956489563, -0.012795771472156048, -0.03185044229030609, 0.05369381606578827, -0.00703005213290453, 0.027600128203630447, 0.04038693383336067, -0.04695070534944534, -0.01079615205526352, 0.013297918252646923, -0.008971386589109898, -0.048636484891176224, -0.01961958408355713, -0.033572085201740265, 0.0003404621093068272, 0.04232378304004669, -0.03208358213305473, 0.03895222768187523, 0.0006854076636955142, 0.0034657081123441458, -0.02553774043917656, -0.03559860587120056, 0.053980760276317596, 0.012535731308162212, -0.08199336379766464, 0.04626922309398651, 0.023044941946864128, -0.01796070672571659, -0.025842616334557533, -0.02702624723315239, -0.00573881808668375, 0.007012118585407734, 0.06258898228406906, -0.023331882432103157, -0.008913101628422737, -0.024300308898091316, -0.03762512654066086, 0.03737405315041542, 0.056204549968242645, -0.006178196519613266, -0.04759632423520088, -0.009693223051726818, 0.015261669643223286, -0.10925275087356567, -0.06104667857289314, 0.03057713992893696, -0.02738492377102375, -0.05713710933923721, 0.0004920588107779622, 0.01417667418718338, -0.01865115948021412, 0.03208358213305473, -0.0092628113925457, -0.0007672306965105236, -0.015692081302404404, 0.02847888506948948, -0.021556435152888298, -0.021197760477662086, -0.033733490854501724, -0.05311993509531021, 0.03387696295976639, 0.08249551057815552, 0.049353837966918945, 0.03970544785261154, 0.021197760477662086, 0.058535944670438766, 0.02948317863047123, -0.033966630697250366, -0.026990380138158798, -0.007133171893656254, -0.06545839458703995, 0.049317967146635056, 0.019350577145814896, 0.005698467139154673, -0.043722622096538544, -0.03529373183846474, -0.0015053189126774669, 0.007433563005179167, -0.02279386855661869, 0.01270610187202692, 0.00018452205404173583, 0.02412096969783306, 0.04171403497457504, 0.022937338799238205, 0.041104286909103394, -0.045085590332746506, -0.03995652124285698, -0.027331121265888214, -0.035849679261446, -0.05925329774618149, -0.058177269995212555, -0.01528856996446848, -0.05609694868326187, 0.04368675500154495, -0.0007341651944443583, 0.04938970506191254, 0.01618526130914688, -0.007155588828027248, -0.04777565971016884, -0.020426606759428978, 0.018435953184962273, -0.02847888506948948, -0.011970816180109978, 0.00942421518266201, -0.06194336712360382, 0.019511982798576355, 0.0193326435983181, -0.016203194856643677, 0.06183576583862305, -0.03963371366262436, -0.004622438922524452, 0.01703711599111557, 0.048744086176157, -0.009513884782791138, 0.022453125566244125, -0.010724416933953762, -0.013082711957395077, -0.033733490854501724, -0.0748915746808052, -0.00936144683510065, 0.0018180396873503923, -0.049317967146635056, 0.018830496817827225, 0.03758925944566727, -0.001516527496278286, 0.026559967547655106, 0.001292355009354651, -0.015127166174352169, 0.022166185081005096, -0.039167433977127075, 0.05867941677570343, -0.042072709649801254, -0.010033965110778809, -0.0257708802819252, 0.0531558021903038, 0.005097684450447559, -0.06391608715057373, 0.0547698475420475, 0.006944866850972176, -0.0027236968744546175, 0.04157056286931038, 0.016561871394515038, 0.03963371366262436, -0.0028021573089063168, -0.0507526732981205, -0.01448154915124178, 0.011970816180109978, 0.021879244595766068, 0.007357344496995211, -0.022130317986011505, -0.01260746642947197, -0.004622438922524452, 0.0007139896624721587, -0.06987011432647705, 0.029142435640096664, 0.009576653130352497, 0.015602411702275276, -0.03895222768187523, -0.028532687574625015, 0.009612520225346088, 0.011683874763548374, 0.0032168766483664513, -0.03934677317738533, -0.006501005031168461, -0.033446550369262695, 0.0007055831956677139, 0.0165080688893795, -0.005371175240725279, -0.03298027068376541, 0.020085863769054413, 0.013405520468950272, -0.029267972335219383, -0.025681210681796074, 0.00035531356115825474, 0.005976441316306591, -0.0003740880056284368, 0.05828487128019333, -0.01904570311307907, 0.039167433977127075, -0.11434595286846161, -0.04225204885005951, 0.010302972048521042, -0.0257708802819252, -0.0235650222748518, 0.029572848230600357, -0.08213683217763901, 0.02421063929796219, 0.005541546270251274, -0.016176294535398483, -0.038557685911655426, 0.04691483825445175, -0.013737295754253864, 0.009827726520597935, -0.0193326435983181, 0.013002010062336922, 0.026918644085526466, 0.012230856344103813, 0.028586488217115402, -0.018077276647090912, -0.0013640901306644082, 0.039561979472637177, 0.03208358213305473, -0.00990842841565609, -0.06933210045099258, 0.04232378304004669, 0.014167707413434982, -0.035221997648477554, 0.006702760234475136, 0.036549098789691925, 0.03172490373253822, -0.025878483429551125, 0.02150263451039791, -0.028335414826869965, 0.04971251264214516, 0.006639991886913776, -0.0044318921864032745, -0.036154553294181824, -0.02916036918759346, 0.04203684255480766, -0.07044399529695511, 0.030917882919311523, -0.04296940192580223, -0.0037885166238993406, 0.003983546979725361, 0.01603282243013382, -0.030308132991194725, 0.05570240318775177, 0.0644182339310646, -0.014947827905416489, 0.05509265512228012, 0.051649365574121475, 0.03809140622615814, -0.05810553580522537, -0.011674907989799976, -0.013091678731143475, -0.06126188486814499, -0.0009527335059829056, -0.0011500053806230426, -0.05268952623009682, -0.06488451361656189, 0.005846421234309673, 0.052761260420084, -0.026559967547655106, -0.007922259159386158, -0.02544807270169258, -0.040781475603580475, -0.01756616309285164, -0.0426824614405632, 0.04519319161772728, 0.0439019575715065, -0.028281614184379578, 0.005626732017844915, 0.024515513330698013, 0.039777182042598724, 0.05771099030971527, 0.05828487128019333, 0.05742404982447624, -0.036710504442453384, -0.0021240352652966976, -0.01634666509926319, 0.04580294340848923, 0.04695070534944534, -0.04892342537641525, 0.0579979307949543, -0.030415736138820648, 0.0017575130332261324, -0.03235258907079697, -0.036262158304452896, 0.06355740875005722, -0.08809085935354233, -0.005147002637386322, -0.02159230411052704, -0.009478016756474972, -0.021610237658023834, 0.0193326435983181, -0.04530079662799835, 0.008334736339747906, 0.0009527335059829056, 0.013262050226330757, 0.016131458804011345, -0.02968044951558113, -0.00837957113981247, 0.05340687558054924, 0.0114776361733675, 0.05566653609275818, -0.001186993787996471, -0.0063171833753585815, 0.03330307826399803, -0.06545839458703995, -0.016382532194256783, 0.02392369881272316, 0.045085590332746506, -0.04680723696947098, 0.028747892007231712, -0.020964620634913445, 0.05175696685910225, -0.018669093027710915, 0.03443291038274765, -0.022829735651612282, -0.029088634997606277, 0.03057713992893696, -0.019601650536060333, -0.05416009575128555, 0.010823052376508713, 0.009038638323545456, 0.001383144874125719, 0.03656703233718872, -0.0029097602237015963, -0.017736535519361496, 0.05150589346885681, 0.03186837583780289, -0.022686265408992767, 0.041068416088819504, 0.038199007511138916, 0.025968153029680252, 0.03310580924153328, -0.05268952623009682, 0.02747459150850773, 0.004055282101035118, 0.054195962846279144, -0.015647245571017265, -0.009478016756474972, 0.042790062725543976, 0.05103961378335953, -0.008549942634999752, -0.026793107390403748, 0.05763925611972809, 0.05900222435593605, -0.054554641246795654, -0.0016969864955171943, -0.009065539576113224, -0.012759903445839882, -0.03581381216645241, -0.0398847870528698, 0.0011214233236387372, 0.008446822874248028, 0.02046247385442257, -0.009388348087668419, -0.017736535519361496, -0.024945925921201706, 0.05372968688607216, -0.039131566882133484, 0.026129556819796562, -0.008410955779254436, 0.0021083431784063578, 0.013028910383582115, 0.012338459491729736, 0.023618822917342186, -0.013862832449376583, 0.0011937189847230911, -0.007415628992021084, 0.03459431231021881, 0.020588010549545288, 0.06058039888739586, -0.022775935009121895, 0.05240258201956749, 0.03150969743728638, 0.03190424293279648, 0.003589003114029765, 0.009549751877784729, 0.019673386588692665, 0.002725938567891717, 0.017709635198116302, 0.011441769078373909, 0.05042986571788788, 0.03748165816068649, -0.0026676538400352, 0.01647220179438591, 0.07546545565128326, -0.014284277334809303, -0.02469485253095627, -0.046376824378967285, 0.013082711957395077, -0.029895655810832977, -0.003335688030347228, -0.01248192973434925, 0.03726645186543465, 0.009872560389339924, 0.039490241557359695, -0.00454173656180501, 0.0018034684471786022, 0.06172816455364227, 0.022166185081005096, -0.04070974141359329, -0.0567784309387207, -0.0039028446190059185, -0.048277806490659714, -0.016077658161520958, 0.023654691874980927, -0.011370033957064152, 0.008348187431693077, -0.03109722025692463, 0.09849246591329575, 0.0077025699429214, 0.006586190778762102, 0.029142435640096664, 0.07187870144844055, 0.032926470041275024, 0.08407368510961533, -0.0563838891685009, 0.00717800622805953, -0.03133036196231842, 0.028245745226740837, -0.03097168356180191, 0.02996739186346531, 0.05534372851252556, -0.03161730244755745, 0.06413128972053528, -0.07403075695037842, -0.006514455191791058 ]
20,453
metevolsim.metevolsim
write_output_file
Write the current MCMC state in the output file. Parameters ---------- None Returns ------- None
def write_output_file( self ): """ Write the current MCMC state in the output file. Parameters ---------- None Returns ------- None """ line = "" #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Write current MCMC state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# line += str(self.nb_iterations)+" " line += str(self.nb_accepted)+" " line += str(self.nb_rejected)+" " line += str(self.param_metaid)+" " line += str(self.param_id)+" " line += str(self.param_previous)+" " line += str(self.param_value) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Write steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for species_id in self.model.species: if not self.model.species[species_id]["constant"]: line += " "+str(self.model.species[species_id]["mutant_value"]) for reaction_id in self.model.reactions: line += " "+str(self.model.reactions[reaction_id]["mutant_value"]) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Write scores # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# line += " "+str(self.model.wild_type_absolute_sum)+" "+str(self.model.mutant_absolute_sum)+" "+str(self.model.absolute_sum_distance)+" "+str(self.model.absolute_moma_distance)+" "+str(self.model.relative_moma_distance)+" "+str(self.model.absolute_moma_all_distance)+" "+str(self.model.relative_moma_all_distance) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 4) Write in file # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.output_file = open("output/iterations.txt", "a") self.output_file.write(line+"\n") self.output_file.close()
(self)
[ 0.008820111863315105, 0.001422635861672461, -0.03428194299340248, 0.05218103528022766, 0.05447389557957649, -0.042750727385282516, -0.11153650283813477, 0.00010307176125934348, -0.008177556097507477, -0.023058027029037476, -0.007669059094041586, 0.008427182212471962, 0.003591837827116251, 0.08409615606069565, 0.022521793842315674, 0.05917055904865265, 0.04134542867541313, -0.04127146676182747, -0.009559743106365204, 0.05687769874930382, 0.018019285053014755, 0.009194550104439259, -0.052587833255529404, 0.023446334525942802, 0.008940301835536957, -0.016817381605505943, 0.002986264182254672, -0.02413049340248108, -0.013350357301533222, -0.00919917318969965, -0.06726952642202377, -0.07758739590644836, -0.0035317428410053253, -0.0006824260926805437, -0.015754161402583122, -0.03555780649185181, 0.02011799067258835, 0.023446334525942802, -0.09385930001735687, 0.026830149814486504, 0.050036102533340454, 0.0003469914081506431, 0.03300607576966286, 0.00684621836990118, -0.06871180981397629, -0.014515277929604053, -0.05088667944073677, 0.07610813528299332, 0.004259817767888308, -0.08172933757305145, -0.029252445325255394, -0.04707757756114006, -0.00394547451287508, 0.032765697687864304, 0.010216167196631432, -0.004354583099484444, 0.046559832990169525, -0.034559305757284164, 0.04800211638212204, -0.04711455851793289, -0.011741657741367817, -0.013239412568509579, 0.0906788781285286, 0.011732412502169609, 0.0007870146655477583, 0.020376861095428467, -0.05539843440055847, 0.0367966927587986, -0.025646738708019257, 0.07155939191579819, 0.06153738126158714, -0.07847495377063751, 0.058098092675209045, 0.030176986008882523, -0.017593996599316597, 0.027310911566019058, -0.054917674511671066, -0.01534736342728138, 0.03036189265549183, 0.0011602976592257619, -0.024555781856179237, 0.011704675853252411, 0.029751697555184364, -0.05880074203014374, -0.033801183104515076, -0.064458929002285, 0.06379325687885284, -0.016558511182665825, -0.030713219195604324, -0.00898190587759018, -0.0362049862742424, 0.046522852033376694, 0.016151713207364082, -0.015143965370953083, 0.03259928151965141, -0.00885247066617012, -0.024851635098457336, -0.016216430813074112, -0.04822400584816933, -0.014755657874047756, -0.05303161218762398, 0.052328962832689285, 0.04648587107658386, 0.009042001329362392, -0.03418948873877525, -0.07743947207927704, -0.030824163928627968, 0.024407856166362762, -0.003684291848912835, -0.016687946394085884, -0.09437704086303711, 0.041493356227874756, -0.014117725193500519, -0.07200317084789276, 0.06715858727693558, -0.028198469430208206, -0.05384520813822746, 0.017658714205026627, 0.004232081584632397, -0.012194682843983173, 0.03304306045174599, 0.006485647987574339, -0.021301401779055595, 0.02107951231300831, -0.03398609161376953, -0.008515013381838799, -0.003374570980668068, 0.040827684104442596, 0.04515453428030014, -0.04840891435742378, -0.060945674777030945, -0.021061019971966743, 0.050664789974689484, 0.01014220342040062, 0.036944616585969925, -0.010391829535365105, -0.027625255286693573, -0.06845293939113617, 0.030287930741906166, 0.06512459367513657, 0.05277274176478386, -0.05499164015054703, -0.027791671454906464, -0.028494322672486305, 0.04408206790685654, 0.013553756289184093, 0.010604473762214184, -0.017492296174168587, -0.022004051133990288, -0.04596812650561333, 0.03176719322800636, 0.0015613168943673372, -0.07743947207927704, -0.03766575828194618, 0.018213437870144844, 0.0032428239937871695, 0.015051511116325855, -0.01972968317568302, -0.004789117258042097, -0.05528749153017998, -0.037610284984111786, -0.009485780261456966, 0.03224795311689377, 0.04744739085435867, 0.014311878941953182, 0.06183323264122009, -0.026737695559859276, 0.02940037101507187, -0.016401339322328568, -0.007377828937023878, -0.017483051866292953, -0.02165272645652294, -0.03801708295941353, 0.013479793444275856, -0.028069034218788147, 0.031249452382326126, 0.01610548608005047, -0.0322849377989769, 0.0024731445591896772, 0.030916616320610046, -0.023649733513593674, -0.047854188829660416, -0.04715153947472572, 0.043416399508714676, -0.004518689122051001, -0.024777671322226524, 0.036611784249544144, -0.010724663734436035, 0.025018051266670227, 0.020044026896357536, 0.0651615783572197, -0.03141586855053902, 0.003714339341968298, 0.024648236110806465, 0.020395351573824883, -0.040753722190856934, 0.04360130429267883, -0.044673770666122437, 0.11035308986902237, -0.024740690365433693, -0.02475918084383011, 0.021208947524428368, 0.00207559228874743, -0.022651229053735733, 0.0003568146494217217, 0.011565995402634144, -0.02015497162938118, 0.010576737113296986, -0.06427402049303055, 0.053919173777103424, -0.010595228523015976, -0.007636700291186571, 0.044636789709329605, -0.002129908883944154, 0.05950339511036873, -0.04729946702718735, 0.04482169821858406, 0.06216606870293617, -0.06579026579856873, 0.022022541612386703, -0.004738267511129379, -0.01016069483011961, -0.027791671454906464, 0.06320155411958694, -0.023908603936433792, 0.017085498198866844, 0.04234393313527107, 0.030176986008882523, 0.005209782626479864, -0.004130382556468248, 0.027588272467255592, 0.0424918569624424, -0.0042505725286901, -0.0033144757617264986, -0.051404424011707306, -0.0017878292128443718, -0.08002818375825882, 0.029049046337604523, -0.09526459872722626, 0.009726160205900669, -0.07030201703310013, -0.03583516925573349, 0.0344853401184082, 0.027255438268184662, 0.016188696026802063, -0.04611605405807495, 0.08742450177669525, -0.0034369775094091892, -0.03319098427891731, 0.0373329259455204, 0.06885974109172821, -0.02483314462006092, -0.06616008281707764, -0.01842608116567135, 0.044599808752536774, -0.04393414035439491, -0.055879198014736176, -0.009189927019178867, 0.04803909733891487, -0.01816721074283123, 0.03350532799959183, 0.0070727309212088585, 0.017575504258275032, -0.032839659601449966, -0.02300255559384823, -0.00390387000516057, -0.041456371545791626, -0.02989962324500084, -0.012703179381787777, 0.014034517109394073, 0.03148983046412468, 0.0832085981965065, -0.08246896415948868, 0.0018340562237426639, -0.07514660805463791, -0.020839130505919456, 0.03226644545793533, 0.0008107059984467924, -0.07244694977998734, 0.020136481150984764, 0.02947433479130268, -0.004514066502451897, 0.0023968699388206005, 0.0090651148930192, -0.0012307938886806369, 0.00885247066617012, -0.035816680639982224, 0.01998855359852314, 0.06323853135108948, -0.013526019640266895, -0.011898829601705074, -0.0013440500479191542, 0.020265916362404823, 0.036149512976408005, 0.0572105348110199, -0.024370873346924782, -0.026109009981155396, -0.060945674777030945, 0.007197543978691101, -0.007701417896896601, -0.005061856471002102, -0.02940037101507187, 0.05765431374311447, -0.04611605405807495, -0.0302694384008646, 0.041456371545791626, 0.020099500194191933, -0.015624726191163063, 0.028716212138533592, 0.0277177095413208, 0.01902703382074833, 0.007548869121819735, 0.020598750561475754, 0.030750200152397156, 0.047188520431518555, 0.02492559887468815, -0.006582724861800671, -0.0002786621334962547, 0.05513956397771835, 0.04378621280193329, -0.05765431374311447, -0.006702914834022522, 0.07244694977998734, 0.0013948996784165502, 0.026904113590717316, -0.0961521565914154, 0.0390525683760643, 0.023927094414830208, 0.004477085079997778, -0.046929650008678436, -0.03971823677420616, -0.018389100208878517, 0.024019548669457436, 0.038534827530384064, 0.011288633570075035, -0.017418332397937775, 0.0036496215034276247, -0.028734702616930008, 0.07973232865333557, 0.0005295880837365985, 0.05591617897152901, -0.01617944985628128, -0.03173021227121353, 0.009300872683525085, -0.008071234449744225, 0.013045258820056915, -0.013146958313882351, 0.00835321843624115, -0.026626750826835632, 0.04437791928648949, 0.025942591950297356, 0.06793519854545593, 0.010234657675027847, 0.0668257474899292, 0.0015347363660112023, 0.0424918569624424, -0.012370345182716846, -0.07303865998983383, -0.022355377674102783, -0.0009222286171279848, -0.011075989343225956, 0.02228141389787197, 0.021671216934919357, 0.03195210173726082, 0.009305494837462902, -0.0582830011844635, 0.015023774467408657, -0.010992780327796936, 0.08794224262237549, -0.02220745012164116, -0.03609403967857361, -0.01797305792570114, 0.03590913489460945, -0.01465395838022232, 0.007918684743344784, 0.06408911198377609, -0.059022631496191025, 0.016993045806884766, 0.011723167262971401, -0.02914150059223175, 0.0066104610450565815, -0.024112002924084663, -0.015162455849349499, -0.0006477558054029942, 0.00038628437323495746, -0.03860878944396973, 0.05443691462278366, -0.0013359602307900786, -0.0009129832615144551, 0.023095007985830307, 0.026349389925599098, 0.04289865493774414, -0.017085498198866844, -0.038571808487176895, 0.012342608533799648, 0.03785066679120064, 0.030306421220302582, 0.05428898707032204, -0.06656687706708908, 0.00008645893103675917, 0.008755393326282501, -0.033264949917793274, -0.030343402177095413, 0.05347539111971855, -0.046892669051885605, -0.048150043934583664, -0.0033884390722960234, 0.03369023650884628, 0.013248657807707787, 0.022725192829966545, -0.01627190411090851, 0.03544686362147331, 0.018916087225079536, -0.002868385287001729, -0.004453971516340971, -0.008510390296578407, -0.037406887859106064, -0.06734349578619003, 0.02509201504290104, 0.03637140244245529, 0.03232191875576973, 0.04393414035439491, 0.08838602155447006, 0.0832085981965065, 0.02091309428215027, -0.05207009240984917, -0.016456812620162964, 0.014940566383302212, -0.00592630123719573, 0.04156731814146042, -0.03461477532982826, -0.021098002791404724, -0.046227000653743744, 0.034688740968704224, 0.0114550506696105, -0.013895835727453232, -0.020506296306848526, -0.03748084977269173, 0.014422823674976826, 0.028069034218788147, 0.028531303629279137, 0.00380448205396533, 0.020894603803753853, -0.0018895285902544856, 0.0019565578550100327, 0.021504800766706467, -0.0008840913651511073, -0.026645243167877197, -0.007701417896896601, 0.029492825269699097, 0.036611784249544144, 0.05373426526784897, -0.02492559887468815, -0.03093510866165161, 0.04197411611676216, 0.010752400383353233, 0.005574976094067097, -0.028697721660137177, 0.01932288520038128, -0.03208153694868088, 0.011713922023773193, 0.048445895314216614, 0.016401339322328568, 0.03202606365084648, 0.01178788486868143, -0.04704059287905693, -0.0007430990226566792, 0.01601303182542324, -0.018638726323843002, -0.006776878144592047, -0.02337237074971199, 0.026164481416344643, -0.006504138931632042, -0.03195210173726082, -0.011972792446613312, 0.013821872882544994, -0.07936251163482666, -0.025609757751226425, -0.0005891053006052971, -0.002768997335806489, -0.044340938329696655, 0.0020628797356039286, -0.005616580601781607, 0.005057233851402998, 0.002094082999974489, 0.00616668164730072, 0.040199000388383865, -0.03363476321101189, 0.041123539209365845, -0.04330545291304588, -0.009014264680445194, -0.013766400516033173, 0.003917738329619169, -0.07847495377063751, -0.030639255419373512, 0.05846790969371796, -0.026478825137019157, 0.008847847580909729, -0.035021573305130005, -0.01706700772047043, 0.009393326006829739, 0.004363828804343939, -0.045598313212394714, -0.03766575828194618, -0.019267413765192032, 0.04996214061975479, -0.024444837123155594, -0.03809104859828949, -0.03500308468937874, 0.013747910037636757, 0.019618738442659378, -0.07374130934476852, -0.012037510983645916, 0.016660209745168686, -0.019119486212730408, -0.00885247066617012, -0.018684953451156616, 0.010290130041539669, -0.01064145565032959, 0.021061019971966743, -0.023649733513593674, -0.011325614526867867, -0.028882628306746483, -0.005940169561654329, -0.03529893606901169, 0.044673770666122437, -0.017862113192677498, -0.008408690802752972, 0.0034323546569794416, 0.016031524166464806, -0.011575240641832352, -0.03729594126343727, 0.011381086893379688, 0.04104957357048988, 0.015439817681908607, -0.014764903113245964, 0.06249890476465225, -0.06745443493127823, 0.02572070248425007, -0.009624461643397808, -0.017030026763677597, -0.026811659336090088, -0.006388571113348007, -0.07130052149295807, 0.017159461975097656, 0.003076406894251704, 0.018389100208878517, -0.026645243167877197, 0.029881132766604424, -0.001812098314985633, -0.009097473695874214, 0.01607774943113327, -0.0044470373541116714, -0.024555781856179237, 0.05114555358886719, 0.025998065248131752, 0.01594831421971321, 0.021689707413315773, 0.041456371545791626, 0.02684864029288292, -0.008824734017252922, 0.0008991151116788387, 0.015966804698109627, -0.059725284576416016, 0.024019548669457436, 0.03308004140853882, -0.00555186253041029, 0.011824866756796837, -0.057802241295576096, -0.01875891722738743, 0.053623318672180176, 0.055213529616594315, -0.003783679800108075, -0.026293916627764702, -0.05155234783887863, -0.00870454404503107, 0.027828654274344444, 0.024241438135504723, 0.04511754959821701, 0.016586247831583023, -0.024870125576853752, 0.03208153694868088, 0.015412081964313984, -0.038534827530384064, 0.03128643333911896, 0.043971121311187744, -0.019378358498215675, -0.0025239940732717514, 0.016068505123257637, 0.05255085229873657, -0.051700275391340256, 0.02316897176206112, -0.000033045082091121, -0.08624108880758286, 0.018315136432647705, 0.018324382603168488, 0.00938408076763153, -0.006642819847911596, 0.01862948015332222, 0.032802678644657135, -0.06534648686647415, -0.007701417896896601, -0.04437791928648949, 0.05192216485738754, -0.016798891127109528, -0.005228273570537567, 0.002389935776591301, 0.015994541347026825, -0.0402359813451767, 0.08172933757305145, -0.02851281315088272, 0.01597605086863041, 0.050738755613565445, -0.06952540576457977, -0.03942238539457321, -0.04685568809509277, 0.04419301077723503, 0.0009378302493132651, -0.009416439570486546, 0.0106229642406106, 0.03052831068634987, -0.013655455783009529, -0.03546535223722458, 0.006245267577469349, -0.035816680639982224, -0.0024685217067599297, -0.015892842784523964, -0.05243990942835808, 0.018509291112422943, -0.05384520813822746, -0.04393414035439491, 0.024075021967291832, 0.004858457483351231, -0.03304306045174599, 0.010770890861749649, 0.017695695161819458, -0.022799156606197357, -0.006628951523452997, -0.016993045806884766, -0.02131989225745201, 0.030676236376166344, 0.03860878944396973, 0.013285639695823193, -0.06272079050540924, -0.04933345317840576, -0.002097550081089139, -0.01610548608005047, 0.0006766477017663419, 0.044340938329696655, -0.010770890861749649, -0.031545303761959076, 0.016022277995944023, 0.016900591552257538, -0.0003761722182389349, 0.043416399508714676, -0.06937748193740845, 0.021782161667943, 0.0356687530875206, 0.008653693832457066, -0.013479793444275856, -0.022965572774410248, 0.02032138966023922, 0.01750154234468937, -0.06638196855783463, 0.01591133326292038, -0.015412081964313984, 0.00043568946421146393, 0.04167826101183891, -0.008274632506072521, -0.016854364424943924, 0.0016329687787219882, 0.0447477363049984, -0.005011006724089384, 0.016993045806884766, -0.04378621280193329, -0.031748704612255096, 0.04374923184514046, 0.02002553641796112, 0.016956062987446785, -0.0005957504617981613, 0.032765697687864304, 0.060945674777030945, 0.009874086827039719, -0.04038390517234802, 0.05366029962897301, 0.026904113590717316, -0.025443339720368385, 0.034355904906988144, -0.03653781861066818, -0.03637140244245529, -0.09075284749269485, 0.0022593445610255003, -0.013729418627917767, -0.04326847195625305, 0.059725284576416016, 0.009874086827039719, -0.011316369287669659, -0.015698688104748726, -0.003811415983363986, -0.02609051764011383, -0.00828850083053112, 0.013895835727453232, 0.037702739238739014, 0.024278419092297554, -0.028124505653977394, -0.024444837123155594, 0.01630888506770134, -0.015902087092399597, 0.0031665493734180927, -0.0407167412340641, 0.008080479688942432, 0.08328256011009216, -0.002005096059292555, 0.005528748966753483, -0.004135005176067352, 0.013082240708172321, -0.020709695294499397, 0.013498283922672272, 0.009920313954353333, -0.04630096256732941, -0.0003420797875151038, 0.02278066612780094, 0.02433389239013195, -0.021541781723499298, -0.09230607002973557, -0.029529806226491928, -0.05628599599003792, -0.019877608865499496, 0.06834199279546738, -0.02906753681600094, -0.03611253201961517, -0.01915646903216839, -0.021930089220404625, 0.010613719001412392, 0.021985560655593872, -0.0015786520671099424, -0.00830236915498972, -0.03901558741927147, 0.020635733380913734, 0.025831647217273712, -0.011344105936586857, 0.011288633570075035, 0.023908603936433792, -0.023557279258966446, 0.01982213743031025, 0.037443868815898895, 0.06460685282945633, 0.050405919551849365, -0.030657745897769928, -0.012407326139509678, 0.09718764573335648, -0.027958089485764503, 0.018241174519062042, 0.052328962832689285, 0.09289778023958206, -0.0016052325954660773, 0.09311966598033905, -0.034429870545864105, 0.024888616055250168, -0.028494322672486305, -0.0013417386217042804, -0.044969625771045685, 0.03224795311689377, 0.04319450631737709, 0.011445805430412292, 0.06904464960098267, -0.014182443730533123, -0.005764506757259369 ]
20,454
metevolsim.metevolsim
write_statistics
Write final statistics in an output file (output/statistics.txt). Parameters ---------- None Returns ------- None
def write_statistics( self ): """ Write final statistics in an output file (output/statistics.txt). Parameters ---------- None Returns ------- None """ f = open("output/statistics.txt", "w") f.write("species_id wild_type mean var CV ER\n") #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Write species statistics # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# index = 0 for species_id in self.model.species: if not self.model.species[species_id]["constant"]: line = species_id+" " line += str(self.wild_type_abund[index])+" " line += str(self.mean_abund[index])+" " line += str(self.var_abund[index])+" " line += str(self.CV_abund[index])+" " line += str(self.ER_abund[index])+"\n" index += 1 f.write(line) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Write fluxes statistics # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# index = 0 for reaction_id in self.model.reactions: line = reaction_id+" " line += str(self.wild_type_flux[index])+" " line += str(self.mean_flux[index])+" " line += str(self.var_flux[index])+" " line += str(self.CV_flux[index])+" " line += str(self.ER_flux[index])+"\n" index += 1 f.write(line) f.close()
(self)
[ -0.010187550447881222, -0.026193901896476746, -0.0260823592543602, -0.00011611750960582867, 0.09101869910955429, -0.036511585116386414, -0.07636944949626923, -0.009369571693241596, -0.021137308329343796, -0.00925802905112505, -0.05045440047979355, -0.0016382808098569512, -0.007501234766095877, 0.017279796302318573, 0.019036591053009033, 0.07346934080123901, 0.015123306773602962, 0.00009033782407641411, 0.00019548989075701684, -0.007143368944525719, -0.007003941107541323, -0.02011483535170555, -0.07361806184053421, -0.013905634172260761, 0.0336114801466465, 0.00974138081073761, -0.0059768203645944595, -0.0361955501139164, 0.004282768350094557, 0.0008836259366944432, -0.05246216803789139, -0.07529120147228241, 0.012539238668978214, -0.03742251545190811, -0.04097328707575798, -0.03366725146770477, 0.02336815930902958, 0.036604538559913635, -0.043836209923028946, 0.07161030173301697, 0.06662806868553162, -0.007910223677754402, 0.009834332391619682, -0.006288209930062294, -0.035135895013809204, 0.00434783473610878, -0.054655835032463074, 0.062277909368276596, 0.016294503584504128, -0.04506317898631096, -0.048149190843105316, -0.02320084534585476, -0.030079299584031105, 0.03725520148873329, 0.006794798653572798, -0.010094597935676575, 0.014547004364430904, 0.01859971508383751, 0.04569525271654129, -0.04075020179152489, 0.02031932957470417, 0.02717919461429119, 0.025599008426070213, -0.013979996554553509, 0.013533825986087322, 0.0018729849252849817, -0.061980463564395905, 0.03072996437549591, -0.01170266978442669, 0.0369577556848526, 0.0361955501139164, -0.02701188065111637, 0.062277909368276596, 0.04647605121135712, 0.015402163378894329, 0.01066160574555397, -0.02574773319065571, -0.05855982378125191, 0.039783500134944916, -0.03072996437549591, 0.03310953825712204, -0.009467171505093575, 0.03768278285861015, -0.023256616666913033, 0.015420753508806229, -0.03885398060083389, 0.052908338606357574, -0.03288645297288895, -0.015234849415719509, -0.008853687904775143, -0.058002110570669174, 0.002763001248240471, 0.02835039049386978, -0.017382042482495308, 0.016155075281858444, -0.01151676569133997, -0.05231344327330589, -0.06313306838274002, -0.003996940329670906, -0.0419771708548069, -0.05242498591542244, 0.05621743202209473, 0.04264642298221588, 0.02323802560567856, -0.02801576443016529, -0.02721637487411499, 0.01124720461666584, 0.032923635095357895, -0.035228848457336426, 0.02450217492878437, -0.08335944265127182, 0.01568101905286312, 0.033183902502059937, -0.05350323021411896, 0.06015859916806221, -0.06911918520927429, -0.017837507650256157, 0.06621907651424408, -0.0017335567390546203, -0.018590420484542847, 0.01064301561564207, -0.017986232414841652, -0.01476079411804676, 0.021248850971460342, -0.001577861956320703, 0.02336815930902958, 0.0051216608844697475, 0.009769266471266747, 0.03299799561500549, -0.005688668694347143, -0.07688997685909271, -0.014835155569016933, 0.04361312836408615, 0.028703609481453896, 0.07596045732498169, -0.0453978069126606, -0.015736790373921394, -0.05171855166554451, 0.02809012494981289, 0.027309328317642212, 0.012055887840688229, -0.04342722147703171, -0.024111775681376457, -0.012715847231447697, -0.003481056308373809, 0.02186233550310135, -0.006302152760326862, -0.03294222429394722, -0.022048238664865494, -0.07488221675157547, 0.0043501583859324455, 0.022475818172097206, -0.08938274532556534, -0.05342886969447136, 0.010884691029787064, -0.001110196695663035, -0.0029930577147752047, -0.0336114801466465, -0.026788795366883278, -0.033388394862413406, -0.034466639161109924, 0.008974525146186352, 0.015820447355508804, -0.012474171817302704, -0.03742251545190811, 0.026268264278769493, -0.009039591997861862, 0.03785009682178497, 0.0010480349883437157, -0.0023145072627812624, -0.0030348862055689096, -0.021007174625992775, -0.050937753170728683, 0.04710812494158745, -0.010141074657440186, 0.020096244290471077, 0.00747334910556674, -0.02788563072681427, 0.009732085280120373, 0.058968812227249146, -0.0005045556463301182, -0.07581173628568649, -0.072242371737957, -0.018460286781191826, -0.03206847608089447, -0.04658759385347366, 0.05331732705235481, -0.05744440108537674, 0.06071631237864494, 0.041196372359991074, 0.05989833548665047, -0.02286621741950512, -0.026119541376829147, 0.007612777408212423, 0.06926790624856949, -0.03963477537035942, 0.04167972132563591, -0.050342857837677, 0.04733121022582054, -0.030004939064383507, -0.026119541376829147, 0.026956109330058098, 0.012678666971623898, -0.018376631662249565, 0.013059770688414574, 0.03749687969684601, 0.01735415682196617, 0.011154252104461193, -0.08826731890439987, 0.0193526279181242, 0.0020124129951000214, -0.018330154940485954, 0.04008094593882561, 0.009992350824177265, 0.05770466476678848, -0.033388394862413406, 0.04339004307985306, 0.010494292713701725, -0.025320153683423996, -0.007333920802921057, -0.021899515762925148, -0.025394514203071594, -0.05971243232488632, 0.05621743202209473, -0.03519166633486748, 0.023182254284620285, 0.021769382059574127, 0.00974138081073761, 0.027030471712350845, -0.0047637950628995895, 0.04602988064289093, 0.04915307089686394, -0.0008104261360131204, 0.004164254292845726, -0.057593122124671936, 0.0050565944984555244, -0.04569525271654129, 0.04506317898631096, -0.022680312395095825, -0.025059886276721954, -0.06960253417491913, -0.026565710082650185, 0.03502435237169266, -0.008402870036661625, -0.02758818492293358, -0.100685715675354, 0.03508012369275093, -0.005135603714734316, -0.052610889077186584, -0.023089302703738213, 0.04766583815217018, -0.015513706021010876, -0.03736674413084984, -0.0293542742729187, 0.004742880817502737, -0.07484503090381622, -0.07845157384872437, 0.006227790843695402, 0.014138014987111092, -0.0654754638671875, 0.02403741329908371, 0.014230966567993164, 0.011777031235396862, -0.008416812866926193, -0.025933636352419853, -0.024520764127373695, 0.012260382063686848, 0.002295916900038719, -0.002697934862226248, -0.008839745074510574, 0.010921872220933437, 0.09198540449142456, -0.07179620116949081, -0.02909400872886181, -0.0771874263882637, -0.0008162356680259109, 0.054284028708934784, -0.011526060290634632, -0.01655476912856102, 0.03279350325465202, 0.009694904088973999, -0.01877632550895214, 0.007691786624491215, 0.012223201803863049, 0.05119801685214043, 0.01149817556142807, -0.024613717570900917, -0.031120363622903824, 0.012539238668978214, -0.012139544822275639, 0.027402279898524284, -0.010568654164671898, -0.0009585685329511762, 0.01914813369512558, 0.008681726641952991, -0.0031162193045020103, 0.008495822548866272, -0.02641698718070984, 0.02758818492293358, -0.019092362374067307, -0.026528529822826385, -0.023777147755026817, 0.0873749777674675, -0.0209514033049345, -0.07060641795396805, -0.009202257730066776, 0.047182489186525345, -0.03825908526778221, 0.039188604801893234, 0.008054299280047417, -0.008737497963011265, -0.002472525928169489, 0.07469630986452103, 0.08893657475709915, 0.04000658541917801, 0.036678899079561234, -0.023423930630087852, 0.021081537008285522, 0.00790092907845974, 0.07904646545648575, -0.02219696156680584, 0.005335450638085604, 0.09317518770694733, -0.01709389127790928, 0.031120363622903824, -0.06633061915636063, 0.0036809032317250967, -0.017967641353607178, 0.01818143203854561, -0.03684621304273605, -0.061311207711696625, -0.0620548240840435, 0.053875040262937546, 0.0193526279181242, 0.003529856214299798, -0.0010805681813508272, -0.005144898779690266, -0.039114244282245636, 0.057593122124671936, 0.0011125204619020224, 0.003539151279255748, 0.00019345656619407237, -0.010419930331408978, 0.043166957795619965, 0.02872220054268837, -0.008314565755426884, 0.018674077466130257, -0.07082950323820114, -0.02972608245909214, 0.03132485970854759, 0.04800046607851982, 0.07097822427749634, -0.01785609871149063, 0.05740721896290779, 0.028573475778102875, 0.013227084651589394, -0.007375749293714762, -0.039077065885066986, -0.009100010618567467, 0.005958229769021273, -0.025394514203071594, 0.04298105090856552, 0.01109848078340292, 0.013422283343970776, 0.00886298343539238, -0.06149711087346077, 0.021732201799750328, 0.030655603855848312, 0.04008094593882561, -0.03725520148873329, -0.026156721636652946, 0.008560888469219208, 0.02701188065111637, -0.014547004364430904, -0.000567588780540973, 0.030822917819023132, 0.011089186184108257, -0.003274237737059593, -0.014230966567993164, -0.054618656635284424, 0.017242614179849625, 0.02379573881626129, -0.029633130878210068, -0.010429225862026215, -0.005349393468350172, -0.039151426404714584, -0.0015290620503947139, -0.005451641045510769, -0.06320743262767792, 0.022680312395095825, 0.02788563072681427, 0.009457876905798912, -0.037905868142843246, -0.01676855981349945, 0.020226377993822098, 0.03448522835969925, 0.01826508902013302, 0.016917282715439796, -0.05038003996014595, 0.046178605407476425, -0.0030697432812303305, -0.08588774502277374, -0.05231344327330589, 0.07097822427749634, -0.03729238361120224, -0.051867272704839706, -0.007227025926113129, 0.02379573881626129, 0.006850569974631071, 0.033630069345235825, 0.0008714259602129459, 0.025933636352419853, 0.01153535582125187, 0.024446403607726097, 0.0004174130444880575, 0.021434754133224487, -0.01609930396080017, -0.013580301776528358, 0.016666311770677567, 0.05956370756030083, 0.008663135580718517, 0.030953049659729004, 0.05989833548665047, 0.09429061412811279, 0.02015201561152935, -0.03039533831179142, -0.008993116207420826, 0.007938109338283539, -0.04870690032839775, 0.07001152634620667, -0.013069065287709236, -0.02212260104715824, -0.06841275095939636, -0.015746086835861206, 0.02340533956885338, -0.01519766915589571, -0.010419930331408978, -0.037980228662490845, 0.02256876975297928, 0.039077065885066986, 0.06852429360151291, 0.015234849415719509, 0.028406161814928055, -0.016954462975263596, -0.027402279898524284, 0.02784845046699047, -0.009955170564353466, -0.021843744441866875, 0.0006059315055608749, 0.0022099362686276436, -0.005237850826233625, 0.02169502153992653, 0.004385015461593866, -0.017047416418790817, 0.044170837849378586, -0.024557946249842644, 0.012734438292682171, -0.03251464664936066, 0.012660076841711998, -0.012334744445979595, -0.016731377691030502, 0.014723612926900387, -0.012604305520653725, 0.008421460166573524, -0.006976055447012186, -0.04573243483901024, 0.019835978746414185, -0.010587244294583797, -0.005795563571155071, 0.008021766319870949, -0.006553123239427805, 0.02379573881626129, 0.013478054665029049, -0.03755265101790428, -0.023479701951146126, 0.035303208976984024, -0.04309259355068207, -0.006441580597311258, 0.017456404864788055, -0.016703492030501366, 0.0022366598714143038, 0.008384279906749725, -0.045509349554777145, -0.007608129642903805, 0.047814562916755676, 0.02784845046699047, 0.03653017804026604, -0.045249082148075104, 0.028127307072281837, -0.05789056792855263, 0.022382866591215134, -0.04075020179152489, -0.00913719180971384, -0.05127238109707832, -0.018423106521368027, 0.0689704567193985, -0.028276029974222183, 0.0311017744243145, -0.027904221788048744, 0.005377279128879309, 0.015188373625278473, -0.037775736302137375, -0.06268689781427383, -0.045323446393013, -0.018079183995723724, 0.04141945764422417, 0.015857629477977753, -0.03684621304273605, -0.02340533956885338, -0.02784845046699047, -0.0017312329728156328, -0.07644380629062653, -0.017233319580554962, 0.04424520209431648, -0.010354864411056042, -0.019891750067472458, -0.029967758804559708, 0.03069278411567211, -0.005219260696321726, 0.04937615618109703, -0.04915307089686394, -0.04108482971787453, -0.04324131831526756, 0.016591951251029968, -0.01948276162147522, 0.02061677724123001, -0.019501350820064545, 0.02199246734380722, 0.023609833791851997, 0.019092362374067307, -0.02018919587135315, -0.00739898718893528, -0.00046069384552538395, -0.01081032957881689, 0.0704205110669136, -0.029335683211684227, 0.07090386748313904, -0.0808311477303505, 0.028238849714398384, 0.020412281155586243, -0.01417519524693489, -0.03534039109945297, 0.0038528647273778915, -0.09354699403047562, 0.014314623549580574, -0.016210846602916718, 0.01519766915589571, -0.05670078098773956, 0.03692057356238365, -0.03435509651899338, 0.007361806463450193, 0.015290620736777782, 0.0022099362686276436, 0.003397399326786399, 0.024093184620141983, 0.026268264278769493, -0.0014488908927887678, 0.0038342741318047047, 0.04272078722715378, 0.03500576317310333, 0.004338539205491543, -0.03719943016767502, 0.029335683211684227, 0.0013629102613776922, -0.0013059769989922643, 0.06019578129053116, -0.005953582003712654, 0.0032951519824564457, -0.0753655657172203, -0.018887868151068687, -0.005451641045510769, 0.06302152574062347, 0.0017579566920176148, -0.03587951138615608, -0.05476737767457962, -0.026156721636652946, 0.035228848457336426, 0.03632568195462227, 0.025896456092596054, -0.0009539209422655404, -0.05030567944049835, 0.0007378073059953749, 0.007608129642903805, -0.03221719712018967, 0.05413530394434929, 0.05372631549835205, 0.03039533831179142, 0.037143658846616745, 0.04982232674956322, 0.04948769882321358, -0.04075020179152489, 0.002097231801599264, 0.019631484523415565, -0.09875231236219406, 0.011405223049223423, 0.04223743453621864, 0.0029558767564594746, -0.06584727019071579, -0.02186233550310135, 0.06911918520927429, -0.06908199936151505, -0.011869983747601509, -0.029949167743325233, 0.019166722893714905, 0.007868395186960697, -0.00808683317154646, 0.04376184940338135, 0.013775501400232315, -0.045881159603595734, 0.03214283660054207, -0.013905634172260761, 0.0454721674323082, 0.052239082753658295, -0.02440922148525715, 0.02253158949315548, -0.035563476383686066, 0.05971243232488632, -0.028945283964276314, 0.028238849714398384, 0.00747334910556674, 0.027402279898524284, 0.036102596670389175, -0.03770137205719948, 0.016573360189795494, -0.040489934384822845, 0.047851741313934326, -0.013329331763088703, -0.05071466788649559, -0.00022076124150771648, -0.06789221614599228, -0.038407810032367706, -0.05149546638131142, 0.011210023425519466, -0.0226989034563303, -0.03286786377429962, 0.022178372368216515, -0.01571820117533207, 0.015402163378894329, -0.029149780049920082, 0.010605835355818272, 0.05064030736684799, 0.0096763139590621, 0.052536528557538986, -0.018841391429305077, -0.02028214931488037, 0.06328178942203522, -0.0193526279181242, -0.015987761318683624, 0.015820447355508804, -0.009211553260684013, -0.04097328707575798, 0.02387009933590889, -0.02052382379770279, 0.00974138081073761, 0.040861744433641434, -0.02078408934175968, 0.0160063523799181, -0.0420515313744545, 0.037441108375787735, -0.010364159010350704, -0.01759583316743374, -0.016907988116145134, 0.06488056480884552, -0.05272243171930313, 0.02052382379770279, -0.02637980692088604, 0.0001517733617220074, 0.022475818172097206, 0.01639675162732601, -0.015234849415719509, 0.06019578129053116, 0.053912218660116196, 0.04510036110877991, 0.014983879402279854, -0.04089892655611038, 0.032923635095357895, 0.030804326757788658, 0.06179455667734146, 0.019296856597065926, -0.037905868142843246, 0.052610889077186584, 0.05855982378125191, 0.034132011234760284, -0.07949263602495193, 0.015439344570040703, 0.01676855981349945, -0.05855982378125191, 0.015346392057836056, -0.037478286772966385, -0.015058240853250027, -0.08031062036752701, -0.01684292033314705, -0.006567066069692373, -0.025617599487304688, 0.028108716011047363, 0.015950581058859825, 0.0403040312230587, -0.017986232414841652, 0.03164089471101761, -0.021267442032694817, -0.00259801116771996, -0.00757559621706605, 0.025617599487304688, 0.0361211858689785, -0.02165783941745758, -0.014156605117022991, -0.01868337206542492, -0.010847510769963264, 0.015160487964749336, -0.0037692077457904816, 0.018915753811597824, 0.0724654570221901, 0.03541475161910057, 0.03595387190580368, -0.014100833795964718, 0.006980702746659517, -0.0033695136662572622, 0.04744275286793709, 0.033090949058532715, -0.039857860654592514, 0.028945283964276314, 0.027365099638700485, 0.05565971881151199, 0.03545193374156952, -0.04167972132563591, -0.028908103704452515, 0.0002069636684609577, 0.009248734451830387, 0.019426990300416946, -0.03333262354135513, -0.002818772569298744, -0.03684621304273605, -0.03515448421239853, 0.02554323710501194, 0.020077655091881752, 0.024632306769490242, 0.010354864411056042, -0.020635366439819336, 0.02725355699658394, 0.03989504277706146, 0.03169666603207588, -0.016080712899565697, -0.01676855981349945, -0.023423930630087852, 0.010931167751550674, -0.010150369256734848, 0.11005529016256332, 0.04272078722715378, -0.04309259355068207, 0.021583478897809982, 0.10566794872283936, -0.03483844920992851, -0.01337580755352974, 0.036678899079561234, 0.0402296707034111, 0.022773265838623047, 0.08774678409099579, -0.02838757261633873, 0.0361955501139164, -0.010094597935676575, 0.04870690032839775, -0.05476737767457962, 0.0063486285507678986, 0.047219667583703995, 0.0217879731208086, 0.07454758882522583, -0.0377199649810791, -0.027142014354467392 ]
20,455
metevolsim.metevolsim
Model
The Model class loads, saves and manipulates SBML models. Manipulations include kinetic parameter mutations, steady-state computing, metabolic control analysis (MCA), species shortest paths and flux-drop analysis. Some constraints exist on the SBML model format: - Species and reactions identifiers must be specified and unique. - Kinetic parameters must be specified (globally, and/or for each reaction). All kinetic parameters will be mutable. - The meta-identifiers are rebuilt automatically by MetEvolSim to avoid collisions. Attributes ---------- > sbml_filename : str Name of the SBML model file. > reader : libsbml.SBMLReader SBML model reader. > wild_type_document : libsbml.SBMLDocument SBML document of the wild-type model. > mutant_document : libsbml.SBMLDocument SBML document of the mutant model. > wild_type_model : libsbml.Model Wild-type model. > mutant_model : libsbml.Model Mutant model. > copasi_path: str Location of Copasi executable. > species : dict List of species. > parameters : dict List of kinetic parameters. > reactions : dict List of reactions. > species_graph: networkx.Graph A networkx Graph describing the metabolite-to-metabolite network. > objective_function : list of [str, float] Objective function (list of reaction identifiers and coefficients). > wild_type_absolute_sum : float Sum of evolvable metabolic absolute abundances in wild-type. > mutant_absolute_sum : float Sum of evolvable metabolic abundances in mutant. > absolute_sum_distance : float Distance between wild-type and mutant absolute metabolic sums. > absolute_moma_distance : float Distance between the wild-type and the mutant, based on the Minimization Of Metabolic Adjustment on absolute target fluxes. > relative_moma_distance : float Distance between the wild-type and the mutant, based on the Minimization Of Metabolic Adjustment on relative target fluxes. > absolute_moma_all_distance : float Distance between the wild-type and the mutant, based on the Minimization Of Metabolic Adjustment on ALL absolute fluxes. > relative_moma_all_distance : float Distance between the wild-type and the mutant, based on the Minimization Of Metabolic Adjustment on ALL relative fluxes. Methods ------- > __init__(sbml_filename, objective_function, copasi_path) Constructor. > rebuild_metaids() Rebuild unique metaids for all model variables. > build_species_list() Build the list of metabolites. > build_parameter_list() Build the list of parameters. > build_reaction_list() Build the list of reactions. > get_number_of_species() Get the number of species. > get_number_of_variable_species() Get the number of variable species. > get_number_of_parameters() Get the number of parameters. > get_number_of_reactions() Get the number of reactions. > get_wild_type_species_value(species_id) Get wild-type species value. > get_mutant_species_value(species_id) Get mutant species value. > get_wild_type_parameter_value(param_metaid) Get wild-type parameter value. > get_mutant_parameter_value(param_metaid) Get mutant parameter value. > set_species_initial_value(species_id, value) Set a species initial value. > set_wild_type_parameter_value(param_metaid, value) Set wild-type parameter value. > set_mutant_parameter_value(param_metaid, value) Set mutant parameter value. > get_random_parameter() Get a random parameter. > deterministic_parameter_mutation(param_metaid, factor) Make a deterministic parameter mutation by a given log-scale factor, centered on the wild-type value. > random_parameter_mutation(param_metaid, sigma) Make a random parameter mutation by a given log-scale mutation size sigma, centered on the previous mutant value. > write_list_of_variables() Write the list of variable names, identifiers and compartment in the file "output/variables.txt". > write_wild_type_SBML_file() Write wild-type SBML file. > write_mutant_SBML_file() Write mutant SBML file. > create_wild_type_cps_file() Create ancestor CPS file. > create_mutant_cps_file() Create mutant CPS file. > edit_wild_type_cps_file(task) Edit ancestor CPS file to schedule steady-state calculation. > edit_mutant_cps_file(task) Edit mutant CPS file to schedule steady-state calculation. > run_copasi_for_wild_type() Run Copasi for the wild-type model. > run_copasi_for_mutant() Run Copasi for the mutant model. > parse_copasi_output(filename, task) Parse Copasi output file. > compute_wild_type_steady_state() Compute wild-type steady-state. > compute_mutant_steady_state() Compute mutant steady-state. > update_initial_concentrations() Update species initial concentrations. > compute_sum_distance() Compute the metabolic sum distance between the wild-type and the mutant. > compute_moma_distance() Compute the MOMA distance between the wild-type and the mutant, based on target fluxes (MOMA: Minimization Of Metabolic Adjustment). > compute_wild_type_metabolic_control_analysis() Compute and save the wild-type metabolic control analysis (MCA). > compute_mutant_metabolic_control_analysis() Compute and save the mutant metabolic control analysis (MCA). > build_species_graph(): Build the metabolite-to-metabolite graph (mainly to compute shortest paths afterward). > save_shortest_paths(filename): Save the matrix of all pairwise metabolites shortest paths (assuming an undirected graph). > flux_drop_analysis(drop_coefficient, filename, overwrite): Run a flux-drop analysis. Each flux is independently dropped by a factor "drop_coefficient" and the relative MOMA distance from wild-type target fluxes is computed. The result is saved in a file "filename", one flux per line.
class Model: """ The Model class loads, saves and manipulates SBML models. Manipulations include kinetic parameter mutations, steady-state computing, metabolic control analysis (MCA), species shortest paths and flux-drop analysis. Some constraints exist on the SBML model format: - Species and reactions identifiers must be specified and unique. - Kinetic parameters must be specified (globally, and/or for each reaction). All kinetic parameters will be mutable. - The meta-identifiers are rebuilt automatically by MetEvolSim to avoid collisions. Attributes ---------- > sbml_filename : str Name of the SBML model file. > reader : libsbml.SBMLReader SBML model reader. > wild_type_document : libsbml.SBMLDocument SBML document of the wild-type model. > mutant_document : libsbml.SBMLDocument SBML document of the mutant model. > wild_type_model : libsbml.Model Wild-type model. > mutant_model : libsbml.Model Mutant model. > copasi_path: str Location of Copasi executable. > species : dict List of species. > parameters : dict List of kinetic parameters. > reactions : dict List of reactions. > species_graph: networkx.Graph A networkx Graph describing the metabolite-to-metabolite network. > objective_function : list of [str, float] Objective function (list of reaction identifiers and coefficients). > wild_type_absolute_sum : float Sum of evolvable metabolic absolute abundances in wild-type. > mutant_absolute_sum : float Sum of evolvable metabolic abundances in mutant. > absolute_sum_distance : float Distance between wild-type and mutant absolute metabolic sums. > absolute_moma_distance : float Distance between the wild-type and the mutant, based on the Minimization Of Metabolic Adjustment on absolute target fluxes. > relative_moma_distance : float Distance between the wild-type and the mutant, based on the Minimization Of Metabolic Adjustment on relative target fluxes. > absolute_moma_all_distance : float Distance between the wild-type and the mutant, based on the Minimization Of Metabolic Adjustment on ALL absolute fluxes. > relative_moma_all_distance : float Distance between the wild-type and the mutant, based on the Minimization Of Metabolic Adjustment on ALL relative fluxes. Methods ------- > __init__(sbml_filename, objective_function, copasi_path) Constructor. > rebuild_metaids() Rebuild unique metaids for all model variables. > build_species_list() Build the list of metabolites. > build_parameter_list() Build the list of parameters. > build_reaction_list() Build the list of reactions. > get_number_of_species() Get the number of species. > get_number_of_variable_species() Get the number of variable species. > get_number_of_parameters() Get the number of parameters. > get_number_of_reactions() Get the number of reactions. > get_wild_type_species_value(species_id) Get wild-type species value. > get_mutant_species_value(species_id) Get mutant species value. > get_wild_type_parameter_value(param_metaid) Get wild-type parameter value. > get_mutant_parameter_value(param_metaid) Get mutant parameter value. > set_species_initial_value(species_id, value) Set a species initial value. > set_wild_type_parameter_value(param_metaid, value) Set wild-type parameter value. > set_mutant_parameter_value(param_metaid, value) Set mutant parameter value. > get_random_parameter() Get a random parameter. > deterministic_parameter_mutation(param_metaid, factor) Make a deterministic parameter mutation by a given log-scale factor, centered on the wild-type value. > random_parameter_mutation(param_metaid, sigma) Make a random parameter mutation by a given log-scale mutation size sigma, centered on the previous mutant value. > write_list_of_variables() Write the list of variable names, identifiers and compartment in the file "output/variables.txt". > write_wild_type_SBML_file() Write wild-type SBML file. > write_mutant_SBML_file() Write mutant SBML file. > create_wild_type_cps_file() Create ancestor CPS file. > create_mutant_cps_file() Create mutant CPS file. > edit_wild_type_cps_file(task) Edit ancestor CPS file to schedule steady-state calculation. > edit_mutant_cps_file(task) Edit mutant CPS file to schedule steady-state calculation. > run_copasi_for_wild_type() Run Copasi for the wild-type model. > run_copasi_for_mutant() Run Copasi for the mutant model. > parse_copasi_output(filename, task) Parse Copasi output file. > compute_wild_type_steady_state() Compute wild-type steady-state. > compute_mutant_steady_state() Compute mutant steady-state. > update_initial_concentrations() Update species initial concentrations. > compute_sum_distance() Compute the metabolic sum distance between the wild-type and the mutant. > compute_moma_distance() Compute the MOMA distance between the wild-type and the mutant, based on target fluxes (MOMA: Minimization Of Metabolic Adjustment). > compute_wild_type_metabolic_control_analysis() Compute and save the wild-type metabolic control analysis (MCA). > compute_mutant_metabolic_control_analysis() Compute and save the mutant metabolic control analysis (MCA). > build_species_graph(): Build the metabolite-to-metabolite graph (mainly to compute shortest paths afterward). > save_shortest_paths(filename): Save the matrix of all pairwise metabolites shortest paths (assuming an undirected graph). > flux_drop_analysis(drop_coefficient, filename, overwrite): Run a flux-drop analysis. Each flux is independently dropped by a factor "drop_coefficient" and the relative MOMA distance from wild-type target fluxes is computed. The result is saved in a file "filename", one flux per line. """ ### Constructor ### def __init__( self, sbml_filename, objective_function, copasi_path ): """ Model class constructor. Parameters ---------- sbml_filename : str Path of the SBML model file. The SBML model is automatically loaded. objective_function : list of [str, float] Objective function (list of reaction identifiers and coefficients). copasi_path : str Location of Copasi executable. Returns ------- None """ assert os.path.isfile(sbml_filename), "The SBML file \""+sbml_filename+"\" does not exist. Exit." assert os.path.isfile(copasi_path), "The executable \""+copasi_path+"\" does not exist. Exit." #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Main SBML data # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.sbml_filename = sbml_filename self.reader = libsbml.SBMLReader() self.wild_type_document = self.reader.readSBMLFromFile(self.sbml_filename) self.mutant_document = self.reader.readSBMLFromFile(self.sbml_filename) self.wild_type_model = self.wild_type_document.getModel() self.mutant_model = self.mutant_document.getModel() self.copasi_path = copasi_path #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) List of model variables (species, reactions, parameters) # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.species = {} self.parameters = {} self.reactions = {} self.rebuild_metaids
(sbml_filename, objective_function, copasi_path)
[ 0.05623481422662735, -0.01968630775809288, -0.017501231282949448, 0.02498408779501915, 0.004367577377706766, -0.057760246098041534, -0.0662531852722168, 0.012234370224177837, 0.012811560183763504, -0.02331436052918434, -0.09672058373689651, 0.006524310447275639, 0.004388191271573305, 0.06781984120607376, -0.02620031125843525, 0.034837547689676285, -0.003561057150363922, 0.003043132135644555, 0.029725292697548866, 0.0022958768531680107, -0.027684513479471207, 0.0028988346457481384, -0.022263050079345703, 0.05038045719265938, 0.030941516160964966, -0.00479016313329339, 0.023396816104650497, 0.010518260300159454, 0.028117407113313675, -0.027931882068514824, 0.008724847808480263, -0.032198965549468994, 0.004290275275707245, -0.0015292962780222297, 0.022819625213742256, -0.040526993572711945, 0.029601609334349632, 0.04757696017622948, -0.07565314322710037, -0.008188885636627674, 0.023870935663580894, -0.013553662225604057, 0.046793632209300995, -0.039516910910606384, -0.004401075188070536, 0.03370378166437149, -0.04992694780230522, 0.11444856226444244, -0.004622675012797117, -0.009631861001253128, -0.01321353204548359, -0.020201655104756355, -0.017954736948013306, 0.03578579053282738, -0.06423301994800568, 0.009430875070393085, -0.0021167933009564877, 0.07449875771999359, 0.1089240312576294, -0.024922246113419533, 0.0426708459854126, 0.03450772538781166, 0.030755991116166115, -0.06608827412128448, 0.013295987620949745, -0.002970983274281025, -0.018222717568278313, -0.007637462578713894, -0.00796213187277317, 0.044938378036022186, -0.028179248794913292, -0.03939322754740715, 0.05347254499793053, 0.04650503769516945, 0.04712345451116562, -0.049267303198575974, -0.019562624394893646, -0.05157606303691864, -0.01796504482626915, -0.0475357323884964, 0.0017496077343821526, 0.0029349089600145817, -0.029065648093819618, -0.07676628977060318, -0.037826571613550186, 0.0072457981295883656, 0.08583642542362213, 0.018088728189468384, 0.004710284061729908, -0.014182386919856071, -0.06435670703649521, 0.031353794038295746, 0.008384717628359795, 0.038857266306877136, 0.025045931339263916, 0.01168810110539198, -0.006776831112802029, -0.09688549488782883, 0.011945774778723717, -0.041928742080926895, -0.03465202450752258, 0.021077748388051987, -0.001646538032218814, 0.007189109455794096, -0.02007797174155712, -0.018892670050263405, -0.045969072729349136, 0.016047947108745575, -0.007446784060448408, -0.0555751658976078, -0.11428365111351013, 0.04427872970700264, -0.025891100987792015, -0.028055565431714058, -0.008606317453086376, -0.050462912768125534, -0.002574165118858218, 0.022448575124144554, -0.006936588790267706, -0.01644991897046566, -0.018068114295601845, 0.015130627900362015, -0.05949181318283081, 0.0379914827644825, 0.04013533145189285, 0.06147075444459915, 0.03691955655813217, 0.01338875014334917, 0.039661210030317307, -0.06918036192655563, -0.07688997685909271, -0.053719911724328995, 0.0013218685053288937, 0.037641044706106186, 0.0002848910226020962, -0.042753301560878754, -0.028344159945845604, -0.046175211668014526, -0.022056909278035164, 0.049019936472177505, 0.03430158644914627, 0.019552316516637802, 0.01571812480688095, -0.050421684980392456, -0.04605152830481529, -0.03617745637893677, -0.009817386046051979, -0.07416893541812897, -0.08723817020654678, -0.031209496781229973, -0.03028186969459057, -0.004558256361633539, -0.03755858913064003, -0.00019406086357776076, -0.036630962044000626, 0.01338875014334917, 0.016810663044452667, -0.0336831696331501, 0.029890205711126328, 0.008446559309959412, -0.055946219712495804, -0.019789377227425575, 0.014532824046909809, 0.026035400107502937, -0.04242347553372383, -0.016398385167121887, -0.01399686187505722, -0.038857266306877136, -0.042753301560878754, 0.03634236752986908, -0.04143400862812996, -0.032157737761735916, -0.07470490038394928, 0.014780190773308277, -0.012069459073245525, 0.07688997685909271, 0.02659197524189949, -0.005375083535909653, 0.043783996254205704, -0.01340936403721571, -0.013677345588803291, -0.042918212711811066, -0.04242347553372383, 0.019036969169974327, -0.01472865603864193, 0.03327089175581932, -0.008632085286080837, -0.0009637014591135085, 0.08229082822799683, 0.020242882892489433, 0.05462692677974701, -0.019016355276107788, 0.014924488961696625, 0.04732959344983101, 0.004321196116507053, 0.005349316168576479, 0.052070800215005875, -0.021706473082304, 0.009075284935534, 0.023046378046274185, 0.020758232101798058, -0.023829707875847816, 0.022819625213742256, -0.017697062343358994, -0.015470758080482483, 0.004259354434907436, -0.01035850215703249, 0.028055565431714058, -0.05722428113222122, -0.0011543803848326206, -0.012213756330311298, -0.007889983244240284, 0.05153483524918556, -0.011492268182337284, 0.0836513489484787, -0.11989064514636993, 0.02764328569173813, -0.0016323659801855683, 0.0032209272030740976, 0.001085452502593398, 0.043783996254205704, -0.0017689332598820329, -0.04481469467282295, 0.03393053635954857, -0.04877256974577904, 0.028096793219447136, -0.011523189023137093, 0.0383625328540802, 0.022056909278035164, -0.04732959344983101, 0.007658076472580433, -0.04361908510327339, 0.004367577377706766, -0.013636117801070213, -0.0034167596604675055, -0.017408467829227448, -0.022242436185479164, 0.08723817020654678, -0.058997079730033875, -0.014986330643296242, -0.027725741267204285, -0.054297104477882385, 0.0030792064499109983, -0.002029184252023697, -0.006519156973809004, -0.025911714881658554, 0.08381626009941101, -0.00015202777285594493, -0.05945058539509773, -0.0284472294151783, 0.07227245718240738, 0.012471430003643036, -0.008364103734493256, 0.04897870868444443, -0.013069234788417816, -0.03485816344618797, -0.03127133846282959, 0.0024182721972465515, 0.04104234278202057, -0.05503920465707779, -0.01987183280289173, -0.03815639391541481, 0.030323097482323647, 0.0930100753903389, -0.05223571136593819, 0.01743938773870468, -0.026674430817365646, 0.044732239097356796, -0.014563744887709618, -0.01927402801811695, 0.08064170926809311, 0.07812681049108505, -0.05000940337777138, 0.018913285806775093, -0.0479067824780941, -0.044526100158691406, -0.009394800290465355, -0.026097241789102554, -0.04087743163108826, 0.015821194276213646, 0.01032242737710476, -0.0015499101718887687, 0.06637687236070633, -0.008090969175100327, 0.01290432270616293, -0.04021778702735901, -0.018913285806775093, 0.0003188718110322952, -0.008905219845473766, 0.005104525480419397, -0.011213980615139008, 0.005519380792975426, 0.021170509979128838, -0.02032534033060074, 0.06695406138896942, -0.032363876700401306, -0.05318395048379898, 0.019150344654917717, 0.030384939163923264, -0.05994532257318497, 0.022407347336411476, -0.007900290191173553, 0.10290475934743881, -0.003813577815890312, -0.035641491413116455, -0.005905892234295607, 0.051287468522787094, -0.025726189836859703, 0.01167779415845871, 0.04003226011991501, 0.02516961470246315, 0.009193814359605312, 0.04572170600295067, 0.061017245054244995, 0.023891549557447433, -0.003818731289356947, -0.010750167071819305, -0.01682097092270851, 0.0613882951438427, 0.07985838502645493, 0.006148105952888727, -0.039661210030317307, 0.03669280186295509, 0.022469189018011093, 0.018686531111598015, -0.06955141574144363, 0.0035095224156975746, -0.017109565436840057, -0.01056464109569788, -0.0205830130726099, -0.010373962111771107, -0.005416311323642731, 0.01867622509598732, 0.0012117128353565931, 0.018727758899331093, 0.008724847808480263, -0.031209496781229973, -0.02046963758766651, 0.0645628422498703, -0.0499681755900383, 0.07651892304420471, 0.025499437004327774, -0.018222717568278313, 0.004321196116507053, 0.029168717563152313, -0.024221373721957207, 0.02062424086034298, -0.020047051832079887, -0.036424823105335236, 0.010425497777760029, -0.010296660475432873, 0.06716019660234451, -0.0082352664321661, 0.05681200325489044, 0.028550298884510994, 0.003903763834387064, -0.022036295384168625, -0.03588885813951492, -0.011605645529925823, -0.0054214647971093655, 0.031168268993496895, 0.009765851311385632, -0.018614383414387703, 0.007256105076521635, 0.032363876700401306, -0.038300689309835434, -0.032178353518247604, 0.012749718502163887, 0.03634236752986908, -0.06814967095851898, 0.021252965554594994, -0.02314944937825203, -0.006529463920742273, -0.04934975877404213, 0.019263722002506256, 0.029745906591415405, -0.00594196654856205, 0.011007840745151043, -0.04308312386274338, -0.015130627900362015, 0.03465202450752258, 0.006838672794401646, -0.025952942669391632, 0.03022002801299095, 0.019768763333559036, -0.027766969054937363, 0.051699746400117874, 0.009518484584987164, -0.0340542197227478, 0.019531702622771263, 0.0552041158080101, -0.014800804667174816, -0.0003813577932305634, -0.002733923029154539, 0.017583686858415604, -0.022654714062809944, 0.044938378036022186, 0.03351825848221779, -0.023273132741451263, -0.03203405439853668, 0.020912837237119675, -0.08831009268760681, -0.023644182831048965, 0.0548330657184124, -0.019943982362747192, -0.04124848172068596, 0.01399686187505722, 0.03916647657752037, -0.045391883701086044, 0.0686856284737587, 0.02436567097902298, -0.005073604639619589, -0.025293298065662384, 0.015089400112628937, -0.026488905772566795, 0.004030024167150259, 0.028261704370379448, -0.01422361470758915, 0.018140261992812157, 0.009229889139533043, 0.024613037705421448, 0.036651574075222015, 0.10109073668718338, 0.020479943603277206, 0.0021734817419201136, 0.012718797661364079, -0.01523369736969471, 0.016367463394999504, -0.051699746400117874, 0.02397400513291359, -0.04120725393295288, 0.009631861001253128, -0.00699843093752861, -0.013883484527468681, -0.0036615501157939434, -0.03580640256404877, -0.02475733496248722, -0.06448038667440414, 0.004334079567342997, 0.031539320945739746, 0.02516961470246315, -0.0014970869524404407, 0.013069234788417816, -0.03244633227586746, -0.06864440441131592, 0.015707818791270256, -0.03289983794093132, 0.048030465841293335, -0.006256328895688057, 0.010090520605444908, -0.00796213187277317, 0.02716916613280773, 0.04075374826788902, -0.00042612868128344417, 0.004496414680033922, -0.016398385167121887, 0.012131300754845142, -0.037063855677843094, -0.008693926967680454, -0.035620879381895065, -0.012749718502163887, -0.004251623991876841, 0.030158186331391335, 0.014996637590229511, 0.0048056235536932945, 0.03576517477631569, 0.05235939472913742, -0.0070757330395281315, -0.04102173075079918, -0.02211875095963478, -0.011481961235404015, -0.023252518847584724, 0.007864216342568398, -0.04530942812561989, -0.0034734478686004877, -0.015687204897403717, -0.039063405245542526, -0.01635715737938881, -0.02984897792339325, -0.05565762147307396, 0.05809006839990616, -0.07099439203739166, -0.03615684062242508, 0.03984673693776131, -0.009822539985179901, -0.02819986268877983, 0.07289087027311325, -0.07383911311626434, 0.04221733659505844, -0.07837417721748352, -0.04836029186844826, 0.0013295988319441676, 0.05627604201436043, 0.007544700056314468, -0.025911714881658554, 0.05710059776902199, -0.02615908347070217, 0.012821867130696774, 0.020428409799933434, -0.0520295724272728, -0.0017637797864153981, 0.019511088728904724, -0.06353214383125305, 0.007297332864254713, 0.011997309513390064, 0.007678690832108259, -0.05936812981963158, -0.04073313623666763, -0.006534617394208908, -0.07977592945098877, -0.031147655099630356, -0.08831009268760681, 0.036053773015737534, 0.0023319514002650976, -0.011110911145806313, -0.01596549153327942, -0.012677569873631, 0.039290159940719604, 0.002223728224635124, 0.003007057588547468, 0.018913285806775093, -0.06349091976881027, -0.0029349089600145817, 0.007080886512994766, -0.007343714125454426, 0.0026463137473911047, -0.029086261987686157, -0.019943982362747192, 0.04001164808869362, 0.016192246228456497, 0.004205242730677128, -0.024613037705421448, -0.005447232164442539, 0.05730673670768738, 0.03980550915002823, -0.0049086930230259895, 0.0860837921500206, -0.03355948626995087, 0.008848531171679497, -0.0015679474454373121, -0.02069639042019844, 0.01339905709028244, 0.0013437708839774132, 0.0021142165642231703, 0.03044678084552288, -0.017954736948013306, 0.021850770339369774, 0.010595561936497688, -0.028302932158112526, -0.004339233040809631, -0.016790049150586128, 0.00959063321352005, -0.04186690226197243, 0.0213354229927063, 0.09391708672046661, -0.029477925971150398, 0.02764328569173813, 0.0003462496679276228, 0.027952495962381363, 0.03246694803237915, -0.012718797661364079, -0.017202328890562057, 0.03314720839262009, -0.04836029186844826, 0.019943982362747192, 0.07404525578022003, -0.02415953204035759, -0.02900380641222, -0.02537575364112854, -0.030384939163923264, 0.026282766833901405, 0.017470309510827065, 0.0451032891869545, 0.027086710557341576, -0.03129195421934128, -0.008312568999826908, -0.013605196960270405, 0.05850234627723694, -0.043371718376874924, -0.016068562865257263, 0.0641917884349823, 0.0409805029630661, 0.005622450727969408, 0.015800580382347107, 0.04737082123756409, 0.018325787037611008, -0.010157516226172447, 0.06126461178064346, 0.02393277734518051, 0.0015898497076705098, 0.013873177580535412, 0.06740756332874298, -0.008425945416092873, -0.04361908510327339, -0.02378848008811474, 0.03269369900226593, 0.015728432685136795, -0.04201119765639305, 0.029890205711126328, 0.03024064190685749, -0.0593269020318985, -0.027066096663475037, 0.023066991940140724, 0.0011653314577415586, -0.003610015381127596, -0.013965941034257412, 0.019170958548784256, 0.018820522353053093, 0.02335558831691742, 0.012656955979764462, 0.008853685110807419, 0.004885502625256777, -0.022881466895341873, -0.043536629527807236, -0.057925157248973846, -0.050462912768125534, -0.02663320302963257, 0.014635893516242504, 0.055740077048540115, -0.06992246955633163, 0.0015898497076705098, -0.024633651599287987, -0.01552229281514883, -0.007920904085040092, -0.04104234278202057, 0.011471654288470745, -0.035023074597120285, -0.06938650459051132, -0.005627604201436043, -0.04141339287161827, 0.03384808078408241, -0.04225856438279152, 0.031951598823070526, 0.0005008541629649699, 0.05586376413702965, 0.009492716751992702, 0.03815639391541481, 0.0017006496200338006, -0.03774411231279373, 0.07800313085317612, 0.03164238855242729, -0.03065291978418827, 0.010853236541152, 0.015388302505016327, -0.0451032891869545, 0.02296392247080803, 0.010904771275818348, -0.03875419870018959, 0.03376562520861626, 0.015398609451949596, -0.05013309046626091, 0.0499681755900383, -0.0604400560259819, -0.041330937296152115, 0.024035846814513206, -0.03640420734882355, -0.018645303323864937, -0.022386733442544937, -0.008245573379099369, -0.004792739637196064, -0.016532374545931816, -0.008601164445281029, 0.051658518612384796, -0.029890205711126328, -0.00859085749834776, -0.025293298065662384, 0.03085906058549881, 0.000475730950711295, 0.049432214349508286, 0.0728084146976471, -0.0035559036768972874, -0.011554109863936901, -0.0025033047422766685, -0.010945999063551426, -0.015872729942202568, -0.000578478560782969, 0.0404239259660244, 0.029168717563152313, 0.0036770105361938477, 0.0021902306471019983, 0.06349091976881027, 0.07194263488054276, 0.015285232104361057, -0.016944654285907745, 0.05223571136593819, 0.016089176759123802, -0.008611471392214298, 0.007859062403440475, 0.00427223788574338, -0.0165632963180542, -0.025911714881658554, 0.024262601509690285, 0.012914629653096199, -0.010605868883430958, 0.008894912898540497, 0.00903921015560627, -0.03531166911125183, -0.019438941031694412, -0.005119985900819302, 0.004833967424929142, 0.022902080789208412, 0.01991306059062481, -0.024468740448355675, 0.037867799401283264, 0.007142728194594383, 0.022263050079345703, -0.044361185282468796, 0.027127938345074654, -0.005807976238429546, -0.013522741384804249, 0.057760246098041534, 0.07066456973552704, 0.029168717563152313, -0.027560830116271973, 0.019150344654917717, -0.014563744887709618, 0.0010184572311118245, 0.05000940337777138, -0.01748061738908291, -0.013265066780149937, 0.004367577377706766, -0.0035636338870972395, 0.0797346979379654, -0.026756886392831802, 0.024427512660622597, -0.020407795906066895, -0.005114832427352667, -0.041104186326265335, 0.04036208242177963, -0.008173424750566483, 0.026076627895236015, 0.04184628650546074, -0.03941384330391884, 0.0024955745320767164, 0.032796770334243774, -0.07800313085317612, 0.045969072729349136, 0.018799908459186554, -0.02968406490981579, 0.04283575713634491, -0.0028421462047845125, -0.03228142112493515, -0.04141339287161827, -0.009518484584987164, -0.06443916261196136, 0.05648218095302582, 0.02174770087003708, 0.004241317044943571, 0.009637014009058475, 0.009430875070393085, 0.07293210178613663, -0.01289401575922966, 0.0072457981295883656, -0.00309724360704422, 0.058337435126304626, -0.006318171042948961, 0.03473448008298874, 0.004702553618699312, -0.00594196654856205, -0.08130136132240295, 0.014532824046909809, -0.03937261551618576, 0.042753301560878754, 0.04671117663383484, 0.03607438504695892, 0.04980326443910599, -0.04708222672343254, 0.010616175830364227 ]
20,456
metevolsim.metevolsim
__init__
Model class constructor. Parameters ---------- sbml_filename : str Path of the SBML model file. The SBML model is automatically loaded. objective_function : list of [str, float] Objective function (list of reaction identifiers and coefficients). copasi_path : str Location of Copasi executable. Returns ------- None
def __init__( self, sbml_filename, objective_function, copasi_path ): """ Model class constructor. Parameters ---------- sbml_filename : str Path of the SBML model file. The SBML model is automatically loaded. objective_function : list of [str, float] Objective function (list of reaction identifiers and coefficients). copasi_path : str Location of Copasi executable. Returns ------- None """ assert os.path.isfile(sbml_filename), "The SBML file \""+sbml_filename+"\" does not exist. Exit." assert os.path.isfile(copasi_path), "The executable \""+copasi_path+"\" does not exist. Exit." #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Main SBML data # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.sbml_filename = sbml_filename self.reader = libsbml.SBMLReader() self.wild_type_document = self.reader.readSBMLFromFile(self.sbml_filename) self.mutant_document = self.reader.readSBMLFromFile(self.sbml_filename) self.wild_type_model = self.wild_type_document.getModel() self.mutant_model = self.mutant_document.getModel() self.copasi_path = copasi_path #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) List of model variables (species, reactions, parameters) # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.species = {} self.parameters = {} self.reactions = {} self.rebuild_metaids() self.build_species_list() self.build_parameter_list() self.build_reaction_list() self.replace_variable_names() self.write_list_of_variables() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Graph analysis # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.species_graph = nx.Graph() self.species_to_reaction = {} #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 4) Model evaluation # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.objective_function = objective_function self.wild_type_absolute_sum = 0.0 self.mutant_absolute_sum = 0.0 self.absolute_sum_distance = 0.0 self.absolute_moma_distance = 0.0 self.relative_moma_distance = 0.0 self.absolute_moma_all_distance = 0.0 self.relative_moma_all_distance = 0.0 for target_flux in objective_function: assert target_flux[0] in self.reactions
(self, sbml_filename, objective_function, copasi_path)
[ 0.050382960587739944, -0.011031237430870533, 0.01329328864812851, 0.029994601383805275, 0.025689728558063507, -0.038963086903095245, -0.0820317491889, -0.007105033379048109, 0.024892529472708702, 0.0021362435072660446, -0.0644136592745781, 0.04683542624115944, -0.01417020708322525, 0.061065420508384705, -0.05309343338012695, 0.03661135211586952, 0.0008258480229415, 0.00936210248619318, 0.0102539686486125, 0.023915961384773254, -0.03874385729432106, -0.0050547379069030285, -0.0445634089410305, 0.06485211849212646, 0.03354213759303093, -0.0026207908522337675, 0.024792879819869995, 0.015535409562289715, 0.01061270758509636, -0.028818733990192413, -0.022301634773612022, -0.03974035754799843, -0.012525985017418861, -0.0008831467130221426, 0.027941815555095673, -0.04117531329393387, 0.02845999412238598, 0.02674601785838604, -0.09869319945573807, 0.00915283802896738, 0.018026655539870262, -0.014857791364192963, 0.04671584442257881, -0.0035500256344676018, -0.0332830473780632, -0.003981010988354683, -0.07023320347070694, 0.08848905563354492, -0.017468616366386414, -0.004823052324354649, -0.026227837428450584, -0.040557485073804855, 0.00917774997651577, 0.031569067388772964, -0.0638556182384491, 0.04276971146464348, 0.0007043998339213431, 0.09542468935251236, 0.08103524893522263, -0.034897372126579285, 0.03210717812180519, 0.034179896116256714, 0.0283404141664505, -0.047353602945804596, 0.01323349867016077, 0.014887685887515545, -0.03639212250709534, 0.0014511507470160723, -0.0043696453794837, 0.040976013988256454, 0.006955558899790049, -0.008126444183290005, 0.050821419805288315, 0.026367347687482834, 0.06919685006141663, -0.03972042724490166, -0.02618797868490219, -0.05185777693986893, 0.000333204137859866, -0.019571227952837944, 0.0026631420478224754, -0.005904253106564283, -0.026825737208127975, -0.06676539033651352, -0.04587878659367561, -0.004646173678338528, 0.09048205614089966, 0.011439801193773746, 0.01489765103906393, 0.0018397851381450891, -0.05939130485057831, 0.03758791834115982, 0.003966063726693392, 0.005814568139612675, 0.04743332415819168, 0.03862427920103073, 0.017598161473870277, -0.09494636952877045, 0.05141931772232056, -0.05317315459251404, -0.036651212722063065, 0.05058225989341736, -0.025271199643611908, 0.005575408693403006, -0.02802153490483761, -0.00944182276725769, -0.011011307127773762, 0.004030835814774036, 0.005734848324209452, -0.04043790325522423, -0.10578826814889908, 0.06030808389186859, 0.004040800966322422, 0.007962021976709366, -0.03160892799496651, -0.05851438641548157, -0.017159702256321907, 0.025789378210902214, 0.014439261518418789, -0.004830526188015938, -0.008255989290773869, 0.021325064823031425, -0.0506221167743206, 0.07433877885341644, 0.027981674298644066, 0.05564447119832039, 0.04607808589935303, 0.00567007577046752, 0.02744356542825699, -0.06110528111457825, -0.04133475199341774, -0.06485211849212646, -0.0006175176240503788, 0.0451214462518692, 0.008878801017999649, -0.04348719120025635, -0.049227021634578705, -0.050103940069675446, -0.010782112367451191, 0.053970351815223694, 0.052256375551223755, 0.00314644374884665, 0.018385395407676697, -0.046476684510707855, -0.05624236911535263, 0.02096632681787014, -0.01437947154045105, -0.03427954390645027, -0.07310312241315842, -0.03459842503070831, -0.01162913627922535, 0.013303253799676895, -0.049785058945417404, -0.02561000920832157, -0.013123883865773678, -0.008141391910612583, 0.019272278994321823, -0.04723402485251427, 0.03194773942232132, -0.0022745076566934586, -0.0740199014544487, 0.0022844725754112005, 0.016442224383354187, 0.0019182594260200858, -0.027662795037031174, -0.014827895909547806, -0.01618313416838646, -0.04771234467625618, -0.0337015762925148, 0.02688552625477314, -0.06812062859535217, -0.06349688023328781, -0.10594771057367325, 0.004947614390403032, -0.02297925390303135, 0.05998920276761055, 0.01812630519270897, 0.02066737599670887, 0.031748440116643906, 0.02003958262503147, -0.022939393296837807, -0.0386442095041275, -0.04125503450632095, -0.000629039597697556, -0.0228397436439991, 0.02445407025516033, 0.018754100427031517, -0.0034080245532095432, 0.05684026703238487, 0.0143097173422575, 0.04990464076399803, 0.011150817386806011, 0.0084253940731287, 0.06644651293754578, 0.020767027512192726, -0.014010767452418804, 0.057318586856126785, -0.025410709902644157, -0.023517362773418427, 0.035774294286966324, 0.019082944840192795, -0.002867424162104726, 0.02182331494987011, -0.008724343031644821, -0.031329911202192307, 0.00094916473608464, -0.03441905602812767, 0.060626961290836334, -0.05783676728606224, 0.0006508380174636841, -0.00697050616145134, -0.011300291866064072, 0.0740199014544487, -0.00896848551928997, 0.07083110511302948, -0.06537029147148132, 0.02210233360528946, 0.0029994600918143988, 0.0028649328742176294, -0.018594659864902496, 0.016173169016838074, -0.013980872929096222, -0.0394812673330307, 0.014339611865580082, -0.046755705028772354, 0.018026655539870262, 0.01162913627922535, 0.02836034446954727, 0.012994338758289814, -0.023357922211289406, 0.007468755356967449, -0.04846968129277229, 0.03832532837986946, -0.021145695820450783, 0.015067055821418762, -0.005630216095596552, -0.01466845627874136, 0.10833930224180222, -0.08394502848386765, -0.009058170020580292, -0.03396066650748253, -0.05959060415625572, -0.004902772139757872, -0.03702988103032112, 0.004803122486919165, -0.0155453747138381, 0.1061868667602539, -0.02170373499393463, -0.07613247632980347, -0.04109559208154678, 0.06293883919715881, 0.0035649731289595366, -0.02429463155567646, 0.03800644725561142, -0.00499245710670948, -0.06804090738296509, -0.035774294286966324, -0.006098570302128792, 0.04655640572309494, -0.06110528111457825, -0.010831937193870544, -0.014638561755418777, 0.029715582728385925, 0.0729038193821907, -0.05931158363819122, 0.005346213933080435, -0.04440397024154663, 0.05405007302761078, 0.01667141728103161, -0.02357715182006359, 0.10443302989006042, 0.06588847190141678, -0.041414473205804825, 0.03748827055096626, -0.048948001116514206, -0.018026655539870262, -0.016800962388515472, -0.019242383539676666, -0.03049285151064396, 0.027662795037031174, 0.012366545386612415, -0.003998450003564358, 0.03956098482012749, 0.021205486729741096, -0.0020390849094837904, -0.03224668651819229, -0.012027735821902752, -0.016771068796515465, 0.0013764133909717202, -0.021344995126128197, -0.0007218384998850524, 0.03180822730064392, 0.03904280811548233, -0.00828588381409645, 0.06784161180257797, -0.014509016647934914, -0.010582813061773777, 0.010722322389483452, 0.02718447707593441, -0.013392938300967216, 0.03007432073354721, -0.031309980899095535, 0.09709880501031876, -0.029994601383805275, -0.05074169859290123, -0.009566384367644787, 0.049665480852127075, 0.0050547379069030285, 0.01531617995351553, 0.03754806146025658, 0.03236626833677292, 0.03212710842490196, 0.06592833250761032, 0.06433393806219101, -0.0031414611730724573, 0.02138485573232174, -0.008694448508322239, -0.04189279302954674, 0.06812062859535217, 0.07501640170812607, -0.0068160491064190865, -0.01113088708370924, 0.036352261900901794, 0.006013867910951376, 0.012346615083515644, -0.027563145384192467, -0.0023791398853063583, -0.013452728278934956, 0.01590411365032196, -0.023357922211289406, -0.011768646538257599, 0.005954077932983637, 0.013173708692193031, -0.006442361976951361, 0.0155453747138381, 0.008734308183193207, -0.01798679679632187, -0.002019154839217663, 0.043287891894578934, -0.03786693885922432, 0.06461295485496521, 0.03443898633122444, -0.007080120965838432, 0.003353217151015997, 0.04340746998786926, -0.015455690212547779, -0.024035541340708733, -0.0346781425178051, -0.05951088294386864, -0.00762321287766099, -0.0330040268599987, 0.06608777493238449, -0.006776188965886831, 0.0641346350312233, 0.0029247228521853685, 0.04536060616374016, -0.01387125812470913, -0.01884378492832184, 0.013612167909741402, -0.016960402950644493, 0.011798541061580181, -0.010129406116902828, -0.04480256885290146, 0.017418792471289635, 0.02299918234348297, -0.054568253457546234, -0.010493128560483456, 0.020786955952644348, 0.045599766075611115, -0.0517381951212883, 0.00265317689627409, -0.024354420602321625, -0.03212710842490196, -0.05763746798038483, 0.01331321895122528, 0.03276486694812775, -0.00877416878938675, -0.007678020279854536, -0.0015395900700241327, -0.04217181354761124, 0.013392938300967216, 0.017398862168192863, -0.02790195494890213, 0.018983295187354088, 0.011948015540838242, -0.04747318476438522, 0.03631240129470825, 0.03276486694812775, 0.007114998530596495, 0.02413519099354744, 0.0522962361574173, -0.026486927643418312, 0.03645190969109535, -0.02054779604077339, 0.012137350626289845, -0.02180338464677334, 0.0717877447605133, 0.03942147642374039, -0.05743816867470741, -0.004648664966225624, -0.0012854828964918852, -0.07230592519044876, -0.030911380425095558, 0.047911643981933594, -0.018046585842967033, -0.02774251624941826, -0.006327764596790075, 0.038803648203611374, -0.020488006994128227, 0.06026822328567505, 0.03700995072722435, -0.019132768735289574, -0.003465323243290186, -0.016960402950644493, -0.06309828162193298, -0.007249525748193264, 0.029596002772450447, -0.007189735770225525, 0.02459358051419258, 0.00017423152166884392, 0.03324318677186966, 0.04643682390451431, 0.08322754502296448, 0.034339334815740585, -0.009735789149999619, 0.01953136920928955, -0.004257539287209511, 0.009202662855386734, -0.044882286339998245, 0.02473309077322483, -0.07433877885341644, -0.0035674641840159893, -0.01678103394806385, -0.036651212722063065, -0.0001377970475004986, -0.034897372126579285, -0.04420466721057892, -0.038524627685546875, -0.004000941291451454, 0.02762293629348278, 0.010049686767160892, -0.002122541656717658, 0.037807147949934006, -0.013173708692193031, -0.0880904570221901, -0.0005019860691390932, -0.013193638995289803, 0.0048105958849191666, -0.0387837179005146, 0.006307834759354591, -0.005406003911048174, 0.01141987182199955, 0.04799136146903038, -0.009112977422773838, 0.01394101232290268, 0.003305883379653096, -0.0009709630976431072, -0.025211408734321594, 0.0164322592318058, 0.002063997322693467, -0.016910577192902565, -0.020846746861934662, 0.012346615083515644, 0.02339778281748295, -0.0392022468149662, 0.0178971104323864, 0.044722847640514374, 0.02098625712096691, -0.03344248607754707, -0.02459358051419258, -0.004965053405612707, -0.01914273388683796, 0.02788202464580536, -0.058753546327352524, -0.005993938073515892, -0.005949095357209444, -0.04759276285767555, -0.018225954845547676, -0.006163342390209436, -0.04177321121096611, 0.01481793075799942, -0.059351444244384766, -0.035634782165288925, 0.052256375551223755, -0.01648208312690258, 0.0032759883906692266, 0.05739830806851387, -0.0729038193821907, 0.023617012426257133, -0.04890814051032066, -0.03154914081096649, 0.014738211408257484, 0.016302714124321938, 0.033322907984256744, -0.004387084394693375, 0.058155644685029984, -0.018245885148644447, 0.019920002669095993, 0.002563492162153125, -0.05189763754606247, -0.014837861061096191, 0.0022321564611047506, -0.07968001067638397, 0.0012593248393386602, 0.02905789390206337, 0.041294895112514496, -0.06369617581367493, -0.03872392699122429, -0.008709396235644817, -0.04392565041780472, -0.032884448766708374, -0.09837432205677032, 0.027862094342708588, 0.013093989342451096, 0.0003034649125766009, -0.02730405703186989, 0.017757602035999298, 0.045161306858062744, -0.010782112367451191, 0.016103414818644524, 0.036491770297288895, -0.06875839084386826, -0.008305814117193222, -0.00556544354185462, -0.020049547776579857, 0.009506594389677048, -0.019571227952837944, 0.0019867687951773405, 0.04759276285767555, 0.00556544354185462, 0.01835549995303154, -0.0332830473780632, -0.01712980680167675, 0.048629119992256165, 0.0405973456799984, 0.022082405164837837, 0.09072121232748032, -0.05337245389819145, 0.0006477239658124745, 0.00042942853178828955, -0.022620514035224915, 0.0009902702877297997, -0.00016239809338003397, -0.004289925564080477, 0.05735844746232033, -0.020149197429418564, 0.01986021362245083, -0.003577429335564375, -0.04075678437948227, -0.006128465291112661, 0.0013153778854757547, 0.014130347408354282, -0.05106057971715927, 0.04520116746425629, 0.0996498391032219, 0.003881361335515976, 0.0003310243191663176, -0.027005106210708618, 0.03396066650748253, 0.02658657729625702, -0.027383776381611824, -0.036491770297288895, 0.04304873198270798, -0.033183395862579346, -0.015495549887418747, 0.047513045370578766, -0.0005670698592439294, -0.036053311079740524, -0.049506042152643204, -0.013044163584709167, 0.029695652425289154, 0.02138485573232174, 0.018455149605870247, 0.029855091124773026, -0.04035818576812744, -0.011100992560386658, -0.007817530073225498, 0.01921248994767666, -0.025948818773031235, 0.015226495452225208, 0.04288928955793381, 0.028619434684515, -0.016561802476644516, -0.009372067637741566, 0.05317315459251404, 0.02847992442548275, -0.02311876229941845, 0.058753546327352524, 0.01271531917154789, -0.029576072469353676, 0.00413795979693532, 0.023617012426257133, -0.038963086903095245, -0.03152921050786972, -0.04587878659367561, -0.0015483093447983265, 0.03623268008232117, -0.04544032737612724, 0.00136520282831043, 0.027403706684708595, -0.08139398694038391, -0.024513861164450645, 0.020747097209095955, 0.006168324965983629, 0.0031439524609595537, -0.028101254254579544, 0.009895228780806065, 0.03700995072722435, 0.0014648525975644588, 0.017757602035999298, 0.029157543554902077, -0.005834497977048159, 0.003373146988451481, -0.024175051599740982, -0.04332774877548218, -0.04061727598309517, -0.032166969031095505, 0.005286423955112696, 0.03338269516825676, -0.007214648183435202, 0.009735789149999619, -0.0394812673330307, -0.02975544147193432, -0.00530635379254818, -0.03774736076593399, 0.023537293076515198, 0.0019481544150039554, -0.07944085448980331, 0.01632264442741871, -0.02963586151599884, 0.03742847964167595, -0.03613303229212761, 0.04280957207083702, -0.040457833558321, 0.04051762446761131, 0.009566384367644787, 0.062380798161029816, 0.04133475199341774, -0.038843508809804916, 0.05823536589741707, 0.012416370213031769, -0.028818733990192413, -0.008724343031644821, -0.001929469988681376, -0.04304873198270798, 0.027862094342708588, -0.001247491454705596, -0.03380122408270836, 0.047632623463869095, 0.03238619863986969, -0.029894951730966568, 0.048948001116514206, -0.055166151374578476, 0.0063028521835803986, 0.027403706684708595, -0.02614811807870865, -0.008265954442322254, -0.030572570860385895, 0.002264542505145073, -0.011170746758580208, -0.035096675157547, 0.011011307127773762, 0.03958091512322426, -0.023935891687870026, 0.017528407275676727, -0.035196322947740555, 0.04508158937096596, 0.018026655539870262, 0.020199023187160492, 0.04874870181083679, -0.01141987182199955, 0.014847826212644577, 0.0005477627273648977, 0.009396979585289955, -0.04611794650554657, 0.007055208552628756, 0.02017909288406372, 0.01662159338593483, 0.010782112367451191, 0.004035818390548229, 0.03125018998980522, 0.06772202998399734, 0.0027901954017579556, -0.06604791432619095, 0.04209209233522415, 0.0052116867154836655, -0.015635060146450996, 0.01648208312690258, -0.010513057932257652, -0.012535950168967247, -0.058354947715997696, 0.022341493517160416, 0.0279218852519989, -0.03655156120657921, 0.014628596603870392, -0.020886605605483055, -0.05416965112090111, -0.0310907494276762, -0.008001882582902908, -0.035196322947740555, 0.04827038198709488, 0.019710738211870193, -0.021484505385160446, 0.041294895112514496, -0.004227644298225641, 0.009531507268548012, -0.06305842101573944, 0.03162885829806328, -0.020727166905999184, 0.005709935910999775, 0.04308859258890152, 0.048788562417030334, 0.027981674298644066, -0.015047125518321991, -0.0059989201836287975, 0.012456229887902737, 0.0021773490589112043, 0.06728357076644897, -0.05871368572115898, -0.033920805901288986, 0.009815509431064129, -0.0170600526034832, 0.07310312241315842, -0.00338062085211277, 0.025669798254966736, -0.014509016647934914, -0.0009746999712660909, -0.04280957207083702, 0.035933732986450195, -0.024892529472708702, 0.001657924265600741, 0.030891450121998787, -0.04043790325522423, 0.01979045756161213, 0.0089485552161932, -0.059351444244384766, 0.045480187982320786, 0.008903712965548038, -0.00010727928020060062, 0.0387837179005146, 0.012127385474741459, -0.03170857951045036, -0.04324803128838539, -0.02501210942864418, -0.060786403715610504, 0.05564447119832039, 0.011230536736547947, 0.011659030802547932, 0.0005337494658306241, 0.011579311452805996, 0.0841841846704483, -0.0010307530174031854, 0.04587878659367561, 0.01271531917154789, 0.06501155346632004, -0.01999972201883793, 0.05369133502244949, -0.020926466211676598, -0.009202662855386734, -0.06843951344490051, 0.01229679025709629, -0.05855424702167511, 0.026925386860966682, 0.03697009012103081, 0.03619282320141792, 0.04882842302322388, -0.02662643790245056, 0.004053257405757904 ]
20,457
metevolsim.metevolsim
build_parameter_list
Build the parameters list. Parameters ---------- None Returns ------- None
def build_parameter_list( self ): """ Build the parameters list. Parameters ---------- None Returns ------- None """ self.parameters = {} #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Parse main parameters # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for parameter in self.wild_type_model.getListOfParameters(): if parameter.getValue() != 0.0 and str(parameter.getValue()) != "nan": assert parameter.getMetaId() not in list(self.parameters) self.parameters[parameter.getMetaId()] = {} self.parameters[parameter.getMetaId()]["metaid"] = parameter.getMetaId() self.parameters[parameter.getMetaId()]["id"] = parameter.getId() self.parameters[parameter.getMetaId()]["wild_type_value"] = parameter.getValue() self.parameters[parameter.getMetaId()]["mutant_value"] = parameter.getValue() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Parse parameters for each reaction # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for reaction in self.wild_type_model.getListOfReactions(): for elmt in reaction.getListOfAllElements(): if elmt.getElementName() == "parameter" or elmt.getElementName() == "localParameter": if elmt.getValue() != 0.0 and str(elmt.getValue()) != "nan": assert elmt.getMetaId() not in list(self.parameters) self.parameters[elmt.getMetaId()] = {} self.parameters[elmt.getMetaId()]["metaid"] = elmt.getMetaId() self.parameters[elmt.getMetaId()]["id"] = elmt.getId() self.parameters[elmt.getMetaId()]["wild_type_value"] = elmt.getValue() self.parameters[elmt.getMetaId()]["mutant_value"] = elmt.getValue()
(self)
[ 0.04460468515753746, -0.02131921984255314, -0.03983471542596817, 0.004166896920651197, 0.013235758058726788, -0.018023934215307236, -0.03366288170218468, -0.051195256412029266, 0.012826123274862766, 0.016521940007805824, -0.06510463356971741, 0.04948389157652855, -0.03156919404864311, 0.03639378398656845, 0.00018021088908426464, 0.012880740687251091, 0.000426987448008731, 0.024268589913845062, -0.011160274036228657, -0.03470062464475632, 0.011797484010457993, 0.006185486447066069, -0.04427697882056236, 0.09962320327758789, 0.03856029734015465, -0.04052654281258583, 0.015293034724891186, 0.018151376396417618, -0.010932699777185917, 0.01857011392712593, -0.01897064596414566, -0.01554791908711195, 0.002594354096800089, 0.005530070513486862, -0.018934233114123344, -0.006786284502595663, -0.010987317189574242, 0.02931165136396885, -0.10035143792629242, 0.030422216281294823, 0.021191777661442757, -0.05363485962152481, 0.018260611221194267, -0.0128170195966959, -0.025907129049301147, 0.0038733251858502626, -0.018360745161771774, 0.0804704949259758, -0.016576558351516724, -0.021537691354751587, 0.01330858189612627, 0.0018194615840911865, -0.03191510587930679, 0.011415158398449421, -0.06146343797445297, -0.013153830543160439, 0.007450803183019161, 0.029457299038767815, 0.11222174763679504, -0.01966247335076332, -0.0003461983578745276, 0.029184209182858467, 0.0026353176217526197, -0.026708193123340607, -0.015729978680610657, -0.014473765157163143, -0.0510496087372303, 0.005484555847942829, 0.018952440470457077, 0.04249279201030731, 0.003242942737415433, -0.017668917775154114, 0.011196685954928398, 0.03167843073606491, 0.014846988022327423, -0.019061675295233727, 0.010450240224599838, -0.03914288803935051, 0.014938018284738064, -0.03304388001561165, -0.002924337750300765, 0.06710729748010635, -0.026070984080433846, -0.027745934203267097, -0.010359210893511772, 0.036939963698387146, -0.00662243040278554, 0.022921346127986908, 0.009207681752741337, -0.012243530713021755, -0.07453534007072449, 0.010040605440735817, -0.01902526430785656, 0.007309706415981054, 0.009658279828727245, 0.02361317351460457, -0.02792799472808838, -0.0773390606045723, -0.023831646889448166, -0.029967065900564194, -0.019516825675964355, 0.0017819117056205869, -0.009239542298018932, -0.004560601431876421, 0.019061675295233727, -0.08950066566467285, -0.04540574923157692, -0.010623198002576828, 0.016166923567652702, 0.03619351610541344, -0.08374757319688797, 0.021920016035437584, -0.005425386130809784, -0.012798814103007317, 0.013062801212072372, 0.003363557392731309, -0.012698681093752384, 0.023886265233159065, 0.013517950661480427, -0.013381405733525753, 0.028546998277306557, -0.0026762811467051506, -0.03051324561238289, 0.034809861332178116, -0.0005416283383965492, 0.05563751980662346, -0.0014121023705229163, -0.004385368898510933, 0.0009757275111041963, -0.0694376602768898, -0.04260202497243881, 0.009649177081882954, -0.017104530707001686, 0.012452900409698486, 0.021901810541749, -0.07060284167528152, -0.03257052227854729, -0.04915618523955345, 0.00704116839915514, 0.03632095828652382, 0.02965756505727768, 0.0510496087372303, 0.003229288151487708, -0.020663803443312645, -0.05166861042380333, -0.036703284829854965, 0.023376496508717537, 0.015939347445964813, -0.03664866462349892, -0.0009654866298660636, -0.03189690038561821, -0.004644804168492556, -0.012625857256352901, -0.03151457756757736, -0.007168610114604235, -0.008652398362755775, 0.017905594781041145, -0.020390713587403297, -0.008456684648990631, -0.008957348763942719, -0.029293444007635117, -0.02539736218750477, -0.020499950274825096, -0.019444001838564873, -0.014674031175673008, 0.011742866598069668, 0.009034724906086922, -0.034336503595113754, 0.005088575184345245, -0.005539173725992441, 0.020900480449199677, -0.02776414155960083, -0.033717501908540726, -0.006645187735557556, -0.05949718877673149, 0.05265173688530922, -0.017450446262955666, -0.030658893287181854, 0.009867648594081402, -0.0018558735027909279, -0.020245065912604332, -0.06066237390041351, -0.002826480660587549, -0.04096348583698273, 0.03355364874005318, -0.02690845914185047, 0.039798304438591, 0.017222870141267776, -0.016221540048718452, 0.03604786843061447, -0.014437353238463402, -0.02339470200240612, -0.015948450192809105, 0.04398568347096443, -0.04966595023870468, 0.0219564288854599, 0.06375738978385925, 0.027035901322960854, -0.0035137569066137075, 0.054800041019916534, -0.02506965398788452, -0.04398568347096443, -0.01672220602631569, -0.02477835863828659, -0.0219564288854599, -0.024122942239046097, 0.0068226964212954044, 0.01593024469912052, 0.036921754479408264, -0.008875422179698944, -0.012762402184307575, -0.004005318507552147, 0.08323780447244644, -0.02315802499651909, 0.01471044309437275, -0.07213214784860611, -0.022975964471697807, 0.010523064993321896, -0.02253902144730091, -0.03896082565188408, 0.02102792263031006, -0.03983471542596817, -0.024924006313085556, -0.020390713587403297, -0.009216784499585629, 0.040562953799963, -0.00813352782279253, 0.0073597729206085205, -0.036939963698387146, -0.0027582081966102123, 0.00003886553167831153, -0.04030806943774223, -0.0038892554584890604, 0.020317889750003815, 0.011515291407704353, -0.014819678850471973, -0.011515291407704353, 0.015402271412312984, -0.05764017626643181, -0.018497290089726448, -0.003525135572999716, -0.014837885275483131, 0.003270251676440239, 0.01218891330063343, -0.026872048154473305, -0.03794129192829132, 0.0584048293530941, 0.051304493099451065, -0.011533496901392937, -0.011888514272868633, 0.012025059200823307, 0.040890663862228394, -0.022047458216547966, 0.0256886575371027, -0.01517469622194767, -0.037158433347940445, -0.008056152611970901, 0.03643019497394562, 0.04005318880081177, -0.06018901616334915, 0.030130920931696892, -0.03477345034480095, 0.03668507933616638, 0.052105553448200226, -0.014319014735519886, -0.006340237334370613, -0.00603528693318367, 0.058878183364868164, -0.02046353742480278, -0.024523474276065826, 0.029566533863544464, 0.03757717087864876, -0.034336503595113754, -0.004608392249792814, -0.007214125245809555, 0.013344993814826012, 0.059060245752334595, -0.03907006233930588, -0.09598200023174286, 0.023358291015028954, 0.013991306535899639, -0.02102792263031006, 0.031587399542331696, 0.03220640495419502, 0.01650373451411724, 0.007614656817167997, 0.009667382575571537, 0.06404868513345718, 0.0005538605037145317, 0.011624527163803577, -0.006599673070013523, 0.03511936217546463, 0.033244144171476364, 0.010523064993321896, 0.0658692866563797, -0.019953768700361252, 0.0031860489398241043, -0.00028574877069331706, 0.05039419233798981, -0.005721233785152435, 0.028201084583997726, 0.015593433752655983, 0.12496594339609146, -0.03947059437632561, -0.04529651254415512, 0.021701544523239136, 0.050721898674964905, -0.011287716217339039, 0.05017571896314621, -0.005429937969893217, 0.022083871066570282, 0.06131778657436371, 0.04183737561106682, 0.02264825627207756, 0.05534622073173523, -0.039689067751169205, -0.000007947342965053394, -0.029985273256897926, 0.03570195287466049, 0.09714718163013458, 0.033590059727430344, 0.014273499138653278, 0.03242487460374832, 0.008483992889523506, 0.04857359081506729, -0.06823606789112091, -0.0030517796985805035, 0.021464867517352104, -0.002403191290795803, -0.031587399542331696, -0.04318461939692497, -0.002147169318050146, -0.006859108339995146, 0.03794129192829132, 0.03593863174319267, 0.007924159057438374, -0.007327912840992212, 0.0076101054437458515, 0.029402680695056915, -0.0332077331840992, 0.04966595023870468, -0.03961624205112457, -0.038414645940065384, 0.013700010254979134, 0.01520200539380312, 0.005671167280524969, 0.06670676171779633, 0.023212643340229988, 0.009731103666126728, -0.016795029863715172, -0.00352058419957757, -0.007719341665506363, 0.05960642546415329, 0.0873887687921524, 0.07235062122344971, -0.01014073844999075, -0.02248440310359001, -0.045842692255973816, -0.014473765157163143, 0.03286181762814522, 0.11309563368558884, 0.025615833699703217, -0.008110770024359226, 0.045150864869356155, 0.04005318880081177, -0.031824078410863876, -0.004139587748795748, -0.005434489343315363, 0.06914636492729187, -0.03764999657869339, -0.013818349689245224, -0.02800081856548786, -0.005134090315550566, -0.023959089070558548, 0.03914288803935051, 0.028546998277306557, -0.026070984080433846, 0.010432034730911255, -0.017632504925131798, -0.006954689975827932, 0.00001618804526515305, -0.015256622806191444, 0.029566533863544464, -0.016412703320384026, -0.0031291551422327757, -0.060844432562589645, 0.06845454126596451, 0.0048974123783409595, 0.00867515616118908, 0.02040891908109188, -0.014273499138653278, -0.002405466977506876, -0.00066451879683882, 0.029275238513946533, 0.01177927851676941, 0.01324486080557108, 0.04540574923157692, 0.008311036042869091, -0.07777600735425949, -0.03925212472677231, -0.005115884356200695, -0.11899437755346298, -0.0326615534722805, 0.051522962749004364, 0.005348010919988155, -0.08272803574800491, 0.031587399542331696, 0.0945255234837532, -0.01913449913263321, 0.00810621865093708, -0.008984657935798168, -0.034463945776224136, -0.0008670604438520968, -0.012917152605950832, 0.002037933561950922, -0.015475095249712467, 0.00776030495762825, 0.06128137558698654, 0.013408714905381203, 0.055673930794000626, 0.05749452859163284, -0.017231972888112068, 0.06040748953819275, 0.08301933109760284, -0.051814258098602295, 0.06645187735557556, 0.013827452436089516, 0.044459037482738495, -0.07111261039972305, -0.024741945788264275, -0.06033466383814812, 0.039689067751169205, -0.007291500456631184, -0.07162237912416458, 0.006590569857507944, -0.012079677544534206, -0.016467321664094925, -0.050721898674964905, 0.005261532496660948, 0.03053145296871662, -0.00013469590339809656, 0.013472435995936394, 0.010404725559055805, -0.002460084855556488, -0.006208243779838085, 0.010878081433475018, -0.033535439521074295, 0.026070984080433846, 0.009207681752741337, -0.02765490487217903, -0.01867935061454773, 0.05993413180112839, 0.09110279381275177, -0.05993413180112839, 0.058550477027893066, 0.010395622812211514, -0.06852736324071884, 0.0019150429870933294, 0.030768129974603653, -0.02608918957412243, 0.046243224292993546, -0.0035387901589274406, 0.016176026314496994, 0.024924006313085556, -0.05327073857188225, 0.02224772423505783, 0.01706811971962452, -0.00876618642359972, -0.04606116563081741, 0.0010849634418264031, 0.0037800194695591927, 0.02472374029457569, 0.015238417312502861, -0.03608427941799164, 0.0009051792440004647, -0.010149842128157616, 0.023139817640185356, 0.0076192086562514305, -0.007332464214414358, -0.0510496087372303, 0.012980873696506023, -0.06535951793193817, -0.006672496907413006, 0.021810781210660934, -0.06106290593743324, -0.0030654342845082283, 0.015384064987301826, -0.0328800268471241, -0.04879206418991089, -0.03823258727788925, -0.07610105723142624, -0.017486857250332832, 0.04857359081506729, 0.054108213633298874, -0.0022586812265217304, 0.046752993017435074, 0.006431267596781254, -0.00416917260736227, 0.015657154843211174, 0.02523350715637207, 0.021355630829930305, -0.019953768700361252, -0.015511507168412209, 0.010650506243109703, 0.012462003156542778, -0.009822133928537369, -0.03508295118808746, -0.012343663722276688, -0.06830888986587524, -0.027855170890688896, -0.0202814768999815, -0.07894118875265121, 0.034809861332178116, -0.023467525839805603, -0.04573345556855202, -0.03870594501495361, -0.0013267617905512452, 0.018661143258213997, -0.03180587291717529, 0.008980106562376022, 0.029184209182858467, 0.00951263215392828, 0.003761813510209322, -0.03369929641485214, 0.006677048280835152, 0.04551498591899872, -0.05287020653486252, -0.046534519642591476, 0.01293535903096199, 0.0019343869062140584, -0.012170706875622272, -0.038414645940065384, -0.017341209575533867, 0.009234990924596786, 0.027600286528468132, -0.010987317189574242, 0.05632934719324112, -0.03404520824551582, -0.025506597012281418, 0.045660633593797684, 0.012452900409698486, 0.01706811971962452, -0.0236313808709383, -0.07213214784860611, 0.009630970656871796, -0.0006025046459399164, 0.02978500723838806, 0.012598548084497452, -0.035556305199861526, -0.031696636229753494, 0.014701340347528458, -0.0015748185105621815, -0.04613398760557175, 0.005175053607672453, -0.006572363898158073, -0.025615833699703217, 0.05993413180112839, -0.05665705353021622, 0.05774941295385361, 0.024669121950864792, 0.019444001838564873, 0.00862053781747818, -0.027891583740711212, 0.002576148137450218, -0.0586233027279377, 0.019280148670077324, -0.018415363505482674, 0.031223280355334282, -0.0664154663681984, 0.03085915930569172, 0.034172650426626205, -0.0013222103007137775, -0.024978624656796455, 0.009530837647616863, 0.003734504571184516, -0.04606116563081741, 0.012853431515395641, -0.008702465333044529, -0.020263271406292915, -0.028765471652150154, 0.05691193789243698, 0.007245985791087151, -0.014091439545154572, -0.037795644253492355, 0.02062739059329033, 0.05982489511370659, -0.009785722009837627, 0.04059936851263046, 0.04471392184495926, -0.0005615411209873855, -0.004505983553826809, 0.08221826702356339, -0.016348982229828835, -0.011606321670114994, -0.017750844359397888, 0.05654781684279442, -0.011151171289384365, -0.004362611565738916, -0.03961624205112457, 0.0343911238014698, -0.05552828311920166, -0.022611845284700394, 0.010960008017718792, 0.03943418338894844, -0.004212412051856518, -0.08498558402061462, 0.009130305610597134, 0.05006648227572441, -0.009216784499585629, 0.0311504565179348, 0.03877876698970795, -0.01746865175664425, 0.03211537376046181, -0.010195356793701649, -0.031933315098285675, -0.027673110365867615, -0.030367597937583923, 0.055965226143598557, 0.09314186871051788, -0.04442262649536133, -0.03812335059046745, 0.02845596894621849, -0.03797770291566849, 0.018151376396417618, -0.06226449832320213, -0.06743500381708145, -0.005329804960638285, -0.11127503961324692, 0.02800081856548786, -0.03562913089990616, 0.06302915513515472, -0.020190447568893433, 0.012361870147287846, -0.009030173532664776, -0.01598486304283142, 0.04799100011587143, 0.050030071288347244, -0.04234714061021805, -0.034919098019599915, 0.025306330993771553, 0.07464457303285599, 0.00380050134845078, -0.02171975187957287, -0.0038596708327531815, -0.003338524140417576, 0.0625193864107132, -0.009121202863752842, -0.0658692866563797, 0.04587910696864128, 0.02299416996538639, -0.05174143612384796, 0.05024854466319084, -0.021137159317731857, 0.015648052096366882, 0.0235767625272274, -0.055091340094804764, -0.05297944322228432, 0.022666463628411293, 0.00845213234424591, 0.0020709317177534103, -0.013263066299259663, -0.009071136824786663, 0.0349373035132885, -0.10020579397678375, -0.06670676171779633, -0.03775923326611519, -0.008556817658245564, 0.009703794494271278, 0.033935971558094025, 0.05822277069091797, 0.0030495040118694305, -0.03746793419122696, 0.03877876698970795, 0.04092707484960556, 0.003459138795733452, 0.021810781210660934, -0.032443080097436905, 0.05833200365304947, 0.0202814768999815, 0.01609409973025322, 0.00980392750352621, 0.029093177989125252, -0.007273294497281313, 0.022338755428791046, 0.04871923848986626, -0.020718421787023544, -0.009071136824786663, -0.007464457768946886, -0.011305922642350197, 0.023959089070558548, -0.07901401817798615, -0.06033466383814812, 0.009467116557061672, -0.008192697539925575, -0.012389179319143295, -0.015165593475103378, -0.0547272190451622, -0.06302915513515472, 0.015657154843211174, 0.03226102143526077, -0.010796154849231243, -0.0041646212339401245, -0.031077632680535316, 0.04718993604183197, 0.006099008023738861, -0.004128209315240383, 0.02827390842139721, 0.0043398537673056126, 0.020536361262202263, -0.012489312328398228, 0.032916437834501266, 0.08724312484264374, 0.03282540664076805, -0.05949718877673149, -0.032497700303792953, 0.03501012548804283, 0.015566124580800533, 0.05574675276875496, 0.002817377680912614, -0.020791245624423027, 0.038888003677129745, 0.024851182475686073, 0.07864989340305328, 0.023813439533114433, 0.0036525775212794542, 0.04016242176294327, -0.006299274042248726, -0.027618493884801865, 0.004888309631496668, -0.07275114953517914, -0.008930040523409843, 0.014874297194182873, -0.040562953799963, -0.03484627231955528, 0.04172813892364502, -0.07551846653223038, 0.07653799653053284, 0.019444001838564873, -0.06332045048475266, 0.048537179827690125, -0.027782347053289413, 0.04438621550798416, -0.043366678059101105, 0.0256886575371027, -0.049338243901729584, 0.05385332927107811, 0.058477651327848434, -0.05902383476495743, 0.02323084883391857, -0.07602822780609131, 0.05006648227572441, -0.012525724247097969, 0.01754147559404373, -0.03845106065273285, 0.030476834625005722, 0.015566124580800533, 0.01400040928274393, 0.024468855932354927, -0.035720162093639374, -0.05028495565056801, -0.012616753578186035, -0.022393371909856796, 0.04871923848986626, 0.045660633593797684, -0.028710853308439255, 0.05232402682304382, 0.021646926179528236, -0.03045862726867199 ]
20,458
metevolsim.metevolsim
build_reaction_list
Build the reaction list. Parameters ---------- None Returns ------- None
def build_reaction_list( self ): """ Build the reaction list. Parameters ---------- None Returns ------- None """ self.reactions = {} for reaction in self.wild_type_model.getListOfReactions(): assert reaction.getId() not in list(self.reactions) self.reactions[reaction.getId()] = {"wild_type_value":0.0, "mutant_value":0.0} self.reactions[reaction.getId()]["metaid"] = reaction.getMetaId() self.reactions[reaction.getId()]["id"] = reaction.getId() self.reactions[reaction.getId()]["name"] = reaction.getName() self.reactions[reaction.getId()]["compartment"] = reaction.getCompartment()
(self)
[ 0.012141299434006214, -0.029695209115743637, -0.011381309479475021, -0.01745195873081684, 0.043968185782432556, -0.015468571335077286, -0.03440343588590622, -0.0227255467325449, 0.03963068500161171, 0.0071874638088047504, -0.06591520458459854, 0.08519299328327179, 0.018452921882271767, 0.051679302006959915, 0.027007440105080605, -0.014365659095346928, -0.006904784590005875, 0.00762306759133935, -0.01018571574240923, -0.013188602402806282, 0.0362199991941452, -0.020037777721881866, -0.0008271839469671249, 0.05360708013176918, 0.021038740873336792, 0.009184753522276878, -0.03382880985736847, 0.04941786825656891, -0.012187640182673931, 0.011214482598006725, -0.0044209156185388565, -0.02658110484480858, 0.010899364948272705, 0.030566416680812836, -0.024060161784291267, -0.02773035690188408, -0.02986203506588936, 0.014032005332410336, -0.05242075398564339, 0.048750560730695724, 0.0753687396645546, -0.017906099557876587, -0.012697389349341393, -0.02289237268269062, -0.039667755365371704, -0.012289590202271938, 0.0024630154948681593, 0.054793406277894974, 0.04241113364696503, -0.055831439793109894, -0.024875761941075325, 0.02341139130294323, -0.03829606622457504, 0.026655249297618866, -0.011473990976810455, -0.00821623019874096, -0.010194984264671803, 0.055238276720047, 0.07355217635631561, 0.009402555413544178, -0.030566416680812836, 0.03427368402481079, -0.013438843190670013, -0.05998357757925987, 0.02070508524775505, -0.01875877007842064, -0.047527164220809937, 0.014393463730812073, 0.01794317178428173, 0.010723269544541836, 0.021205566823482513, 0.013494451530277729, 0.02496844343841076, 0.008554518222808838, 0.0009592553251422942, -0.006413572002202272, 0.044375985860824585, -0.03837021440267563, 0.03375466540455818, -0.023022128269076347, -0.004325916990637779, 0.042077481746673584, -0.023207491263747215, 0.034199535846710205, 0.017109036445617676, 0.01884218491613865, 0.040520429611206055, 0.010417420417070389, -0.06647129356861115, -0.027582066133618355, -0.024023089557886124, 0.011909594759345055, -0.041336026042699814, -0.04893592372536659, -0.03136347979307175, 0.02404162660241127, -0.02732255682349205, -0.06161477789282799, -0.0040339697152376175, 0.02116849459707737, -0.02548746019601822, -0.00335739366710186, -0.018221216276288033, 0.004413964692503214, -0.03216053918004036, -0.03475562855601311, -0.008026232942938805, -0.01643246039748192, -0.009407189674675465, 0.011640817858278751, -0.08845538645982742, 0.029528381302952766, 0.053458791226148605, -0.001021815463900566, 0.012094958685338497, -0.03106689639389515, 0.021817266941070557, 0.02748938463628292, 0.03959361091256142, -0.028601564466953278, 0.03807363286614418, -0.031159577891230583, -0.013392501510679722, 0.03803655877709389, 0.026599640026688576, 0.06799127906560898, -0.01996363326907158, 0.0063996696844697, 0.04267064109444618, -0.021817266941070557, -0.03399563953280449, 0.007252341136336327, -0.021372394636273384, -0.004258722998201847, 0.009133778512477875, -0.03475562855601311, -0.0024328939616680145, -0.05890847370028496, 0.05798165500164032, 0.05075248330831528, 0.01118667796254158, 0.017683662474155426, 0.01644172891974449, 0.022744081914424896, -0.055201206356287, -0.04204040765762329, -0.012122763320803642, 0.10877121239900589, -0.02645134925842285, -0.017952440306544304, -0.007530386094003916, 0.004235552623867989, 0.012530562467873096, 0.00046398764243349433, 0.005565534345805645, 0.022503109648823738, -0.02018606849014759, -0.01248422171920538, 0.00842476449906826, 0.021706048399209976, -0.022651400417089462, -0.008855734020471573, -0.004731399472802877, -0.01069546490907669, -0.04689692705869675, 0.0029217898845672607, 0.05075248330831528, -0.06921467185020447, 0.005903822835534811, 0.02611769549548626, -0.007687944918870926, -0.05931627005338669, -0.047712527215480804, -0.03933410346508026, -0.038110703229904175, 0.04118773713707924, -0.03683169558644295, -0.00181192671880126, -0.008016964420676231, 0.0012083373731002212, -0.030010325834155083, -0.08081842213869095, -0.021205566823482513, -0.02220652997493744, 0.023541145026683807, -0.06283817440271378, 0.04348624125123024, 0.0007292889058589935, 0.03082592412829399, 0.06446937471628189, 0.012141299434006214, -0.029880572110414505, -0.05186466500163078, 0.019629977643489838, -0.023652363568544388, -0.013392501510679722, 0.012660317122936249, -0.023374319076538086, -0.07484971731901169, 0.022021165117621422, -0.059909433126449585, -0.016265634447336197, -0.015162722207605839, -0.020408503711223602, 0.020908985286951065, 0.0156724713742733, -0.013077383860945702, -0.00565358204767108, 0.04608132690191269, -0.045006219297647476, -0.017813418060541153, 0.017489030957221985, 0.040817007422447205, -0.01504223607480526, 0.009759380482137203, -0.07874234765768051, -0.008276473730802536, 0.015681739896535873, -0.03427368402481079, -0.01594124734401703, -0.06057674065232277, -0.03060348890721798, -0.07770431786775589, -0.017099767923355103, -0.02398601733148098, 0.04533987492322922, -0.039556536823511124, 0.024579180404543877, -0.023374319076538086, -0.0012187639949843287, -0.006195770110934973, -0.03547854349017143, -0.007808431051671505, -0.009485969319939613, -0.005264319013804197, -0.005092857871204615, 0.010491565801203251, 0.053866587579250336, -0.0362199991941452, 0.04511743783950806, 0.02502405270934105, -0.008767686784267426, 0.04756423458456993, -0.0035659275017678738, -0.013475915417075157, -0.020501187071204185, 0.09067974984645844, 0.02524648793041706, -0.06432107836008072, -0.005509925540536642, 0.016043197363615036, 0.012808606959879398, 0.009370117448270321, -0.00250240508466959, 0.017618786543607712, -0.07740773260593414, -0.03749900683760643, 0.03503367304801941, 0.013568596914410591, -0.09045731276273727, 0.04129895567893982, -0.012502757832407951, 0.03429222106933594, 0.016803188249468803, -0.04407940432429314, -0.010565711185336113, -0.030622025951743126, 0.08719491958618164, -0.04815739765763283, -0.035237573087215424, 0.05935334414243698, -0.008438666351139545, -0.007173561491072178, -0.00724770687520504, -0.03490391746163368, 0.0005621722666546702, 0.06910345703363419, -0.030214225873351097, -0.1288646012544632, 0.023782117292284966, -0.05905676260590553, -0.00966669898480177, 0.060428451746702194, 0.04356038570404053, -0.0031928836833685637, 0.0014435170451179147, 0.010232056491076946, 0.06621178984642029, 0.00006513059634016827, 0.00925889890640974, 0.035163428634405136, 0.058982618153095245, 0.012335930950939655, 0.015144185163080692, 0.0632459744811058, -0.03501513600349426, 0.022910909727215767, -0.002692402573302388, 0.03082592412829399, 0.030399588868021965, 0.022707009688019753, 0.03468148410320282, 0.09750112146139145, -0.037647295743227005, -0.08148572593927383, -0.009824257344007492, 0.03614585101604462, 0.00761843379586935, 0.035812199115753174, -0.011251554824411869, 0.03147469833493233, 0.04919543117284775, 0.020167531445622444, 0.04400525987148285, 0.044264767318964005, -0.0376843698322773, -0.03153030574321747, -0.03381027653813362, 0.04389404132962227, 0.08274620026350021, 0.021353857591748238, 0.0019521077629178762, 0.023281635716557503, 0.04585889354348183, 0.057091910392045975, -0.11959642916917801, 0.0020262531470507383, 0.013457379303872585, 0.028156692162156105, -0.004907494410872459, -0.06228208541870117, -0.04522865638136864, -0.010315470397472382, 0.014625168405473232, 0.008874270133674145, 0.011233018711209297, 0.012261785566806793, -0.015283208340406418, -0.027878647670149803, -0.019518760964274406, 0.0008376106270588934, -0.012873484753072262, -0.031548842787742615, 0.02467186190187931, 0.031141042709350586, 0.02485722489655018, 0.06472887843847275, 0.0029658135026693344, -0.017600249499082565, -0.04393111169338226, 0.009509139694273472, -0.032531268894672394, 0.05382951721549034, 0.07284779846668243, 0.04359745979309082, -0.021075813099741936, -0.038518503308296204, -0.05149393901228905, -0.03907459229230881, 0.04867641627788544, 0.07151317596435547, -0.002330944174900651, 0.006821371149271727, 0.027878647670149803, -0.02231774665415287, -0.01807292550802231, -0.009286703541874886, 0.020964594557881355, 0.04548816382884979, -0.041336026042699814, -0.029083508998155594, 0.021205566823482513, -0.06936296820640564, 0.02266993746161461, 0.04619254544377327, 0.023541145026683807, 0.004358355887234211, -0.0012778486125171185, -0.002868497744202614, 0.014143223874270916, -0.007066977676004171, 0.008517445996403694, -0.015311012975871563, 0.0031534938607364893, -0.006316256243735552, -0.04622961953282356, 0.07748188078403473, 0.04626668989658356, -0.012465685606002808, 0.007757456041872501, -0.02294798195362091, -0.005194807890802622, 0.00894378125667572, 0.01881437934935093, -0.010537906549870968, 0.0011701061157509685, 0.061466485261917114, -0.008003062568604946, -0.029880572110414505, 0.007419168017804623, 0.051456864923238754, -0.04711936414241791, 0.016608556732535362, 0.008953049778938293, -0.02622891403734684, -0.02226213738322258, -0.01717391423881054, 0.03670194372534752, -0.0011063874699175358, -0.024542108178138733, -0.0005809982540085912, -0.002106191124767065, 0.02226213738322258, -0.027415238320827484, -0.00980572123080492, -0.045747675001621246, 0.001338091678917408, 0.0011405638651922345, 0.003774461103603244, 0.06398742645978928, 0.0414101704955101, -0.004138236865401268, 0.03555269166827202, 0.08007696270942688, -0.05316220968961716, 0.03343954682350159, 0.03432929143309593, 0.061466485261917114, -0.053347572684288025, 0.006978929974138737, -0.02541331574320793, 0.03273516893386841, 0.029139118269085884, -0.07084587216377258, 0.019833877682685852, -0.049677375704050064, -0.012354467064142227, -0.05390366166830063, -0.05056712031364441, 0.02778596617281437, 0.009944743476808071, 0.011770572513341904, 0.040223848074674606, -0.029268871992826462, 0.04700814560055733, 0.018610479310154915, -0.018425116315484047, 0.022707009688019753, 0.06951125711202621, -0.012447148561477661, -0.01630270667374134, 0.02133532054722309, 0.08022525906562805, -0.009323776699602604, 0.05683240294456482, 0.04467256739735603, -0.06161477789282799, 0.02582111395895481, 0.020408503711223602, -0.041669681668281555, 0.00023445567057933658, -0.030862998217344284, -0.030325444415211678, 0.03560829907655716, -0.019240714609622955, 0.013707619160413742, -0.035404399037361145, 0.0028082546778023243, -0.05382951721549034, 0.003324955003336072, 0.007817699573934078, 0.018100731074810028, 0.03727656975388527, -0.050530049949884415, -0.020334359258413315, -0.017387082800269127, -0.014263710007071495, -0.020111924037337303, 0.019018279388546944, -0.05212417244911194, 0.03974190354347229, -0.04856519773602486, -0.02254018373787403, -0.03785119578242302, -0.07121659815311432, -0.016664164140820503, 0.012317394837737083, -0.031493231654167175, -0.022021165117621422, -0.04252235218882561, -0.0609845407307148, -0.011464723385870457, 0.018749503418803215, 0.0460071824491024, 0.038740940392017365, 0.04096530005335808, -0.019259251654148102, 0.003178981365635991, 0.02357821725308895, 0.03657218813896179, 0.02973228134214878, -0.015950515866279602, -0.04912128672003746, 0.06079917773604393, -0.010167179629206657, 0.01848999410867691, -0.035812199115753174, -0.04508036747574806, -0.009425725787878036, -0.055646076798439026, 0.014032005332410336, -0.056980691850185394, 0.02203970216214657, -0.025283560156822205, -0.05442268028855324, -0.04674863815307617, -0.008169889450073242, 0.006455278489738703, -0.033569302409887314, 0.022225065156817436, 0.01274373009800911, 0.01400420069694519, -0.027748893946409225, 0.014411999844014645, -0.0276006031781435, 0.038740940392017365, -0.014977358281612396, -0.020797766745090485, 0.011705695651471615, 0.028082547709345818, 0.000040548231481807306, -0.059093836694955826, -0.04174382612109184, 0.020389968529343605, -0.031956642866134644, 0.002787401434034109, 0.05935334414243698, -0.024597715586423874, -0.02111288532614708, 0.04533987492322922, 0.029139118269085884, 0.002152531873434782, -0.008939146995544434, -0.08615688234567642, 0.01380030158907175, -0.0038787280209362507, 0.01486614067107439, -0.037295106798410416, -0.0036354386247694492, -0.04608132690191269, -0.007085513789206743, 0.009536944329738617, -0.030399588868021965, -0.012354467064142227, -0.0033272721339017153, -0.03314296528697014, 0.07510922849178314, -0.08319106698036194, 0.06524790078401566, 0.02882399968802929, 0.021539220586419106, -0.00947670079767704, -0.009842793457210064, 0.011390578001737595, -0.019759733229875565, 0.05297684669494629, -0.027118658646941185, 0.05683240294456482, -0.04381989687681198, 0.014773459173738956, -0.005157735198736191, -0.0333654023706913, 0.012929093092679977, 0.05097492039203644, 0.0033017846290022135, -0.0276006031781435, -0.0023297856096178293, -0.06469181180000305, 0.044153548777103424, -0.06309768557548523, 0.02076069451868534, -0.02305920049548149, -0.01380956918001175, -0.058241162449121475, 0.03914874047040939, 0.023726508021354675, -0.026377204805612564, 0.06246744841337204, 0.03019568882882595, -0.021149957552552223, -0.0061401608400046825, 0.025320634245872498, 0.000781422364525497, 0.009458164684474468, 0.011881791055202484, 0.004645668901503086, -0.015162722207605839, 0.012975434772670269, -0.05431146174669266, 0.05256904661655426, -0.006265281233936548, 0.003978360909968615, -0.025116734206676483, 0.0267479307949543, -0.01530174445360899, -0.07377461344003677, 0.04941786825656891, 0.027470847591757774, -0.014838336035609245, 0.010000352747738361, -0.019351933151483536, -0.009309873916208744, 0.02945423685014248, 0.013336893171072006, -0.008387691341340542, -0.08363594114780426, 0.006413572002202272, 0.061058685183525085, 0.024245526641607285, 0.002750328741967678, -0.026469886302947998, -0.017183182761073112, -0.031604450196027756, 0.027989866212010384, -0.043115515261888504, -0.04997395724058151, 0.003957507666200399, -0.019537296146154404, 0.029083508998155594, -0.041150663048028946, 0.05468218773603439, -0.019870951771736145, -0.006895516533404589, -0.0342366099357605, 0.002340212231501937, 0.06187428534030914, 0.03866679593920708, 0.008489641360938549, 0.008591591380536556, 0.037313640117645264, 0.04074286296963692, 0.007117952685803175, 0.001179953571408987, 0.012929093092679977, -0.043226733803749084, 0.06710153073072433, 0.01881437934935093, -0.08808466047048569, -0.03590488061308861, 0.021372394636273384, -0.043115515261888504, 0.005672118626534939, -0.01641392521560192, 0.019370470196008682, 0.009087437763810158, 0.0042540887370705605, -0.05201295390725136, -0.03147469833493233, -0.02611769549548626, 0.004726765211671591, -0.015607593581080437, 0.026785003021359444, 0.007433070335537195, -0.0759248286485672, 0.006223574280738831, -0.017489030957221985, -0.005292123649269342, -0.006988198030740023, 0.03462587296962738, 0.06888101994991302, 0.026655249297618866, 0.024060161784291267, 0.045821819454431534, 0.01518125832080841, -0.003602999961003661, 0.047082290053367615, -0.006478448864072561, 0.1224881038069725, 0.06524790078401566, 0.00394592247903347, -0.005574802868068218, 0.03262395039200783, -0.007970623672008514, 0.02811961993575096, 0.0666937306523323, -0.015366621315479279, -0.07121659815311432, -0.009824257344007492, -0.008809393271803856, 0.002750328741967678, -0.033736128360033035, -0.04726765304803848, -0.019426079466938972, -0.028749855235219002, -0.04522865638136864, 0.02548746019601822, -0.053977806121110916, -0.024467961862683296, 0.006728689651936293, 0.016552947461605072, 0.028545955196022987, 0.03749900683760643, 0.014458341524004936, 0.027878647670149803, 0.003165079280734062, -0.041336026042699814, -0.0027688650880008936, 0.026877686381340027, -0.006205038167536259, 0.01966705173254013, 0.039890192449092865, 0.1327943056821823, -0.015209062956273556, -0.01342957466840744, -0.02858302742242813, -0.018740234896540642, 0.05423731729388237, 0.07177268713712692, -0.026136232540011406, -0.03866679593920708, 0.0707346498966217, 0.022929446771740913, 0.035979025065898895, 0.050530049949884415, 0.0066545442678034306, 0.006904784590005875, -0.006951125338673592, -0.03301321342587471, -0.03785119578242302, -0.06357962638139725, 0.005301391705870628, -0.015097844414412975, -0.016673432663083076, -0.027137193828821182, 0.045933037996292114, -0.06254159659147263, 0.041150663048028946, 0.020668013021349907, -0.030788851901888847, 0.0448579303920269, -0.04137310013175011, -0.032364439219236374, -0.037295106798410416, 0.059501633048057556, -0.038852158933877945, 0.02094605751335621, 0.08497055619955063, -0.0460071824491024, -0.014245172962546349, -0.0004862891510128975, 0.02541331574320793, 0.010046693496406078, 0.011955935508012772, -0.02811961993575096, 0.018480725586414337, 0.01449541375041008, -0.03342101350426674, -0.014069078490138054, -0.0067008850164711475, -0.03848142921924591, 0.011158873327076435, -0.05019639432430267, -0.014078346081078053, 0.016284169629216194, -0.04181797057390213, 0.061577703803777695, 0.055831439793109894, -0.03147469833493233 ]
20,459
metevolsim.metevolsim
build_species_graph
Build the metabolite-to-metabolite graph (mainly to compute shortest paths afterward). Parameters ---------- None Returns ------- None
def build_species_graph( self ): """ Build the metabolite-to-metabolite graph (mainly to compute shortest paths afterward). Parameters ---------- None Returns ------- None """ self.species_graph.clear() self.species_to_reaction = {} #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Create nodes from species # # identifiers # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for species_id in self.species.keys(): self.species_graph.add_node(species_id) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Create edges from reactions # # (All the species involved in the # # reaction are connected) # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for reaction in self.wild_type_model.getListOfReactions(): list_of_metabolites = [] for reactant in reaction.getListOfReactants(): species_id = reactant.getSpecies() if species_id in self.species.keys(): list_of_metabolites.append(species_id) if species_id not in self.species_to_reaction.keys(): self.species_to_reaction[species_id] = [reaction.getId()] else: self.species_to_reaction[species_id].append(reaction.getId()) for product in reaction.getListOfProducts(): species_id = product.getSpecies() if species_id in self.species.keys(): list_of_metabolites.append(species_id) if species_id not in self.species_to_reaction.keys(): self.species_to_reaction[species_id] = [reaction.getId()] else: self.species_to_reaction[species_id].append(reaction.getId()) #for modifier in reaction.getListOfModifiers(): # list_of_metabolites.append(modifier.getSpecies()) for i in range(len(list_of_metabolites)): for j in range(i+1, len(list_of_metabolites)): self.species_graph.add_edge(list_of_metabolites[i], list_of_metabolites[j])
(self)
[ 0.03982500731945038, -0.010254397056996822, -0.012124582193791866, 0.0030627669766545296, 0.01908130943775177, -0.02231573686003685, -0.03521730378270149, 0.015133140608668327, 0.008366142399609089, -0.01628054864704609, -0.04051164537668228, 0.06757964193820953, -0.026543980464339256, 0.06049642339348793, 0.011745124123990536, -0.02600189857184887, -0.027375174686312675, 0.033139318227767944, 0.028640033677220345, 0.0068392762914299965, -0.022893957793712616, -0.02598382905125618, 0.007431049831211567, -0.018774129450321198, 0.019984779879450798, 0.0349462628364563, -0.03518116474151611, 0.040005698800086975, -0.013380407355725765, 0.015738466754555702, -0.02603803761303425, -0.04459533467888832, -0.011501187458634377, 0.021213501691818237, 0.009865904226899147, -0.0135791702196002, 0.002918211743235588, 0.044920582324266434, -0.07032619416713715, 0.020111266523599625, 0.02231573686003685, -0.026146452873945236, 0.03445838764309883, -0.03498240187764168, -0.0037358528934419155, -0.023797428235411644, -0.026164522394537926, 0.07914406806230545, 0.00011900408571818843, -0.06096623092889786, -0.03400665149092674, -0.057027094066143036, 0.009856869466602802, 0.05442509800195694, -0.017292436212301254, 0.024140747264027596, -0.002502614865079522, 0.030157865956425667, 0.07813218235969543, -0.0137960035353899, 0.012296241708099842, 0.022225389257073402, 0.021773653104901314, -0.013055157847702503, -0.028278645128011703, -0.03364526480436325, -0.04043936729431152, -0.009757488034665585, -0.05037754774093628, 0.04141511395573616, 0.014464572072029114, -0.01671421527862549, 0.050124578177928925, 0.008980502374470234, 0.01279315073043108, -0.0011609604116529226, 0.011049451306462288, -0.06801330298185349, 0.04011411592364311, -0.015422252006828785, -0.035958148539066315, -0.03084450401365757, -0.03644602373242378, -0.06779646873474121, -0.0035529001615941525, 0.027357105165719986, 0.08449261635541916, 0.045245833694934845, -0.05482262745499611, -0.08846788853406906, -0.042390864342451096, -0.022442221641540527, -0.00010884003131650388, 0.0129738450050354, -0.012269137427210808, 0.03964431211352348, -0.02235187590122223, -0.08673322200775146, 0.026507841423153877, -0.04029481112957001, 0.0037290770560503006, 0.028603894636034966, -0.012639560736715794, 0.007860198616981506, -0.032199710607528687, -0.013335233554244041, -0.04698049649596214, 0.009658105671405792, -0.0510280467569828, -0.035903941839933395, -0.1335691660642624, 0.04343888908624649, 0.05370232090353966, 0.017617685720324516, 0.014292912557721138, -0.04734188690781593, 0.02636328712105751, 0.01281122025102377, 0.044053249061107635, -0.018990961834788322, -0.02844127081334591, 0.025008080527186394, -0.00478387949988246, 0.02755586802959442, 0.01459105871617794, 0.05283499136567116, 0.02999524027109146, -0.019749877974390984, -0.020436516031622887, -0.048173077404499054, -0.04640227556228638, 0.02074369601905346, -0.014907273463904858, 0.05843650922179222, 0.015675224363803864, -0.027465522289276123, -0.0707598552107811, -0.07632523775100708, 0.061074648052453995, 0.05713551118969917, 0.007647882681339979, -0.03498240187764168, -0.008732047863304615, -0.021032806485891342, -0.07668662816286087, -0.02921825461089611, -0.013913454487919807, -0.03809034079313278, -0.03686162084341049, -0.04654683172702789, 0.0015584876528009772, -0.000974054797552526, -0.014988585375249386, -0.002875296864658594, 0.0050323340110480785, 0.02965192124247551, -0.03588587045669556, 0.028730381280183792, 0.007566570304334164, 0.02390584535896778, -0.034277692437171936, -0.046113163232803345, 0.0054208263754844666, 0.02442985773086548, -0.08116784691810608, -0.03444031998515129, 0.03245268017053604, -0.04108986631035805, -0.01868378184735775, 0.02797146514058113, -0.05312409996986389, 0.00012592128769028932, -0.06656774878501892, -0.034277692437171936, 0.0031734423246234655, 0.038379453122615814, 0.00039724496309645474, -0.029308602213859558, 0.023797428235411644, 0.04007797688245773, -0.035958148539066315, -0.09880360215902328, -0.0371868722140789, 0.0006132310372777283, -0.004973608534783125, -0.0032683066092431545, 0.05644887313246727, -0.03084450401365757, 0.06609794497489929, 0.040367089211940765, 0.005669281352311373, -0.028911074623465538, -0.04423394426703453, 0.05652115121483803, 0.05287113040685654, -0.014690440148115158, 0.06013503670692444, -0.007435567211359739, -0.0487874411046505, 0.058255817741155624, -0.0332115963101387, 0.014021871611475945, 0.01942462846636772, -0.0021367091685533524, 0.03337422385811806, 0.03931906074285507, 0.030970988795161247, 0.008975985459983349, -0.020093197003006935, 0.006943175569176674, -0.05529243126511574, -0.023237276822328568, 0.07361482828855515, -0.018421776592731476, 0.02152068167924881, -0.12186018377542496, -0.01779838092625141, 0.016533521935343742, 0.012910601682960987, -0.026218730956315994, -0.051750823855400085, -0.025008080527186394, -0.04542652517557144, 0.037548258900642395, -0.07083213329315186, 0.005493104457855225, -0.01822301186621189, 0.054208267480134964, 0.01828625425696373, -0.03129623830318451, -0.014943411573767662, -0.022550638765096664, 0.04911268875002861, -0.023327624425292015, 0.008781739510595798, 0.03866856172680855, 0.02874845080077648, 0.06396575272083282, -0.011157868430018425, 0.040403228253126144, -0.05558154359459877, -0.07487968355417252, 0.007286494597792625, -0.04661910980939865, -0.010218258015811443, -0.022225389257073402, 0.09771943092346191, -0.03154921159148216, -0.053413212299346924, -0.016813596710562706, 0.017545409500598907, -0.0008204646874219179, 0.026453634724020958, -0.000490133068524301, 0.016750354319810867, -0.12243840098381042, -0.0316576287150383, 0.002208986785262823, 0.0284593403339386, -0.07574702054262161, -0.014753683470189571, 0.01237755361944437, 0.015702327713370323, 0.0567379854619503, -0.05167854577302933, 0.0034964331425726414, -0.04011411592364311, 0.06458011269569397, -0.04824535548686981, -0.04253542050719261, 0.07972229272127151, 0.044125527143478394, -0.02632714807987213, 0.017238229513168335, -0.03863242268562317, -0.01241369266062975, -0.0023783876094967127, -0.004334402736276388, -0.08673322200775146, -0.00040430331137031317, -0.07180788367986679, -0.018060388043522835, 0.03440418094396591, 0.004440560471266508, -0.01953304558992386, 0.0017267591319978237, 0.004743223078548908, 0.03498240187764168, 0.014916308224201202, 0.012332380749285221, 0.004558011889457703, 0.015693293884396553, 0.002188658807426691, 0.030663808807730675, 0.046113163232803345, -0.015928195789456367, 0.0042395382188260555, 0.0312239620834589, 0.012305276468396187, 0.0019006773363798857, 0.03534378856420517, -0.022207319736480713, 0.08825105428695679, -0.013073226436972618, -0.045715637505054474, 0.023309554904699326, 0.06580883264541626, 0.00994721706956625, 0.03357298672199249, 0.018051352351903915, 0.0072277686558663845, 0.022550638765096664, 0.005940322298556566, 0.037584397941827774, 0.006694721058011055, 0.012540179304778576, -0.04264383763074875, -0.020581072196364403, 0.04459533467888832, 0.06172514706850052, 0.015648119151592255, 0.055798374116420746, 0.0007160008535720408, 0.03080836497247219, 0.02229766733944416, -0.046908218413591385, 0.01789776235818863, 0.001925522810779512, 0.031025197356939316, -0.02558630146086216, -0.029091769829392433, -0.004720636643469334, 0.009468377567827702, 0.005353066138923168, -0.023002374917268753, 0.015087967738509178, 0.01337137259542942, -0.015386112965643406, 0.04217403009533882, -0.03041083738207817, 0.05681026354432106, 0.018954822793602943, -0.024899663403630257, -0.002775914967060089, 0.08109556883573532, 0.0008074772777035832, 0.03657250851392746, -0.027808841317892075, -0.049329522997140884, 0.03409700095653534, 0.03088064305484295, 0.01908130943775177, -0.001761768595315516, 0.03196480870246887, 0.005646694451570511, 0.037078455090522766, -0.03733142465353012, -0.0536300428211689, -0.049763187766075134, 0.07047074288129807, 0.033518776297569275, 0.011880644597113132, 0.0011022347025573254, 0.003385758027434349, 0.026887299492955208, -0.08167378604412079, 0.00557441683486104, 0.05728006735444069, 0.050088439136743546, -0.07480740547180176, 0.0073271505534648895, -0.008375177159905434, -0.018006179481744766, 0.00976652279496193, 0.005958391819149256, 0.03275986388325691, 0.03001330979168415, 0.012106512673199177, 0.010823584161698818, -0.0008611208759248257, 0.012232998386025429, 0.04224630817770958, -0.021611029282212257, 0.006699238438159227, 0.01748216524720192, -0.0536300428211689, 0.09229860454797745, 0.0284593403339386, 0.032235849648714066, -0.004268900956958532, 0.02874845080077648, -0.022225389257073402, 0.058978594839572906, 0.009721348993480206, 0.0227494016289711, -0.003828458720818162, 0.06862766295671463, -0.013163574039936066, -0.06794102489948273, 0.014428433030843735, 0.022857818752527237, -0.06580883264541626, -0.004702567122876644, 0.05724392831325531, 0.006748929154127836, -0.038343314081430435, -0.0034241555258631706, 0.061074648052453995, -0.0024348546285182238, 0.004609961062669754, 0.030681878328323364, -0.0011925818398594856, 0.006771516054868698, -0.0113295279443264, -0.04665524885058403, -0.05771373212337494, 0.014148357324302197, -0.014862099662423134, 0.05475034937262535, 0.07169946283102036, 0.03819875791668892, 0.023038513958454132, 0.05428054556250572, 0.004422490950673819, -0.002253031125292182, -0.005348548758774996, -0.020870182663202286, 0.057894427329301834, -0.07495196163654327, 0.027881117537617683, -0.023399900645017624, -0.01589205674827099, 0.053015682846307755, -0.027863048017024994, 0.012892532162368298, -0.04043936729431152, -0.009021159261465073, -0.03928292170166969, -0.02068948745727539, 0.016099855303764343, 0.011419874615967274, -0.0075891572050750256, 0.0074265324510633945, -0.052618157118558884, -0.004702567122876644, -0.001687232288531959, 0.006572752259671688, 0.046149302273988724, 0.028640033677220345, 0.030284350737929344, -0.03248881921172142, -0.013380407355725765, 0.041631948202848434, -0.01559391152113676, -0.0018577624578028917, 0.07209699600934982, 0.04062006250023842, 0.02719447948038578, -0.023472178727388382, -0.009441273286938667, 0.03780123218894005, -0.019623393192887306, 0.00894436426460743, 0.04799238592386246, -0.03301283344626427, 0.021303849294781685, 0.0022575485054403543, -0.0007719031418673694, -0.016876840963959694, -0.031476933509111404, 0.030627669766545296, 0.03378982096910477, 0.03003137931227684, -0.07256679981946945, -0.02601996809244156, -0.004205658100545406, -0.050160717219114304, -0.009012124501168728, 0.022478360682725906, -0.05475034937262535, 0.03613884374499321, -0.05044982582330704, 0.021430334076285362, -0.04062006250023842, -0.019262004643678665, 0.005691867787390947, 0.05395529419183731, -0.03501854091882706, 0.04087303206324577, -0.05688254162669182, -0.045643359422683716, -0.05370232090353966, 0.0048335702158510685, 0.0382348969578743, 0.03809034079313278, 0.07545790821313858, -0.035578690469264984, -0.014473606832325459, 0.0032140985131263733, -0.024664761498570442, -0.0037471463438123465, 0.022135041654109955, -0.052112214267253876, 0.025369469076395035, -0.010507368482649326, 0.027863048017024994, 0.0030334042385220528, -0.011699950322508812, -0.008854016661643982, -0.014464572072029114, 0.02036423794925213, -0.08947977423667908, 0.02916404791176319, -0.00047573400661349297, 0.004165001679211855, -0.023851636797189713, -0.011763193644583225, 0.018972892314195633, 0.0211050845682621, 0.02479124628007412, 0.01012791134417057, -0.019298141822218895, 0.01790679804980755, 0.03218163922429085, -0.03050118498504162, -0.015160244889557362, 0.005917735863476992, 0.01583784818649292, 0.019804086536169052, -0.01750927045941353, 0.0019887657836079597, -0.004178553819656372, -0.03333808481693268, 0.05352162942290306, 0.04015025496482849, -0.028549686074256897, 0.07209699600934982, -0.02025582268834114, 0.0030853538773953915, 0.0016172132454812527, 0.0049690911546349525, -0.018864477053284645, -0.008664287626743317, -0.0576053187251091, 0.01377793401479721, -0.03986114636063576, 0.04130670055747032, -0.01584688387811184, 0.016407035291194916, -0.032235849648714066, -0.007720160763710737, 0.07025391608476639, -0.044414639472961426, -0.003537089331075549, 0.07133807986974716, -0.04228244721889496, 0.011221110820770264, -0.029959101229906082, 0.012531144544482231, 0.04333047568798065, 0.0018012955551967025, -0.0014602352166548371, 0.033518776297569275, -0.015566807240247726, 0.040330950170755386, 0.010904896073043346, -0.03118782304227352, 0.016967186704277992, -0.034729428589344025, 0.0007024487713351846, 0.00915667973458767, 0.015449355356395245, 0.050485964864492416, 0.04383641853928566, -0.02074369601905346, -0.01078744512051344, -0.024249164387583733, -0.019207796081900597, 0.029344741255044937, -0.07390393316745758, 0.017328575253486633, 0.005624107550829649, 0.01993057318031788, 0.024845454841852188, 0.05554540455341339, 0.06161672994494438, 0.0021412265487015247, 0.086155004799366, 0.0158739872276783, -0.010850687511265278, -0.0032276504207402468, 0.031404655426740646, 0.005583451595157385, -0.016163097694516182, -0.014021871611475945, 0.014076080173254013, 0.025785064324736595, -0.016425104811787605, -0.03765667602419853, 0.03126009926199913, -0.05287113040685654, -0.03088064305484295, 0.0259476900100708, -0.021339986473321915, 0.009079884737730026, -0.07383165508508682, 0.059412259608507156, 0.03088064305484295, -0.00537565303966403, -0.021592959761619568, -0.004368282854557037, 0.01279315073043108, 0.025766996666789055, -0.030121726915240288, -0.03921064734458923, -0.05836423486471176, -0.022496430203318596, -0.00578673230484128, 0.034729428589344025, -0.02797146514058113, -0.032308127731084824, -0.04759485647082329, -0.004490251187235117, -0.01218782551586628, -0.01583784818649292, 0.008876604028046131, -0.025062289088964462, -0.046474553644657135, -0.012088443152606487, -0.04257155954837799, 0.023056581616401672, -0.0608939528465271, -0.029706129804253578, -0.018385637551546097, 0.017138846218585968, -0.020852113142609596, 0.042065612971782684, -0.005050403531640768, -0.06443555653095245, 0.045643359422683716, -0.03039276786148548, -0.015169279649853706, -0.02723061852157116, -0.003374464577063918, -0.08984116464853287, 0.03949975594878197, 0.03192866966128349, -0.0332115963101387, -0.011419874615967274, 0.014329051598906517, 0.0006798619870096445, 0.029525436460971832, -0.005199476145207882, -0.004838087595999241, 0.06714597344398499, 0.008194482885301113, -0.029814546927809715, -0.07224155217409134, -0.014265808276832104, -0.005777697544544935, 0.08022823184728622, 0.027899187058210373, 0.06291772425174713, -0.039933424443006516, 0.030736086890101433, -0.03610270470380783, 0.0448121652007103, -0.023237276822328568, 0.040005698800086975, 0.060640979558229446, -0.002699119970202446, -0.04499286040663719, 0.020617211237549782, -0.016840701922774315, -0.06288158893585205, 0.039138369262218475, -0.004951021634042263, 0.08854016661643982, 0.01785258948802948, -0.003471587784588337, 0.03120589256286621, 0.04231858626008034, 0.0011135281529277563, 0.0007978779030963778, 0.03698810562491417, 0.033464569598436356, -0.03601235896348953, -0.00833452120423317, -0.017780311405658722, -0.038307175040245056, 0.00637850584462285, -0.02887493558228016, -0.00369971408508718, -0.00309212994761765, -0.020165475085377693, 0.03816261887550354, -0.03812647983431816, -0.057424623519182205, 0.002241737674921751, -0.03608463704586029, 0.03203708678483963, 0.037078455090522766, 0.01096813939511776, 0.02596575953066349, 0.013019018806517124, -0.015711361542344093, -0.048462189733982086, 0.04271611198782921, -0.023851636797189713, 0.03651830181479454, 0.00043338380055502057, 0.02726675756275654, 0.028676172718405724, 0.020581072196364403, 0.014464572072029114, -0.03841559216380119, 0.025857342407107353, 0.03863242268562317, -0.018611503764986992, -0.009341890923678875, 0.032633375376462936, -0.03042890690267086, 0.049654770642519, 0.05044982582330704, -0.003767474554479122, -0.005700902547687292, -0.004180812742561102, -0.052582018077373505, 0.025351399555802345, -0.04951021447777748, -0.02925439365208149, 0.03946361690759659, -0.02320113778114319, 0.013859246857464314, 0.019352350383996964, -0.04922110587358475, 0.03608463704586029, 0.02027389220893383, 0.010805514641106129, 0.0510280467569828, -0.06248405948281288, -0.05088349059224129, -0.06515833735466003, 0.00894436426460743, -0.0028888487722724676, 0.03657250851392746, 0.04629385843873024, 0.026959577575325966, -0.016352826729416847, 0.01671421527862549, 0.062267228960990906, -0.03250689059495926, 0.022622916847467422, -0.0227494016289711, 0.019316211342811584, 0.0010807772632688284, 0.02034616842865944, -0.049293383955955505, -0.010516403242945671, -0.057822149246931076, 0.003776509314775467, -0.06992866098880768, 0.009938182309269905, -0.011998096480965614, -0.016000473871827126, 0.04784782975912094, 0.01096813939511776, -0.012476935982704163 ]
20,460
metevolsim.metevolsim
build_species_list
Build the species list. Parameters ---------- None Returns ------- None
def build_species_list( self ): """ Build the species list. Parameters ---------- None Returns ------- None """ self.species = {} for species in self.wild_type_model.getListOfSpecies(): assert species.getId() not in list(self.species) self.species[species.getId()] = {} self.species[species.getId()]["metaid"] = species.getMetaId() self.species[species.getId()]["id"] = species.getId() self.species[species.getId()]["name"] = species.getName() if species.getName()=="": self.species[species.getId()]["name"] = "-" self.species[species.getId()]["compartment"] = species.getCompartment() self.species[species.getId()]["constant"] = species.getConstant() self.species[species.getId()]["boundary_condition"] = species.getBoundaryCondition() self.species[species.getId()]["initial_value"] = species.getInitialConcentration() self.species[species.getId()]["wild_type_value"] = species.getInitialConcentration() self.species[species.getId()]["mutant_value"] = species.getInitialConcentration() s1 = species.getAnnotationString().split("http://identifiers.org/kegg.compound/") s2 = "" if len(s1) == 1: s1 = species.getAnnotationString().split("https://identifiers.org/kegg.compound/") if len(s1) > 1: s2 = s1[1].split("\"/>\n")[0] if s2 != "": self.species[species.getId()]["kegg_id"] = "https://identifiers.org/kegg.compound/"+s2 else: self.species[species.getId()]["kegg_id"] = "-"
(self)
[ 0.0674404427409172, -0.04434491693973541, -0.052746713161468506, -0.040125180035829544, 0.007648273836821318, -0.014119165018200874, -0.04777345433831215, -0.017849111929535866, 0.037544358521699905, -0.024866309016942978, -0.0727904662489891, 0.03445490822196007, -0.037619709968566895, 0.01815052144229412, 0.035208430141210556, -0.025280747562646866, -0.01429812703281641, 0.04830091819167137, -0.004316282458603382, -0.06028195843100548, -0.010982619598507881, 0.019054749980568886, -0.009645113721489906, -0.006221286486834288, 0.04581429064273834, 0.0038029439747333527, 0.03419117256999016, 0.023980917409062386, -0.002813942963257432, 0.00016615803178865463, 0.0046859802678227425, -0.022172458469867706, -0.0005118668195791543, 0.014957461506128311, 0.030875666067004204, -0.03722411021590233, -0.015390737913548946, 0.039786092936992645, -0.059038642793893814, 0.05142804607748985, 0.020533543080091476, -0.035472165793180466, -0.002981131197884679, -0.04102940857410431, -0.024489546194672585, 0.02765434980392456, -0.01951628364622593, 0.05598687008023262, 0.011858591809868813, -0.03264644742012024, -0.05794603377580643, 0.004622401669621468, -0.03505772724747658, 0.009051713161170483, -0.05813441425561905, -0.017434673383831978, 0.0024819213431328535, 0.030009113252162933, 0.09004617482423782, 0.01692604459822178, 0.00014172735973261297, 0.02160731516778469, -0.0013445703079923987, -0.061299216002225876, -0.038128338754177094, -0.002465437864884734, -0.03162918984889984, 0.017660729587078094, -0.0011673743138089776, 0.04035123810172081, 0.049732618033885956, -0.01521177589893341, 0.0501093789935112, 0.046002671122550964, 0.033644869923591614, 0.014090907759964466, -0.03669664263725281, -0.0651421919465065, 0.051088958978652954, -0.04735901579260826, -0.045060764998197556, 0.029764218255877495, -0.02626032941043377, -0.03517075628042221, -0.01857437938451767, 0.061299216002225876, 0.05263368412852287, 0.041255466639995575, 0.014778499491512775, -0.020269809290766716, -0.017067329958081245, 0.0367719940841198, -0.005674981512129307, -0.018084587529301643, -0.00403606565669179, 0.019553961232304573, -0.004864942282438278, -0.05451749637722969, 0.03042355179786682, -0.018442511558532715, 0.029067207127809525, -0.01459953747689724, -0.0067770108580589294, 0.0011426492128521204, -0.04717063158750534, -0.005571371875703335, -0.0015906430780887604, 0.018329482525587082, -0.017236873507499695, 0.031233590096235275, -0.10496596246957779, -0.027277586981654167, 0.007276220712810755, -0.008269931189715862, 0.006508567836135626, -0.07041686028242111, 0.05278439074754715, 0.030819151550531387, 0.02609078586101532, -0.07934612780809402, -0.026995014399290085, -0.035641707479953766, -0.050410788506269455, 0.03488818556070328, 0.02132474258542061, 0.04095405712723732, -0.009484989568591118, -0.021663829684257507, -0.0034261816181242466, -0.05907632037997246, -0.01891346462070942, 0.03517075628042221, -0.020872628316283226, 0.001051990780979395, 0.048941414803266525, -0.09268350899219513, -0.054743554443120956, -0.06985171884298325, 0.04166990518569946, 0.03475631773471832, 0.003520372323691845, -0.03639523312449455, 0.008100388571619987, -0.019723502919077873, -0.06992707401514053, 0.010219675488770008, -0.007667111698538065, -0.02055238001048565, -0.05892561376094818, -0.012706306762993336, -0.020665409043431282, 0.04095405712723732, -0.004266832489520311, -0.01798097789287567, -0.015937043353915215, -0.02720223367214203, 0.0018520219018682837, -0.03196827694773674, 0.008434765040874481, 0.03102637082338333, 0.0013351512607187033, -0.0036640127655118704, -0.004601208958774805, 0.007846074178814888, -0.0744858980178833, 0.026316842064261436, -0.0207219235599041, -0.05391467735171318, 0.01867798902094364, 0.0003691092715598643, -0.03458677604794502, 0.01162311527878046, -0.06144992262125015, 0.005298219155520201, -0.002620852319523692, 0.03232619911432266, -0.003913617692887783, -0.003798234509304166, 0.006018776912242174, 0.006866491865366697, -0.054743554443120956, -0.06747812032699585, -0.03750668093562126, 0.011952782049775124, 0.008175740949809551, -0.009758141823112965, 0.038731157779693604, 0.010568181052803993, 0.09057364612817764, 0.040125180035829544, 0.002334748627617955, -0.009748723357915878, -0.045738935470581055, 0.05225692316889763, 0.04276251420378685, -0.015108166262507439, 0.07019080966711044, -0.00716790184378624, -0.07169785350561142, 0.05881258845329285, -0.05609989911317825, 0.005156933329999447, -0.035453327000141144, -0.04287554323673248, 0.01882869377732277, 0.04328998178243637, 0.0035297912545502186, -0.005858652759343386, -0.0031082886271178722, -0.005929295904934406, -0.017764339223504066, 0.005255833268165588, 0.017218034714460373, 0.017123844474554062, 0.0775376707315445, -0.155075341463089, -0.0010973199969157577, -0.013930783607065678, -0.01864973083138466, -0.04302624985575676, -0.05790835618972778, -0.03579241409897804, -0.023020172491669655, -0.032100144773721695, -0.0922314003109932, 0.03652710095047951, -0.011171001009643078, 0.0444202683866024, 0.0006681642844341695, -0.0013504571979865432, -0.015371900051832199, -0.03630104288458824, 0.017001396045088768, 0.006339024752378464, -0.03716759383678436, 0.02529958449304104, 0.015795757994055748, 0.0156262144446373, -0.027013853192329407, -0.0014046167489141226, 0.0022181877866387367, -0.019422093406319618, 0.002198172267526388, -0.038241367787122726, -0.03015981800854206, -0.034266527742147446, 0.04788648337125778, 0.036677803844213486, -0.034605611115694046, -0.055157992988824844, 0.008307607844471931, 0.014627793803811073, 0.0440811812877655, 0.02659941464662552, 0.010634114034473896, -0.11604277044534683, -0.025337260216474533, 0.00035085983108729124, 0.049732618033885956, -0.07791443169116974, -0.02028864622116089, -0.02462141215801239, 0.04163222759962082, 0.06815628707408905, -0.07237602770328522, 0.020684247836470604, -0.010916685685515404, 0.0644640177488327, -0.030480066314339638, -0.027164557948708534, 0.05493193492293358, 0.018809854984283447, -0.039748415350914, -0.04984564706683159, -0.00639553926885128, 0.018009236082434654, 0.04822556674480438, -0.0025148880667984486, -0.07105735689401627, 0.028973016887903214, 0.01649276725947857, -0.01204697322100401, 0.05500728636980057, 0.026203814893960953, 0.05029775947332382, -0.030875666067004204, -0.014288708567619324, 0.07422216236591339, -0.008373540826141834, -0.02117403782904148, -0.02644870989024639, 0.014401736669242382, -0.014835013076663017, 0.010351542383432388, 0.04102940857410431, -0.02290714532136917, -0.00664985366165638, 0.02902953140437603, 0.0021710924338549376, -0.023547640070319176, 0.005251124035567045, 0.04325230419635773, 0.09712930768728256, -0.021023333072662354, -0.073204904794693, 0.0009683967218734324, 0.029217911884188652, -0.027239911258220673, 0.007667111698538065, -0.0038382653146982193, -0.008020326495170593, 0.03014097921550274, 0.06453937292098999, 0.05854885280132294, -0.002653819043189287, -0.01831064559519291, -0.045475203543901443, -0.03083799034357071, 0.03697921335697174, 0.07723625749349594, 0.03739365190267563, -0.030367037281394005, 0.0016565765254199505, 0.026976177468895912, 0.09938988089561462, -0.07350631058216095, 0.01364821195602417, 0.020684247836470604, 0.016718825325369835, 0.0027668478433042765, -0.04129314050078392, -0.044533297419548035, 0.014750242233276367, 0.017321644350886345, 0.056212928146123886, -0.01152892503887415, -0.016897786408662796, -0.03353184089064598, -0.02955699898302555, -0.08009965717792511, -0.014627793803811073, -0.0255633182823658, -0.05538405105471611, 0.00516164256259799, 0.05572313442826271, -0.015616795048117638, 0.05323650687932968, -0.038919538259506226, -0.02876579761505127, 0.011999877169728279, 0.02531842328608036, 0.006875910796225071, 0.057833004742860794, 0.0681939646601677, 0.07237602770328522, 0.014835013076663017, -0.021833371371030807, -0.020006075501441956, -0.04562590643763542, 0.039258625358343124, 0.07896936684846878, -0.03230736404657364, 0.019064169377088547, 0.010822495445609093, 0.028370197862386703, -0.06374817341566086, -0.002432471141219139, 0.018461350351572037, 0.030254008248448372, -0.058021385222673416, -0.043930478394031525, -0.0012115261051803827, -0.036414071917533875, -0.029613513499498367, 0.05692877620458603, -0.00446698721498251, 0.027767376974225044, -0.01058701891452074, -0.03042355179786682, -0.03066844679415226, -0.030875666067004204, 0.02669360488653183, -0.007408087607473135, 0.008641984313726425, 0.010389219038188457, -0.069474957883358, 0.05707947909832001, 0.026844309642910957, -0.014486508443951607, -0.003214252879843116, 0.022078268229961395, -0.006442634388804436, 0.03937165439128876, 0.03993679955601692, 0.04536217451095581, -0.011896267533302307, -0.0056844004429876804, -0.05858653038740158, -0.050486139953136444, 0.045060764998197556, 0.0090658413246274, -0.09630043059587479, 0.0031742218416184187, 0.07166017591953278, -0.019911885261535645, -0.07625667750835419, 0.027861567214131355, 0.006437924690544605, -0.023472288623452187, 0.003824136918410659, 0.005966972094029188, -0.021061008796095848, -0.014665470458567142, -0.05432911589741707, 0.007116097025573254, 0.018470769748091698, 0.01806575059890747, 0.02480979450047016, -0.00003670120349852368, 0.05553475394845009, 0.005302928388118744, -0.007054873276501894, 0.057154834270477295, 0.10579483956098557, -0.016813015565276146, 0.028106464073061943, 0.007116097025573254, 0.025808213278651237, -0.03181757032871246, -0.0232273917645216, -0.033644869923591614, 0.03349416330456734, -0.011387638747692108, -0.024433031678199768, 0.013101907446980476, -0.033042047172784805, -0.0045541138388216496, -0.04464632645249367, -0.01597471907734871, 0.011255771853029728, 0.006141224410384893, 0.02247386798262596, -0.0067770108580589294, 0.024338841438293457, 0.013205517083406448, 0.017924463376402855, -0.014844432473182678, 0.02895417809486389, 0.05425376445055008, -0.01174556277692318, 0.005825686268508434, -0.019987236708402634, 0.06020660698413849, -0.025940081104636192, 0.058285120874643326, 0.017839692533016205, 0.04939353093504906, 0.010436314158141613, 0.03119591437280178, -0.05591151863336563, 0.030894504860043526, 0.008924555964767933, 0.04438259080052376, 0.06235415115952492, -0.033136241137981415, 0.019478607922792435, -0.011415896005928516, 0.021211713552474976, -0.008750302717089653, -0.028558578342199326, 0.017999816685914993, 0.054743554443120956, 0.05406538397073746, -0.03317391499876976, -0.005778591148555279, -0.00024327656137757003, -0.024602575227618217, 0.0027927502524107695, -0.009353122673928738, -0.08529897034168243, 0.022869467735290527, -0.060960132628679276, -0.011924524791538715, -0.017161520197987556, -0.0156262144446373, -0.005533695686608553, 0.025714023038744926, -0.05086290463805199, -0.0017601861618459225, -0.026411034166812897, -0.04818789288401604, -0.04890374094247818, -0.014458251185715199, 0.01071888580918312, 0.0013233773643150926, 0.055685460567474365, 0.0017495896900072694, 0.01634206250309944, -0.011943363584578037, -0.0009601550409570336, -0.0006505035562440753, -0.011208676733076572, -0.004236220382153988, 0.004653013776987791, 0.0031600934453308582, -0.0037323010619729757, 0.00907526072114706, 0.0019497446483001113, -0.02288830652832985, -0.006489729508757591, -0.007441054563969374, -0.08100388199090958, 0.07192391157150269, -0.026053110137581825, -0.017218034714460373, 0.005886910017579794, -0.02247386798262596, 0.0312524288892746, -0.007017196621745825, 0.07444822043180466, 0.012762821279466152, -0.03258993476629257, 0.013224354945123196, 0.014477089047431946, -0.006178901065140963, 0.027503643184900284, -0.028407873585820198, 0.008717336691915989, 0.0027150430250912905, 0.029613513499498367, -0.03206246718764305, -0.046530138701200485, -0.033230431377887726, 0.03773273900151253, 0.02160731516778469, -0.0018826338928192854, 0.0775376707315445, -0.04204666614532471, 0.036847349256277084, 0.023020172491669655, 0.03535913676023483, -0.007375121116638184, 0.003369667334482074, -0.06906051933765411, 0.010549343191087246, -0.016954300925135612, 0.007021906320005655, -0.030027950182557106, 0.02237967774271965, -0.037695061415433884, 0.03368254378437996, 0.020929142832756042, -0.012800497002899647, -0.03967306390404701, 0.0404265895485878, -0.022775277495384216, 0.03726178780198097, -0.054743554443120956, -0.0026373357977718115, 0.030781475827097893, 0.04114243760704994, 0.02288830652832985, 0.038128338754177094, -0.024828631430864334, -0.011368800885975361, 0.060960132628679276, -0.0338897630572319, 0.017246291041374207, -0.04227272421121597, -0.04035123810172081, 0.0111050670966506, -0.011651372537016869, 0.04084102809429169, 0.039107922464609146, -0.03251458331942558, -0.0007900233613327146, -0.02893534116446972, 0.008783269673585892, 0.001432873890735209, -0.06269323825836182, 0.029330940917134285, 0.006047034170478582, -0.006037614773958921, -0.028615092858672142, 0.037977635860443115, 0.05805906280875206, 0.002405391540378332, 0.036489423364400864, 0.026637090370059013, -0.004266832489520311, 0.007441054563969374, 0.0338897630572319, -0.02695733867585659, -0.0036451746709644794, -0.025600994005799294, 0.04502308741211891, -0.0047636874951422215, -0.03211897984147072, -0.04758507013320923, 0.009729884564876556, -0.0032707671634852886, 0.003138900501653552, 0.008434765040874481, 0.03375789895653725, 0.04916747286915779, -0.03415349870920181, 0.05399002879858017, 0.006809977814555168, -0.028012273833155632, -0.030951019376516342, 0.023020172491669655, 0.00587278138846159, 0.0069748112000525, -0.038486264646053314, -0.02132474258542061, -0.01978001743555069, 0.023283906280994415, -0.015287128277122974, 0.04020053148269653, -0.07079362869262695, -0.014382898807525635, -0.018037492409348488, -0.021494286134839058, 0.011340543627738953, -0.018207035958766937, -0.0661594495177269, 0.0007988536963239312, -0.021230552345514297, -0.0038382653146982193, -0.057154834270477295, 0.05466820299625397, -0.015786338597536087, -0.012951201759278774, -0.027258748188614845, -0.015541442669928074, 0.06431331485509872, 0.047811128199100494, -0.010012457147240639, -0.04630408063530922, 0.09200534224510193, -0.0031812861561775208, -0.021965239197015762, -0.01882869377732277, 0.045399852097034454, -0.05960378795862198, 0.04287554323673248, -0.0036640127655118704, -0.04344068840146065, -0.034341879189014435, 0.009315446950495243, -0.012075229547917843, 0.03712991997599602, -0.009395508095622063, -0.0038217820692807436, 0.028407873585820198, 0.00984291359782219, -0.02763551101088524, -0.05206854268908501, -0.01753828302025795, 0.012480249628424644, 0.02678779512643814, 0.01279107853770256, 0.006593339145183563, -0.06646086275577545, 0.022097105160355568, -0.01788678765296936, 0.0309133417904377, -0.02409394644200802, 0.04457097500562668, 0.04999634996056557, -0.006682820152491331, -0.028973016887903214, 0.033644869923591614, -0.0018096361309289932, -0.054555173963308334, 0.016351481899619102, -0.015965299680829048, 0.11189838498830795, 0.07248905301094055, 0.020759599283337593, 0.029613513499498367, 0.00007531565643148497, 0.0250546894967556, 0.0010767158819362521, 0.04020053148269653, 0.020947981625795364, 0.003435600781813264, -0.017039071768522263, -0.012103486806154251, 0.0042032538913190365, -0.02833252027630806, -0.06363514065742493, 0.0026161428540945053, 0.04215969517827034, -0.02411278337240219, 0.011387638747692108, 0.0010502247605472803, -0.04200899228453636, 0.00021649111295118928, 0.029575835913419724, 0.012979459017515182, 0.041858285665512085, 0.0033602481707930565, 0.024583736434578896, 0.0006228350684978068, 0.00594342453405261, -0.017123844474554062, 0.041255466639995575, 0.017406415194272995, -0.003098869463428855, 0.029745379462838173, 0.09306027740240097, 0.012056391686201096, -0.027145719155669212, -0.0021863984875380993, -0.021833371371030807, 0.022228972986340523, 0.03801530972123146, 0.00446698721498251, -0.01032328512519598, 0.08627855777740479, 0.040916379541158676, 0.07674647122621536, 0.020156780257821083, -0.007450473494827747, 0.015494347549974918, 0.028803473338484764, -0.01446767058223486, -0.003687560558319092, -0.026731280609965324, -0.006508567836135626, 0.036056146025657654, -0.05120198801159859, -0.046530138701200485, -0.004897909238934517, -0.07120806723833084, 0.05199319124221802, 0.019742341712117195, -0.030630771070718765, 0.01382717490196228, -0.024866309016942978, 0.011990458704531193, -0.050335437059402466, 0.023736022412776947, -0.05063684657216072, 0.042122017592191696, 0.10647301375865936, -0.014882109127938747, 0.006409667897969484, 0.009786399081349373, 0.02987724542617798, 0.029764218255877495, 0.020608894526958466, -0.017312224954366684, 0.012094068340957165, -0.007893169298768044, 0.015852270647883415, 0.009645113721489906, 0.01006897073239088, -0.01676592044532299, 0.00016056546883191913, -0.04095405712723732, 0.004949714057147503, 0.04426956549286842, -0.020759599283337593, 0.06491613388061523, -0.006306058261543512, -0.039333976805210114 ]
20,461
metevolsim.metevolsim
compute_moma_distance
Compute the MOMA distance between the wild-type and the mutant, based on target fluxes. (MOMA: Minimization Of Metabolic Adjustment) Parameters ---------- None Returns ------- None
def compute_moma_distance( self ): """ Compute the MOMA distance between the wild-type and the mutant, based on target fluxes. (MOMA: Minimization Of Metabolic Adjustment) Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Compute absolute and relative MOMA distance on target fluxes # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.absolute_moma_distance = 0.0 self.relative_moma_distance = 0.0 for target_flux in self.objective_function: reaction_id = target_flux[0] coefficient = target_flux[1] wild_type_value = self.reactions[reaction_id]["wild_type_value"] mutant_value = self.reactions[reaction_id]["mutant_value"] self.absolute_moma_distance += (wild_type_value-mutant_value)*(wild_type_value-mutant_value) self.relative_moma_distance += (wild_type_value-mutant_value)/wild_type_value*(wild_type_value-mutant_value)/wild_type_value self.absolute_moma_distance = np.sqrt(self.absolute_moma_distance) self.relative_moma_distance = np.sqrt(self.relative_moma_distance) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Compute absolute and relative MOMA distance on all the fluxes # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.absolute_moma_all_distance = 0.0 self.relative_moma_all_distance = 0.0 wild_type_flux_array = self.get_wild_type_reaction_array() mutant_flux_array = self.get_mutant_reaction_array() for i in range(self.get_number_of_reactions()): wild_type_value = wild_type_flux_array[i] mutant_value = mutant_flux_array[i] if wild_type_value > 1e-10: self.absolute_moma_all_distance += (wild_type_value-mutant_value)*(wild_type_value-mutant_value) self.relative_moma_all_distance += (wild_type_value-mutant_value)/wild_type_value*(wild_type_value-mutant_value)/wild_type_value self.absolute_moma_all_distance = np.sqrt(self.absolute_moma_all_distance) self.relative_moma_all_distance = np.sqrt(self.relative_moma_all_distance)
(self)
[ 0.017161060124635696, 0.010159569792449474, 0.008520332165062428, 0.0473063625395298, 0.017133275046944618, -0.04237939044833183, -0.05586374178528786, -0.047269318252801895, -0.045046623796224594, 0.041638489812612534, -0.05538215488195419, 0.030691716820001602, 0.05297423526644707, 0.016244197264313698, -0.0343591645359993, 0.036915265023708344, -0.026190759614109993, 0.009261230006814003, 0.05012177675962448, 0.03465552255511284, 0.018031615763902664, -0.004857515450567007, -0.04167553782463074, 0.016568340361118317, -0.008825952187180519, 0.036192886531353, -0.021708324551582336, -0.006617148872464895, -0.04300915449857712, -0.0109097296372056, 0.003676708322018385, -0.020874813199043274, 0.03778582066297531, 0.005269640125334263, 0.0008265647920779884, -0.07935021817684174, 0.05641941353678703, 0.012863848358392715, -0.1316576451063156, 0.0031025120988488197, 0.00949276052415371, -0.029432188719511032, 0.049121566116809845, -0.009460346773266792, 0.001921705319546163, -0.03774877265095711, -0.09772450476884842, 0.09624270349740982, -0.043194375932216644, 0.0012595272855833173, -0.002810783451423049, -0.06786629557609558, 0.02787630259990692, 0.04456504061818123, -0.012641578912734985, 0.11995145678520203, 0.031173299998044968, 0.02639450691640377, 0.04708409309387207, -0.03150670602917671, 0.011446880176663399, 0.031247390434145927, 0.051788799464702606, -0.04056418687105179, -0.019763465970754623, -0.02269001491367817, -0.014095592312514782, 0.04330551251769066, -0.00020722002955153584, 0.057308491319417953, -0.0058762505650520325, -0.01907813362777233, 0.026653820648789406, -0.0495290607213974, 0.024894187226891518, -0.007075579836964607, 0.044602084904909134, -0.07408984005451202, 0.01935597136616707, -0.017929742112755775, -0.012076644226908684, -0.01789269596338272, 0.003810996189713478, -0.011780285276472569, -0.0008439295925199986, -0.016716521233320236, 0.022801149636507034, 0.036192886531353, 0.015373642556369305, -0.045342981815338135, -0.03856376186013222, 0.009881732985377312, 0.004512534476816654, 0.045046623796224594, -0.03154375031590462, 0.043713007122278214, -0.030339790508151054, -0.05641941353678703, 0.021152649074792862, -0.010965296998620033, 0.022893760353326797, 0.053863316774368286, 0.06490270048379898, 0.044157546013593674, 0.05341877415776253, -0.001451697782613337, -0.041638489812612534, -0.02054140903055668, -0.006371726281940937, 0.02350500226020813, -0.09839130938053131, 0.02891356125473976, -0.043713007122278214, -0.04604683816432953, -0.017059186473488808, -0.029524801298975945, 0.0008844474796205759, 0.04452799633145332, 0.0027228016406297684, 0.011872896924614906, 0.03934170678257942, 0.01212295051664114, 0.01981903240084648, -0.046083882451057434, 0.018022354692220688, 0.02417181059718132, 0.06449520587921143, -0.0006807004101574421, -0.01042814552783966, -0.002701963996514678, -0.05382626876235008, 0.015271768905222416, 0.015679262578487396, 0.06090185046195984, 0.0061170426197350025, -0.0019483312498778105, -0.0005261536571197212, -0.051121991127729416, 0.03823035955429077, 0.01253044418990612, 0.00012184306251583621, 0.03558164834976196, 0.0069737061858177185, -0.03534085303544998, -0.048751115798950195, 0.008131359703838825, 0.027450285851955414, 0.003808680921792984, -0.042083028703927994, -0.043194375932216644, -0.047491587698459625, 0.027820736169815063, -0.0013139370130375028, -0.010215137153863907, 0.02454226091504097, 0.020004257559776306, 0.021189695224165916, -0.003611879888921976, -0.005075154360383749, 0.010854162275791168, -0.05382626876235008, -0.006311528384685516, -0.004470858722925186, -0.00008769227133598179, -0.022189907729625702, -0.01596636138856411, 0.02085629105567932, 0.012863848358392715, -0.053492866456508636, 0.0347481369972229, -0.029321053996682167, -0.01145614217966795, -0.03704492002725601, -0.027542898431420326, -0.0164386834949255, 0.0443427711725235, -0.021560143679380417, -0.04408345744013786, 0.0027251169085502625, -0.009363103657960892, -0.03413689509034157, -0.04826953262090683, -0.017679687589406967, -0.024708962067961693, -0.01145614217966795, 0.02941366657614708, 0.042083028703927994, -0.023671705275774002, 0.018753990530967712, 0.04245347902178764, 0.010993080213665962, -0.06857015192508698, -0.026061102747917175, 0.05971641093492508, 0.008205450139939785, 0.0025097934994846582, 0.04745454341173172, -0.01873546838760376, 0.035878006368875504, -0.0036327175330370665, -0.04760272428393364, -0.007279327139258385, 0.004829731769859791, 0.013891845010221004, 0.033007025718688965, -0.034637000411748886, 0.0005730386474169791, 0.06127230077981949, -0.052455607801675797, -0.013058334589004517, -0.024968275800347328, -0.0072330208495259285, 0.02491270937025547, -0.01833723671734333, 0.03606323152780533, -0.05364104360342026, 0.04797317087650299, -0.015382903628051281, 0.020300617441534996, 0.011595060117542744, -0.03154375031590462, -0.045935701578855515, -0.04204598441720009, 0.06890355050563812, 0.02528315782546997, 0.06345795094966888, 0.011335745453834534, 0.1042444109916687, 0.04471321776509285, -0.04871407151222229, -0.001570936175994575, -0.0006390248890966177, 0.008839843794703484, -0.04530593752861023, 0.005269640125334263, -0.008742601610720158, 0.013373216614127159, 0.053233552724123, -0.01779082417488098, 0.003942968789488077, -0.027542898431420326, -0.07116329669952393, 0.020430274307727814, 0.06901469081640244, -0.010418884456157684, -0.032636575400829315, 0.04049009829759598, 0.006158717907965183, 0.0022736319806426764, 0.001348666613921523, -0.00910841953009367, -0.002244690665975213, 0.0024102351162582636, 0.018522460013628006, 0.00652453675866127, -0.0673106238245964, 0.006255961023271084, 0.047639768570661545, 0.03163636103272438, -0.06790333986282349, 0.049788374453783035, -0.07016307860612869, 0.027524376288056374, 0.023338299244642258, -0.12802724540233612, 0.01278975885361433, -0.000615292985457927, 0.02867276966571808, -0.033525653183460236, 0.009038960561156273, 0.08172109723091125, 0.034840747714042664, -0.034933362156152725, -0.023671705275774002, -0.05919778347015381, 0.024505214765667915, 0.04641728475689888, -0.011224610731005669, -0.06908877938985825, -0.014669789001345634, -0.06694017350673676, -0.05649350583553314, 0.0138548007234931, -0.008200819604098797, -0.07220055162906647, -0.0028547742404043674, 0.022430699318647385, -0.014540131203830242, 0.04389823228120804, 0.03585948422551155, 0.0023037309292703867, -0.015095804817974567, 0.019985735416412354, 0.014206727035343647, 0.06593996286392212, -0.006760698277503252, -0.017188843339681625, -0.01692952960729599, 0.0066634551621973515, -0.0008931299089454114, -0.019485628232359886, 0.01455865427851677, 0.053492866456508636, -0.03008047491312027, -0.03815626725554466, 0.05267787724733353, 0.07490482926368713, -0.007571055553853512, 0.08009111881256104, -0.005413189064711332, 0.030302744358778, -0.0062837447039783, -0.025912921875715256, 0.011224610731005669, 0.0343591645359993, 0.04923269897699356, 0.02261592447757721, -0.013808494433760643, 0.05182584375143051, 0.062420692294836044, 0.04037896543741226, 0.020448796451091766, 0.011307962238788605, 0.023041941225528717, 0.03184010833501816, -0.07875750213861465, 0.00818229652941227, -0.021411964669823647, 0.05871620029211044, -0.054530125111341476, -0.008474025875329971, -0.011891419999301434, -0.023264210671186447, -0.002996007911860943, 0.045861613005399704, -0.0218194592744112, 0.01870768517255783, -0.04160144552588463, 0.032488394528627396, 0.015660740435123444, 0.006584734655916691, 0.05167766287922859, -0.0005458337836898863, 0.01470683328807354, 0.02941366657614708, -0.00940477941185236, 0.02906174026429653, 0.00763125391677022, -0.020652543753385544, -0.02194911614060402, -0.00511682964861393, 0.062420692294836044, 0.016716521233320236, 0.050677452236413956, 0.04671364650130272, 0.04441685974597931, -0.029302531853318214, -0.08416605740785599, -0.014919841662049294, 0.04308324307203293, -0.0037716359365731478, 0.022060250863432884, -0.000024636319722048938, -0.008589791133999825, 0.010159569792449474, -0.05575260519981384, -0.030413880944252014, -0.007756280247122049, 0.005621566902846098, -0.06260591745376587, -0.019633807241916656, -0.03059910424053669, 0.011270917020738125, -0.008969501592218876, -0.011270917020738125, 0.04938087984919548, -0.006200393661856651, -0.0070848409086465836, -0.033896103501319885, 0.02357909269630909, 0.048528846353292465, 0.022949328646063805, -0.06682904064655304, 0.005056631751358509, 0.06193910911679268, -0.03141409158706665, 0.061827972531318665, -0.003662816481664777, -0.03230316936969757, 0.02854311093688011, 0.065754733979702, -0.04782499372959137, 0.025153500959277153, -0.010604108683764935, -0.03428507596254349, 0.02676495537161827, 0.01577187515795231, 0.021263783797621727, -0.09698360413312912, -0.011845113709568977, 0.037878431379795074, -0.03643367812037468, -0.032710663974285126, 0.025616561993956566, -0.044157546013593674, -0.05701213330030441, -0.03974920138716698, 0.02743176370859146, -0.023393867537379265, 0.12402639538049698, -0.06527315080165863, 0.022819671779870987, 0.04471321776509285, 0.01666095294058323, -0.05138130486011505, -0.021449008956551552, -0.036711517721414566, -0.03356269747018814, 0.013475090265274048, 0.03082137368619442, 0.045565251260995865, -0.06857015192508698, 0.04174962639808655, 0.00025005321367643774, 0.01774451695382595, -0.05927187204360962, 0.005121460184454918, -0.0014551708009094, -0.0643470287322998, -0.006390248890966177, -0.0061170426197350025, 0.002572306664660573, -0.03347008675336838, -0.07060761749744415, 0.005806791130453348, 0.02298637293279171, -0.05341877415776253, -0.029006173834204674, 0.04589865729212761, -0.0218194592744112, 0.019022567197680473, 0.0005061841220594943, 0.023893974721431732, -0.030173087492585182, -0.06516201794147491, -0.04760272428393364, 0.0016658637905493379, -0.05827166140079498, -0.019318927079439163, -0.019615285098552704, -0.014586437493562698, 0.029765594750642776, 0.034025758504867554, -0.001800151658244431, 0.03952693194150925, 0.03856376186013222, -0.02971002645790577, -0.0362299308180809, -0.02756142057478428, -0.03637811169028282, 0.011391312815248966, 0.013660314492881298, -0.0019946375396102667, -0.005663242191076279, -0.016948051750659943, 0.0820174515247345, 0.032858844846487045, 0.007983180694282055, -0.01697583496570587, -0.006853310391306877, 0.02958036959171295, -0.02911730855703354, 0.0003218277415726334, -0.014243772253394127, 0.03960102051496506, -0.015605173073709011, -0.08631466329097748, -0.006126303691416979, 0.01863359473645687, -0.03934170678257942, 0.029469234868884087, -0.048973385244607925, 0.03667447343468666, -0.03874898701906204, -0.043194375932216644, 0.010252181440591812, 0.03524824231863022, -0.05515988543629646, 0.03952693194150925, -0.05571556091308594, -0.03667447343468666, 0.03209942579269409, 0.06179092824459076, 0.02078220061957836, -0.02822822891175747, 0.03665594756603241, 0.03834149241447449, -0.0011622844031080604, 0.03704492002725601, 0.0006974863936193287, 0.001679755630902946, 0.02869129180908203, -0.10372577607631683, 0.03163636103272438, -0.0034498083405196667, 0.04560229927301407, -0.0791279524564743, -0.0421200767159462, -0.04219416528940201, 0.0036535554099828005, -0.043120287358760834, -0.08824100345373154, 0.018948476761579514, 0.023671705275774002, 0.018892910331487656, -0.026357460767030716, -0.0168276559561491, 0.005552107468247414, 0.026709387078881264, -0.02587587758898735, -0.03376644477248192, -0.02024504914879799, -0.08001703023910522, -0.004359724000096321, -0.03597061708569527, 0.020448796451091766, -0.05078858509659767, -0.008589791133999825, -0.008756493218243122, -0.037656161934137344, 0.007348786108195782, -0.008969501592218876, 0.012910154648125172, 0.03923057019710541, 0.027172449976205826, -0.015827441588044167, 0.0007119570509530604, -0.06260591745376587, -0.0195782408118248, 0.06260591745376587, 0.0032807907555252314, -0.036100275814533234, -0.0030955662950873375, -0.06042026728391647, 0.010659676045179367, 0.0015558867016807199, 0.012447093613445759, 0.010372578166425228, 0.04167553782463074, 0.03059910424053669, 0.04223120957612991, 0.03209942579269409, -0.01141909696161747, 0.07942430675029755, 0.06490270048379898, 0.004264796618372202, 0.021041514351963997, -0.04167553782463074, 0.01666095294058323, 0.01042814552783966, -0.01653129607439041, -0.06564360111951828, 0.00517702754586935, -0.011354268528521061, -0.08075793087482452, 0.0465654656291008, 0.0014297023881226778, 0.03428507596254349, -0.04834362119436264, 0.021022992208600044, -0.0443427711725235, 0.014493824914097786, -0.007510857656598091, -0.016688736155629158, -0.01952267251908779, 0.0008670826791785657, 0.015521821565926075, -0.09268639236688614, -0.015058760531246662, -0.04471321776509285, 0.029080262407660484, -0.011520970612764359, 0.016836917027831078, -0.00007314924732781947, 0.05464125797152519, 0.04330551251769066, -0.025542473420500755, 0.009177879430353642, 0.03667447343468666, -0.020504362881183624, -0.06053140014410019, 0.014901319518685341, -0.030061952769756317, -0.03187715262174606, -0.03187715262174606, 0.03371087834239006, -0.020208004862070084, 0.01673504337668419, 0.05553033575415611, 0.059679366648197174, -0.021967638283967972, -0.011520970612764359, -0.02135639637708664, -0.024190332740545273, -0.016503512859344482, -0.004857515450567007, 0.023560570552945137, -0.026635298505425453, 0.01980051025748253, -0.015540344640612602, 0.005695656407624483, -0.017976047471165657, 0.02226399816572666, -0.01023365929722786, 0.0062837447039783, -0.04430572688579559, -0.026190759614109993, 0.016197891905903816, 0.04189780727028847, 0.01913370192050934, -0.024523736909031868, -0.026505641639232635, 0.0041907066479325294, -0.03280327841639519, 0.0019633807241916656, -0.008344368077814579, 0.012317435815930367, -0.07294145226478577, -0.030784329399466515, -0.007598839234560728, 0.01013178564608097, 0.011289440095424652, 0.02024504914879799, -0.05290014669299126, 0.004297210834920406, 0.00626522209495306, 0.023745793849229813, -0.015132850036025047, -0.06345795094966888, 0.006788481958210468, 0.015095804817974567, 0.04145326465368271, -0.01666095294058323, 0.01301202829927206, -0.03930466249585152, 0.024505214765667915, -0.024949753656983376, -0.006848679855465889, 0.02217138558626175, 0.04349073767662048, -0.04567638784646988, 0.023486480116844177, -0.029895251616835594, 0.04023078456521034, 0.01935597136616707, -0.031247390434145927, -0.03908239305019379, 0.015030976384878159, 0.020948903635144234, -0.025468382984399796, -0.019911644980311394, 0.03341452032327652, -0.008085054345428944, -0.07994294166564941, 0.027246538549661636, -0.09676133096218109, 0.037600595504045486, -0.025764742866158485, 0.01858728937804699, 0.04223120957612991, 0.02624632604420185, 0.047047048807144165, -0.00029693820397369564, 0.04174962639808655, 0.00950202252715826, 0.04989950731396675, 0.030061952769756317, 0.025894399732351303, 0.005172397010028362, 0.003273844951763749, 0.029987864196300507, 0.09046369791030884, -0.01826314628124237, 0.008816691115498543, 0.03296998143196106, -0.0012815226800739765, 0.006070736330002546, 0.038637854158878326, -0.025079410523176193, 0.006200393661856651, -0.017864912748336792, -0.026264848187565804, -0.0037322756834328175, 0.006691238842904568, 0.010557802394032478, 0.047787949442863464, -0.05993868038058281, 0.010844900272786617, 0.008964871056377888, -0.002238902496173978, 0.03172897547483444, 0.02869129180908203, -0.024523736909031868, 0.01581818051636219, -0.010585586540400982, -0.002667234279215336, -0.020893335342407227, 0.012576750479638577, -0.015419947914779186, 0.022745581343770027, 0.019189268350601196, 0.05697508901357651, 0.020282093435525894, -0.013326910324394703, 0.001444751862436533, 0.0005944552249275148, 0.00447317399084568, 0.04115690663456917, 0.04293506219983101, -0.0067931124940514565, -0.0016716520767658949, -0.0028455129358917475, 0.06957036256790161, 0.020430274307727814, -0.022282520309090614, 0.013697359710931778, 0.030636150389909744, -0.05378922447562218, -0.01333617139607668, -0.029376622289419174, -0.026079624891281128, 0.04045305401086807, 0.04382413998246193, 0.032117947936058044, 0.02202320471405983, -0.01371588185429573, 0.02935810014605522, -0.022504789754748344, -0.03952693194150925, 0.04775090143084526, -0.03797104209661484, -0.021689800545573235, -0.013669575564563274, -0.02039322815835476, -0.013428783975541592, 0.036989353597164154, -0.00796002708375454, 0.03156227245926857, 0.015753353014588356, -0.025449860841035843, 0.04197189584374428, -0.04189780727028847, 0.029802639037370682, -0.007172822952270508, 0.04074941202998161, 0.04293506219983101, 0.034414730966091156, -0.07105215638875961, 0.0032229081261903048, -0.05482648313045502, -0.023931019008159637, 0.0015396794769912958, 0.007909090258181095, 0.07342303544282913, -0.015827441588044167, 0.03826740384101868, -0.026116669178009033, 0.029432188719511032 ]
20,462
metevolsim.metevolsim
compute_mutant_metabolic_control_analysis
Compute and save the mutant metabolic control analysis (MCA). Parameters ---------- None Returns ------- None
def compute_mutant_metabolic_control_analysis( self ): """ Compute and save the mutant metabolic control analysis (MCA). Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Compute the steady-state with Copasi # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.write_mutant_SBML_file() self.create_mutant_cps_file() self.edit_mutant_cps_file("MCA") self.run_copasi_for_mutant() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Extract the MCA result # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# rownames, colnames, unscaled, scaled = self.parse_copasi_output("./output/mutant_output.txt", "MCA") #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Write control coefficients matrices # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# f = open("./output/mutant_MCA_unscaled.txt", "w") for colname in colnames: f.write(" "+colname) f.write("\n") for i in range(len(rownames)): f.write(rowname) for elmt in unscaled[i]: f.write(" "+elmt) f.write("\n") f.close() f = open("./output/mutant_MCA_scaled.txt", "w") for colname in colnames: f.write(" "+colname) f.write("\n") for i in range(len(rownames)): f.write(rowname) for elmt in scaled[i]: f.write(" "+elmt) f.write("\n") f.close()
(self)
[ 0.02149522863328457, 0.027137726545333862, 0.06151217967271805, 0.07745447009801865, 0.023196933791041374, -0.04925989732146263, -0.06903550773859024, -0.05029883235692978, -0.027227289974689484, -0.011016304604709148, -0.022390862926840782, 0.054991960525512695, -0.023608924821019173, 0.027746757492423058, -0.020939934998750687, 0.006278397981077433, -0.02002638764679432, -0.03657771274447441, 0.03607615828514099, 0.028373701497912407, -0.03199206292629242, -0.02574053592979908, -0.010487880557775497, 0.03138303384184837, 0.01868293620646, 0.020671244710683823, -0.016264723613858223, -0.03297726437449455, 0.030469486489892006, -0.034750618040561676, -0.018718760460615158, 0.03876306116580963, -0.02246251329779625, -0.005700713489204645, 0.040590155869722366, -0.06101062148809433, 0.05936265364289284, -0.023035719990730286, -0.07695291936397552, 0.05069291219115257, 0.0014666015049442649, -0.051839325577020645, 0.03070235066115856, 0.015637777745723724, -0.03455357998609543, -0.016721496358513832, -0.02699442394077778, 0.10167242586612701, -0.01721409521996975, -0.07688126713037491, 0.004115440417081118, -0.04227394983172417, 0.0028436395805329084, 0.020635418593883514, 0.03355046734213829, 0.02334023453295231, 0.036721013486385345, 0.024379171431064606, 0.04908077046275139, -0.030559049919247627, 0.025077765807509422, -0.011410383507609367, 0.02808709815144539, -0.04503250494599342, 0.04173656925559044, 0.0016770756337791681, -0.011222300119698048, 0.023501450195908546, -0.007577068172395229, 0.04005277529358864, -0.013407648541033268, -0.05832371860742569, 0.015727341175079346, -0.004493846092373133, 0.022605815902352333, -0.0730837732553482, -0.03638067469000816, -0.0394795686006546, -0.04195152223110199, 0.032314494252204895, -0.041091710329055786, -0.030254533514380455, 0.009583288803696632, -0.01948900707066059, -0.020689157769083977, -0.0023062587715685368, 0.07344202697277069, -0.020008474588394165, -0.04807766154408455, 0.010111713781952858, -0.007048643659800291, 0.0016546847764402628, 0.024128394201397896, 0.06534549593925476, 0.009323555044829845, 0.03589703142642975, -0.06240781396627426, -0.026027139276266098, -0.020563768222928047, -0.0072456831112504005, 0.0018382897833362222, 0.049403198063373566, 0.0730479508638382, -0.029000645503401756, 0.02901855856180191, -0.03736587241292, -0.03557460382580757, 0.03616572171449661, 0.016775233671069145, -0.0684623047709465, -0.048435915261507034, 0.04496085271239281, -0.05470535531640053, -0.03392663598060608, -0.003981095273047686, -0.01700809970498085, -0.026779470965266228, -0.04245307669043541, -0.0718298852443695, 0.007465113420039415, -0.023035719990730286, -0.016318460926413536, -0.010004237294197083, 0.009753460064530373, -0.03435653820633888, 0.051624372601509094, 0.02292824350297451, 0.0017308136448264122, 0.0302366204559803, -0.026654083281755447, -0.06975201517343521, -0.0444951206445694, 0.05732060968875885, 0.03195624053478241, 0.012028371915221214, -0.011849244125187397, 0.017796257510781288, -0.05638914927840233, -0.0016378916334360838, 0.06151217967271805, 0.014509279280900955, 0.023823877796530724, -0.017196182161569595, -0.022390862926840782, 0.05631749704480171, -0.013721120543777943, 0.0262420903891325, -0.04564153403043747, -0.07082677632570267, -0.046501342207193375, -0.009014561772346497, 0.0032802612986415625, -0.03930044174194336, -0.047217849642038345, -0.00013819360174238682, 0.0279258843511343, 0.03919296711683273, 0.011625335551798344, 0.004554301500320435, -0.05069291219115257, -0.07924573868513107, 0.01358677539974451, -0.012807573191821575, 0.06093897297978401, 0.00014582049334421754, -0.003201893297955394, 0.04951067641377449, 0.012924006208777428, -0.052484180778265, 0.028660304844379425, -0.041557442396879196, -0.027101900428533554, -0.06151217967271805, 0.01852172240614891, -0.0188978873193264, -0.036344848573207855, 0.009180253371596336, -0.05169602483510971, 0.0856943130493164, 0.008392095565795898, -0.0684623047709465, 0.030326183885335922, -0.05391719564795494, 0.039157141000032425, 0.0006319821113720536, -0.02973506599664688, 0.03883471339941025, -0.008642872795462608, 0.03869141265749931, -0.04385026544332504, 0.050370484590530396, -0.01373007707297802, 0.005727582611143589, 0.010416229255497456, 0.059935860335826874, -0.0016692387871444225, 0.04904494434595108, -0.041127536445856094, 0.03707926720380783, -0.006784431636333466, -0.018611285835504532, -0.04191569611430168, 0.049868930131196976, -0.011947764083743095, 0.05706983059644699, 0.011320820078253746, -0.0038086858112365007, 0.04195152223110199, -0.059434305876493454, 0.042309775948524475, -0.0012337365187704563, -0.02090410888195038, 0.014043549075722694, 0.013998767361044884, 0.040840934962034225, -0.06244363635778427, 0.08863198757171631, -0.0005687279044650495, -0.005096160341054201, 0.026421217247843742, 0.013515125028789043, 0.012574708089232445, -0.009941543452441692, 0.06695763766765594, -0.025686798617243767, 0.04338453710079193, -0.01700809970498085, 0.07680961489677429, -0.013022526167333126, -0.016703583300113678, 0.0197397843003273, 0.025543496012687683, -0.012556795962154865, -0.008347313851118088, -0.015315350145101547, -0.003163828980177641, -0.004173656925559044, 0.03564625233411789, -0.032314494252204895, 0.028230398893356323, -0.06337510049343109, -0.07225979119539261, 0.0558517687022686, 0.037724126130342484, -0.03349673002958298, -0.025310631841421127, 0.06753084063529968, 0.010693876072764397, -0.027728844434022903, 0.029914192855358124, 0.036595627665519714, -0.023483537137508392, -0.04395774006843567, 0.022623727098107338, 0.01999056152999401, -0.056496623903512955, 0.021351926028728485, 0.016766278073191643, 0.06287354230880737, -0.036470238119363785, 0.030164970085024834, -0.043312884867191315, 0.03630902245640755, -0.008015928789973259, -0.03901384025812149, -0.01396294217556715, -0.0014464497799053788, 0.033568382263183594, -0.053308166563510895, 0.008127883076667786, 0.1037503033876419, 0.05126611888408661, -0.033102650195360184, 0.0037997295148670673, -0.057213131338357925, -0.03229657933115959, 0.01750965416431427, 0.012189585715532303, -0.0760214552283287, -0.005140942055732012, -0.008271184749901295, 0.009054864756762981, -0.006381395738571882, 0.007720369379967451, -0.07290464639663696, -0.05001223087310791, 0.007626327686011791, -0.035879120230674744, 0.03188458830118179, 0.02095784805715084, -0.053308166563510895, -0.03251153230667114, -0.016103507950901985, -0.06925045698881149, 0.04463842511177063, -0.025812186300754547, -0.049367375671863556, -0.041629090905189514, -0.023447711020708084, -0.04488920047879219, -0.02255207672715187, -0.05592341721057892, -0.020008474588394165, -0.015861686319112778, -0.019166577607393265, -0.005427544936537743, 0.05678322911262512, -0.024629948660731316, 0.0537380687892437, 0.01734844036400318, 0.03969452157616615, 0.03494765982031822, 0.014097287319600582, 0.051839325577020645, -0.01696331799030304, 0.03858393430709839, 0.005109594669193029, -0.004751340951770544, 0.07233144342899323, 0.05033465847373009, -0.002510015619918704, -0.032439880073070526, 0.04925989732146263, 0.03426697477698326, 0.018073905259370804, -0.033031001687049866, 0.009968412108719349, -0.02595548890531063, 0.05395302176475525, -0.03270857408642769, -0.08225507289171219, 0.028069185093045235, 0.004258742090314627, 0.0035959726665169, 0.005754451733082533, 0.00011720217298716307, -0.029502199962735176, -0.06774579733610153, 0.05219757929444313, -0.03208162635564804, 0.054741181433200836, 0.040124427527189255, -0.0026107747107744217, 0.0015001877909526229, 0.015378044918179512, 0.0028705087024718523, 0.0056648883037269115, -0.0022928244434297085, -0.06187043339014053, 0.03704344481229782, -0.014697362668812275, 0.07609310746192932, -0.03573581576347351, 0.061082273721694946, 0.01047892402857542, 0.05409632623195648, 0.00980719830840826, -0.04191569611430168, -0.008186099119484425, 0.011813418939709663, 0.03238614276051521, -0.01163429208099842, 0.0024316476192325354, -0.0487225167453289, 0.004970771726220846, -0.09873475134372711, -0.023358147591352463, -0.009368336759507656, 0.04918824881315231, -0.022999893873929977, 0.07408688962459564, -0.02423587068915367, 0.03638067469000816, -0.02930516190826893, 0.020510030910372734, 0.07279717177152634, -0.03145468235015869, 0.018629197031259537, -0.0386197604238987, -0.01600498892366886, 0.03236823156476021, -0.016784191131591797, -0.04807766154408455, 0.018467983230948448, 0.02548975870013237, 0.012064197100698948, 0.012350799515843391, 0.01415102556347847, 0.004339348990470171, 0.02192513272166252, 0.05685487762093544, -0.020563768222928047, 0.000597276259213686, -0.09629862010478973, 0.062049560248851776, -0.010899871587753296, 0.06649190932512283, 0.005996272899210453, 0.009502681903541088, -0.0014576452085748315, -0.00305411359295249, -0.0545978806912899, -0.013953985646367073, 0.027137726545333862, -0.04811348766088486, -0.04736115410923958, 0.004283371847122908, -0.04220229759812355, -0.015691516920924187, 0.005324547179043293, 0.02783632092177868, 0.048937469720840454, 0.03553877770900726, -0.013882335275411606, -0.013604688458144665, 0.011732812039554119, -0.05466952919960022, -0.10604312270879745, 0.02380596473813057, 0.027890058234333992, 0.03267274796962738, 0.0222475603222847, 0.04556988552212715, -0.040411029011011124, 0.017411135137081146, 0.005266331136226654, -0.03385498374700546, -0.008405529893934727, -0.05947013199329376, -0.005960447713732719, 0.013174783438444138, 0.029251422733068466, -0.059398479759693146, 0.00858465675264597, -0.006206747144460678, -0.011392471380531788, -0.05312903970479965, 0.025418106466531754, 0.014554060995578766, 0.014186850748956203, 0.014222675934433937, -0.005620106589049101, 0.0032601095736026764, -0.01684688590466976, -0.010380404070019722, -0.003190697869285941, -0.04187986999750137, -0.008369704708456993, -0.008195055648684502, 0.02251625247299671, 0.010407272726297379, 0.06788909435272217, -0.017438003793358803, -0.029627589508891106, 0.05144524574279785, 0.06323179602622986, 0.003922879230231047, -0.07580650597810745, 0.0026219701394438744, 0.014616754837334156, -0.03908548876643181, -0.011607423424720764, 0.01633637398481369, 0.03561042994260788, 0.038870539516210556, -0.03535965085029602, 0.02796170860528946, 0.033066827803850174, -0.006157487165182829, 0.0028234878554940224, -0.053558941930532455, -0.06724423915147781, 0.002516733016818762, -0.005848493427038193, -0.021172799170017242, -0.018485896289348602, -0.08927685022354126, -0.016452806070446968, 0.006479915697127581, -0.00515437638387084, 0.0025637538637965918, 0.020474204793572426, 0.016775233671069145, 0.04668046906590462, -0.011625335551798344, -0.022068433463573456, 0.04958232492208481, -0.03901384025812149, 0.02377014048397541, -0.10310544818639755, -0.01767086796462536, 0.023035719990730286, 0.044781725853681564, 0.017330527305603027, -0.0441010445356369, 0.07587815821170807, -0.014464497566223145, 0.003116808133199811, 0.0015595236327499151, -0.008620481938123703, 0.02796170860528946, 0.05832371860742569, -0.05398884788155556, -0.03557460382580757, 0.01771564967930317, 0.029538026079535484, -0.015942294150590897, -0.08992170542478561, 0.02271329052746296, -0.03057696297764778, -0.0031391989905387163, -0.07100590318441391, 0.007093425374478102, 0.031848762184381485, -0.012234367430210114, -0.009843023493885994, -0.05617419630289078, -0.005620106589049101, 0.0013613644987344742, -0.005315590649843216, -0.012082109227776527, -0.05194680020213127, -0.0239313542842865, 0.031687550246715546, -0.0004903599037788808, 0.028355788439512253, -0.025883836671710014, -0.030075406655669212, -0.013613644987344742, 0.00190546247176826, -0.032762311398983, -0.046214740723371506, -0.0008262228220701218, 0.0449250265955925, 0.0007388984668068588, -0.04750445485115051, 0.029842542484402657, -0.048400089144706726, 0.022372949868440628, -0.059434305876493454, -0.03629111126065254, -0.023196933791041374, 0.049367375671863556, -0.010765526443719864, 0.032601095736026764, -0.039873648434877396, -0.01914866641163826, 0.01990099810063839, -0.028140835464000702, 0.04227394983172417, -0.017276789993047714, -0.0015024269232526422, -0.03392663598060608, -0.00383779383264482, 0.06867725402116776, 0.02620626613497734, 0.02615252695977688, 0.02326858416199684, -0.022390862926840782, 0.016891667619347572, -0.00063757982570678, -0.07380028069019318, 0.012610534206032753, -0.031042691320180893, -0.004728950094431639, -0.02090410888195038, -0.00227379216812551, 0.022731203585863113, -0.032601095736026764, -0.046967074275016785, 0.044781725853681564, 0.048650868237018585, 0.038189854472875595, 0.00858465675264597, -0.03582537919282913, 0.03801072761416435, 0.0466088205575943, 0.027406416833400726, 0.022981980815529823, 0.01243140734732151, 0.019202403724193573, 0.022946156561374664, 0.0018909083446487784, 0.025167329236865044, 0.04245307669043541, 0.028033360838890076, -0.011786550283432007, -0.007715891115367413, -0.0049842060543596745, 0.0031615898478776217, -0.026564519852399826, 0.030971040949225426, -0.006914298515766859, -0.04048268124461174, -0.029627589508891106, 0.017984341830015182, 0.03355046734213829, -0.0018170184921473265, 0.020510030910372734, 0.048901643604040146, -0.08118031173944473, -0.017017055302858353, -0.005951491184532642, -0.008992170915007591, -0.015467608347535133, -0.020312990993261337, 0.043563663959503174, -0.007353159133344889, 0.009475813247263432, 0.013998767361044884, 0.021226538345217705, 0.0049259900115430355, 0.005785799119621515, 0.005508152302354574, 0.01219854224473238, -0.020259251818060875, -0.02717355079948902, -0.044029392302036285, 0.012843399308621883, 0.00762184988707304, -0.014410759322345257, -0.0014318956527858973, -0.04076928272843361, 0.023913441225886345, -0.02633165381848812, 0.003154872450977564, -0.007205379661172628, -0.04263220354914665, -0.0006571718258783221, 0.006367961410433054, -0.016569238156080246, -0.01591542549431324, 0.029878366738557816, 0.02430752106010914, 0.04191569611430168, -0.0003151513810735196, 0.019077014178037643, 0.04832843691110611, 0.00957433320581913, 0.02439708448946476, 0.005705191753804684, 0.010147538967430592, 0.05535021424293518, -0.027066074311733246, -0.020760808140039444, -0.007662153337150812, -0.0013042677892372012, 0.009878848679363728, 0.02342979796230793, 0.022623727098107338, -0.024450821802020073, 0.047934360802173615, -0.015512390062212944, -0.02339397370815277, -0.010747614316642284, -0.11937016993761063, 0.04141413792967796, 0.002190945902839303, -0.015440738759934902, -0.016828972846269608, -0.03188458830118179, 0.02960967645049095, 0.025561409071087837, -0.013756945729255676, 0.10632973164319992, -0.0348580963909626, 0.01570942997932434, 0.07831428200006485, -0.015628822147846222, 0.04295463114976883, 0.06785327196121216, 0.00883543398231268, -0.013255390338599682, -0.0028100532945245504, -0.00919816642999649, 0.02608087658882141, 0.04968980327248573, -0.045247454196214676, -0.009296686388552189, 0.03930044174194336, 0.06025828793644905, 0.08461955189704895, 0.0034504318609833717, -0.009771372191607952, 0.024289608001708984, 0.01587064377963543, 0.019883086904883385, -0.017438003793358803, -0.0491165965795517, -0.05513526126742363, -0.03254735842347145, 0.04585648700594902, -0.0008027124567888677, -0.02973506599664688, 0.03236823156476021, 0.06101062148809433, -0.03854810819029808, 0.02199678309261799, 0.028481177985668182, 0.004590126685798168, -0.02065333165228367, 0.0011016303906217217, -0.008132361806929111, 0.03811820596456528, -0.02511359192430973, -0.002543601905927062, 0.002342084189876914, -0.006273919716477394, -0.01066700741648674, -0.04008860141038895, 0.06839065253734589, 0.08261332660913467, 0.0026824253145605326, 0.06616947799921036, 0.035968683660030365, -0.02620626613497734, -0.053558941930532455, 0.017688781023025513, 0.036971792578697205, -0.002633165568113327, -0.005427544936537743, -0.005190202035009861, 0.01977561041712761, -0.025006115436553955, -0.04069763049483299, 0.010613269172608852, -0.020599594339728355, -0.044244345277547836, 0.037688300013542175, 0.0023510404862463474, -0.00548128318041563, -0.0014184612082317472, -0.027066074311733246, 0.04668046906590462, 0.00743376649916172, -0.03815402835607529, 0.0014710796531289816, 0.007599459029734135, -0.01642593741416931, 0.05538603663444519, 0.00934146810323, -0.020008474588394165, 0.008987692184746265, -0.02448664791882038, -0.07372863590717316, 0.02330441027879715, -0.022874506190419197, 0.04291880503296852, 0.010586399585008621, 0.03111434355378151, 0.031096430495381355, -0.027281027287244797, -0.008172664791345596, 0.017939560115337372, 0.07946069538593292, -0.015673603862524033, 0.06470063328742981, -0.05148107185959816, -0.01001319382339716, -0.029108121991157532, 0.014374934136867523, -0.05069291219115257, 0.027657194063067436, 0.01717826910316944, 0.009995280764997005, 0.008486136794090271, -0.06394830346107483, -0.0000614349264651537 ]
20,463
metevolsim.metevolsim
compute_mutant_steady_state
Compute and save the mutant steady-state. Parameters ---------- None Returns ------- Boolean
def compute_mutant_steady_state( self ): """ Compute and save the mutant steady-state. Parameters ---------- None Returns ------- Boolean """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Compute the steady-state with Copasi # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.write_mutant_SBML_file() self.create_mutant_cps_file() self.edit_mutant_cps_file("STEADY_STATE") self.run_copasi_for_mutant() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Extract steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# success, concentrations, fluxes = self.parse_copasi_output("./output/mutant_output.txt", "STEADY_STATE") if not success: return False #assert success, "The model is unstable. Exit." #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Update model and lists # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.mutant_absolute_sum = 0.0 for elmt in concentrations: species_id = elmt[0] species_value = float(elmt[1]) assert species_id in self.species if not self.species[species_id]["constant"]: self.species[species_id]["mutant_value"] = species_value self.mutant_absolute_sum += species_value for elmt in fluxes: reaction_id = elmt[0] reaction_value = float(elmt[1]) assert reaction_id in self.reactions self.reactions[reaction_id]["mutant_value"] = reaction_value return True
(self)
[ 0.04104214534163475, -0.0011274658609181643, 0.023346299305558205, 0.045279987156391144, 0.04050764441490173, -0.029473986476659775, -0.08872739225625992, -0.0440964438021183, -0.004557587206363678, -0.012169472873210907, -0.02792774885892868, 0.02057834155857563, -0.030466634780168533, 0.047608889639377594, -0.0035959600936621428, 0.049059681594371796, -0.0034599483478814363, -0.04432551562786102, -0.008456590585410595, -0.009840570390224457, -0.012398545630276203, -0.012980771251022816, -0.002033017808571458, 0.049326930195093155, 0.007998446002602577, -0.01811581291258335, 0.024663465097546577, -0.03470447286963463, 0.0026343329809606075, -0.0036412973422557116, 0.025026163086295128, 0.016722287982702255, -0.010193723253905773, -0.01360117644071579, 0.03483809903264046, -0.06940894573926926, 0.027965927496552467, 0.03936228156089783, -0.038904134184122086, -0.008719069883227348, -0.030123025178909302, -0.0426456518471241, 0.027870479971170425, 0.050777725875377655, -0.055053744465112686, -0.013200298883020878, -0.03562076389789581, 0.09101811796426773, 0.0051779914647340775, -0.05356477200984955, -0.020616520196199417, -0.007821869105100632, -0.00737804127857089, 0.04455459117889404, 0.060704197734594345, -0.030237561091780663, 0.047837961465120316, 0.035105351358652115, 0.05638999864459038, -0.008914736099541187, 0.0448218397796154, 0.0019208678277209401, 0.039744067937135696, -0.017552675679326057, 0.02363264001905918, 0.001109569682739675, -0.03699519857764244, 0.047112565487623215, -0.006328125949949026, 0.06043694540858269, -0.018573956564068794, -0.025579756125807762, 0.028156820684671402, 0.009945562109351158, 0.017075441777706146, -0.05100679770112038, -0.03651796653866768, -0.018650313839316368, -0.049785077571868896, 0.01739996112883091, -0.04004949703812599, -0.009449237957596779, 0.012169472873210907, -0.022983601316809654, -0.05081590265035629, 0.02865314483642578, 0.074944868683815, 0.0013935239985585213, -0.04470730572938919, 0.01232218835502863, 0.01139635406434536, 0.07147060334682465, -0.008752476423978806, 0.0019459226168692112, 0.06887444853782654, 0.03917138651013374, -0.04852517694234848, -0.046387169510126114, -0.028977664187550545, -0.0259806327521801, -0.03920956701040268, 0.05772625654935837, 0.005807940848171711, -0.02842407114803791, 0.004147165454924107, -0.010136455297470093, -0.03835054486989975, 0.010670958086848259, 0.029493076726794243, -0.08086257427930832, -0.06226952373981476, 0.031783800572156906, -0.051159512251615524, -0.010623234324157238, -0.04142393171787262, -0.0335400216281414, 0.02265908196568489, -0.021475540474057198, -0.05184672772884369, -0.00318315252661705, 0.021647345274686813, 0.0044382787309587, -0.03161199763417244, 0.042569294571876526, -0.012102660723030567, 0.06322399526834488, 0.003529147244989872, 0.011071834713220596, 0.028347713872790337, -0.013801614753901958, -0.0630330964922905, -0.012513081543147564, 0.047112565487623215, 0.04249293729662895, -0.012188563123345375, -0.00099562993273139, -0.03210832178592682, -0.04451641067862511, 0.02792774885892868, 0.05451923981308937, 0.02548430860042572, 0.011625425890088081, 0.007067839149385691, -0.005583640653640032, 0.048945143818855286, 0.035238977521657944, -0.0681108683347702, -0.01170178409665823, -0.03920956701040268, 0.01862168125808239, 0.03336821869015694, 0.009907382540404797, -0.013028495013713837, 0.006246996112167835, -0.04031674936413765, 0.019757498055696487, 0.01922299526631832, -0.04314197599887848, 0.023441746830940247, -0.029703060165047646, -0.08147343248128891, -0.03714791312813759, 0.03691884130239487, 0.06391120702028275, -0.01530967466533184, 0.01201675832271576, -0.016254598274827003, 0.020311089232563972, -0.03928592428565025, 0.03672794625163078, -0.03113476186990738, -0.003514830255880952, -0.08475679904222488, 0.0313638336956501, -0.001194278709590435, -0.03235648199915886, 0.019662050530314445, -0.0401640348136425, 0.026076078414916992, -0.03243283927440643, -0.0684163048863411, -0.020406536757946014, -0.04806703329086304, 0.009372880682349205, 0.0008035431383177638, -0.00795549526810646, -0.005206625442951918, -0.004156710114330053, 0.0591006875038147, -0.004672123119235039, 0.002586609683930874, -0.015347853302955627, 0.005569323897361755, 0.034379955381155014, 0.03493354842066765, 0.010079187341034412, 0.030313920229673386, -0.051274046301841736, 0.027030548080801964, -0.04386737197637558, -0.005602729972451925, -0.06910351663827896, 0.04214932769536972, -0.021399183198809624, -0.013763436116278172, -0.0038178740069270134, -0.051655836403369904, 0.03659432381391525, -0.017333148047327995, 0.0293976292014122, -0.03569712117314339, -0.013839793391525745, -0.014593822881579399, 0.061925917863845825, 0.055206459015607834, -0.08834560215473175, 0.12339368462562561, 0.004450209438800812, -0.015634194016456604, -0.002033017808571458, 0.016359589993953705, -0.04302743822336197, 0.006905579473823309, 0.013190754689276218, -0.03993496298789978, 0.037300627678632736, -0.05073954537510872, 0.03886595740914345, -0.026896921917796135, -0.010546877048909664, 0.03395998850464821, 0.02302177995443344, -0.0037868537474423647, 0.0025985403917729855, -0.02166643552482128, -0.008370689116418362, -0.007712105289101601, 0.03336821869015694, -0.02449166215956211, 0.028939485549926758, -0.06597286462783813, -0.06761454790830612, 0.04688349366188049, -0.01581554301083088, -0.013276657089591026, -0.031440190970897675, 0.10445703566074371, -0.016607752069830894, -0.07685380429029465, -0.00039699923945590854, 0.028996752575039864, 0.004156710114330053, -0.03407452628016472, 0.015061512589454651, 0.03537260368466377, -0.06123869866132736, 0.018048999831080437, 0.05799350515007973, 0.05501556396484375, -0.03569712117314339, 0.0320892296731472, -0.06463660299777985, 0.028004106134176254, -0.004619627725332975, -0.10231902450323105, -0.01876484975218773, 0.0016906022792682052, 0.0209601279348135, -0.020024748519062996, 0.019642962142825127, 0.1211029663681984, 0.012179017998278141, -0.06093326956033707, 0.0036866345908492804, -0.05222851783037186, -0.034131795167922974, 0.03113476186990738, 0.023613549768924713, -0.02844316139817238, 0.004412030801177025, -0.018087178468704224, 0.01489925291389227, 0.017457228153944016, 0.043943729251623154, -0.023938069120049477, -0.028271356597542763, -0.018688492476940155, -0.026400597766041756, 0.04447823017835617, -0.010250991210341454, -0.021723702549934387, -0.012274464592337608, 0.026247883215546608, -0.0612768791615963, 0.07693015784025192, -0.020807413384318352, -0.06566743552684784, -0.03126838803291321, 0.026056990027427673, -0.021780971437692642, -0.004113759379833937, -0.01236991211771965, -0.028863128274679184, -0.012312643229961395, 0.012723064981400967, -0.0064378902316093445, 0.04520362988114357, -0.009473099373281002, 0.03102022595703602, -0.008127299137413502, 0.031211119145154953, -0.010375072248280048, 0.04348558560013771, 0.03394090011715889, 0.011883133091032505, -0.012637162581086159, -0.022258205339312553, -0.032031964510679245, 0.05711539462208748, 0.06341488659381866, 0.006724230479449034, -0.023670818656682968, 0.06994345039129257, 0.06032240763306618, -0.00573158310726285, -0.04928875342011452, 0.03520079702138901, -0.019337531179189682, 0.000547328032553196, 0.002376626478508115, -0.05883343890309334, -0.019385255873203278, 0.04375283420085907, 0.009148580953478813, 0.028099551796913147, -0.027603229507803917, -0.005674315150827169, -0.04333287104964256, 0.063147634267807, -0.060246050357818604, 0.05241940915584564, 0.030924778431653976, -0.004633944481611252, -0.013935239985585213, 0.056046389043331146, 0.008852695114910603, 0.007086928468197584, -0.010413250885903835, -0.003646069671958685, 0.039858605712652206, -0.03978224843740463, 0.0870475247502327, -0.037071555852890015, 0.08154978603124619, -0.030352098867297173, 0.07330317795276642, 0.004421575460582972, -0.019681140780448914, 0.019776586443185806, -0.02636241912841797, -0.017075441777706146, -0.026133347302675247, -0.0027965926565229893, -0.012551261112093925, 0.0035124439746141434, -0.06742365658283234, -0.02315540611743927, -0.03247101977467537, 0.04237839952111244, -0.023728087544441223, 0.020253822207450867, -0.02326994203031063, -0.0023861711379140615, -0.024663465097546577, 0.04104214534163475, 0.04737981781363487, -0.04818157106637955, 0.013324379920959473, 0.025197967886924744, -0.01741904951632023, 0.0254652202129364, -0.006151549518108368, -0.042951080948114395, 0.037796951830387115, 0.07643383741378784, 0.0013195526553317904, 0.04543270170688629, -0.017199521884322166, 0.012589439749717712, 0.0009067450882866979, 0.04508909210562706, -0.023365389555692673, 0.018068088218569756, -0.060704197734594345, 0.0455472357571125, 0.015223772265017033, 0.06429299712181091, 0.025388862937688828, -0.023212673142552376, 0.03336821869015694, 0.018822118639945984, -0.02107466384768486, -0.010823672637343407, 0.00954945757985115, -0.07895363122224808, -0.049326930195093155, -0.012054936960339546, -0.024663465097546577, -0.040354929864406586, 0.0014448267174884677, 0.029225826263427734, 0.034628115594387054, 0.003257123753428459, -0.005860436707735062, -0.012875780463218689, 0.012188563123345375, -0.040622178465127945, -0.07311228662729263, 0.04077489301562309, 0.051044974476099014, 0.03575439006090164, 0.015347853302955627, 0.052610304206609726, 0.007306456565856934, 0.015586470253765583, 0.04508909210562706, -0.02951216511428356, 0.01925162971019745, -0.04363830015063286, 0.033330038189888, 0.0120072141289711, 0.026744207367300987, -0.06631647050380707, 0.019452067092061043, 0.0184785109013319, -0.020387446507811546, -0.011988123878836632, -0.02181915007531643, -0.01391615066677332, 0.017180433496832848, 0.011654060333967209, 0.02880585938692093, 0.018841208890080452, 0.023747175931930542, 0.012618073262274265, -0.004996642470359802, -0.06356760114431381, -0.0006257733912207186, -0.0010326156625524163, 0.047837961465120316, -0.005621819291263819, 0.021761881187558174, 0.0005816292250528932, -0.0072969114407896996, 0.014087955467402935, 0.05574095994234085, -0.004335673060268164, -0.0302757415920496, -0.01603507064282894, -0.014498376287519932, -0.016722287982702255, -0.03728153929114342, -0.008657028898596764, 0.059978801757097244, 0.024587107822299004, -0.10812219232320786, -0.0360216423869133, -0.008151160553097725, -0.0022095944732427597, 0.011625425890088081, -0.044172801077365875, -0.0598260872066021, 0.022220026701688766, 0.00784573145210743, -0.010861851274967194, -0.019318442791700363, -0.07578479498624802, -0.03917138651013374, -0.0033215503208339214, -0.04558541625738144, -0.039514996111392975, -0.005903387442231178, -0.024930717423558235, 0.05451923981308937, 0.0009347826126031578, -0.045165449380874634, 0.029722148552536964, -0.04573813080787659, 0.07780826836824417, -0.07032524049282074, -0.045165449380874634, -0.039133209735155106, 0.05436652526259422, -0.007573707494884729, -0.07303593307733536, 0.02783230133354664, -0.06013151630759239, -0.0038465079851448536, 0.011739962734282017, -0.0027059181593358517, 0.045050911605358124, 0.06253677606582642, 0.002660580910742283, -0.01299031637609005, 0.025178879499435425, 0.039400458335876465, -0.029130378738045692, -0.08895646035671234, 0.007244416046887636, -0.009983740746974945, 0.028576787561178207, -0.05711539462208748, 0.05222851783037186, -0.0022585110273212194, 0.010928664356470108, -0.022830886766314507, 0.019662050530314445, 0.028080463409423828, 0.051274046301841736, 0.0013732415391132236, -0.029130378738045692, -0.047837961465120316, -0.017743568867444992, 0.03659432381391525, -0.011005021631717682, 0.043065618723630905, -0.0058938427828252316, -0.0411948598921299, -0.019776586443185806, -0.021761881187558174, 0.0037462888285517693, -0.03357820212841034, -0.003836963325738907, 0.02767958678305149, 0.004540883935987949, -0.06093326956033707, 0.06486567854881287, -0.07750283926725388, -0.04127121716737747, -0.07330317795276642, -0.016321411356329918, -0.06032240763306618, 0.03479992225766182, 0.006919896695762873, 0.007974584586918354, -0.01090002991259098, -0.022754529491066933, -0.006409255787730217, -0.0669655129313469, 0.01017463393509388, -0.021361004561185837, 0.015156960114836693, 0.0009950334206223488, -0.01729496940970421, 0.108274906873703, -0.005120723508298397, 0.007812324445694685, 0.060475122183561325, -0.013792069628834724, 0.028366804122924805, -0.023689908906817436, -0.06135323643684387, 0.019184816628694534, -0.04031674936413765, 0.02523614652454853, 0.0004503898089751601, -0.0024076467379927635, -0.032680999487638474, -0.027469603344798088, -0.03728153929114342, 0.040851250290870667, 0.09697400033473969, 0.04997596889734268, 0.02647695690393448, 0.017228156328201294, 0.010518242605030537, 0.02523614652454853, -0.004901195876300335, 0.014574733562767506, 0.013343469239771366, 0.0355062298476696, -0.01848805509507656, -0.015891900286078453, -0.021532809361815453, 0.038293275982141495, 0.02989395335316658, -0.025427041575312614, 0.03762514889240265, -0.021494630724191666, 0.035601675510406494, 0.004409644287079573, 0.01739041693508625, 0.013391193002462387, -0.02437712624669075, -0.009606725536286831, -0.022124579176306725, 0.023728087544441223, -0.01433611661195755, 0.03470447286963463, 0.041843898594379425, -0.0612768791615963, -0.01630232110619545, 0.034360866993665695, -0.03040936589241028, -0.014040231704711914, -0.034265417605638504, 0.04363830015063286, 0.008752476423978806, -0.0051779914647340775, 0.001807524706237018, 0.037453342229127884, -0.020616520196199417, 0.0035744844935834408, -0.0030352098401635885, 0.0025842234026640654, -0.015319219790399075, 0.015156960114836693, -0.0025722926948219538, -0.021246468648314476, 0.022735439240932465, -0.008179794996976852, 0.004521794617176056, -0.04867789149284363, 0.012570350430905819, -0.036307983100414276, -0.0544428825378418, 0.030810242518782616, -0.02388080209493637, -0.0006335284560918808, -0.06875991076231003, -0.026037899777293205, -0.01151088997721672, 0.03346366435289383, -0.023556282743811607, 0.05135040357708931, 0.0036627729423344135, 0.04069853574037552, 0.03970589116215706, -0.007917316630482674, 0.03672794625163078, -0.007306456565856934, 0.02279270812869072, 0.024090785533189774, 0.0037940123584121466, -0.05012868717312813, -0.00600360706448555, -0.002215560059994459, 0.012761243619024754, 0.019394800066947937, 0.04581448808312416, -0.031898338347673416, 0.05306844785809517, 0.00041250934009440243, -0.03325368091464043, -0.02905402146279812, -0.0684163048863411, 0.0487542524933815, -0.02779412269592285, -0.005430925637483597, -0.03373091667890549, -0.025713380426168442, 0.05658089369535446, -0.01371571235358715, 0.022983601316809654, 0.08544401824474335, -0.0021415886003524065, -0.006146776955574751, 0.10125001519918442, 0.0007844538195058703, 0.007731194607913494, 0.028576787561178207, -0.0056361365132033825, 0.01341028232127428, 0.004507477395236492, -0.01680818945169449, -0.002083127386868, 0.01665547490119934, 0.006022696383297443, 0.02966488152742386, 0.004736549686640501, 0.027946837246418, 0.06261313706636429, 0.014985155314207077, -0.0088765574619174, 0.03285280615091324, 0.03403634577989578, -0.0016786714550107718, -0.008752476423978806, -0.013534363359212875, -0.07040159404277802, -0.07303593307733536, -0.003908548504114151, -0.04157664626836777, -0.03613617643713951, 0.03466629609465599, -0.029225826263427734, -0.02143736183643341, 0.02279270812869072, 0.0013827861985191703, -0.026782386004924774, 0.00603224104270339, 0.010241447016596794, 0.0067003690637648106, 0.02733597718179226, 0.006142004858702421, 0.005764989648014307, -0.020769234746694565, 0.006246996112167835, -0.027775032445788383, -0.02817591093480587, 0.07513576000928879, 0.032394662499427795, -0.016483670100569725, 0.05818440020084381, 0.018554868176579475, -0.023231763392686844, -0.0021738021168857813, -0.020120196044445038, 0.01935662142932415, -0.027622317895293236, -0.009425376541912556, -0.014049775898456573, -0.004920285195112228, -0.03418906033039093, -0.041003964841365814, -0.027469603344798088, 0.007755056489259005, -0.019509335979819298, 0.034131795167922974, 0.01059459988027811, -0.013648899272084236, 0.009425376541912556, -0.0008942176937125623, 0.03176471218466759, 0.020750144496560097, -0.03329186141490936, 0.0204447153955698, 0.04474548250436783, -0.04077489301562309, 0.03500990569591522, 0.058146219700574875, 0.0010355983395129442, -0.017848560586571693, -0.05917704850435257, -0.05749718099832535, 0.031172940507531166, -0.009482644498348236, -0.014297937974333763, -0.0009878749260678887, -0.0259806327521801, 0.04199661314487457, 0.009573318995535374, 0.007106017787009478, 0.020902860909700394, 0.10323531180620193, 0.0036723176017403603, 0.04115668311715126, -0.04814339056611061, -0.03647978603839874, -0.011348630301654339, 0.03638434037566185, -0.07708287239074707, 0.05180855095386505, 0.031306568533182144, -0.011319996789097786, 0.04180572181940079, -0.09376698732376099, 0.019929302856326103 ]
20,464
metevolsim.metevolsim
compute_sum_distance
Compute the metabolic sum distance between the wild-type and the mutant. Parameters ---------- None Returns ------- None
def compute_sum_distance( self ): """ Compute the metabolic sum distance between the wild-type and the mutant. Parameters ---------- None Returns ------- None """ self.absolute_sum_distance = abs(self.wild_type_absolute_sum-self.mutant_absolute_sum)
(self)
[ 0.026577895507216454, 0.010123209096491337, 0.08391889929771423, 0.04546501114964485, 0.008097672834992409, -0.03598568215966225, 0.012117445468902588, -0.05136723816394806, -0.07540538907051086, 0.08384735882282257, -0.036379165947437286, 0.033177655190229416, 0.015113270841538906, 0.039598558098077774, -0.02343004196882248, 0.04532192647457123, -0.017822928726673126, 0.02271462045609951, 0.009631357155740261, 0.01942368410527706, -0.004940877202898264, -0.019101744517683983, -0.03510929271578789, 0.02686406299471855, -0.05955880880355835, 0.007686305791139603, 0.024610485881567, -0.05912955477833748, -0.022464223206043243, 0.004529510159045458, 0.026255955919623375, -0.047432418912649155, 0.008044016547501087, -0.02679252065718174, -0.03550277277827263, -0.06109696254134178, 0.037058815360069275, 0.05211842805147171, -0.07841015607118607, 0.014943358488380909, 0.00014434180047828704, 0.007033484056591988, 0.034250784665346146, -0.00011849162547150627, 0.039670102298259735, 0.019566766917705536, -0.022017085924744606, 0.03417924419045448, -0.08921301364898682, -0.004811207298189402, -0.008737080730497837, 0.008066372945904732, 0.01654411293566227, 0.02232113853096962, 0.033302854746580124, 0.06860888749361038, 0.05444354936480522, 0.018368437886238098, -0.0032954085618257523, 0.01788552850484848, -0.01031100656837225, 0.03210452198982239, 0.024664143100380898, -0.05576707795262337, -0.02963631972670555, -0.022374795749783516, -0.028151821345090866, 0.007815975695848465, 0.015211641788482666, 0.06753575056791306, -0.036736875772476196, -0.009148447774350643, 0.011375196278095245, -0.01393282599747181, 0.053763896226882935, -0.052726536989212036, 0.08198726177215576, -0.058986470103263855, 0.018144868314266205, -0.026577895507216454, 0.010471976362168789, -0.009363073855638504, 0.027311202138662338, -0.012662953697144985, -0.00884439330548048, 0.021391091868281364, 0.0031322031281888485, -0.011053256690502167, 0.018547292798757553, -0.016991252079606056, -0.009050076827406883, -0.03992049768567085, 0.009506158530712128, 0.007426965516060591, -0.004060015082359314, 0.061240047216415405, -0.058986470103263855, -0.03657590597867966, -0.030834650620818138, 0.00862529594451189, 0.03214029222726822, 0.10395068675279617, 0.08892684429883957, -0.0018187346868216991, 0.03391095995903015, -0.031192360445857048, -0.025862473994493484, -0.06342208385467529, -0.018189582973718643, 0.05773448571562767, -0.05068758502602577, 0.037344980984926224, -0.012654011137783527, -0.009550872258841991, -0.025021854788064957, 0.009309417568147182, -0.008227342739701271, 0.01246621273458004, -0.00005851222522323951, 0.06775037944316864, 0.05762717127799988, 0.057126376777887344, 0.0015102092875167727, -0.012376785278320312, 0.0017784922383725643, 0.05247613787651062, 0.043676458299160004, -0.02441374585032463, -0.030459053814411163, 0.049220971763134, -0.02571938931941986, -0.0030628966633230448, 0.023680439218878746, 0.08005562424659729, -0.01721482165157795, 0.03391095995903015, 0.0376669205725193, -0.00008537545363651589, 0.02999403141438961, 0.06549680233001709, 0.004075664561241865, 0.05319156125187874, 0.037058815360069275, -0.01622217334806919, -0.010114266537129879, 0.03995627164840698, -0.04181636497378349, 0.07315181195735931, -0.03394673392176628, -0.04954291135072708, -0.025737274438142776, -0.009532986208796501, 0.022732505574822426, 0.030852535739541054, 0.031085047870874405, 0.062348950654268265, 0.03485889360308647, 0.003930344711989164, -0.025987671688199043, -0.028509531170129776, -0.020747212693095207, -0.030780993402004242, 0.009184218943119049, 0.0457511804997921, -0.03580682724714279, -0.047146253287792206, 0.045965805649757385, -0.0006153739523142576, -0.07057629525661469, -0.0017214821418747306, -0.051546093076467514, -0.04256755858659744, -0.03430444374680519, 0.012153216637670994, 0.046716999262571335, 0.036271851509809494, -0.0072794100269675255, -0.012197930365800858, 0.008433026261627674, -0.039705872535705566, -0.016633540391921997, -0.04310412332415581, 0.023877179250121117, -0.00221109832637012, 0.020997609943151474, 0.008441968820989132, -0.0041315569542348385, -0.0011457916116341949, 0.02144474908709526, 0.024842998012900352, -0.014827102422714233, -0.03938393294811249, -0.07215022295713425, -0.00848668348044157, 0.0011547344038262963, 0.016088033095002174, -0.018690377473831177, 0.006031894590705633, 0.006259934976696968, -0.03137121722102165, -0.06800077855587006, -0.04317566379904747, -0.00638960488140583, 0.026524238288402557, 0.03162161260843277, -0.018350552767515182, -0.029224952682852745, 0.06599760055541992, -0.0406716912984848, -0.023769866675138474, 0.019137514755129814, 0.008898050524294376, 0.012654011137783527, 0.03296303004026413, -0.005553456488996744, -0.07926866412162781, -0.03312399983406067, -0.06807231903076172, 0.026166528463363647, 0.033732105046510696, 0.01254669763147831, -0.06928853690624237, 0.0294038075953722, 0.06428058445453644, 0.0316573865711689, 0.024288548156619072, 0.012072731740772724, 0.047074709087610245, -0.01403119694441557, -0.036665331572294235, 0.02255365066230297, -0.010498804971575737, 0.007592406589537859, -0.01641891524195671, 0.007905403152108192, 0.034608498215675354, -0.03011922910809517, 0.038131944835186005, 0.011893875896930695, 0.005361187271773815, -0.08563590794801712, -0.07490459084510803, -0.01622217334806919, 0.061240047216415405, -0.051546093076467514, -0.02809816412627697, -0.0054863858968019485, 0.02545110695064068, -0.0013369432417675853, 0.0016544113168492913, -0.025468992069363594, -0.010937000624835491, -0.01015003677457571, -0.021945543587207794, 0.016007548198103905, -0.027329087257385254, -0.004994533956050873, 0.07318758219480515, 0.0125645836815238, -0.044821131974458694, 0.04736087843775749, -0.10402223467826843, 0.0271502323448658, 0.005468500312417746, -0.10552461445331573, 0.02480722777545452, 0.007324123755097389, 0.01697336696088314, -0.07265101373195648, -0.028187591582536697, 0.1161128506064415, 0.02943957969546318, 0.00894276425242424, -0.04346183314919472, -0.06213432550430298, -0.007198925130069256, 0.05966612324118614, 0.04127980023622513, -0.06349362432956696, -0.027311202138662338, -0.02303656004369259, -0.02976151928305626, 0.03357113525271416, -0.00817368645220995, -0.0864228755235672, 0.0226430781185627, 0.016955479979515076, 0.021140694618225098, -0.03763115033507347, 0.018905002623796463, 0.023644668981432915, -0.022571535781025887, 0.025612076744437218, 0.022213825955986977, 0.04539347067475319, 0.051152609288692474, -0.03798886016011238, -0.007793618831783533, -0.006908285431563854, 0.06531795114278793, -0.06531795114278793, 0.007181039545685053, 0.04160173982381821, -0.011294711381196976, -0.004721779376268387, 0.06617645174264908, 0.06524640321731567, -0.006434318609535694, 0.10323526710271835, 0.020246418192982674, 0.021784573793411255, -0.015050671994686127, -0.03632550686597824, 0.03881159424781799, 0.02378775179386139, 0.04464227706193924, 0.026613665744662285, -0.01440679281949997, 0.02983306162059307, 0.027311202138662338, 0.03695150092244148, 0.006988770328462124, 0.01248409878462553, 0.017348961904644966, -0.02180245891213417, -0.05247613787651062, -0.03094196319580078, -0.025898244231939316, 0.057555630803108215, -0.003961644601076841, -0.018654605373740196, -0.005602641496807337, 0.009363073855638504, 0.02176668867468834, 0.031961437314748764, 0.003610640997067094, 0.04721779376268387, -0.05691175162792206, -0.030530596151947975, -0.028992440551519394, 0.0013760678702965379, 0.08170109242200851, 0.03074522316455841, 0.016910767182707787, 0.09372016787528992, 0.014066968113183975, -0.028277020901441574, -0.008495626039803028, 0.008285471238195896, 0.004212041851133108, 0.015766093507409096, 0.03335651010274887, -0.0153368404135108, -0.04686008393764496, 0.06835848838090897, 0.06721381843090057, 0.003910223487764597, -0.037416525185108185, -0.023054445162415504, 0.02604132890701294, 0.003747018054127693, -0.0036262909416109324, 0.019817166030406952, -0.03342805057764053, 0.013807627372443676, -0.01587340608239174, -0.04213830456137657, -0.020246418192982674, 0.0354670025408268, -0.028348561376333237, -0.0012195694725960493, -0.0326947458088398, -0.029296495020389557, -0.002906398382037878, -0.0063359481282532215, 0.03877582401037216, -0.0026135228108614683, 0.01610591821372509, -0.06256357580423355, 0.016651427373290062, -0.01370925735682249, 0.042245618999004364, -0.046681229025125504, 0.030244428664445877, 0.03342805057764053, 0.013244234025478363, 0.0062822918407619, -0.011536166071891785, -0.06746421009302139, 0.03035174123942852, 0.06324322521686554, -0.042209845036268234, 0.029546892270445824, -0.024610485881567, -0.04442765191197395, 0.005468500312417746, 0.0018701555673033, -0.017509931698441505, -0.1461605429649353, 0.024646257981657982, 0.040063582360744476, -0.051581863313913345, -0.05948726832866669, 0.023251187056303024, -0.02643481083214283, -0.03723767027258873, -0.08120029419660568, -0.009354131296277046, -0.03346382454037666, 0.04925674572587013, -0.042245618999004364, -0.037810005247592926, 0.048183612525463104, 0.04761127755045891, -0.011384138837456703, -0.04943560063838959, 0.02156994678080082, -0.0417090505361557, 0.04396262764930725, 0.014388907700777054, 0.06610491126775742, -0.07748010754585266, 0.0024547886569052935, -0.011312596499919891, 0.012734496034681797, -0.037452295422554016, 0.014567762613296509, -0.016991252079606056, -0.05258345231413841, -0.005781496874988079, -0.016526227816939354, 0.03364267945289612, -0.0177335012704134, -0.024127578362822533, 0.029546892270445824, -0.004990062210708857, -0.0143263079226017, -0.039705872535705566, -0.000010846594705071766, -0.003268580185249448, 0.009756555780768394, -0.017581474035978317, 0.011840219609439373, -0.019262714311480522, -0.05558822304010391, -0.03992049768567085, -0.00987281184643507, -0.0068278005346655846, -0.01262718252837658, -0.03260531648993492, 0.021462634205818176, -0.01669614017009735, 0.006255463697016239, -0.012904408387839794, -0.015157985500991344, 0.011625593528151512, -0.004098021425306797, -0.06807231903076172, -0.027829881757497787, -0.009765498340129852, -0.015453096479177475, 0.005303059238940477, -0.016928652301430702, -0.04127980023622513, -0.04643082991242409, 0.016240060329437256, 0.029779404401779175, -0.04947137087583542, 0.02643481083214283, -0.00010514734458411112, 0.05004370957612991, -0.03848965838551521, -0.005298587493598461, -0.034250784665346146, 0.0008473268826492131, -0.02682829275727272, -0.0210870373994112, -0.01947733946144581, -0.042961038649082184, -0.015846578404307365, 0.004645765759050846, -0.02089029736816883, 0.03221183642745018, 0.008182629011571407, -0.04882749170064926, 0.034286558628082275, -0.01062400359660387, -0.05952303856611252, 0.047146253287792206, -0.01840420812368393, 0.011598764918744564, 0.034644268453121185, 0.05440777540206909, -0.028384333476424217, -0.06056039780378342, 0.03956278786063194, 0.027400629594922066, -0.005839624907821417, 0.03174681216478348, 0.009291531518101692, -0.024073921144008636, 0.03391095995903015, -0.017322134226560593, 0.016669312492012978, 0.0013950711581856012, 0.043390292674303055, -0.010597174987196922, -0.05294116213917732, -0.026130756363272667, 0.006121322046965361, 0.0042500486597418785, -0.04246024414896965, 0.03169315680861473, 0.02457471564412117, 0.04950714111328125, -0.027007147669792175, 0.005723368842154741, 0.014353136532008648, 0.05197534337639809, -0.045214615762233734, -0.007516392972320318, 0.006250991951674223, -0.07511921972036362, -0.03273051604628563, -0.00777573324739933, -0.0210870373994112, -0.04614466428756714, 0.002445845864713192, -0.02833067625761032, -0.039598558098077774, 0.018976544961333275, 0.02722177468240261, -0.04732510820031166, -0.007556635420769453, 0.05612478777766228, 0.02496819756925106, -0.007623706478625536, -0.06599760055541992, -0.05315579101443291, 0.035037748515605927, -0.026309611275792122, -0.06628376990556717, 0.03952701762318611, -0.06034577265381813, 0.02251788042485714, 0.05573130398988724, -0.0406716912984848, -0.016517285257577896, 0.05151032283902168, 0.008142386563122272, -0.006881456822156906, 0.012868637219071388, -0.06102542206645012, 0.018708262592554092, 0.07733702659606934, 0.04736087843775749, -0.001240808516740799, 0.023358499631285667, 0.010015895590186119, 0.015587237663567066, -0.006944056134670973, -0.08406198024749756, 0.0125645836815238, 0.0013078792253509164, -0.009461444802582264, -0.03909776359796524, -0.050472959876060486, -0.004735193680971861, -0.04739664867520332, -0.01003378164023161, -0.08306039124727249, 0.032909370958805084, 0.014058025553822517, -0.0009283706895075738, 0.023161759600043297, -0.0017360140336677432, -0.017778214067220688, -0.0203358456492424, 0.007194453850388527, -0.03174681216478348, -0.01883346028625965, -0.019566766917705536, -0.0006215220782905817, 0.04650237411260605, 0.01816275343298912, 0.0789109468460083, 0.0027029504999518394, 0.005960352253168821, -0.011419910006225109, -0.0163473729044199, -0.01734001934528351, -0.029296495020389557, -0.0039214021526277065, -0.004055543337017298, -0.04131557047367096, -0.03253377601504326, -0.04961445555090904, 0.024234890937805176, 0.07783781737089157, 0.04571541026234627, 0.013047493062913418, -0.02963631972670555, -0.005687598139047623, -0.014290536753833294, 0.01879769004881382, 0.012144274078309536, -0.009090319275856018, -0.0038632741197943687, -0.026255955919623375, -0.04156596586108208, 0.012734496034681797, 0.004169563762843609, 0.006979827303439379, 0.009090319275856018, -0.006505860947072506, -0.05616055801510811, -0.012063789181411266, -0.002821441972628236, 0.004444553516805172, 0.016588827595114708, -0.07569155842065811, 0.03605722635984421, 0.010847573168575764, -0.026971375569701195, -0.00031215837225317955, 0.02208862639963627, -0.0115540511906147, 0.025898244231939316, -0.009640299715101719, 0.03528814762830734, -0.024306433275341988, 0.014844988472759724, 0.001229630084708333, -0.011670307256281376, 0.008540339767932892, -0.015274240635335445, 0.008142386563122272, -0.025629961863160133, -0.014174280688166618, 0.005481914151459932, 0.048183612525463104, 0.06059616804122925, -0.019441569223999977, -0.012832866050302982, -0.04610889032483101, 0.031961437314748764, -0.014156395569443703, -0.033857304602861404, -0.012135330587625504, -0.00375372520647943, -0.04178059473633766, 0.04947137087583542, 0.03230126202106476, 0.006505860947072506, 0.05515896901488304, -0.03501986339688301, -0.0573052316904068, 0.012510927394032478, 0.012278415262699127, -0.013691372238099575, -0.017232706770300865, 0.0014867344871163368, 0.016517285257577896, -0.04092208668589592, 0.03859696909785271, -0.033267080783843994, 0.0009026602492667735, -0.06714227050542831, 0.0027387214358896017, -0.0019383440958335996, -0.0139507120475173, 0.05061604455113411, 0.031997211277484894, 0.03178258240222931, -0.03906199336051941, 0.03382153436541557, 0.020961839705705643, 0.019888706505298615, -0.026363268494606018, -0.0271502323448658, 0.03248012065887451, 0.019209057092666626, 0.013914940878748894, 0.028598958626389503, -0.008830979466438293, 0.057519856840372086, -0.016588827595114708, 0.02908186800777912, 0.029493235051631927, -0.01582869328558445, -0.012949122115969658, -0.08456277847290039, 0.013029607012867928, 0.03589625656604767, 0.03713035583496094, 0.05247613787651062, -0.03126390278339386, 0.04181636497378349, 0.021337434649467468, 0.03131755813956261, 0.024288548156619072, 0.03321342542767525, -0.00884439330548048, 0.009515101090073586, -0.015891291201114655, -0.05050873011350632, -0.009273646399378777, 0.05512319877743721, -0.0002768065023701638, 0.011428852565586567, 0.02065778523683548, 0.006344891153275967, -0.0391693077981472, -0.001634290092624724, 0.009264703840017319, 0.014129566960036755, 0.025218594819307327, 0.048183612525463104, 0.04099363088607788, -0.0406716912984848, -0.00596482353284955, -0.06442367285490036, 0.08019870519638062, 0.006170507054775953, -0.0012072731042280793, 0.006648945156484842, 0.0038789238315075636, -0.05694752186536789, 0.010632946155965328, -0.00558922765776515, -0.03391095995903015, 0.05004370957612991, 0.0798409953713417, 0.028151821345090866, 0.02398449368774891, 0.042674869298934937, 0.024699915200471878, 0.013440974056720734, -0.024270661175251007, 0.028116051107645035, -0.002828149124979973, 0.025934016332030296, -0.006327005568891764, -0.06910967826843262, 0.02369832433760166, -0.0057144262827932835, -0.05358504131436348, 0.05104529857635498, 0.00532094482332468, -0.03498409315943718, 0.017554646357893944, 0.006689187604933977, 0.045250385999679565, 0.02509339526295662, 0.050437189638614655, 0.03210452198982239, 0.07247216254472733, -0.08148646354675293, -0.0005714985309168696, -0.02656000852584839, 0.007923289202153683, -0.0627424344420433, -0.024860884994268417, 0.008652124553918839, -0.011580879800021648, 0.035037748515605927, -0.05165340378880501, 0.025021854788064957 ]
20,465
metevolsim.metevolsim
compute_wild_type_metabolic_control_analysis
Compute and save the wild-type metabolic control analysis (MCA). Parameters ---------- None Returns ------- None
def compute_wild_type_metabolic_control_analysis( self ): """ Compute and save the wild-type metabolic control analysis (MCA). Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Compute the steady-state with Copasi # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.write_wild_type_SBML_file() self.create_wild_type_cps_file() self.edit_wild_type_cps_file("MCA") self.run_copasi_for_wild_type() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Extract the MCA result # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# rownames, colnames, unscaled, scaled = self.parse_copasi_output("./output/wild_type_output.txt", "MCA") #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Write control coefficients data # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# f = open("./output/wild_type_MCA_unscaled.txt", "w") f.write("species_id species_value flux_id flux_value control_coef\n") for i in range(len(rownames)): for j in range(len(colnames)): species_id = rownames[i] flux_id = colnames[j] species_value = self.species[species_id]["wild_type_value"] flux_value = self.reactions[flux_id]["wild_type_value"] control_coef = unscaled[i][j] f.write(species_id+" "+str(species_value)+" "+flux_id+" "+str(flux_value)+" "+control_coef+"\n") f.close() f = open("./output/wild_type_MCA_scaled.txt", "w") f.write("species_id species_value flux_id flux_value control_coef\n") for i in range(len(rownames)): for j in range(len(colnames)): species_id = rownames[i] flux_id = colnames[j] species_value = self.species[species_id]["wild_type_value"] flux_value = self.reactions[flux_id]["wild_type_value"] control_coef = scaled[i][j] f.write(species_id+" "+str(species_value)+" "+flux_id+" "+str(flux_value)+" "+control_coef+"\n") f.close()
(self)
[ 0.008489842526614666, -0.007528030313551426, 0.040470100939273834, 0.07476240396499634, 0.028077518567442894, -0.048386555165052414, -0.08826477080583572, -0.04672187939286232, -0.010616927407681942, -0.025654492899775505, -0.03771413862705231, 0.04150589928030968, -0.005308463703840971, 0.0038195045199245214, -0.016591262072324753, 0.026005923748016357, -0.026560815051198006, 0.0007728022756054997, 0.02245461754500866, -0.0015768172452226281, -0.028206994757056236, -0.010117525234818459, -0.030611524358391762, -0.0035397466272115707, 0.05637699365615845, 0.01253130380064249, -0.006071439944207668, -0.01430695690214634, -0.039064373821020126, -0.03567953407764435, -0.022750558331608772, 0.017099911347031593, -0.00676043052226305, -0.026338858529925346, 0.03099994920194149, -0.05256674066185951, 0.05741279199719429, -0.022047696635127068, -0.07502135634422302, 0.04342952370643616, 0.0011386839905753732, -0.053084637969732285, 0.01374281756579876, -0.020974906161427498, -0.035550061613321304, -0.020549489185214043, -0.0372147373855114, 0.09632919728755951, -0.022103184834122658, -0.06159297749400139, -0.02868789993226528, -0.05737579986453056, -0.0010068971896544099, 0.027985036373138428, 0.030241597443819046, 0.015352003276348114, 0.03325650840997696, 0.03817654773592949, 0.07724092155694962, -0.049237389117479324, 0.03037107177078724, 0.0015664129750803113, 0.00902623776346445, -0.04317057132720947, 0.044428326189517975, 0.0057246326468884945, -0.022362135350704193, 0.0015375124057754874, -0.015278018079698086, 0.035383593291044235, 0.007814724929630756, -0.059595365077257156, 0.03728872165083885, 0.01122730877250433, 0.0133821377530694, -0.06680896133184433, -0.015000571496784687, -0.050088223069906235, -0.019643165171146393, -0.009049358777701855, -0.02624637633562088, -0.004503870848566294, 0.018181951716542244, -0.019902115687727928, -0.010274744592607021, -0.006404374726116657, 0.0995105728507042, 0.011948667466640472, -0.01775653474032879, 0.018746091052889824, -0.008198524825274944, -0.008813529275357723, 0.02630186639726162, 0.04897844046354294, 0.015425988472998142, 0.03924933820962906, -0.03619743511080742, -0.05056912824511528, 0.017802774906158447, -0.02165927179157734, 0.005493427626788616, 0.04834956303238869, 0.06022424250841141, 0.0008115291129797697, 0.014029511250555515, -0.02855842560529709, -0.02743014506995678, 0.04831257089972496, -0.013964774087071419, -0.0492003969848156, -0.06847363710403442, 0.0096181221306324, -0.03891640529036522, -0.04479825496673584, 0.00002924380351032596, -0.04820159077644348, -0.011144074611365795, 0.031147919595241547, -0.05652496591210365, -0.01106084045022726, -0.02963121607899666, -0.01623982936143875, -0.013770561665296555, -0.006182418204843998, -0.019476698711514473, 0.0767970085144043, 0.04723978042602539, 0.0056229024194180965, 0.011292045935988426, -0.024692680686712265, -0.06754881143569946, -0.03122190572321415, 0.02817000076174736, 0.04231973737478256, 0.030796488747000694, -0.05186387524008751, 0.011033096350729465, -0.06699392199516296, 0.008804281242191792, 0.026061411947011948, 0.03259063884615898, 0.029372267425060272, -0.016535772010684013, -0.030740998685359955, 0.03133288398385048, -0.003523562103509903, 0.025136593729257584, -0.07417052239179611, -0.07061921805143356, -0.0306670144200325, -0.027411649003624916, 0.020604977384209633, -0.07483638823032379, -0.03099994920194149, 0.005211357958614826, 0.007287577260285616, 0.0348471961915493, -0.009682860225439072, -0.013086195103824139, -0.030001142993569374, -0.06296171247959137, 0.02284304052591324, -0.005068010650575161, 0.007051748689264059, -0.058633554726839066, -0.0005872603505849838, -0.008781161159276962, 0.011587987653911114, -0.0011363719822838902, 0.04875648394227028, -0.044428326189517975, -0.03382989764213562, -0.0702492892742157, 0.029335273429751396, -0.030408063903450966, 0.010764898732304573, -0.013160181231796741, -0.061851926147937775, 0.05445336923003197, 0.022547097876667976, -0.061629969626665115, -0.017886009067296982, -0.0673268586397171, 0.046277966350317, -0.028484439477324486, -0.011689717881381512, 0.05141996219754219, -0.02030903473496437, 0.049977242946624756, -0.003160570515319705, 0.046573907136917114, -0.0097568454220891, -0.016415545716881752, 0.020567985251545906, 0.07753686606884003, -0.057560764253139496, 0.08315976709127426, -0.020327532663941383, 0.031647320836782455, 0.010764898732304573, -0.022047696635127068, 0.0043697720393538475, 0.03749218210577965, -0.030241597443819046, 0.0499032586812973, 0.010672416538000107, 0.005160492844879627, 0.024396738037467003, -0.08493541926145554, 0.049237389117479324, 0.012614537961781025, -0.014954331330955029, 0.02188122831285, -0.005345456767827272, 0.058855511248111725, -0.07128508388996124, 0.04786865413188934, 0.0009300215751864016, -0.0014820231590420008, 0.0282254908233881, -0.012411077506840229, 0.03360794112086296, -0.04834956303238869, 0.05445336923003197, -0.017608562484383583, 0.06950943171977997, -0.004517743363976479, 0.0901883915066719, 0.0413949191570282, -0.022380631417036057, -0.00845285039395094, 0.02789255604147911, -0.0266902893781662, -0.020771445706486702, 0.027744583785533905, -0.0012623785296455026, 0.0028091392014175653, 0.05892949551343918, -0.04287463054060936, 0.003995220176875591, -0.06310968101024628, -0.06621707230806351, 0.03669683635234833, 0.017793526872992516, -0.05486029013991356, -0.06466338038444519, 0.06144500523805618, 0.023323947563767433, -0.030611524358391762, 0.02500711940228939, 0.06262877583503723, -0.04649992287158966, -0.008508339524269104, 0.015906894579529762, 0.019310230389237404, -0.09507144242525101, -0.02212168090045452, -0.020567985251545906, 0.07531730085611343, -0.04128394275903702, 0.020493999123573303, 0.005821738392114639, 0.049644310027360916, 0.02014256827533245, -0.05663594603538513, -0.008443601429462433, -0.023601392284035683, 0.023897334933280945, -0.013465371914207935, 0.0001062097362591885, 0.06040920689702034, 0.06199989840388298, -0.05363953113555908, 0.006644827779382467, -0.06037221476435661, -0.033515457063913345, 0.04180184006690979, -0.009951057843863964, -0.04161687567830086, 0.016831714659929276, -0.005493427626788616, 0.009766093455255032, 0.015425988472998142, -0.011763704009354115, -0.03593848645687103, -0.04982927441596985, -0.009470151737332344, -0.028465943410992622, -0.0008595040999352932, 0.008475970476865768, -0.040692057460546494, 0.006640203762799501, 0.01877383515238762, -0.03745518997311592, 0.06026123836636543, -0.004090013913810253, -0.06114906445145607, -0.051271989941596985, -0.010931366123259068, -0.043022602796554565, -0.02273206226527691, -0.03984122350811958, 0.029372267425060272, -0.022639580070972443, -0.018089469522237778, -0.0028368837665766478, 0.03534660115838051, -0.023157479241490364, 0.034033358097076416, 0.045501116663217545, 0.020789941772818565, 0.021289344877004623, 0.029205799102783203, 0.06059417128562927, 0.01326191145926714, 0.015805164352059364, 0.026209384202957153, 0.0006647140253335238, 0.0648113489151001, 0.06577315926551819, 0.008124538697302341, -0.04268966615200043, 0.026264872401952744, 0.018644360825419426, 0.010690913535654545, -0.0437624566257, 0.01786751300096512, -0.032942067831754684, 0.05341757461428642, -0.07864664494991302, -0.05867054685950279, 0.02110438048839569, 0.0005780121427960694, 0.007144230417907238, 0.007828596979379654, -0.0266902893781662, -0.019421208649873734, -0.05667293816804886, 0.05419442057609558, -0.03168431669473648, 0.0361049510538578, 0.05748677998781204, -0.025377046316862106, -0.0028276355005800724, 0.03312703222036362, 0.002432275330647826, 0.014741622842848301, -0.044539306312799454, -0.0713590681552887, 0.03677082061767578, 0.01798773929476738, 0.027448641136288643, -0.016378553584218025, 0.08604520559310913, 0.04276365414261818, 0.055748116225004196, 0.0013213357888162136, -0.04631495848298073, -0.0058633554726839066, -0.006917649880051613, 0.05807866156101227, 0.007236712612211704, 0.005900348071008921, -0.015388996340334415, 0.015305762179195881, -0.07058222591876984, -0.02844744734466076, 0.017099911347031593, 0.006635579746216536, -0.031573336571455, 0.021973710507154465, -0.022269653156399727, 0.02297251485288143, -0.06584714353084564, 0.017839767038822174, 0.07084117084741592, -0.010626175440847874, -0.010441211983561516, -0.03839850425720215, -0.004011404700577259, 0.02885436825454235, 0.018690600991249084, -0.06950943171977997, 0.00021603204368148, 0.04202379658818245, -0.0012196056777611375, 0.013058451004326344, 0.005271471105515957, 0.01856112666428089, 0.011560243554413319, 0.06414547562599182, 0.003974411636590958, 0.005012521520256996, -0.06488533318042755, 0.06059417128562927, 0.009821582585573196, 0.06884355843067169, 0.028835870325565338, 0.017331117764115334, 0.00006921695603523403, -0.007578895427286625, -0.07298675179481506, 0.0023629136849194765, 0.06170395389199257, -0.03828752785921097, -0.05837460607290268, -0.010737153701484203, -0.024174781516194344, -0.02580246329307556, 0.037880606949329376, 0.022158674895763397, 0.039804231375455856, 0.034588247537612915, -0.013548605144023895, -0.01242032554000616, 0.00009681703522801399, -0.026209384202957153, -0.06455239653587341, 0.0027074089739471674, 0.0330345518887043, 0.021418819203972816, 0.0023490414023399353, 0.06532924622297287, 0.02998264692723751, 0.030408063903450966, 0.0039004262071102858, -0.005895724054425955, 0.013881539925932884, -0.06599511951208115, 0.01071865763515234, -0.0038380008190870285, 0.022269653156399727, -0.05689489468932152, -0.004048397298902273, -0.013113940134644508, -0.018070973455905914, -0.052233804017305374, 0.004103886429220438, 0.01866285689175129, 0.031980257481336594, 0.02861391380429268, -0.002261183690279722, 0.017099911347031593, -0.0303155817091465, -0.028891360387206078, -0.0004595196805894375, -0.027800073847174644, 0.011347535066306591, -0.0305930282920599, 0.0270417220890522, -0.008508339524269104, 0.037085261195898056, -0.011218059808015823, -0.03026009351015091, 0.06203689053654671, 0.05141996219754219, -0.0006566218216903508, -0.046462930738925934, -0.001809178153052926, -0.023397931829094887, -0.03316402807831764, 0.005100379232317209, 0.027874058112502098, 0.02737465687096119, 0.03767714649438858, -0.027818569913506508, 0.014843352138996124, 0.021141372621059418, 0.010293240658938885, -0.02534005418419838, -0.04276365414261818, -0.03678932040929794, 0.021011898294091225, -0.028465943410992622, 0.01572193019092083, -0.0016924196388572454, -0.09359172731637955, 0.009803086519241333, 0.012947472743690014, -0.025303060188889503, 0.006418247241526842, -0.01690570078790188, -0.013474619947373867, 0.006644827779382467, 0.0008254013955593109, -0.019162259995937347, 0.053195614367723465, -0.04287463054060936, 0.04513119161128998, -0.11260601878166199, -0.016711488366127014, 0.02042001485824585, 0.016378553584218025, 0.02952023781836033, -0.04661090299487114, 0.06532924622297287, -0.009775341488420963, -0.002543253591284156, 0.0001995587081182748, -0.02369387447834015, 0.007888710126280785, 0.03712225332856178, -0.09625521302223206, -0.011846937239170074, 0.009428534656763077, 0.020512495189905167, -0.025765471160411835, -0.06621707230806351, 0.021363329142332077, -0.043133579194545746, -0.03590149059891701, -0.10210006684064865, 0.012392580509185791, 0.013881539925932884, -0.021733257919549942, -0.024359744042158127, -0.05774572864174843, -0.007005507592111826, -0.022436119616031647, 0.027004728093743324, -0.04690684378147125, -0.07650106400251389, -0.014630643650889397, 0.04383644461631775, -0.0007375435088761151, 0.01315093319863081, -0.032035745680332184, -0.032831091433763504, 0.0007774263503961265, 0.007491037715226412, -0.036234427243471146, -0.046129994094371796, 0.014982075430452824, 0.035772018134593964, 0.023342443630099297, -0.03712225332856178, 0.03336748480796814, -0.05689489468932152, 0.01485260110348463, -0.05068010836839676, -0.021677767857909203, -0.02789255604147911, 0.04823858290910721, -0.01872759498655796, 0.034754715859889984, -0.034884192049503326, -0.013206422328948975, 0.004832181613892317, -0.002920117462053895, 0.027911052107810974, -0.006372006144374609, 0.012919727712869644, -0.0019791137892752886, -0.015231776982545853, 0.09026238322257996, 0.04095100611448288, 0.039804231375455856, 0.009571881964802742, -0.016951940953731537, 0.017858264967799187, -0.008360368199646473, -0.055230218917131424, 0.05815264955163002, -0.04853452742099762, -0.04339253157377243, -0.006492232903838158, -0.00553042022511363, 0.026172390207648277, -0.024822155013680458, -0.05260373279452324, 0.07195095717906952, 0.04246770963072777, 0.05397246405482292, 0.008517587557435036, -0.05966935306787491, 0.03168431669473648, 0.04043310880661011, 0.02448922023177147, -0.0009999610483646393, -0.01668374240398407, 0.01752532832324505, 0.004427573177963495, 0.0266902893781662, -0.003451888682320714, 0.03325650840997696, 0.0625917837023735, -0.009312932379543781, 0.017571570351719856, 0.0035443706437945366, 0.007565023377537727, -0.01577742025256157, 0.041875824332237244, -0.005442562513053417, -0.0510130412876606, -0.03947129473090172, 0.03738120198249817, 0.04032212868332863, 0.0014577467227354646, 0.0036160440649837255, 0.054675325751304626, -0.07476240396499634, -0.03778812289237976, -0.0015594768337905407, -0.007689874153584242, -0.009803086519241333, -0.024914637207984924, 0.06614308804273605, 0.012947472743690014, 0.0033108536154031754, 0.004607913084328175, 0.040877021849155426, 0.022103184834122658, 0.02670878730714321, -0.024137787520885468, 0.0019513691077008843, -0.0076112644746899605, -0.010838883928954601, -0.0720619335770607, 0.028040526434779167, -0.013900036923587322, 0.011329038999974728, -0.026005923748016357, -0.046240974217653275, 0.0183299221098423, -0.03732571378350258, 0.012697771191596985, -0.008045929484069347, -0.04054408520460129, -0.021899724379181862, -0.008878267370164394, 0.0028576920740306377, -0.009803086519241333, 0.011893178336322308, 0.0065384735353291035, 0.001432314165867865, 0.03932332247495651, 0.03135138005018234, 0.05023619532585144, -0.034421779215335846, 0.03899038955569267, 0.04428035765886307, -0.0034911935217678547, 0.035439081490039825, -0.013613342307507992, -0.027966540306806564, 0.0031975633464753628, 0.0008300254703499377, -0.014242219738662243, 0.010996103286743164, 0.014908090233802795, -0.04032212868332863, 0.03290507569909096, -0.0321282297372818, -0.014353197999298573, 0.045168183743953705, -0.0887826681137085, 0.04886746034026146, 0.0002702206838876009, -0.007292201742529869, -0.021825740113854408, -0.019254742190241814, 0.019643165171146393, 0.021030394360423088, -0.026227880269289017, 0.06891755014657974, -0.06447841227054596, 0.039397310465574265, 0.03636390343308449, -0.001391853322274983, 0.029427755624055862, 0.05733880773186684, -0.016323063522577286, -0.029668208211660385, 0.003590611508116126, -0.018237439915537834, 0.01771029271185398, 0.029224295169115067, -0.010173014365136623, 0.017719540745019913, 0.035383593291044235, 0.05075409263372421, 0.07213591784238815, 0.021566789597272873, -0.04072904959321022, 0.05341757461428642, 0.021233854815363884, 0.005498051643371582, 0.008975372649729252, -0.046129994094371796, -0.035550061613321304, -0.05256674066185951, 0.04760970547795296, -0.0035420586355030537, -0.030704006552696228, 0.018755339086055756, 0.0528256893157959, -0.031980257481336594, -0.004066893830895424, 0.028706395998597145, 0.009682860225439072, -0.00964586716145277, 0.011828441172838211, -0.005137372296303511, 0.03614194691181183, -0.004575544502586126, 0.009470151737332344, 0.006464488338679075, -0.018598118796944618, -0.019994597882032394, 0.0013294280506670475, 0.04775767773389816, 0.0961812287569046, -0.0011623824248090386, 0.039508286863565445, -0.013641087338328362, -0.0006219411152414978, -0.062258847057819366, 0.013076947070658207, 0.034366291016340256, 0.010552190244197845, 0.01956918090581894, 0.030297085642814636, 0.04775767773389816, -0.0010363758774474263, -0.057560764253139496, 0.02019805647432804, -0.02025354653596878, -0.04394742101430893, 0.048386555165052414, -0.0036992779932916164, 0.017210889607667923, 0.015869902446866035, -0.04169086366891861, 0.0637015625834465, 0.009775341488420963, -0.027134204283356667, 0.025580506771802902, 0.002552501857280731, 0.007024004124104977, 0.024470724165439606, -0.00826326198875904, -0.04243071749806404, -0.006034446880221367, -0.012771757319569588, -0.0780547633767128, 0.03262763097882271, 0.03771413862705231, 0.04146890342235565, 0.011477009393274784, 0.04672187939286232, 0.03987821564078331, -0.02184423618018627, 0.021474307402968407, 0.0000768756217439659, 0.055415183305740356, 0.00046183171798475087, 0.04931137338280678, -0.031240401789546013, 0.0007346534985117614, -0.013428378850221634, 0.04564908891916275, -0.052344780415296555, 0.03214672580361366, 0.056303009390830994, 0.030112121254205704, 0.014038759283721447, -0.0667719691991806, -0.013002961874008179 ]
20,466
metevolsim.metevolsim
compute_wild_type_steady_state
Compute and save the wild-type steady-state. Parameters ---------- None Returns ------- Boolean
def compute_wild_type_steady_state( self ): """ Compute and save the wild-type steady-state. Parameters ---------- None Returns ------- Boolean """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Compute the steady-state with Copasi # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.write_wild_type_SBML_file() self.create_wild_type_cps_file() self.edit_wild_type_cps_file("STEADY_STATE") self.run_copasi_for_wild_type() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Extract steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# success, concentrations, fluxes = self.parse_copasi_output("./output/wild_type_output.txt", "STEADY_STATE") if not success: return False #assert success, "The model is unstable. Exit." #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Update model and lists # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.wild_type_absolute_sum = 0.0 for elmt in concentrations: species_id = elmt[0] species_value = float(elmt[1]) assert species_id in self.species if not self.species[species_id]["constant"]: self.species[species_id]["wild_type_value"] = species_value self.species[species_id]["mutant_value"] = species_value self.wild_type_absolute_sum += species_value for elmt in fluxes: reaction_id = elmt[0] reaction_value = float(elmt[1]) assert reaction_id in self.reactions self.reactions[reaction_id]["wild_type_value"] = reaction_value self.reactions[reaction_id]["mutant_value"] = reaction_value return True
(self)
[ 0.02855994924902916, -0.035661447793245316, -0.004404756240546703, 0.030715418979525566, 0.03656597435474396, -0.04029955342411995, -0.08267758786678314, -0.05246255174279213, -0.0077558355405926704, -0.021458452567458153, -0.04360973462462425, 0.029233533889055252, -0.019505061209201813, 0.02436448633670807, -0.0032548527233302593, 0.050307080149650574, -0.007260270416736603, -0.0008353641023859382, -0.01710902713239193, -0.04591916501522064, -0.014087522402405739, -0.0062402719631791115, -0.015992801636457443, 0.02677014283835888, 0.03916408121585846, -0.03238975629210472, 0.027443725615739822, -0.030080324038863182, -0.06193121150135994, -0.00691866734996438, 0.027212781831622124, 0.0078376280143857, 0.0016695254016667604, -0.03281315043568611, 0.032409001141786575, -0.06023763120174408, 0.028444478288292885, 0.04156973958015442, -0.03529578819870949, -0.005749518051743507, -0.039606723934412, -0.05681197717785835, -0.004556312691420317, 0.017330346629023552, -0.0641251727938652, -0.01300978846848011, -0.03446824103593826, 0.08159985393285751, -0.004318153019994497, -0.02777089551091194, -0.048998404294252396, -0.022709393873810768, -0.013923938386142254, 0.0443025641143322, 0.04999915882945061, -0.03991464897990227, 0.027462970465421677, 0.03677767142653465, 0.0735168531537056, -0.024826372042298317, 0.036084841936826706, 0.014097144827246666, 0.026712406426668167, -0.010969792492687702, 0.04257049039006233, 0.015357709489762783, -0.03804785758256912, 0.015328841283917427, -0.011412433348596096, 0.04699689894914627, -0.008987531065940857, -0.04318634048104286, 0.04303237795829773, 0.038952384144067764, 0.007202534470707178, -0.062200646847486496, -0.03133126720786095, -0.014260729774832726, -0.03591163456439972, 0.0007902580546215177, -0.035372767597436905, 0.02059241756796837, -0.006860931403934956, -0.031004097312688828, -0.04726633429527283, 0.029118062928318977, 0.09561040252447128, 0.027501462027430534, -0.018783362582325935, 0.016733745113015175, -0.002190349856391549, 0.04318634048104286, -0.0052202739752829075, -0.0025211276952177286, 0.06778176873922348, 0.05881348252296448, -0.03587314486503601, -0.07505647093057632, -0.01470337063074112, -0.03552673012018204, -0.021419962868094444, 0.057812727987766266, 0.008342815563082695, -0.011104509234428406, -0.0021927556954324245, -0.0024994767736643553, -0.03383314982056618, 0.01746506430208683, -0.018003931269049644, -0.06862855702638626, -0.07093799114227295, -0.001147498027421534, -0.044995393604040146, -0.02809806354343891, -0.017926950007677078, -0.04680444672703743, 0.03402560204267502, 0.03939502686262131, -0.04210860654711723, -0.019100910052657127, 0.00116493902169168, -0.006476026494055986, -0.038298048079013824, 0.02374863810837269, 0.019428079947829247, 0.08637268096208572, 0.02507656067609787, -0.0020784868393093348, 0.001189596951007843, -0.0013748324709013104, -0.07555685192346573, -0.004842585884034634, 0.013981673866510391, 0.04314785078167915, 0.0003930240636691451, -0.029252778738737106, -0.033640697598457336, -0.06231611594557762, 0.013452429324388504, 0.05015312135219574, 0.037258803844451904, 0.02319052629172802, 0.01307714730501175, -0.01915864646434784, 0.03870219737291336, 0.04106936231255531, -0.054694999009370804, -0.03698936849832535, -0.0336984321475029, 0.041646718978881836, 0.017253365367650986, 0.010046020150184631, -0.03662370890378952, 0.032081831246614456, -0.04191615432500839, 0.013808466494083405, 0.025653917342424393, -0.0494987815618515, -0.007524892687797546, -0.01623336784541607, -0.06951384246349335, -0.01520374696701765, 0.01821562834084034, 0.013866201974451542, -0.0627010241150856, 0.01300978846848011, -0.06666554510593414, 0.008650739677250385, 0.010565642267465591, 0.04865198954939842, -0.03729729354381561, -0.00897790864109993, -0.08514098078012466, 0.033063337206840515, -0.012721110135316849, 0.01639695279300213, 0.0017248555086553097, -0.04056898504495621, 0.01427997462451458, -0.04114634171128273, -0.050461042672395706, -0.053848206996917725, -0.06935987621545792, 0.01736883819103241, -0.02039996348321438, 0.015232615172863007, -0.009170361794531345, -0.00915592722594738, 0.06716591864824295, 0.04068445786833763, -0.00849196594208479, -0.0044023506343364716, 0.0010133826872333884, 0.02621202915906906, 0.040992382913827896, -0.03077315352857113, 0.04557275027036667, -0.021362226456403732, 0.02007279545068741, -0.012942430563271046, -0.015502048656344414, -0.03704710677266121, 0.02559618093073368, -0.034853145480155945, -0.017551667988300323, -0.011094885878264904, -0.05415613204240799, 0.016829971224069595, -0.03825955465435982, 0.024730145931243896, -0.03002258948981762, -0.01937996596097946, -0.021843358874320984, 0.04822859540581703, 0.06466403603553772, -0.0961492657661438, 0.07594175636768341, 0.015280728228390217, -0.0077798920683562756, -0.014212616719305515, 0.004897915758192539, -0.011710734106600285, -0.03375616669654846, 0.007669231854379177, -0.03265918791294098, 0.06112291291356087, -0.029118062928318977, 0.0712074264883995, 0.0072891381569206715, -0.026327501982450485, -0.007423854898661375, 0.024345239624381065, -0.01785959117114544, -0.015069030225276947, 0.051307834684848785, 0.001173358759842813, -0.0027039574924856424, 0.05099990963935852, -0.02436448633670807, -0.0002970985369756818, -0.05061500519514084, -0.07236213982105255, 0.005047066602855921, -0.030522964894771576, -0.04276294261217117, -0.0843711718916893, 0.08283155411481857, 0.001639454741962254, -0.07251609861850739, 0.0001158473824034445, 0.03710484132170677, -0.024768635630607605, -0.005518575198948383, 0.00005946481542196125, 0.0391063466668129, -0.08144589513540268, -0.02478788048028946, 0.027174292132258415, 0.0669349804520607, -0.04403313249349594, 0.0388946495950222, -0.023171279579401016, 0.037393517792224884, 0.02673165127635002, -0.10731150954961777, 0.004926783964037895, -0.013490919955074787, 0.019697513431310654, 0.020111285150051117, 0.008381306193768978, 0.08875908702611923, 0.01974562555551529, -0.08329343795776367, -0.0018090534722432494, -0.055503297597169876, -0.030426738783717155, 0.05076896771788597, 0.011085263453423977, -0.02700108475983143, 0.008338004350662231, -0.004450464155524969, 0.007457534316927195, 0.03225503861904144, 0.03083088994026184, -0.00403187982738018, -0.02474939078092575, -0.03573842719197273, -0.005148104391992092, 0.032409001141786575, -0.008511211723089218, -0.0064856489188969135, 0.03685465082526207, 0.06558781117200851, -0.03015730530023575, 0.08252362906932831, 0.0034833902027457952, -0.08537192642688751, -0.035796165466308594, 0.03741276636719704, -0.02648146264255047, -0.012239978648722172, 0.013818088918924332, 0.031793151050806046, -0.019620532169938087, 0.004679001402109861, 0.004099238198250532, 0.02299807220697403, -0.011181489564478397, 0.03015730530023575, 0.008949041366577148, 0.01844657212495804, -0.010613755322992802, 0.044995393604040146, 0.05142330750823021, 0.032351262867450714, -0.0428784154355526, -0.014135635457932949, -0.0393565334379673, 0.04595765471458435, 0.062239136546850204, 0.0077654579654335976, -0.0221512820571661, 0.04387916997075081, 0.04295539855957031, 0.0019557983614504337, -0.0716693103313446, 0.027751648798584938, -0.02842523343861103, 0.01484770979732275, -0.026038821786642075, -0.022921092808246613, -0.014568653889000416, 0.03718182072043419, 0.021516188979148865, 0.01727261207997799, -0.052539531141519547, 0.0017320724437013268, -0.028771648183465004, 0.04999915882945061, -0.05831310525536537, 0.03858672454953194, 0.05269349366426468, -0.01642582006752491, -0.011970545165240765, 0.0890670120716095, -0.007948287762701511, -0.006495271809399128, -0.03571918234229088, -0.0032019284553825855, 0.033621449023485184, -0.020419210195541382, 0.03154296427965164, -0.014664880000054836, 0.10138397663831711, 0.020669396966695786, 0.06143083795905113, 0.006057442165911198, -0.025038069114089012, 0.002699146280065179, -0.03987615555524826, 0.0457267127931118, -0.007375741843134165, -0.017214875668287277, 0.017311101779341698, 0.018975816667079926, -0.03269767761230469, -0.02149694412946701, -0.017118649557232857, 0.012230356223881245, -0.021092792972922325, -0.011316206306219101, -0.028675422072410583, -0.015492426231503487, -0.03758597373962402, 0.03897162899374962, 0.046073127537965775, -0.011662621051073074, -0.015434689819812775, 0.01661827228963375, -0.0008786659454926848, 0.010796585120260715, 0.024614673107862473, -0.05157727003097534, 0.02578863501548767, 0.07413270324468613, -0.00039242266211658716, 0.04283992573618889, -0.005292443558573723, 0.024961087852716446, -0.016204500570893288, 0.04403313249349594, -0.006779138930141926, 0.01357752364128828, -0.025153540074825287, 0.04045351594686508, 0.029522212222218513, 0.05808216333389282, 0.036642953753471375, -0.01801355369389057, 0.030080324038863182, 0.013288844376802444, -0.044571999460458755, 0.006360555067658424, 0.04210860654711723, -0.06982176750898361, -0.07228516042232513, -0.0289833452552557, -0.0011078047100454569, -0.05881348252296448, 0.011672243475914001, 0.03987615555524826, 0.015925444662570953, -0.012586393393576145, 0.007876118645071983, -0.010671490803360939, 0.004140134435147047, -0.004414379131048918, -0.03425654396414757, 0.008544891141355038, 0.055734243243932724, 0.04029955342411995, -0.0012148563982918859, 0.07270855456590652, 0.062431588768959045, 0.01801355369389057, 0.05962178111076355, 0.002257708227261901, 0.044610489159822464, -0.03454522415995598, 0.030792398378252983, -0.0038394273724406958, 0.03340975195169449, -0.06508743017911911, 0.0014494078932330012, 0.007799137383699417, -0.03373692184686661, -0.013895070180296898, -0.028829382732510567, -0.011296961456537247, 0.038682952523231506, -0.0015312001341953874, 0.04064596816897392, 0.019072042778134346, 0.02573089860379696, 0.010219227522611618, -0.018975816667079926, -0.03902936726808548, 0.009305078536272049, -0.024152787402272224, 0.03827879950404167, -0.040376532822847366, -0.009213662706315517, 0.005148104391992092, -0.00871809758245945, 0.033679187297821045, 0.041030872613191605, -0.009598568081855774, -0.005249141715466976, -0.015550161711871624, -0.04611161723732948, -0.013981673866510391, -0.011162244714796543, 0.0025283447466790676, 0.04045351594686508, 0.03448748588562012, -0.10430925339460373, -0.045649733394384384, -0.02328675240278244, 0.006557818967849016, -0.014433937147259712, -0.04191615432500839, -0.01828298717737198, 0.050037648528814316, -0.014145257882773876, 0.025192031636834145, -0.014568653889000416, -0.07059157639741898, -0.015088276006281376, 0.00019245249859523028, -0.06343234330415726, -0.007717344909906387, -0.017311101779341698, -0.04464897885918617, 0.025750143453478813, -0.013510164804756641, -0.03679691627621651, 0.035468995571136475, -0.03352522477507591, 0.095225490629673, -0.09399379789829254, -0.04495690390467644, -0.03138900175690651, 0.037970878183841705, -0.002819429151713848, -0.0669349804520607, 0.028252026066184044, -0.049229346215724945, 0.0015324029373005033, 0.026462217792868614, -0.01684921607375145, 0.03177390620112419, 0.033775411546230316, -0.041646718978881836, 0.007202534470707178, 0.006884987931698561, 0.031081078574061394, -0.021554678678512573, -0.06435611099004745, 0.014405068941414356, -0.01808091253042221, 0.007101497147232294, -0.07201572507619858, 0.06493347138166428, -0.028309762477874756, 0.007366119418293238, -0.03185088932514191, 0.028733156621456146, 0.009762153029441833, 0.018254119902849197, 0.026058068498969078, -0.04380218684673309, -0.07155383378267288, 0.005407914984971285, 0.05176972225308418, -0.0054512168280780315, 0.038163330405950546, -0.011402809992432594, -0.035699937492609024, 0.0031321642454713583, -0.022401470690965652, 0.018956569954752922, -0.026058068498969078, 0.019880343228578568, 0.02852145954966545, 0.016935819759964943, -0.04699689894914627, 0.06451007723808289, -0.07879005372524261, -0.03824030980467796, -0.0659727156162262, -0.013096392154693604, -0.06674252450466156, 0.03502635285258293, 0.006115178111940622, 0.02328675240278244, -0.0025283447466790676, -0.011296961456537247, -0.028155799955129623, -0.04276294261217117, 0.006168102379888296, -0.02673165127635002, 0.012326582334935665, 0.02097732201218605, -0.03658521920442581, 0.12155299633741379, 0.013298467732965946, 0.03229352831840515, 0.047535765916109085, -0.005735084414482117, 0.023344486951828003, -0.03250522539019585, -0.06427913159132004, 0.05496443063020706, -0.04056898504495621, -0.010190359316766262, -0.0032524471171200275, -0.004765605088323355, -0.018129024654626846, -0.012740354984998703, -0.025230521336197853, 0.07690401375293732, 0.08421721309423447, 0.081060990691185, 0.01479959674179554, 0.011345074512064457, 0.005956404842436314, 0.01465525757521391, 0.007438289001584053, 0.00042189194937236607, -0.028906363993883133, 0.038432762026786804, -0.038952384144067764, -0.004486548714339733, -0.03225503861904144, 0.024479957297444344, 0.0438406765460968, -0.02846372313797474, 0.059467822313308716, -0.015598274767398834, 0.027443725615739822, 0.019408833235502243, 0.05923687666654587, 0.019861096516251564, -0.013606390915811062, -0.008973097428679466, -0.011835828423500061, 0.020419210195541382, -0.022324489429593086, 0.018889212980866432, 0.04464897885918617, -0.052385568618774414, -0.02432599477469921, 0.03171617165207863, -0.03096560575067997, 0.002583674620836973, -0.03775918111205101, 0.05357877537608147, 0.03691238909959793, 0.0022613168694078922, -0.019764870405197144, 0.06104592978954315, 0.006134423427283764, 0.023209771141409874, -0.011104509234428406, 0.004553907085210085, -0.002174713183194399, 0.019803361967206, -0.016627894714474678, -0.000869644689373672, -0.0016382518224418163, 0.011883941479027271, -0.014193371869623661, -0.043571244925260544, 0.0026197596453130245, -0.04464897885918617, -0.05292443558573723, 0.021092792972922325, -0.02267090417444706, -0.00560999009758234, -0.06058404594659805, 0.0027977782301604748, 0.010536774061620235, 0.001558865187689662, -0.034525979310274124, 0.013991296291351318, 0.03752823546528816, 0.046458031982183456, 0.03448748588562012, -0.031408246606588364, 0.0518467016518116, 0.01362563669681549, 0.014770728535950184, 0.03167768195271492, 0.013029034249484539, -0.0405304953455925, -0.014202994294464588, -0.003485795808956027, -0.013962428085505962, -0.0031369756907224655, 0.03200484812259674, -0.04295539855957031, 0.030099570751190186, -0.001353181549347937, -0.018744872882962227, 0.015684878453612328, -0.03262069821357727, 0.040222570300102234, -0.026135047897696495, 0.0092521533370018, -0.03685465082526207, -0.015020917169749737, 0.0424165315926075, -0.018061665818095207, 0.00985356792807579, 0.05711989849805832, -0.030561456456780434, 0.01352941058576107, 0.0631629079580307, 0.008612249046564102, 0.0054800845682621, 0.026038821786642075, -0.026750896126031876, 0.015569406561553478, 0.014510918408632278, -0.035372767597436905, -0.012538280338048935, -0.002607731381431222, 0.050922930240631104, 0.03983766585588455, -0.010940924286842346, 0.03269767761230469, 0.046919919550418854, 0.028579195961356163, -0.03106183186173439, 0.06385573744773865, 0.03256296366453171, -0.011046772822737694, -0.00465975608676672, -0.010536774061620235, -0.061276875436306, -0.10015227645635605, -0.004075181670486927, -0.02578863501548767, -0.018850721418857574, 0.022747885435819626, -0.041877660900354385, -0.022824866697192192, 0.005042255390435457, 0.004808906931430101, -0.021362226456403732, 0.02374863810837269, 0.02257467806339264, 0.006904233247041702, 0.018812231719493866, 0.02319052629172802, 0.020496191456913948, -0.022651659324765205, -0.003974143881350756, -0.02403731644153595, -0.0008485952275805175, 0.04511086642742157, 0.037970878183841705, -0.023402223363518715, 0.0428784154355526, -0.0174361951649189, -0.010584887117147446, -0.003952492959797382, -0.007255459204316139, 0.02039996348321438, -0.026519954204559326, 0.010835075750946999, -0.000004877092123933835, 0.0268663689494133, -0.017667138949036598, -0.047574255615472794, -0.0028434856794774532, 0.007332440000027418, -0.021939584985375404, 0.04976821318268776, 0.0009616610477678478, 0.009103002957999706, 0.013202240690588951, -0.01128733903169632, 0.03941427171230316, 0.01892770268023014, -0.021458452567458153, 0.04622709006071091, 0.034622203558683395, -0.023171279579401016, 0.008424608036875725, 0.02894485555589199, -0.01102752797305584, -0.02347920462489128, -0.05431009456515312, -0.07571081072092056, 0.03412182629108429, 0.017118649557232857, -0.021342981606721878, 0.0035242862068116665, 0.00017741713963914663, 0.048344068229198456, 0.006764705292880535, 0.052539531141519547, -0.009242530912160873, 0.0909915417432785, 0.030907871201634407, 0.027501462027430534, -0.038009367883205414, -0.02931051515042782, -0.000787852390203625, 0.05642707273364067, -0.08460211753845215, 0.04907538741827011, 0.05746631324291229, 0.007948287762701511, 0.027347499504685402, -0.09645719081163406, -0.001804242143407464 ]
20,467
metevolsim.metevolsim
create_mutant_cps_file
Create a CPS file from the mutant SBML file. Parameters ---------- None Returns ------- None
def create_mutant_cps_file( self ): """ Create a CPS file from the mutant SBML file. Parameters ---------- None Returns ------- None """ cmd_line = self.copasi_path+" -i ./output/mutant.xml" process = subprocess.call([cmd_line], stdout=subprocess.PIPE, shell=True)
(self)
[ 0.009149146266281605, 0.029856035485863686, 0.0928148627281189, 0.0035754013806581497, -0.0032732237596064806, -0.018933527171611786, -0.017107225954532623, 0.01260764617472887, -0.0019443037454038858, 0.022868452593684196, 0.012845859862864017, 0.038149379193782806, -0.023856597021222115, 0.07319317013025284, 0.00801983941346407, 0.02754448726773262, 0.027332741767168045, -0.07968667894601822, -0.03177938610315323, 0.06327644735574722, 0.0008916446822695434, -0.0024328611325472593, -0.02482709474861622, 0.05332443490624428, 0.021139202639460564, 0.04181962460279465, 0.008033073507249355, 0.005822985898703337, 0.013957520015537739, -0.0514187291264534, 0.006572915706783533, -0.006096489727497101, 0.009246195666491985, -0.03282046690583229, 0.023980114609003067, 0.025268228724598885, 0.01603085547685623, 0.020839231088757515, -0.09196788817644119, -0.0028850247617810965, 0.053959667682647705, -0.008425683714449406, -0.0009137014858424664, 0.05191279947757721, -0.024456540122628212, -0.009263841435313225, -0.011301886290311813, 0.037761181592941284, -0.04210195317864418, 0.016930771991610527, 0.023291943594813347, 0.03492026776075363, -0.042419567704200745, 0.009475586004555225, -0.050748202949762344, 0.013075250200927258, 0.02597404643893242, 0.08850938081741333, 0.029785454273223877, 0.014654514379799366, 0.011813603341579437, 0.037196528166532516, 0.0795455127954483, -0.03350863605737686, 0.05148931220173836, 0.023503687232732773, -0.021033329889178276, -0.010993091389536858, -0.017168985679745674, 0.0422431156039238, 0.01272234134376049, -0.017715992406010628, -0.02609756402671337, 0.016022033989429474, 0.07516945153474808, -0.02055690437555313, -0.027173934504389763, -0.014495705254375935, 0.011901830323040485, 0.037655308842659, -0.06211184710264206, -0.014989777468144894, 0.01852768287062645, 0.0003978488966822624, -0.012272384017705917, 0.045595742762088776, 0.09479115158319473, -0.04132555425167084, -0.03811408951878548, 0.042878348380327225, 0.0014590549981221557, 0.01895117200911045, 0.013516385108232498, 0.02253318950533867, 0.04905424267053604, 0.03312043845653534, -0.027332741767168045, -0.00023283671180251986, -0.04111380875110626, 0.006572915706783533, -0.08829763531684875, 0.024615349248051643, -0.019568761810660362, -0.07051106542348862, 0.03190290555357933, -0.0011800369247794151, 0.014928017742931843, 0.03354392573237419, 0.017715992406010628, -0.05420670285820961, -0.045631032437086105, 0.0009445809409953654, -0.011328354477882385, -0.013692839071154594, -0.022515544667840004, -0.021439174190163612, -0.012201801873743534, -0.03758472576737404, -0.030085425823926926, 0.025956399738788605, 0.015722062438726425, -0.01639258675277233, -0.02964429184794426, 0.04414881765842438, -0.036878909915685654, 0.036278966814279556, 0.012254738248884678, 0.01787480153143406, 0.07153449952602386, -0.006295000668615103, -0.04711324721574783, -0.049371860921382904, 0.051595184952020645, -0.027562132105231285, -0.012325319461524487, -0.05544188246130943, -0.01806890219449997, -0.03906694054603577, -0.0012506184866651893, 0.05868863686919212, 0.018351227045059204, -0.04771319404244423, 0.021209783852100372, -0.012007702142000198, -0.026979833841323853, 0.0030835357028990984, -0.031567640602588654, -0.013357576914131641, -0.060488469898700714, 0.019692279398441315, -0.0010090969735756516, -0.017133694142103195, -0.04630155861377716, -0.06864064931869507, 0.042419567704200745, 0.006449398119002581, 0.026979833841323853, 0.01033138856291771, 0.02705041505396366, -0.06334702670574188, -0.037372980266809464, 0.014963309280574322, -0.023503687232732773, 0.07848679274320602, 0.005792106501758099, -0.018421810120344162, 0.02623872645199299, 0.017795396968722343, -0.013269349001348019, -0.02089216746389866, 0.021439174190163612, 0.006193539593368769, -0.03430268168449402, 0.0036151036620140076, 0.01287232805043459, -0.022021474316716194, 0.03984333947300911, -0.03747885301709175, 0.09069741517305374, 0.017160162329673767, -0.06941705197095871, 0.04316067695617676, 0.04531341791152954, 0.004993651527911425, 0.046478014439344406, -0.01296937745064497, 0.0026578400284051895, 0.036878909915685654, 0.03243226557970047, -0.05498310178518295, 0.06250004470348358, 0.033596862107515335, 0.011063672602176666, 0.02128036692738533, -0.0027835636865347624, 0.0031849967781454325, 0.019462889060378075, -0.015430912375450134, -0.06574680656194687, -0.021915601566433907, 0.008169825188815594, 0.009096209891140461, 0.017168985679745674, -0.0038996359799057245, 0.05103053152561188, 0.0029026702977716923, -0.009484408423304558, 0.0505717508494854, -0.08815647661685944, 0.017107225954532623, 0.059606198221445084, 0.008566847071051598, 0.06645262241363525, -0.01044608373194933, 0.017433665692806244, -0.045136962085962296, -0.006669965572655201, 0.03807879611849785, -0.06567621976137161, 0.012316497042775154, -0.0018274029716849327, -0.01921585388481617, 0.05512426421046257, 0.04354887455701828, -0.03991392254829407, 0.019304079934954643, 0.04817197471857071, 0.0025056484155356884, -0.04630155861377716, 0.006678788457065821, 0.0445370189845562, -0.04901895299553871, 0.07185211777687073, 0.0055627161636948586, -0.09006217867136002, -0.0691700130701065, -0.04083148390054703, 0.01833358220756054, -0.04951302334666252, 0.019268788397312164, -0.0508187860250473, -0.01398398820310831, 0.04817197471857071, 0.032873403280973434, 0.019762860611081123, 0.0074507747776806355, 0.03338512033224106, -0.04954831674695015, -0.03924339637160301, 0.048277847468853, 0.06084137782454491, -0.021209783852100372, -0.08914461731910706, 0.026485763490200043, 0.031126506626605988, -0.0037672952748835087, -0.07125217467546463, -0.029538419097661972, 0.039208102971315384, -0.03698478266596794, 0.0024527122732251883, -0.011998879723250866, 0.017689524218440056, -0.02023928612470627, -0.012678228318691254, -0.03243226557970047, -0.030314816161990166, 0.02692689746618271, -0.07587526738643646, -0.010728410445153713, 0.04481934383511543, 0.07153449952602386, 0.012431192211806774, -0.0019685663282871246, -0.04030212014913559, -0.059747364372015, -0.011178367771208286, 0.017407197505235672, 0.01583675667643547, -0.020186351612210274, 0.06987582892179489, 0.0508187860250473, 0.03144412487745285, 0.04301951453089714, -0.011143077164888382, -0.024844739586114883, -0.00021725913393311203, -0.03377331793308258, -0.023538978770375252, -0.02482709474861622, -0.03499085083603859, 0.02066277712583542, -0.03040304407477379, -0.06415871530771255, 0.01738073118031025, 0.010110820643603802, -0.02364485152065754, -0.05053645744919777, -0.010419615544378757, -0.06673494726419449, -0.010649005882441998, -0.053430307656526566, -0.052971526980400085, 0.005880333483219147, -0.057735785841941833, 0.022250864654779434, -0.007671342696994543, -0.030579498037695885, -0.02013341523706913, 0.027491550892591476, -0.010843105614185333, -0.004812785889953375, 0.010693118907511234, 0.01298702321946621, 0.011716553010046482, 0.060382597148418427, 0.03160293027758598, -0.00009884187602438033, 0.10481374710798264, 0.018386518582701683, -0.028638502582907677, -0.05000709742307663, 0.06920530647039413, 0.046972084790468216, -0.0009997228626161814, -0.006550859194248915, 0.019268788397312164, 0.017001353204250336, -0.015651479363441467, 0.01580146513879299, -0.07538119703531265, 0.06024143472313881, 0.0025718186516314745, -0.0018671051366254687, 0.006175893824547529, 0.02574465610086918, -0.02472122199833393, -0.07185211777687073, 0.052512746304273605, -0.09577929228544235, 0.06327644735574722, 0.030191298574209213, -0.025603491812944412, -0.005187750793993473, 0.016383765265345573, 0.038714032620191574, -0.02826794981956482, -0.023715432733297348, -0.055830080062150955, -0.04358416795730591, -0.012219447642564774, 0.06214714050292969, -0.036808326840400696, 0.0497247688472271, -0.0009572635754011571, 0.06521744281053543, -0.0017347645480185747, -0.030244234949350357, -0.0010328079806640744, -0.008302166126668453, 0.018060078844428062, 0.039596304297447205, 0.03255578503012657, -0.0514187291264534, -0.017160162329673767, -0.0720638632774353, 0.007353725377470255, 0.0012164305662736297, 0.011681262403726578, 0.02124507538974285, 0.07026402652263641, 0.00863742921501398, -0.012581177987158298, -0.05798282101750374, 0.005787694826722145, 0.04227840527892113, -0.06666436791419983, -0.016471991315484047, -0.04587807133793831, -0.024774158373475075, -0.046583887189626694, -0.015527961775660515, -0.015748530626296997, 0.022991972044110298, 0.013631080277264118, -0.02846204861998558, -0.019427597522735596, 0.007724279072135687, -0.016577864065766335, 0.011310708709061146, 0.07502829283475876, -0.005099523812532425, 0.01800714246928692, -0.06486453115940094, 0.020803939551115036, -0.013304640538990498, 0.06359406560659409, 0.0053906734101474285, 0.012828214094042778, 0.01751307025551796, 0.017301326617598534, -0.038219962269067764, -0.056288860738277435, 0.0003647637495305389, -0.03590841218829155, -0.057700496166944504, -0.01042843796312809, -0.022092055529356003, -0.004843665286898613, -0.013339931145310402, 0.040055084973573685, 0.009546167217195034, 0.010604891926050186, -0.01701899990439415, -0.03453207015991211, -0.018386518582701683, -0.07425189018249512, -0.07524003088474274, -0.017354262992739677, -0.008566847071051598, 0.0032511670142412186, 0.023009616881608963, 0.05223041772842407, -0.0018615908920764923, 0.026044627651572227, 0.008906521834433079, -0.0038489054422825575, -0.01738073118031025, -0.000032774973078630865, 0.02639753557741642, -0.007296377792954445, 0.04778377339243889, -0.05681822448968887, 0.04728970304131508, 0.013269349001348019, -0.03299691900610924, -0.0192511435598135, -0.0021273749880492687, -0.022092055529356003, 0.07559294253587723, 0.01993931457400322, 0.007618406321853399, 0.007922790013253689, 0.011548921465873718, -0.007666931487619877, 0.02147446572780609, -0.08081598579883575, -0.04954831674695015, 0.04030212014913559, 0.036773037165403366, 0.03973746672272682, 0.02551526576280594, 0.07396956533193588, -0.02207440882921219, 0.02574465610086918, -0.0032246990595012903, 0.0010592760518193245, -0.07735748589038849, 0.0013961931690573692, 0.007014051079750061, -0.020186351612210274, -0.02482709474861622, 0.04069031774997711, 0.016410233452916145, 0.015457380563020706, -0.07404014468193054, 0.009652039967477322, 0.04125497117638588, -0.018439454957842827, -0.0018759277882054448, -0.037372980266809464, -0.057629913091659546, 0.016083791851997375, -0.0006644600071012974, 0.02364485152065754, -0.006828774232417345, -0.0994495376944542, -0.03502614051103592, 0.009704976342618465, 0.013436980545520782, -0.046972084790468216, -0.000564377463888377, -0.03190290555357933, 0.09464998543262482, -0.046583887189626694, -0.00037275932845659554, 0.004614274948835373, -0.06151190400123596, -0.0226919986307621, -0.05512426421046257, 0.02544468268752098, 0.025762300938367844, 0.011610681191086769, -0.055830080062150955, -0.008165414445102215, 0.02502119354903698, -0.0015561047475785017, 0.029485482722520828, 0.010349033400416374, -0.012519419193267822, -0.015616188757121563, 0.05780636891722679, -0.004693679511547089, -0.04859546199440956, 0.030614789575338364, 0.055830080062150955, -0.02020399644970894, -0.08462738990783691, -0.020998040214180946, -0.0038202316500246525, -0.0025938753969967365, -0.06013556197285652, -0.024738866835832596, 0.03040304407477379, -0.017566006630659103, 0.0016156579367816448, 0.03970217704772949, 0.04227840527892113, 0.008483031764626503, -0.027562132105231285, 0.047501448541879654, -0.03762001544237137, -0.04527812451124191, 0.005130403209477663, -0.0038841962814331055, -0.0192511435598135, -0.017354262992739677, -0.0049627721309661865, -0.019762860611081123, 0.0005773358279839158, 0.006519979331642389, -0.058970965445041656, 0.007547824643552303, -0.028797311708331108, 0.04665446653962135, -0.027438614517450333, 0.008535968139767647, 0.021227430552244186, 0.031955841928720474, -0.04580748826265335, -0.01363990269601345, -0.0038400825578719378, 0.012237092480063438, 0.025303520262241364, -0.01539562176913023, 0.017689524218440056, -0.004250338301062584, -0.02990897186100483, 0.01241354737430811, 0.04210195317864418, -0.015042712911963463, -0.01822770945727825, -0.10460200160741806, 0.06200597435235977, 0.029309028759598732, 0.027438614517450333, 0.018545327708125114, 0.020151060074567795, -0.013269349001348019, 0.041890207678079605, -0.010357856750488281, -0.03970217704772949, 0.02285080775618553, -0.02364485152065754, -0.015589720569550991, 0.019656987860798836, -0.018633553758263588, -0.01341051235795021, -0.03243226557970047, -0.03793763369321823, 0.06677024066448212, 0.07333432883024216, 0.010578423738479614, 0.009149146266281605, -0.012537064962089062, -0.03941984847187996, 0.06271179020404816, 0.0657820925116539, 0.013419335708022118, 0.04245486110448837, -0.011972411535680294, 0.029467837885022163, -0.004367239307612181, 0.019956961274147034, 0.03204406797885895, 0.020680421963334084, -0.03649071231484413, -0.03889048844575882, -0.009749089367687702, 0.038219962269067764, -0.004510608501732349, -0.012201801873743534, 0.020186351612210274, -0.02403305098414421, -0.06338232010602951, 0.00008278179302578792, 0.06511157006025314, -0.026538698002696037, -0.028850248083472252, 0.03239697590470314, -0.05519484728574753, 0.018968816846609116, 0.005227453075349331, 0.06387639045715332, -0.019498178735375404, -0.02521529234945774, -0.0028916418086737394, -0.009449117816984653, -0.034779105335474014, 0.06535860151052475, 0.033067502081394196, 0.0006898252759128809, -0.004453260917216539, 0.03276753053069115, -0.04206665977835655, -0.0037165647372603416, -0.026150500401854515, 0.0022266304586082697, -0.00941382721066475, 0.010349033400416374, -0.03338512033224106, -0.0053200917318463326, -0.044642891734838486, 0.01398398820310831, -0.05011297017335892, 0.014716273173689842, -0.012634114362299442, -0.021421529352664948, 0.016577864065766335, 0.007397838868200779, 0.01686019077897072, -0.026944544166326523, 0.05554775521159172, -0.0075654699467122555, 0.06380581110715866, -0.01879236288368702, -0.0033592451363801956, 0.028585566207766533, 0.019762860611081123, 0.04273718595504761, -0.017486602067947388, -0.00859331525862217, 0.03624367341399193, -0.09182672202587128, -0.04256073385477066, -0.03177938610315323, -0.010737232863903046, -0.02246260829269886, -0.005681822542101145, -0.0025409392546862364, 0.012440014630556107, 0.021421529352664948, 0.006996405776590109, -0.01275763288140297, 0.01663080044090748, -0.06655849516391754, 0.013957520015537739, 0.011178367771208286, -0.015307394787669182, -0.030420688912272453, -0.03040304407477379, 0.020256932824850082, 0.0528656542301178, 0.0252858754247427, 0.0430900938808918, 0.0033879189286381006, 0.029979554936289787, -0.006744958460330963, -0.07319317013025284, 0.02876202017068863, 0.024774158373475075, 0.03980804979801178, -0.024932965636253357, -0.01721309870481491, -0.02715628780424595, -0.04136084392666817, 0.008469797670841217, -0.04298422113060951, 0.016683736816048622, 0.05335972458124161, 0.012828214094042778, 0.029256092384457588, 0.04266660660505295, -0.04774848371744156, -0.016251424327492714, -0.013163477182388306, 0.039631593972444534, -0.004671622533351183, -0.028850248083472252, -0.04594865068793297, -0.03889048844575882, 0.08632135391235352, -0.02315077930688858, -0.015554429963231087, 0.03410857915878296, 0.015783820301294327, -0.008880053646862507, 0.03984333947300911, -0.001972977537661791, 0.010287274606525898, 0.011566567234694958, -0.020980393514037132, -0.010128466412425041, 0.02563878335058689, -0.062253013253211975, -0.014186910353600979, 0.018510036170482635, 0.017963029444217682, 0.01077252347022295, 0.018933527171611786, 0.0568535141646862, 0.041925497353076935, 0.010137288831174374, 0.021756792441010475, 0.007481654640287161, -0.04061973839998245, -0.09966128319501877, 0.06998170167207718, 0.0005960840499028563, -0.03250284865498543, 0.0006109723472036421, 0.021986182779073715, 0.025127066299319267, -0.004173140041530132, -0.0001949266588781029, -0.05110111087560654, 0.020839231088757515, -0.039666883647441864, 0.05882980301976204, -0.02502119354903698, -0.027368033304810524, 0.009837317280471325, -0.048277847468853, 0.017618943005800247, 0.03442619740962982, -0.01206946186721325, -0.05551246553659439, 0.014292783103883266, -0.01321641355752945, -0.01577499695122242, 0.0036923023872077465, 0.02574465610086918, 0.004084912594407797, -0.01619848795235157, -0.031197087839245796, 0.04633685201406479, 0.02659163437783718, -0.0023556624073535204, -0.005615652073174715, -0.0029754575807601213, 0.019621698185801506, -0.00003167213435517624, -0.02082158625125885, 0.0692758858203888, 0.05868863686919212, -0.06948763132095337, 0.10184931755065918, -0.020609840750694275, -0.01685136742889881, -0.046478014439344406, 0.024915320798754692, -0.05293623358011246, 0.028109140694141388, 0.0019696690142154694, 0.012016525492072105, 0.029573708772659302, -0.014786854386329651, 0.013966343365609646 ]
20,468
metevolsim.metevolsim
create_wild_type_cps_file
Create a CPS file from the wild-type SBML file. Parameters ---------- None Returns ------- None
def create_wild_type_cps_file( self ): """ Create a CPS file from the wild-type SBML file. Parameters ---------- None Returns ------- None """ cmd_line = self.copasi_path+" -i ./output/wild_type.xml" process = subprocess.call([cmd_line], stdout=subprocess.PIPE, shell=True)
(self)
[ -0.0012236734619364142, -0.011011953465640545, 0.08646554499864578, -0.028367076069116592, -0.010196909308433533, -0.014130382798612118, 0.010117176920175552, -0.006617803126573563, 0.003069703932851553, -0.0027485587634146214, 0.0062102810479700565, 0.05467882379889488, -0.008845885284245014, 0.038767747581005096, 0.024681659415364265, 0.027941836044192314, 0.010533558204770088, -0.016097119078040123, -0.022484583780169487, 0.03354083374142647, -0.008593399077653885, 0.019206689670681953, -0.035613879561424255, 0.021492356434464455, 0.050284672528505325, 0.03816532343626022, 0.00904521718621254, 0.01378487516194582, -0.06991660594940186, -0.06573507189750671, -0.0009196930332109332, -0.02127973735332489, 0.009523612447082996, -0.05202107131481171, 0.01569845713675022, 0.031326040625572205, 0.013182451017200947, 0.027516596019268036, -0.08207139372825623, -0.008203595876693726, 0.03621630370616913, -0.019206689670681953, -0.04408325254917145, 0.020464692264795303, -0.023547684773802757, -0.008261180482804775, 0.001800627214834094, 0.014892271719872952, -0.057372014969587326, 0.04950506612658501, -0.009514753706753254, 0.01879916712641716, -0.05985258147120476, 0.001200418104417622, -0.05358028784394264, -0.01655779778957367, 0.013271043077111244, 0.08526069670915604, 0.04124831408262253, 0.01339507196098566, -0.003324405290186405, 0.04092938452959061, 0.05085166171193123, -0.0349937379360199, 0.07739374786615372, 0.04514635354280472, -0.017124783247709274, -0.053828343749046326, -0.026914171874523163, 0.03354083374142647, 0.0244690403342247, -0.05163126811385155, -0.006524781696498394, 0.0397954098880291, 0.07498405128717422, -0.044933732599020004, -0.030475560575723648, -0.027197664603590965, 0.012969831004738808, 0.02627631090581417, -0.057761818170547485, 0.0297313891351223, -0.0035835360176861286, -0.0029434605967253447, 0.0006699750665575266, 0.05074534937739372, 0.0958208292722702, -0.005342082120478153, -0.010533558204770088, 0.05414727330207825, -0.01879916712641716, -0.027038199827075005, 0.015671879053115845, 0.030262939631938934, 0.03017434850335121, 0.05212738364934921, 0.004276766441762447, -0.022590894252061844, -0.031131139025092125, 0.0067374021746218204, -0.07902383804321289, 0.007313248235732317, -0.004788383841514587, -0.0539700910449028, 0.026683833450078964, 0.011534645222127438, 0.02615228295326233, 0.06328994035720825, -0.0330447219312191, -0.04610314220190048, -0.03444446995854378, -0.03244229778647423, 0.0035835360176861286, -0.04606770724058151, 0.012757210992276669, -0.026807861402630806, 0.015069455839693546, 0.029288429766893387, -0.033328212797641754, 0.0017806940013542771, -0.0043653580360114574, -0.04039783403277397, -0.03354083374142647, 0.02556757628917694, -0.018692858517169952, 0.06793215125799179, 0.021616386249661446, 0.008837026543915272, 0.021403765305876732, 0.024752533063292503, -0.038767747581005096, -0.033576272428035736, 0.006790556944906712, -0.03660610690712929, -0.0038847478572279215, -0.060667626559734344, -0.03005031868815422, -0.04762692004442215, -0.019490184262394905, 0.023104727268218994, 0.01679699495434761, -0.032902974635362625, 0.025478985160589218, -0.026967326179146767, -0.04266578331589699, 0.011897871270775795, -0.016938742250204086, -0.03180443495512009, -0.035418979823589325, 0.05010749027132988, -0.02308700792491436, -0.007521438878029585, -0.07831510156393051, -0.04195705056190491, 0.03504689410328865, -0.006524781696498394, 0.034869711846113205, 0.0077872141264379025, -0.007339825853705406, -0.04698906093835831, -0.01892319694161415, 0.025939662009477615, -0.03855512663722038, 0.01966736651957035, -0.03389520198106766, -0.01867513917386532, -0.03646436333656311, 0.0034993737936019897, 0.04397694021463394, -0.01384688913822174, 0.026488931849598885, -0.00572302658110857, -0.041638121008872986, 0.03180443495512009, 0.02143920212984085, 0.021616386249661446, 0.020358381792902946, -0.016495782881975174, 0.08391410112380981, 0.013111578300595284, -0.03028065711259842, 0.024593068286776543, 0.025266366079449654, 0.028508823364973068, 0.01954333856701851, -0.01117141917347908, 0.00456247478723526, 0.02391977049410343, 0.03531266748905182, -0.0038249485660344362, 0.059958893805742264, 0.05230456590652466, 0.006285584066063166, 0.00900535099208355, -0.002325533190742135, -0.04982399567961693, 0.01762089692056179, 0.028065863996744156, -0.06924330443143845, 0.02060643956065178, 0.0006251254817470908, 0.055989980697631836, 0.02450447715818882, -0.013262184336781502, 0.05202107131481171, 0.0020885502453893423, 0.002569160657003522, 0.024522194638848305, -0.1103498786687851, -0.005151609890162945, 0.0594627782702446, -0.008340912871062756, 0.05060360208153725, -0.0252132099121809, 0.020429255440831184, -0.03823619708418846, -0.06750690937042236, 0.03961822763085365, -0.05081622302532196, -0.014351862482726574, -0.02450447715818882, 0.008611117489635944, 0.00018659635679796338, 0.04433130845427513, -0.021137990057468414, 0.041354626417160034, 0.06913699954748154, 0.02895178087055683, -0.006325450260192156, -0.007375262677669525, -0.01152578555047512, -0.03444446995854378, 0.049930308014154434, 0.0039002515841275454, -0.027162227779626846, -0.05152495950460434, -0.03735027834773064, 0.03458621725440025, -0.038838621228933334, -0.0229275431483984, -0.017169080674648285, -0.015423822216689587, -0.013182451017200947, -0.006241288501769304, -0.021031679585576057, -0.0408230759203434, -0.001572503475472331, -0.019383873790502548, -0.036641545593738556, 0.055635616183280945, 0.07034184783697128, -0.04255947470664978, -0.03639348968863487, -0.007937820628285408, 0.017018474638462067, -0.012836943380534649, -0.12572939693927765, -0.07987431436777115, 0.05333222821354866, -0.03554300591349602, -0.0077872141264379025, 0.040220651775598526, 0.02776465192437172, 0.0021959678269922733, -0.019383873790502548, -0.01648692414164543, -0.045642465353012085, 0.004540327005088329, -0.029412459582090378, -0.02391977049410343, 0.008323194459080696, 0.07788985967636108, -0.017434855923056602, 0.005798329599201679, -0.05021379888057709, -0.0544307678937912, 0.007446135859936476, 0.003098496235907078, 0.026488931849598885, -0.01813472993671894, 0.07144038379192352, 0.03295612707734108, 0.03766920790076256, 0.034320440143346786, 0.02340593934059143, -0.02104939892888069, -0.007268952671438456, -0.009023069404065609, -0.04401237890124321, -0.015875641256570816, -0.020783623680472374, 0.06470740586519241, 0.010471544228494167, -0.03143234923481941, 0.02634718455374241, 0.04826478287577629, -0.01679699495434761, -0.07895296066999435, -0.011127122677862644, -0.0650617778301239, -0.033221904188394547, -0.017372841015458107, 0.024752533063292503, 0.002458420814946294, -0.0720428079366684, 0.05177301540970802, -0.04830021783709526, -0.03517092391848564, -0.03756289929151535, 0.04043327271938324, -0.026524368673563004, 0.004916841629892588, 0.01734626293182373, 0.031609535217285156, 0.031609535217285156, 0.029713671654462814, 0.026683833450078964, -0.012580027803778648, 0.07335396111011505, 0.014369580894708633, -0.016185712069272995, -0.05195019766688347, 0.04550071805715561, 0.029625078663229942, 0.001785123604349792, -0.019685085862874985, -0.011818138882517815, -0.002562516136094928, -0.0017740497132763267, -0.02898721769452095, -0.020783623680472374, 0.05896666273474693, 0.0007109487196430564, 0.020695030689239502, 0.020074889063835144, 0.008659843355417252, -0.013421649113297462, -0.056308913975954056, 0.007091769017279148, -0.08327624201774597, 0.06180160120129585, 0.06375061720609665, -0.028012709692120552, -0.019879987463355064, 0.03462165221571922, 0.0252132099121809, -0.048831768333911896, -0.049859434366226196, -0.04443761706352234, -0.04043327271938324, 0.01718679815530777, -0.011632096022367477, -0.029004937037825584, 0.05676959082484245, 0.05159583315253258, 0.05212738364934921, 0.016974177211523056, -0.01848023757338524, -0.03749202564358711, -0.034125540405511856, 0.10716057568788528, 0.06779040396213531, 0.01012603659182787, -0.028739161789417267, 0.0018681783694773912, -0.04050414636731148, 0.03134375810623169, 0.006378605496138334, -0.003014334011822939, 0.022874388843774796, 0.0340723842382431, -0.00457133399322629, -0.03421413153409958, -0.07314134389162064, 0.011605518870055676, 0.03568475320935249, -0.021970752626657486, -0.04426043480634689, -0.04581965133547783, 0.016921022906899452, -0.06091568246483803, 0.019330717623233795, -0.02214793674647808, -0.0023964066058397293, 0.004024279769510031, -0.041000258177518845, -0.03260176256299019, 0.01746143214404583, -0.010064021684229374, -0.016859007999300957, 0.0691724345088005, 0.027091355994343758, 0.0014595489483326674, -0.0008560176938772202, 0.01918897219002247, -0.00796439778059721, 0.05092253535985947, 0.019171252846717834, 0.018320772796869278, 0.035737909376621246, 0.011818138882517815, -0.07526754587888718, -0.033966075628995895, 0.03759833425283432, -0.030776770785450935, -0.07413356751203537, -0.03566703572869301, -0.006777268368750811, -0.020943088456988335, -0.00117716274689883, 0.07246804982423782, -0.03901580348610878, -0.008150440640747547, -0.0024761392269283533, -0.031077982857823372, -0.01605282351374626, -0.03862600028514862, -0.020393818616867065, -0.05981714650988579, -0.02331734634935856, -0.00021441970602609217, -0.004101797938346863, 0.07172387838363647, 0.048512838780879974, 0.040610454976558685, 0.04043327271938324, 0.038484252989292145, 0.016114838421344757, 0.012172505259513855, 0.0315563790500164, -0.04078763723373413, 0.05772637948393822, -0.07264523208141327, 0.026063691824674606, 0.0073531148955225945, -0.056025419384241104, -0.010994235053658485, -0.02253773994743824, -0.009886838495731354, 0.09362375736236572, -0.0028592986054718494, 0.018515674397349358, 0.0039091105572879314, 0.0038249485660344362, -0.020677313208580017, 0.01475052535533905, -0.036747854202985764, -0.022838952019810677, 0.0246993787586689, 0.013209029100835323, 0.003193732351064682, -0.00005986863834550604, 0.09667131304740906, -0.028189891949295998, 0.05967539921402931, -0.0279595535248518, -0.010755037888884544, -0.04039783403277397, 0.007047472987323999, -0.030333813279867172, -0.019100379198789597, -0.0074771433137357235, 0.04369344934821129, -0.03603912144899368, 0.029430177062749863, -0.05641522258520126, -0.009523612447082996, 0.04900895431637764, 0.013545677997171879, -0.019685085862874985, -0.048123035579919815, -0.005758463405072689, 0.04606770724058151, -0.02328190952539444, 0.06878262758255005, 0.00223251199349761, -0.09745091944932938, -0.0064406199380755424, 0.010418388992547989, 0.0015736108180135489, -0.006976599805057049, -0.030971674248576164, -0.062120530754327774, 0.0700937882065773, -0.04209879785776138, 0.004199248738586903, 0.015592146664857864, -0.05825792998075485, -0.024593068286776543, -0.07023553550243378, 0.02946561388671398, 0.05000118166208267, -0.0056654419749975204, -0.05684046447277069, 0.017957545816898346, 0.014803680591285229, 0.00989569816738367, 0.05772637948393822, 0.029589641839265823, -0.010320938192307949, -0.01950790174305439, 0.008456082083284855, -0.053899217396974564, -0.04617401584982872, 0.010639868676662445, 0.035418979823589325, -0.002821647096425295, -0.04394150525331497, -0.010808193124830723, -0.014715088531374931, -0.021882161498069763, -0.07062533497810364, -0.01264204178005457, 0.015742752701044083, -0.024717096239328384, -0.0027264109812676907, 0.05439532920718193, 0.030333813279867172, -0.025461267679929733, 0.02611684612929821, 0.026967326179146767, -0.06903068721294403, -0.022679487243294716, 0.02147463895380497, 0.0177803635597229, -0.016300881281495094, -0.03020978532731533, 0.009612204506993294, -0.00281721749342978, 0.00341742648743093, 0.044898293912410736, -0.036747854202985764, 0.02418554574251175, -0.04447305575013161, 0.0418507382273674, -0.01973824016749859, 0.005621145945042372, 0.04691818729043007, 0.045252662152051926, -0.04443761706352234, 0.0033354791812598705, -0.023157881572842598, 0.020677313208580017, 0.026294030249118805, 0.006400753278285265, 0.027640623971819878, 0.0016754913376644254, -0.055635616183280945, 0.03508232906460762, 0.03189302608370781, -0.003769578645005822, -0.04213423281908035, -0.08278012275695801, 0.048441965132951736, 0.0489380806684494, 0.052375439554452896, 0.06279382854700089, 0.017833517864346504, -0.011233433149755001, 0.027587469667196274, -0.020695030689239502, -0.026967326179146767, 0.06573507189750671, -0.02237827517092228, -0.05613172799348831, 0.015911076217889786, -0.028260765597224236, 0.008332053199410439, -0.03766920790076256, -0.02918212115764618, 0.08745776861906052, 0.05219825357198715, 0.051028843969106674, -0.0014761599013581872, -0.021899878978729248, -0.03237142413854599, 0.05698220804333687, 0.08497720211744308, -0.009479316882789135, -0.002617886057123542, -0.009160386398434639, -0.0012867951299995184, -0.01156122237443924, 0.008549103513360023, 0.011277728714048862, 0.022094780579209328, -0.042772095650434494, -0.039937157183885574, 0.0004329921503085643, 0.02331734634935856, 0.026418058201670647, 0.02166954055428505, 0.03791726753115654, -0.01911809854209423, -0.06194334849715233, 0.00228123739361763, 0.0483710914850235, -0.030457841232419014, -0.04188617691397667, 0.023157881572842598, -0.04011434316635132, 0.01655779778957367, 0.007251234259456396, 0.06389236450195312, 0.015547851100564003, -0.006170414853841066, 0.007308818865567446, 0.016150275245308876, -0.04372888430953026, 0.023671714588999748, 0.045996833592653275, 0.030705899000167847, 0.015742752701044083, 0.03961822763085365, -0.05202107131481171, 0.02769377827644348, -0.000474242668133229, -0.021811287850141525, 0.00029124534921720624, -0.020110325887799263, -0.024291856214404106, 0.00008312397403642535, -0.018072715029120445, 0.00807956699281931, -0.04450849071145058, 0.01805499754846096, -0.04298471286892891, -0.0025447977241128683, 0.008154870010912418, 0.01357225514948368, 0.04117744415998459, 0.0003765149158425629, 0.00910723116248846, -0.00933756958693266, 0.012748352251946926, 0.014856835827231407, -0.017594320699572563, 0.020978525280952454, -0.0009667574195191264, 0.06623119115829468, 0.012172505259513855, -0.02143920212984085, 0.061376359313726425, -0.08079566806554794, -0.017567742615938187, -0.041708994656801224, -0.018621984869241714, -0.039937157183885574, -0.03118429332971573, -0.013917762786149979, 0.013643128797411919, 0.007198079023510218, -0.0005199228180572391, 0.010719601064920425, 0.0695267990231514, -0.020110325887799263, -0.00461120018735528, 0.012757210992276669, 0.010002007707953453, -0.031680408865213394, -0.003324405290186405, 0.0033642714843153954, 0.021616386249661446, 0.003654409432783723, -0.007676474750041962, -0.03394835442304611, 0.03449762612581253, -0.046670131385326385, -0.08391410112380981, 0.020836777985095978, 0.004775094799697399, 0.030138911679387093, -0.034869711846113205, -0.018515674397349358, -0.04720168188214302, -0.06084480881690979, -0.019649649038910866, 0.019330717623233795, 0.03538354113698006, 0.032158803194761276, -0.005550272762775421, 0.020819060504436493, 0.06020694971084595, -0.0660894438624382, -0.009753950871527195, -0.019366154447197914, 0.02057100273668766, -0.007796073332428932, -0.028367076069116592, -0.032548606395721436, -0.08001606166362762, 0.10035672783851624, 0.008597828447818756, -0.0027729214634746313, 0.021456919610500336, -0.003991058096289635, 0.014644214883446693, 0.008934477344155312, 0.010861347429454327, 0.019933141767978668, 0.01762089692056179, -0.014351862482726574, -0.013891185633838177, 0.006360887084156275, -0.025354957208037376, -0.008868033066391945, 0.018657421693205833, 0.01565416157245636, 0.02517777308821678, 0.05662784352898598, 0.018781449645757675, 0.03603912144899368, -0.012863521464169025, 0.003946762066334486, -0.040326960384845734, -0.045642465353012085, -0.0937655046582222, 0.08894611150026321, 0.019135816022753716, -0.03975997492671013, 0.026400338858366013, 0.028384795412421227, 0.05758463218808174, 0.03462165221571922, -0.002985541708767414, 0.0017917680088430643, 0.012402843683958054, -0.031609535217285156, 0.08157527446746826, -0.0340723842382431, 0.003599039511755109, 0.006303302478045225, -0.05684046447277069, 0.02351224794983864, 0.037704646587371826, -0.003029837738722563, -0.02992629073560238, 0.013324198313057423, 0.01707162894308567, -0.04645751044154167, -0.023069290444254875, 0.056060854345560074, -0.00228123739361763, 0.0010071774013340473, -0.047414302825927734, 0.045996833592653275, 0.05070991441607475, -0.013085000216960907, 0.0027839955873787403, 0.02808358334004879, 0.0012225661193951964, -0.009629922918975353, 0.00553698418661952, 0.04897351562976837, 0.04783954098820686, -0.027658341452479362, 0.07526754587888718, -0.008783871307969093, -0.022289682179689407, -0.03352311626076698, 0.03816532343626022, -0.048867207020521164, 0.007858087308704853, 0.01620342954993248, 0.015476977452635765, 0.010489262640476227, -0.015990810468792915, -0.015742752701044083 ]
20,469
metevolsim.metevolsim
deterministic_parameter_mutation
Mutate a given parameter 'param_metaid' by a given log10-scale factor. The mutation is centered on the wild-type value. x' = x*10^(factor) Parameters ---------- param_metaid: str Parameter meta identifier (as defined in the SBML model). factor: float Log10-scale factor. Returns ------- int, int
def deterministic_parameter_mutation( self, param_metaid, factor ): """ Mutate a given parameter 'param_metaid' by a given log10-scale factor. The mutation is centered on the wild-type value. x' = x*10^(factor) Parameters ---------- param_metaid: str Parameter meta identifier (as defined in the SBML model). factor: float Log10-scale factor. Returns ------- int, int """ assert param_metaid in list(self.parameters) wild_type_value = self.get_wild_type_parameter_value(param_metaid) mutant_value = wild_type_value*10.0**factor self.set_mutant_parameter_value(param_metaid, mutant_value) return wild_type_value, mutant_value
(self, param_metaid, factor)
[ 0.0332321897149086, -0.016860581934452057, 0.04752112552523613, 0.055344726890325546, 0.03223612904548645, -0.017711760476231575, -0.04002350941300392, -0.07975725829601288, -0.03669123351573944, 0.02904873713850975, -0.015004288405179977, 0.0509258396923542, 0.013736575841903687, 0.05972738936543465, -0.04259515553712845, 0.019323566928505898, 0.01438854169100523, 0.061719510704278946, 0.009960602037608624, 0.026477091014385223, 0.026495201513171196, 0.10619812458753586, -0.031928256154060364, 0.034192029386758804, 0.0005885810242034495, -0.021786551922559738, 0.03915422037243843, -0.01332004088908434, -0.04045815393328667, 0.008212968707084656, -0.0012122505577281117, -0.033322740346193314, 0.035459741950035095, 0.013836181722581387, -0.06928956508636475, -0.06642816215753555, 0.042305391281843185, 0.03948020190000534, -0.10779181867837906, -0.05328016355633736, 0.030008576810359955, 0.008403126150369644, 0.025136936455965042, -0.03261644393205643, -0.031747154891490936, -0.011554297991096973, 0.03774162754416466, 0.09692571312189102, -0.07233207672834396, -0.012405476532876492, 0.006791319232434034, -0.03277943655848503, 0.005039159208536148, 0.00752930948510766, 0.03370305523276329, 0.034590452909469604, 0.043500665575265884, -0.017376722767949104, 0.09743279963731766, 0.04513058066368103, 0.035984937101602554, 0.025951895862817764, -0.03627470135688782, -0.06635572016239166, 0.04194318875670433, -0.055525828152894974, -0.00464979000389576, 0.009933436289429665, -0.034264471381902695, 0.035260532051324844, -0.023090485483407974, -0.04799199104309082, 0.027672363445162773, 0.031348731368780136, 0.00284103536978364, 0.016434993594884872, 0.027273938059806824, 0.0009134324500337243, 0.01688774861395359, 0.0046950653195381165, 0.0028682006523013115, -0.027418820187449455, 0.054475437849760056, -0.03444557264447212, -0.04049437493085861, -0.02126135677099228, -0.011979887261986732, -0.0461447536945343, 0.018725931644439697, -0.0028002874460071325, -0.0445510558784008, -0.04799199104309082, 0.01332004088908434, 0.007443286012858152, -0.005727346055209637, 0.03308730944991112, 0.005745456088334322, 0.009851940907537937, -0.004676955286413431, 0.002601075451821089, 0.007008641492575407, 0.0644722580909729, 0.015212555415928364, 0.02504638582468033, 0.04665183648467064, -0.03268888592720032, -0.005030103959143162, -0.0031647549476474524, -0.01696018874645233, -0.019558999687433243, -0.059582509100437164, 0.0764249786734581, -0.034789666533470154, -0.027636142447590828, -0.022836944088339806, 0.02917550876736641, -0.02086293324828148, -0.011518077924847603, -0.04060303419828415, -0.0016548181883990765, -0.010033042170107365, 0.009000762365758419, -0.009797610342502594, 0.014542479068040848, -0.017729870975017548, 0.02673063427209854, 0.09286902844905853, 0.0010922705987468362, -0.07743915170431137, 0.016036568209528923, -0.039914846420288086, -0.008905683644115925, 0.011970832012593746, 0.03256211429834366, 0.007343680132180452, -0.050817180424928665, 0.003037983551621437, -0.04121877998113632, 0.037125878036022186, -0.0017295227153226733, -0.007153523154556751, 0.08098874986171722, -0.014433817937970161, -0.0076741911470890045, 0.027744803577661514, -0.018499555066227913, -0.0051614027470350266, 0.013012167997658253, -0.02732826955616474, -0.03763296455144882, -0.031058967113494873, 0.04212429001927376, 0.037379421293735504, -0.031022747978568077, 0.0020566380117088556, 0.0306424330919981, 0.06889114528894424, -0.04433373361825943, -0.04049437493085861, -0.0037329618353396654, 0.021315688267350197, -0.06787697225809097, 0.014506258070468903, 0.03806760907173157, -0.0031330620404332876, -0.011934611946344376, 0.013292876072227955, -0.0015472889645025134, -0.028342440724372864, 0.018725931644439697, 0.02033773809671402, -0.02539047971367836, 0.02392355538904667, -0.010440521873533726, 0.054004572331905365, 0.042631376534700394, -0.027237718924880028, -0.025173157453536987, 0.054511658847332, -0.0001384438801323995, 0.0058993929997086525, -0.0636754110455513, 0.02658575214445591, -0.0429573580622673, -0.006193683482706547, -0.044768378138542175, -0.023036155849695206, 0.037850286811590195, -0.019396008923649788, -0.022619621828198433, 0.02750937081873417, -0.0332321897149086, 0.009987766854465008, -0.014940902590751648, -0.03582194447517395, 0.011318866163492203, 0.012704295106232166, -0.03886445611715317, 0.07910528779029846, 0.021152695640921593, 0.01966766081750393, -0.039443984627723694, 0.012142878957092762, -0.003857469419017434, -0.009698004461824894, 0.029211727902293205, 0.013501143082976341, 0.0017793256556615233, -0.018182625994086266, -0.043174680322408676, 0.017530659213662148, -0.015547594055533409, 0.050273872911930084, 0.027925904840230942, -0.018961364403367043, -0.07628010213375092, -0.004916915204375982, 0.0005526436143554747, 0.022855054587125778, 0.004077055491507053, 0.11452881246805191, -0.08142339438199997, 0.03842981159687042, 0.036129821091890335, 0.05175890773534775, 0.04480459913611412, 0.01505861897021532, -0.012505082413554192, -0.06103132292628288, -0.018689710646867752, 0.0037918200250715017, -0.031928256154060364, 0.02499205619096756, -0.011210205033421516, 0.016978299245238304, 0.0016616095090284944, 0.012423587031662464, -0.020047975704073906, -0.025825124233961105, 0.026295989751815796, -0.08142339438199997, 0.009625563398003578, 0.05987227335572243, 0.09026116132736206, -0.050346314907073975, 0.018101129680871964, 0.011255480349063873, 0.06653682142496109, -0.035586513578891754, -0.01169917918741703, -0.03254400193691254, -0.023760562762618065, -0.03774162754416466, 0.014995233155786991, 0.05657621845602989, -0.00022114234161563218, -0.014379487372934818, 0.08287220448255539, 0.039045561105012894, 0.008375960402190685, -0.043573103845119476, -0.02299993485212326, -0.00996965728700161, 0.04139988496899605, -0.009381076321005821, -0.03301486745476723, -0.05961873009800911, 0.06429115682840347, 0.00046577132889069617, 0.029881805181503296, 0.035658955574035645, 0.04328334331512451, -0.03908177837729454, -0.004176661372184753, 0.008548007346689701, -0.021985765546560287, 0.042703818529844284, -0.0046950653195381165, -0.004058945458382368, -0.02531803958117962, 0.015529483556747437, -0.07939504832029343, 0.04002350941300392, 0.052664417773485184, -0.04625341296195984, 0.06791319698095322, 0.02386922389268875, 0.013265710324048996, 0.007764741778373718, -0.0034975295420736074, -0.07146278768777847, 0.007094664964824915, -0.034988876432180405, 0.03449990227818489, -0.001563135301694274, 0.03151172399520874, -0.03669123351573944, -0.016588930040597916, 0.017059793695807457, 0.02113458700478077, -0.014171220362186432, -0.011988942511379719, -0.01647121272981167, 0.02593378536403179, -0.007008641492575407, 0.038393594324588776, 0.026422759518027306, -0.027925904840230942, 0.008701943792402744, 0.03504320979118347, 0.029084958136081696, 0.06976043432950974, -0.014144054614007473, 0.018689710646867752, 0.07265806198120117, -0.02312670648097992, -0.003474891884252429, -0.03404714912176132, 0.05157780647277832, 0.07113680988550186, 0.009661783464252949, 0.009254304692149162, -0.015547594055533409, 0.0011443373514339328, -0.003646938595920801, -0.07570057362318039, -0.015801137313246727, -0.028632203117012978, 0.006990531459450722, -0.03071487322449684, -0.06809429824352264, 0.03491643816232681, 0.021514900028705597, 0.032272350043058395, -0.030407000333070755, -0.01315704919397831, -0.026078667491674423, -0.020718051120638847, 0.04045815393328667, 0.001978537766262889, 0.04686915874481201, -0.020301517099142075, -0.02571646310389042, 0.021913323551416397, 0.04346444457769394, 0.044297512620687485, 0.01720467582345009, 0.015312161296606064, -0.016860581934452057, 0.008787967264652252, -0.028632203117012978, -0.00510254455730319, 0.023561351001262665, -0.001817809883505106, 0.07925017178058624, 0.030407000333070755, 0.011735400184988976, -0.03569517657160759, -0.08265488594770432, 0.009915326721966267, 0.1074296161532402, -0.037922728806734085, 0.03900934010744095, -0.009996822103857994, 0.0429573580622673, -0.023833002895116806, -0.055743150413036346, -0.002483359072357416, 0.05961873009800911, -0.020573170855641365, 0.006071439478546381, -0.05328016355633736, -0.005274591501802206, -0.008294465020298958, 0.01249602809548378, 0.05284551903605461, -0.06363919377326965, 0.015610979869961739, -0.018762152642011642, 0.011590518988668919, 0.05364236980676651, -0.019975533708930016, 0.047883328050374985, 0.041037678718566895, -0.02260151132941246, 0.01761215552687645, 0.02593378536403179, -0.03631092235445976, 0.01233303640037775, 0.03576761484146118, -0.010567293502390385, 0.03229045867919922, 0.017566880211234093, -0.03071487322449684, -0.014995233155786991, -0.01172634493559599, 0.05643133819103241, -0.02399599552154541, -0.06468958407640457, -0.05110694095492363, 0.012822011485695839, -0.04248649626970291, -0.054402995854616165, 0.009068675339221954, 0.01654365472495556, -0.07816355675458908, -0.006940728519111872, 0.04107389971613884, -0.0704486221075058, 0.009716114029288292, -0.014651140198111534, -0.020029865205287933, 0.021044034510850906, 0.0032394593581557274, 0.0553085058927536, -0.03636525198817253, 0.020373959094285965, -0.09011628478765488, -0.02944716066122055, 0.032399121671915054, 0.08968164026737213, -0.045166801661252975, 0.0048761675134301186, 0.07896040380001068, 0.019323566928505898, 0.022583400830626488, -0.005541716702282429, -0.01279484573751688, -0.06838405877351761, 0.015429877676069736, -0.009516902267932892, -0.016969243064522743, 0.004681482911109924, 0.03667312487959862, 0.049947891384363174, -0.03908177837729454, -0.010811780579388142, 0.04552900418639183, -0.015076729469001293, 0.030461331829428673, 0.033540062606334686, 0.008941903710365295, 0.014225550927221775, -0.006832067389041185, -0.025698352605104446, 0.007547419518232346, 0.03261644393205643, 0.0015767179429531097, -0.058133695274591446, -0.0140263382345438, 0.04904238134622574, 0.0353873036801815, -0.010340915992856026, -0.03799516707658768, 0.07504861056804657, -0.02892196550965309, -0.04371798783540726, -0.03875579684972763, -0.014669249765574932, 0.017766091972589493, 0.027002286165952682, 0.03719832003116608, -0.04208806902170181, 0.03125818073749542, -0.013129884377121925, -0.01901569403707981, 0.061574630439281464, -0.008538952097296715, 0.017458219081163406, 0.0017838532803580165, 0.018562939018011093, 0.05165024846792221, 0.028595982119441032, 0.0064698634669184685, -0.050020329654216766, 0.010150758549571037, -0.02852354198694229, -0.004944080486893654, -0.053533706814050674, 0.027201497927308083, -0.015004288405179977, -0.04418885335326195, 0.043899089097976685, 0.023162927478551865, -0.032743215560913086, 0.002253586193546653, -0.008090725168585777, 0.024376308545470238, 0.033739276230335236, -0.018961364403367043, -0.0465431772172451, -0.010259419679641724, 0.041436102241277695, 0.0036333559546619654, -0.03948020190000534, -0.023507019504904747, 0.006075967103242874, 0.010159813798964024, -0.006700768601149321, -0.018834592774510384, -0.020192855969071388, 0.005048213992267847, -0.026241658255457878, -0.025951895862817764, 0.03011723794043064, -0.0246660728007555, -0.009272415190935135, -0.02120702713727951, -0.03774162754416466, 0.012323981150984764, 0.002336213830858469, -0.09250682592391968, -0.011418472044169903, -0.020953483879566193, 0.009996822103857994, -0.019396008923649788, -0.0164168830960989, -0.014651140198111534, -0.01628105714917183, -0.05031009390950203, 0.004808254074305296, -0.04737624526023865, 0.02524559758603573, -0.03156605362892151, 0.05045497417449951, -0.02850543148815632, -0.09504225105047226, -0.09033360332250595, 0.016933023929595947, -0.015294051729142666, -0.0509258396923542, -0.028469210490584373, -0.0065604145638644695, 0.02932038903236389, 0.022420410066843033, -0.009960602037608624, -0.014107834547758102, -0.03125818073749542, 0.001119435764849186, -0.010612568818032742, -0.05914786458015442, -0.018101129680871964, 0.014524368569254875, -0.006587579846382141, -0.0030651488341391087, -0.015764916315674782, -0.0038008750416338444, 0.023380249738693237, 0.008489149622619152, -0.011771620251238346, -0.02312670648097992, -0.006243486423045397, -0.05795259401202202, -0.001114342361688614, -0.018101129680871964, -0.014470038004219532, 0.0015812455676496029, 0.051288045942783356, -0.0038121938705444336, 0.0113369757309556, 0.005134237464517355, 0.0244668610394001, 0.14922793209552765, -0.046832937747240067, 0.01735861226916313, -0.010621624067425728, -0.06266123801469803, -0.042232953011989594, -0.025372369214892387, -0.022040095180273056, 0.05715574324131012, 0.05139670521020889, 0.03719832003116608, 0.03468100354075432, -0.03893689811229706, -0.06820295751094818, 0.028614092618227005, -0.004000087268650532, -0.007619860582053661, 0.021225137636065483, -0.002340741455554962, 0.03828493133187294, -0.02100781537592411, 0.017458219081163406, 0.018925143405795097, 0.0947524905204773, 0.0007238414837047458, 0.06056046113371849, 0.031602274626493454, 0.035514071583747864, -0.09489736706018448, 0.052664417773485184, -0.022221196442842484, -0.07729426771402359, -0.017566880211234093, -0.0012835593661293387, -0.016054678708314896, -0.015004288405179977, 0.003076467663049698, 0.011056267656385899, -0.0445510558784008, -0.013247600756585598, 0.01881648227572441, -0.006859232671558857, 0.016507433727383614, -0.03835737332701683, -0.01299405749887228, 0.010440521873533726, -0.00002343358937650919, 0.007321042474359274, 0.007144467905163765, 0.014814131893217564, -0.004015933722257614, -0.007891513407230377, -0.028469210490584373, 0.012604689225554466, -0.02491961419582367, -0.0074976165778934956, 0.06298722326755524, -0.048426635563373566, -0.07102814316749573, 0.015764916315674782, -0.07504861056804657, -0.0015291788149625063, -0.03759674355387688, -0.016109010204672813, -0.01614522933959961, -0.05045497417449951, -0.02491961419582367, -0.05983605235815048, -0.0246660728007555, 0.04194318875670433, 0.017331447452306747, -0.024937724694609642, -0.01156335324048996, -0.002303389133885503, -0.04585498943924904, -0.011789730750024319, -0.013501143082976341, 0.043102242052555084, 0.0812060683965683, 0.032399121671915054, -0.0055326614528894424, -0.052338436245918274, 0.03056999295949936, 0.0058586448431015015, -0.035115648061037064, 0.0006400818820111454, 0.028632203117012978, 0.00001290173804591177, -0.00834426749497652, 0.05088961869478226, 0.014605863951146603, -0.013428702019155025, 0.08048166334629059, -0.07359979301691055, -0.03444557264447212, 0.03716209903359413, 0.014614919200539589, -0.001867612823843956, 0.0012065911432728171, -0.018888922408223152, 0.0033481204882264137, -0.011074378155171871, -0.01532121654599905, 0.009879105724394321, -0.03868335485458374, -0.04306602105498314, -0.05469276010990143, -0.004984828643500805, 0.019106244668364525, -0.022963715717196465, 0.009915326721966267, -0.046615615487098694, 0.008697416633367538, -0.05204867199063301, 0.021152695640921593, 0.026332208886742592, -0.0024878866970539093, 0.0356227345764637, 0.003622037125751376, -0.024412529543042183, 0.015728695318102837, 0.021388128399848938, 0.019758211448788643, 0.019033804535865784, -0.04607231169939041, 0.027418820187449455, -0.061393529176712036, 0.0037623909302055836, -0.0485352948307991, -0.028813304379582405, -0.019359787926077843, -0.010857055895030499, -0.02372434176504612, 0.03388415649533272, -0.0812060683965683, 0.033322740346193314, 0.07146278768777847, -0.0003630526189226657, -0.03341329097747803, 0.00847103912383318, -0.021949544548988342, 0.016933023929595947, -0.00045898000826127827, -0.017575934529304504, 0.04364554584026337, -0.010458632372319698, 0.03261644393205643, -0.03636525198817253, -0.01136414147913456, 0.0437542088329792, -0.02977314405143261, -0.009281469509005547, -0.010694064199924469, 0.036057379096746445, -0.02332591824233532, 0.039588864892721176, 0.016335386782884598, 0.005261008627712727, -0.02631409838795662, -0.03900934010744095, 0.08301708847284317, 0.023833002895116806, -0.02459363080561161, -0.0053877802565693855, 0.06284233927726746, 0.027636142447590828, 0.013736575841903687, -0.04976679012179375, 0.017784202471375465, 0.0716438889503479, -0.010340915992856026, -0.006555886939167976, 0.012577523477375507, 0.0005342504591681063, -0.007484034169465303, -0.0332321897149086, -0.024086546152830124, 0.005813369527459145, -0.005768094211816788, 0.01735861226916313, -0.01714129000902176, -0.03489832580089569, 0.06016203388571739, 0.056395117193460464, -0.019631441682577133, 0.00438719242811203, 0.0022841470781713724, -0.018037743866443634, 0.031131409108638763, -0.023362139239907265, -0.022311748936772346, 0.01548420824110508, 0.06541398912668228, -0.015783026814460754, 0.05827857553958893, 0.026567641645669937, -0.009254304692149162, -0.048752617090940475, -0.06903602927923203, -0.01505861897021532, 0.051215603947639465, -0.01887081377208233, -0.006764153949916363, 0.014904682524502277, 0.022981824353337288, 0.017259007319808006 ]
20,470
metevolsim.metevolsim
edit_mutant_cps_file
Edit mutant CPS file to schedule steady-state calculation. Parameters ---------- task: str Define Copasi task (STEADY_STATE/MCA). Returns ------- None
def edit_mutant_cps_file( self, task ): """ Edit mutant CPS file to schedule steady-state calculation. Parameters ---------- task: str Define Copasi task (STEADY_STATE/MCA). Returns ------- None """ assert task in ["STEADY_STATE", "MCA"] f = open("./output/mutant.cps", "r") cps = f.read() f.close() upper_text = cps.split("<ListOfTasks>")[0] lower_text = cps.split("</ListOfReports>")[1] edited_file = "" edited_file += upper_text if task == "STEADY_STATE": #~~~~~~~~~~~~~~~~~~# # Write the task # #~~~~~~~~~~~~~~~~~~# edited_file += ' <ListOfTasks>\n' edited_file += ' <Task key="Task_1" name="Steady-State" type="steadyState" scheduled="true" updateModel="false">\n' edited_file += ' <Report reference="Report_1" target="mutant_output.txt" append="1" confirmOverwrite="1"/>\n' edited_file += ' <Problem>\n' edited_file += ' <Parameter name="JacobianRequested" type="bool" value="1"/>\n' edited_file += ' <Parameter name="StabilityAnalysisRequested" type="bool" value="1"/>\n' edited_file += ' </Problem>\n' edited_file += ' <Method name="Enhanced Newton" type="EnhancedNewton">\n' edited_file += ' <Parameter name="Resolution" type="unsignedFloat" value="1.0000000000000001e-12"/>\n' edited_file += ' <Parameter name="Derivation Factor" type="unsignedFloat" value="0.001"/>\n' edited_file += ' <Parameter name="Use Newton" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Integration" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Back Integration" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Accept Negative Concentrations" type="bool" value="0"/>\n' edited_file += ' <Parameter name="Iteration Limit" type="unsignedInteger" value="50"/>\n' edited_file += ' <Parameter name="Maximum duration for forward integration" type="unsignedFloat" value="1000000000"/>\n' edited_file += ' <Parameter name="Maximum duration for backward integration" type="unsignedFloat" value="1000000"/>\n' edited_file += ' </Method>\n' edited_file += ' </Task>\n' edited_file += ' </ListOfTasks>\n' #~~~~~~~~~~~~~~~~~~# # Write the report # #~~~~~~~~~~~~~~~~~~# edited_file += ' <ListOfReports>\n' edited_file += ' <Report key="Report_1" name="Steady-State" taskType="steadyState" separator="&#x09;" precision="6">\n' edited_file += ' <Comment>\n' edited_file += ' Automatically generated report.\n' edited_file += ' </Comment>\n' edited_file += ' <Footer>\n' edited_file += ' <Object cn="CN=Root,Vector=TaskList[Steady-State]"/>\n' edited_file += ' </Footer>\n' edited_file += ' </Report>\n' edited_file += ' </ListOfReports>\n' elif task == "MCA": #~~~~~~~~~~~~~~~~~~# # Write the task # #~~~~~~~~~~~~~~~~~~# edited_file += ' <ListOfTasks>\n' edited_file += ' <Task key="Task_1" name="Steady-State" type="steadyState" scheduled="false" updateModel="false">\n' edited_file += ' <Report reference="Report_1" target="" append="1" confirmOverwrite="1"/>\n' edited_file += ' <Problem>\n' edited_file += ' <Parameter name="JacobianRequested" type="bool" value="1"/>\n' edited_file += ' <Parameter name="StabilityAnalysisRequested" type="bool" value="1"/>\n' edited_file += ' </Problem>\n' edited_file += ' <Method name="Enhanced Newton" type="EnhancedNewton">\n' edited_file += ' <Parameter name="Resolution" type="unsignedFloat" value="1.0000000000000001e-09"/>\n' edited_file += ' <Parameter name="Derivation Factor" type="unsignedFloat" value="0.001"/>\n' edited_file += ' <Parameter name="Use Newton" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Integration" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Back Integration" type="bool" value="0"/>\n' edited_file += ' <Parameter name="Accept Negative Concentrations" type="bool" value="0"/>\n' edited_file += ' <Parameter name="Iteration Limit" type="unsignedInteger" value="50"/>\n' edited_file += ' <Parameter name="Maximum duration for forward integration" type="unsignedFloat" value="1000000000"/>\n' edited_file += ' <Parameter name="Maximum duration for backward integration" type="unsignedFloat" value="1000000"/>\n' edited_file += ' </Method>\n' edited_file += ' </Task>\n' edited_file += ' <Task key="Task_2" name="Metabolic Control Analysis" type="metabolicControlAnalysis" scheduled="true" updateModel="false">\n' edited_file += ' <Report reference="Report_1" target="mutant_output.txt" append="1" confirmOverwrite="1"/>\n' edited_file += ' <Problem>\n' edited_file += ' <Parameter name="Steady-State" type="key" value="Task_1"/>\n' edited_file += ' </Problem>\n' edited_file += ' <Method name="MCA Method (Reder)" type="MCAMethod(Reder)">\n' edited_file += ' <Parameter name="Modulation Factor" type="unsignedFloat" value="1.0000000000000001e-09"/>\n' edited_file += ' <Parameter name="Use Reder" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Smallbone" type="bool" value="1"/>\n' edited_file += ' </Method>\n' edited_file += ' </Task>\n' edited_file += ' </ListOfTasks>\n' #~~~~~~~~~~~~~~~~~~# # Write the report # #~~~~~~~~~~~~~~~~~~# edited_file += ' <ListOfReports>\n' edited_file += ' <Report key="Report_1" name="Metabolic Control Analysis" taskType="metabolicControlAnalysis" separator="&#x09;" precision="6">\n' edited_file += ' <Comment>\n' edited_file += ' Automatically generated report.\n' edited_file += ' </Comment>\n' edited_file += ' <Header>\n' edited_file += ' <Object cn="CN=Root,Vector=TaskList[Metabolic Control Analysis],Object=Description"/>\n' edited_file += ' </Header>\n' edited_file += ' <Footer>\n' edited_file += ' <Object cn="String=&#x0a;"/>\n' edited_file += ' <Object cn="CN=Root,Vector=TaskList[Metabolic Control Analysis],Object=Result"/>\n' edited_file += ' </Footer>\n' edited_file += ' </Report>\n' edited_file += ' </ListOfReports>\n' edited_file += lower_text f = open("./output/mutant.cps", "w") f.write(edited_file) f.close()
(self, task)
[ 0.08667933940887451, 0.017757775261998177, -0.003075175452977419, 0.02436370775103569, -0.009483029134571552, -0.06619797646999359, -0.07111033797264099, 0.024858905002474785, -0.012488876469433308, -0.04330005496740341, -0.03272264078259468, -0.011924351565539837, -0.019391927868127823, 0.06461334973573685, -0.000940255937166512, 0.03402996063232422, 0.01981779746711254, -0.006586124189198017, -0.01284541841596365, 0.01185502391308546, -0.01700507663190365, -0.04024963825941086, -0.02115483023226261, 0.06663375347852707, 0.03026646003127098, 0.0025651222094893456, 0.0378330759704113, -0.022006569430232048, 0.0032980141695588827, -0.05704673007130623, -0.02268003672361374, -0.027552779763936996, -0.045875079929828644, -0.05819559097290039, 0.005541258025914431, -0.002894428325816989, 0.010805205442011356, 0.020738864317536354, -0.0020451650489121675, 0.007744885981082916, 0.016599014401435852, -0.008507490158081055, -0.0003159977786708623, 0.01340994331985712, -0.0427454337477684, 0.0373774953186512, -0.028622405603528023, 0.0854908674955368, 0.014727168716490269, -0.014162643812596798, 0.03791230544447899, -0.006303861737251282, -0.03434688597917557, 0.053679388016462326, -0.013330711983144283, -0.004424588289111853, -0.0031667868606746197, 0.034208230674266815, 0.10173333436250687, -0.05031204596161842, 0.04385467618703842, 0.01811431720852852, 0.049004726111888885, -0.010676453821361065, 0.0037164560053497553, 0.06342487037181854, -0.004436967894434929, 0.00687333894893527, -0.0068683866411447525, 0.04872741550207138, 0.00032992521300911903, -0.037991538643836975, 0.008349026553332806, -0.030979543924331665, 0.06148369982838631, -0.014261682517826557, -0.04496391490101814, -0.01790633425116539, -0.0200059711933136, -0.02836490236222744, -0.020303091034293175, 0.008215323090553284, 0.05827482044696808, -0.024106206372380257, 0.008294555358588696, 0.015113422647118568, 0.09064091742038727, -0.04038829356431961, -0.09373094886541367, -0.006962474435567856, 0.014311202801764011, 0.020095108076930046, -0.005714577157050371, -0.03410919010639191, 0.0701199397444725, -0.034644003957509995, -0.050351664423942566, -0.08446085453033447, -0.04472622275352478, -0.03751615062355995, -0.009691011160612106, 0.01224127784371376, -0.0633852556347847, -0.043458517640829086, 0.03925924375653267, -0.04698432236909866, -0.04860856756567955, 0.05684865266084671, 0.057363659143447876, -0.029216641560196877, -0.09991101175546646, 0.0272358525544405, -0.03438650071620941, -0.04373582825064659, 0.03026646003127098, -0.0146182244643569, -0.017599312588572502, 0.012716666795313358, -0.026285074651241302, -0.009413701482117176, 0.059780221432447433, -0.010052505880594254, -0.06215716898441315, 0.05463016778230667, -0.01512332633137703, 0.020956750959157944, -0.01206300687044859, 0.028761060908436775, 0.10363489389419556, -0.05684865266084671, -0.0412004180252552, -0.0522928386926651, 0.06116677448153496, 0.01811431720852852, 0.01825297251343727, -0.03406957536935806, -0.041438110172748566, -0.006447469349950552, -0.0005713339196518064, 0.016539590433239937, 0.07776578515768051, -0.07946926355361938, 0.0020142151042819023, -0.045993927866220474, -0.014281490817666054, -0.010280296206474304, -0.02725565992295742, -0.023868510499596596, -0.08802627772092819, 0.005863136146217585, -0.012488876469433308, -0.03139550983905792, -0.09769252687692642, -0.07598307728767395, 0.04571661725640297, 0.04547892138361931, 0.046548549085855484, 0.01948106288909912, -0.0020773527212440968, -0.038546159863471985, -0.02236311137676239, -0.02258099801838398, 0.03349514678120613, 0.1125880628824234, 0.031969938427209854, 0.005249091424047947, -0.014994574710726738, 0.02513621561229229, -0.045439306646585464, -0.02937510423362255, 0.014846015721559525, 0.0017121447017416358, -0.05593748763203621, 0.04860856756567955, -0.0007229881011880934, 0.025869108736515045, 0.03838769719004631, -0.025076791644096375, 0.049995120614767075, 0.05062897503376007, -0.06663375347852707, 0.009765291586518288, -0.0042289849370718, 0.062474094331264496, 0.03458458185195923, -0.02949395217001438, 0.0362880602478981, 0.017995471134781837, 0.011835215613245964, -0.047340862452983856, 0.03890269994735718, -0.027671625837683678, 0.013211864978075027, 0.04904434084892273, -0.005749240983277559, 0.0043899244628846645, 0.00014701169857289642, -0.025215446949005127, 0.01474697608500719, -0.022442342713475227, 0.000058224373788107187, -0.004830650053918362, 0.06259293854236603, 0.008661000989377499, -0.0031791666988283396, -0.00010809228842845187, 0.0033821978140622377, -0.018748169764876366, -0.040328871458768845, 0.07883541285991669, 0.024957945570349693, -0.01151828933507204, 0.04591469466686249, -0.027849897742271423, 0.050668589770793915, -0.030226845294237137, 0.00007041086792014539, 0.05407554656267166, -0.08557009696960449, 0.010696262121200562, -0.026324689388275146, 0.01591564156115055, 0.02727546915411949, -0.022303687408566475, 0.0034292414784431458, 0.01847085915505886, 0.04809356480836868, -0.006110734771937132, -0.04753894358873367, 0.012478972785174847, 0.06560374051332474, -0.024066589772701263, 0.02836490236222744, 0.037436917424201965, -0.005028728861361742, -0.0532039999961853, -0.06477180868387222, -0.016054296866059303, -0.049004726111888885, -0.005868088454008102, -0.06073100119829178, -0.020501168444752693, 0.045993927866220474, -0.012904842384159565, 0.008750136941671371, -0.005392699036747217, 0.06619797646999359, 0.007581470999866724, -0.0609290786087513, 0.002445036778226495, 0.07661692798137665, -0.024007165804505348, -0.07368536293506622, 0.007997436448931694, -0.01957019791007042, -0.01591564156115055, -0.026899117976427078, -0.0008628813084214926, 0.03595132380723953, -0.02792912907898426, 0.051658984273672104, -0.061246003955602646, 0.027532970532774925, 0.002338569378480315, 0.054352857172489166, 0.029295872896909714, -0.021491562947630882, -0.012875130400061607, -0.0292364489287138, -0.00651184469461441, 0.049321651458740234, 0.07443805783987045, -0.04003174975514412, 0.013033593073487282, -0.045439306646585464, -0.024779673665761948, 0.01668814942240715, -0.010864629410207272, -0.04060618206858635, -0.006739635486155748, 0.004523627460002899, 0.01902548037469387, 0.018302492797374725, 0.05775981396436691, -0.0318312831223011, -0.044092368334531784, -0.0191443283110857, 0.009720723144710064, 0.00344657339155674, 0.007967724464833736, -0.044765837490558624, 0.04294351115822792, -0.0074081518687307835, -0.0673864483833313, 0.049797043204307556, 0.017916239798069, -0.017638929188251495, -0.05859174579381943, -0.00725959287956357, -0.021214252337813377, 0.026403920724987984, -0.020996365696191788, 0.006551460362970829, -0.06393987685441971, -0.08216314017772675, 0.01473707240074873, 0.026899117976427078, -0.022085800766944885, 0.07435882836580276, -0.00014144073065835983, 0.04805394634604454, -0.024878714233636856, 0.018559996038675308, 0.002369519090279937, 0.015559099614620209, 0.01834210939705372, 0.0076706064864993095, 0.017837006598711014, 0.11345960944890976, 0.04258697107434273, -0.04821241274476051, -0.03993271291255951, 0.06536604464054108, 0.02014462649822235, 0.03238590434193611, -0.05328323319554329, 0.03545612841844559, 0.015341212972998619, -0.007858781144022942, -0.001340746763162315, -0.042428504675626755, 0.024423131719231606, -0.001109860953874886, -0.011874832212924957, -0.0014373102458193898, -0.030405115336179733, -0.01924336701631546, -0.05193629488348961, 0.052570149302482605, -0.031771861016750336, 0.05593748763203621, 0.012993977405130863, -0.02357139252126217, 0.02458159439265728, 0.024779673665761948, -0.000443820608779788, 0.026780271902680397, -0.010775493457913399, -0.0012670861324295402, 0.02602757140994072, 0.0264633446931839, 0.04650893062353134, -0.008527297526597977, 0.061246003955602646, 0.001054151332937181, 0.03402996063232422, -0.00018585374346002936, -0.03484208509325981, 0.0164603590965271, -0.04151734337210655, -0.044884685426950455, 0.016044393181800842, -0.0009594447910785675, 0.015281789004802704, -0.02212541550397873, -0.0725761204957962, -0.005224331747740507, 0.0272358525544405, 0.050549741834402084, 0.002370757283642888, 0.057442888617515564, -0.009106678888201714, 0.017737967893481255, -0.061246003955602646, 0.022937539964914322, 0.048568952828645706, -0.04116079956293106, 0.014687552116811275, -0.033098988234996796, -0.03927905112504959, -0.009334469214081764, 0.030107997357845306, -0.04460737481713295, 0.053441695868968964, -0.015361021272838116, -0.0409231074154377, 0.02402697317302227, -0.027671625837683678, 0.013538694940507412, 0.02315542660653591, 0.044013138860464096, 0.018153933808207512, 0.03414880856871605, -0.03311879560351372, 0.018203454092144966, -0.014261682517826557, 0.02792912907898426, 0.0066802119836211205, -0.015370924957096577, -0.037080373615026474, -0.021887721493840218, -0.030107997357845306, -0.0373774953186512, 0.04258697107434273, 0.0015759654343128204, -0.03093992918729782, 0.04706355184316635, -0.026403920724987984, -0.01112213172018528, 0.023611009120941162, 0.023076195269823074, 0.02727546915411949, 0.004176989197731018, -0.00828465074300766, -0.06287024915218353, 0.031989745795726776, -0.10688339173793793, -0.06461334973573685, 0.013102920725941658, -0.014459761790931225, -0.02781028114259243, 0.0409231074154377, 0.05415477976202965, 0.009557308629155159, 0.028959140181541443, -0.015450156293809414, 0.020719055086374283, -0.008002388291060925, -0.05775981396436691, 0.040546756237745285, 0.010280296206474304, 0.034564774483442307, -0.07610192149877548, -0.005769048817455769, 0.03092011995613575, -0.02345254458487034, -0.0037139798514544964, -0.04539969190955162, 0.0362880602478981, 0.03614940494298935, 0.029276065528392792, 0.0008145995670929551, 0.03026646003127098, 0.0015833934303373098, -0.02081809565424919, -0.004469155799597502, -0.08961090445518494, -0.05217399075627327, -0.0024549406953155994, 0.01990693248808384, 0.008428258821368217, 0.05649210885167122, -0.003255922347307205, -0.018639227375388145, 0.008304459042847157, -0.013043497689068317, 0.032861292362213135, -0.018985865637660027, -0.019837604835629463, 0.023056387901306152, 0.009656347334384918, 0.022759268060326576, 0.010874533094465733, 0.049797043204307556, -0.012439357116818428, -0.09119553864002228, 0.005402602721005678, 0.008353978395462036, -0.026542576029896736, -0.022343304008245468, -0.009116582572460175, -0.07174418866634369, -0.03824904188513756, 0.0059027522802352905, -0.02371004782617092, 0.004313168581575155, -0.04516199603676796, -0.012984073720872402, 0.007680510636419058, 0.019490966573357582, -0.011785696260631084, -0.017510177567601204, -0.005521450191736221, 0.0522928386926651, -0.0051005324348807335, -0.0021627743262797594, 0.05795789510011673, -0.0854908674955368, -0.037080373615026474, -0.06009714677929878, -0.023987358435988426, -0.07095187157392502, 0.02535410225391388, -0.04139849543571472, -0.07491344958543777, 0.014152739197015762, -0.021610410884022713, 0.022184839472174644, -0.02349216118454933, -0.03426765277981758, 0.02002578042447567, 0.012558204121887684, -0.014766784384846687, -0.02957318350672722, 0.0320095531642437, 0.015063902363181114, -0.021848104894161224, -0.024324093014001846, -0.019490966573357582, -0.007294256705790758, 0.001860703923739493, -0.045993927866220474, 0.03127666190266609, 0.00009416486864211038, -0.0046102870255708694, -0.017163539305329323, 0.007734982296824455, 0.0695653185248375, -0.002452464774250984, -0.016420742496848106, -0.010607126168906689, -0.023076195269823074, -0.017084307968616486, 0.0278300903737545, -0.007234832737594843, 0.011003284715116024, -0.03179166838526726, -0.03290091082453728, -0.012934554368257523, -0.01702488400042057, -0.009101727046072483, -0.03525805100798607, 0.029989149421453476, -0.01880759373307228, 0.05439247190952301, 0.011785696260631084, 0.06663375347852707, -0.06873338669538498, -0.015440252609550953, -0.010666550137102604, -0.014123027212917805, -0.007635942660272121, -0.01681690104305744, -0.013449558988213539, -0.026720847934484482, -0.012538395822048187, 0.04504314810037613, -0.00614539859816432, 0.0026790176052600145, -0.004120041616261005, 0.006289005745202303, 0.020659632980823517, -0.0026913974434137344, 0.05169859901070595, 0.0636625662446022, 0.02248195745050907, 0.01948106288909912, 0.03517881780862808, 0.009027447551488876, 0.02468063496053219, -0.011617328971624374, -0.02178868278861046, -0.02824605442583561, -0.02170945145189762, 0.0442904494702816, 0.006605932489037514, -0.0031618347857147455, -0.007690414320677519, -0.03149455040693283, -0.01655939780175686, 0.06176101043820381, 0.06425680220127106, 0.05569979548454285, -0.02969203144311905, -0.02903837151825428, -0.034644003957509995, 0.0353768952190876, 0.0680203065276146, 0.02157079614698887, 0.029870301485061646, -0.012746378779411316, 0.028562981635332108, -0.01692584529519081, -0.02781028114259243, 0.013271288014948368, 0.011647040955722332, -0.00014244660269469023, 0.01013173721730709, 0.027513163164258003, 0.01856989972293377, -0.026562383398413658, -0.013251480646431446, -0.0007353679975494742, -0.0353768952190876, -0.07772617042064667, 0.0256908368319273, 0.0824800655245781, -0.012112526223063469, -0.014687552116811275, 0.04234927520155907, -0.11100342869758606, -0.03230667486786842, 0.035555168986320496, 0.03634748235344887, -0.014380530454218388, -0.018619420006871223, 0.009374084882438183, -0.04959896206855774, -0.03270282968878746, 0.05463016778230667, 0.07899387925863266, -0.03335649147629738, 0.03250475227832794, -0.00728930439800024, -0.045320458710193634, -0.02012481912970543, 0.0005184097099117935, 0.03004857338964939, -0.02289792336523533, -0.022303687408566475, -0.0028424325864762068, 0.00974053144454956, -0.0569278858602047, -0.00025301487767137587, -0.04619200527667999, 0.013508982956409454, 0.012993977405130863, -0.05371900647878647, -0.008309410884976387, -0.023531775921583176, -0.020501168444752693, -0.024403324350714684, 0.01967914216220379, 0.014123027212917805, 0.029434528201818466, 0.029434528201818466, 0.016044393181800842, -0.0013840765459463, 0.013281191699206829, -0.004944545216858387, 0.02658219262957573, 0.008046956732869148, 0.0153015973046422, -0.0636625662446022, -0.0003992528363596648, -0.0149153433740139, -0.0007279400597326458, -0.04330005496740341, 0.03173224255442619, 0.010973572731018066, -0.0264633446931839, 0.05704673007130623, -0.018044989556074142, -0.02925625815987587, -0.017985567450523376, -0.01302368938922882, -0.04003174975514412, 0.0032138305250555277, 0.009047254920005798, 0.02458159439265728, -0.04024963825941086, 0.017846912145614624, 0.04864818602800369, -0.030900312587618828, 0.009933657944202423, 0.00197459920309484, 0.05264937877655029, 0.061681777238845825, -0.014806400053203106, 0.03282167762517929, 0.007541855331510305, -0.050113968551158905, 0.060572534799575806, -0.019867315888404846, -0.0038650149945169687, -0.04528084397315979, 0.04619200527667999, 0.006492036860436201, 0.002225911943241954, 0.0029662318993359804, 0.003607512451708317, 0.04615239053964615, 0.03684268146753311, -0.06639605760574341, 0.013637734577059746, 0.051025133579969406, -0.019877219572663307, -0.030088189989328384, 0.007388344034552574, -0.0004518675559666008, -0.05498671159148216, 0.039754439145326614, -0.02804797701537609, 0.016430646181106567, 0.030187228694558144, -0.00506339268758893, -0.03311879560351372, 0.03070223331451416, 0.004474107641726732, -0.00800734106451273, -0.006675259675830603, -0.028305478394031525, 0.029771262779831886, 0.03494112193584442, -0.025532374158501625, -0.033752650022506714, -0.02093694359064102, -0.01935231126844883, -0.036089979112148285, -0.002958803903311491, 0.06215716898441315, 0.07578499615192413, -0.005432314705103636, 0.04559776932001114, 0.012954361736774445, -0.007140745408833027, -0.057324040681123734, 0.005115388426929712, 0.004726658575236797, -0.023096002638339996, -0.023650623857975006, 0.025631412863731384, 0.0391998216509819, 0.00017161681898869574, -0.016995172947645187, 0.004040810279548168, -0.0122313741594553, -0.04072502627968788, 0.002830052748322487, -0.01056751050055027, -0.009195813909173012, 0.05395669862627983, -0.031098391860723495, 0.0038972028996795416, 0.009220574051141739, -0.019738566130399704, -0.0026294977869838476, 0.0014583561569452286, -0.018758075311779976, 0.06485103815793991, 0.039774250239133835, 0.0006019742577336729, -0.053124766796827316, -0.02547295019030571, -0.03218782693147659, 0.025829492136836052, 0.029454337432980537, 0.05027243122458458, -0.0272358525544405, 0.005457074381411076, 0.036109790205955505, -0.006333573721349239, 0.008438162505626678, 0.07899387925863266, 0.07146687805652618, -0.018599610775709152, 0.08137082308530807, 0.020501168444752693, 0.0010374384000897408, 0.0006310670869424939, 0.025116408243775368, -0.02670103870332241, 0.012528492137789726, 0.051223210990428925, 0.03747653216123581, 0.05086666718125343, -0.062751404941082, 0.02436370775103569 ]
20,471
metevolsim.metevolsim
edit_wild_type_cps_file
Edit wild-type CPS file to schedule steady-state calculation. Parameters ---------- task: str Define Copasi task (STEADY_STATE/MCA). Returns ------- None
def edit_wild_type_cps_file( self, task ): """ Edit wild-type CPS file to schedule steady-state calculation. Parameters ---------- task: str Define Copasi task (STEADY_STATE/MCA). Returns ------- None """ assert task in ["STEADY_STATE", "MCA"] f = open("./output/wild_type.cps", "r") cps = f.read() f.close() upper_text = cps.split("<ListOfTasks>")[0] lower_text = cps.split("</ListOfReports>")[1] edited_file = "" edited_file += upper_text if task == "STEADY_STATE": #~~~~~~~~~~~~~~~~~~# # Write the task # #~~~~~~~~~~~~~~~~~~# edited_file += ' <ListOfTasks>\n' edited_file += ' <Task key="Task_1" name="Steady-State" type="steadyState" scheduled="true" updateModel="false">\n' edited_file += ' <Report reference="Report_1" target="wild_type_output.txt" append="1" confirmOverwrite="1"/>\n' edited_file += ' <Problem>\n' edited_file += ' <Parameter name="JacobianRequested" type="bool" value="1"/>\n' edited_file += ' <Parameter name="StabilityAnalysisRequested" type="bool" value="1"/>\n' edited_file += ' </Problem>\n' edited_file += ' <Method name="Enhanced Newton" type="EnhancedNewton">\n' edited_file += ' <Parameter name="Resolution" type="unsignedFloat" value="1.0000000000000001e-12"/>\n' edited_file += ' <Parameter name="Derivation Factor" type="unsignedFloat" value="0.001"/>\n' edited_file += ' <Parameter name="Use Newton" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Integration" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Back Integration" type="bool" value="0"/>\n' edited_file += ' <Parameter name="Accept Negative Concentrations" type="bool" value="0"/>\n' edited_file += ' <Parameter name="Iteration Limit" type="unsignedInteger" value="50"/>\n' edited_file += ' <Parameter name="Maximum duration for forward integration" type="unsignedFloat" value="1000000000"/>\n' edited_file += ' <Parameter name="Maximum duration for backward integration" type="unsignedFloat" value="1000000"/>\n' edited_file += ' </Method>\n' edited_file += ' </Task>\n' edited_file += ' </ListOfTasks>\n' #~~~~~~~~~~~~~~~~~~# # Write the report # #~~~~~~~~~~~~~~~~~~# edited_file += ' <ListOfReports>\n' edited_file += ' <Report key="Report_1" name="Steady-State" taskType="steadyState" separator="&#x09;" precision="6">\n' edited_file += ' <Comment>\n' edited_file += ' Automatically generated report.\n' edited_file += ' </Comment>\n' edited_file += ' <Footer>\n' edited_file += ' <Object cn="CN=Root,Vector=TaskList[Steady-State]"/>\n' edited_file += ' </Footer>\n' edited_file += ' </Report>\n' edited_file += ' </ListOfReports>\n' elif task == "MCA": #~~~~~~~~~~~~~~~~~~# # Write the task # #~~~~~~~~~~~~~~~~~~# edited_file += ' <ListOfTasks>\n' edited_file += ' <Task key="Task_1" name="Steady-State" type="steadyState" scheduled="false" updateModel="false">\n' edited_file += ' <Report reference="Report_1" target="" append="1" confirmOverwrite="1"/>\n' edited_file += ' <Problem>\n' edited_file += ' <Parameter name="JacobianRequested" type="bool" value="1"/>\n' edited_file += ' <Parameter name="StabilityAnalysisRequested" type="bool" value="1"/>\n' edited_file += ' </Problem>\n' edited_file += ' <Method name="Enhanced Newton" type="EnhancedNewton">\n' edited_file += ' <Parameter name="Resolution" type="unsignedFloat" value="1.0000000000000001e-12"/>\n' edited_file += ' <Parameter name="Derivation Factor" type="unsignedFloat" value="0.001"/>\n' edited_file += ' <Parameter name="Use Newton" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Integration" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Back Integration" type="bool" value="0"/>\n' edited_file += ' <Parameter name="Accept Negative Concentrations" type="bool" value="0"/>\n' edited_file += ' <Parameter name="Iteration Limit" type="unsignedInteger" value="50"/>\n' edited_file += ' <Parameter name="Maximum duration for forward integration" type="unsignedFloat" value="1000000000"/>\n' edited_file += ' <Parameter name="Maximum duration for backward integration" type="unsignedFloat" value="1000000"/>\n' edited_file += ' </Method>\n' edited_file += ' </Task>\n' edited_file += ' <Task key="Task_2" name="Metabolic Control Analysis" type="metabolicControlAnalysis" scheduled="true" updateModel="false">\n' edited_file += ' <Report reference="Report_1" target="wild_type_output.txt" append="1" confirmOverwrite="1"/>\n' edited_file += ' <Problem>\n' edited_file += ' <Parameter name="Steady-State" type="key" value="Task_1"/>\n' edited_file += ' </Problem>\n' edited_file += ' <Method name="MCA Method (Reder)" type="MCAMethod(Reder)">\n' edited_file += ' <Parameter name="Modulation Factor" type="unsignedFloat" value="1.0000000000000001e-09"/>\n' edited_file += ' <Parameter name="Use Reder" type="bool" value="1"/>\n' edited_file += ' <Parameter name="Use Smallbone" type="bool" value="1"/>\n' edited_file += ' </Method>\n' edited_file += ' </Task>\n' edited_file += ' </ListOfTasks>\n' #~~~~~~~~~~~~~~~~~~# # Write the report # #~~~~~~~~~~~~~~~~~~# edited_file += ' <ListOfReports>\n' edited_file += ' <Report key="Report_1" name="Metabolic Control Analysis" taskType="metabolicControlAnalysis" separator="&#x09;" precision="6">\n' edited_file += ' <Comment>\n' edited_file += ' Automatically generated report.\n' edited_file += ' </Comment>\n' edited_file += ' <Header>\n' edited_file += ' <Object cn="CN=Root,Vector=TaskList[Metabolic Control Analysis],Object=Description"/>\n' edited_file += ' </Header>\n' edited_file += ' <Footer>\n' edited_file += ' <Object cn="String=&#x0a;"/>\n' edited_file += ' <Object cn="CN=Root,Vector=TaskList[Metabolic Control Analysis],Object=Result"/>\n' edited_file += ' </Footer>\n' edited_file += ' </Report>\n' edited_file += ' </ListOfReports>\n' edited_file += lower_text f = open("./output/wild_type.cps", "w") f.write(edited_file) f.close()
(self, task)
[ 0.08555172383785248, -0.0017439081566408277, -0.011365470476448536, 0.011134953238070011, -0.011555897071957588, -0.06987659633159637, -0.06542662531137466, 0.016296520829200745, -0.013730770908296108, -0.05849108099937439, -0.0361209474503994, -0.005792981944978237, -0.015234139747917652, 0.04754655435681343, 0.0034427151549607515, 0.035840317606925964, 0.0134300971403718, 0.020024875178933144, -0.016517015174031258, -0.004798253066837788, -0.02247035689651966, -0.03064868412911892, -0.02968652732670307, 0.05223706364631653, 0.04923032596707344, 0.0026058396324515343, 0.03802521526813507, -0.023632962256669998, -0.03567995876073837, -0.06089647114276886, -0.025036105886101723, -0.03127007558941841, -0.04890960827469826, -0.07256261259317398, 0.005068859551101923, 0.002449238672852516, 0.00432218611240387, 0.03447726368904114, 0.0011582205770537257, 0.009035248309373856, 0.006770172156393528, -0.017719710245728493, -0.0203656405210495, 0.0007617070223204792, -0.0434974767267704, 0.031490571796894073, -0.015735263004899025, 0.07741348445415497, 0.011285290122032166, -0.0063041276298463345, 0.030989447608590126, -0.01801036112010479, -0.04189388453960419, 0.05572488158941269, -0.01631656475365162, -0.01471297163516283, -0.0136405685916543, 0.0351187027990818, 0.10832275450229645, -0.053600117564201355, 0.044499725103378296, 0.02537686936557293, 0.03954862803220749, -0.007692238315939903, 0.009381023235619068, 0.07564952969551086, -0.0055524432100355625, -0.013891130685806274, -0.014442365616559982, 0.049150146543979645, -0.0014570151688531041, -0.05047311261296272, 0.023612916469573975, -0.016306543722748756, 0.0629410520195961, -0.027702080085873604, -0.04794745147228241, -0.02788248471915722, -0.022229816764593124, -0.03782476484775543, -0.01445238757878542, 0.03245272859930992, 0.04550196975469589, -0.02896491065621376, 0.004750646185129881, 0.021808873862028122, 0.09854083508253098, -0.034417130053043365, -0.08819765597581863, -0.006394329946488142, 0.008358731865882874, 0.004034040495753288, -0.006093656178563833, -0.02890477515757084, 0.06454464793205261, -0.02625884674489498, -0.04141280800104141, -0.09830029308795929, -0.042655590921640396, -0.04241505265235901, 0.0028739406261593103, 0.0041242423467338085, -0.06129736825823784, -0.03515879064798355, 0.037744585424661636, -0.045461881905794144, -0.048588886857032776, 0.06915497779846191, 0.03499843180179596, -0.021608425304293633, -0.0982201099395752, 0.011275268159806728, -0.03487816080451012, -0.05905233696103096, 0.04830826073884964, -0.014111624099314213, -0.005797993391752243, 0.044499725103378296, -0.026599610224366188, -0.021367885172367096, 0.053960926830768585, -0.017218587920069695, -0.06514599174261093, 0.0425754114985466, -0.005903229117393494, 0.03764436021447182, 0.0004253281804267317, 0.02629893645644188, 0.08723549544811249, -0.044539812952280045, -0.04558214917778969, -0.04305649176239967, 0.040811460465192795, 0.022229816764593124, 0.01616622880101204, -0.0332745686173439, -0.041933976113796234, -0.011736300773918629, -0.007792463060468435, -0.0020333067514002323, 0.0869147777557373, -0.06927524507045746, 0.0008732068818062544, -0.05676721781492233, -0.01872195675969124, -0.013400029391050339, -0.022229816764593124, -0.03716328367590904, -0.07901708036661148, 0.027822351083159447, -0.022490400820970535, -0.033655423671007156, -0.11706233769655228, -0.06370276212692261, 0.0434974767267704, 0.04518125206232071, 0.05404110625386238, 0.02112734690308571, -0.02271089516580105, -0.036561936140060425, -0.025216510519385338, -0.013750815764069557, 0.023873500525951385, 0.09004178643226624, 0.014412297867238522, 0.003522894810885191, -0.04429927468299866, 0.023673051968216896, -0.02025539241731167, -0.026840148493647575, 0.013981332071125507, -0.0034577487967908382, -0.06350231170654297, 0.059693776071071625, 0.01143562700599432, 0.04329703003168106, 0.03137030079960823, -0.016978047788143158, 0.04774700105190277, 0.04886951670050621, -0.054642453789711, 0.005231724586337805, -0.01929323561489582, 0.07384549081325531, 0.017829956486821175, -0.021808873862028122, 0.03874683380126953, 0.010764122940599918, 0.007406598422676325, -0.019724201411008835, 0.03638153150677681, -0.02031552791595459, 0.012387760914862156, 0.04401864483952522, 0.0009007686167024076, -0.013079310767352581, 0.00722619378939271, -0.002746154088526964, 0.01662726141512394, 0.004374803975224495, -0.006910486612468958, 0.01558492612093687, 0.062099166214466095, 0.003009243868291378, -0.003009243868291378, -0.002608345355838537, 0.004893466364592314, -0.030788999050855637, -0.0555645227432251, 0.07512836158275604, 0.021708648651838303, -0.016657330095767975, 0.03992948308587074, -0.029145315289497375, 0.054361823946237564, -0.0378849022090435, -0.023833410814404488, 0.06237979233264923, -0.08198373019695282, 0.0010711504146456718, -0.03225227817893028, 0.03265317529439926, 0.006424397230148315, -0.025416959077119827, 0.012578187510371208, 0.030488325282931328, 0.05608568713068962, 0.003009243868291378, -0.03632139787077904, -0.0015685150865465403, 0.039789166301488876, -0.016567127779126167, 0.010523583739995956, 0.03135025501251221, 0.031229987740516663, -0.047105565667152405, -0.05977395549416542, -0.015314319171011448, -0.04522133991122246, -0.031189896166324615, -0.04658439755439758, -0.024334533140063286, 0.01714842952787876, -0.03279349207878113, -0.018100563436746597, -0.03034801036119461, 0.0527181439101696, 0.02257058024406433, -0.06089647114276886, 0.004983668681234121, 0.08835801482200623, -0.041573166847229004, -0.05255778133869171, -0.0034702769480645657, -0.0305484589189291, -0.021247616037726402, -0.0434974767267704, -0.02042577415704727, 0.049711402505636215, -0.03245272859930992, 0.04870915785431862, -0.043216850608587265, 0.03183133527636528, 0.0180604737251997, 0.05255778133869171, 0.03572005033493042, -0.029646437615156174, -0.01969413459300995, -0.010137719102203846, -0.014953510835766792, 0.041011907160282135, 0.07909725606441498, -0.054361823946237564, 0.010052528232336044, -0.05075373873114586, -0.01980438269674778, 0.024494893848896027, -0.014963533729314804, -0.032412637025117874, -0.010523583739995956, 0.002093441318720579, 0.010473471134901047, 0.023111794143915176, 0.048949696123600006, -0.02563745342195034, -0.047506462782621384, -0.0273212268948555, 0.024575073271989822, -0.000637365854345262, 0.00869949534535408, -0.03946844860911369, 0.06482527405023575, 0.005231724586337805, -0.06013476476073265, 0.0637829378247261, 0.03391600772738457, -0.02824329398572445, -0.07140000909566879, -0.0027762216050177813, -0.022129593417048454, 0.02168860472738743, -0.0034452208783477545, 0.039328135550022125, -0.06514599174261093, -0.08643370121717453, 0.030528414994478226, 0.013590455986559391, -0.024895790964365005, 0.07176081836223602, 0.0012183553772047162, 0.03792499005794525, -0.023111794143915176, 0.01882218010723591, 0.010603763163089752, 0.029566258192062378, 0.008824776858091354, 0.010904436931014061, 0.01179643627256155, 0.0999038890004158, 0.04666457697749138, -0.051916345953941345, -0.044900622218847275, 0.05480281263589859, 0.011736300773918629, 0.03429685905575752, -0.06554689258337021, 0.023773277178406715, 0.002025789814069867, 0.0036957822740077972, -0.022069457918405533, -0.01448245532810688, 0.024214264005422592, 0.0007416620501317084, 0.00601347628980875, 0.0047205789014697075, -0.043577659875154495, -0.013189557939767838, -0.037123192101716995, 0.03792499005794525, -0.02481561154127121, 0.05412128567695618, 0.030227741226553917, -0.025457048788666725, 0.021768784150481224, 0.04010988771915436, -0.011786413379013538, 0.022951435297727585, -0.02589803747832775, 0.004758162889629602, 0.02946603298187256, 0.03780472278594971, 0.0147931519895792, -0.007176081649959087, 0.06927524507045746, 0.02154828980565071, 0.029746662825345993, 0.012989108450710773, -0.02692032977938652, 0.002798772184178233, -0.054642453789711, -0.009020214900374413, 0.03291375935077667, -0.013720748014748096, 0.031189896166324615, -0.00954138208180666, -0.060255032032728195, 0.0026584577281028032, 0.02702055312693119, 0.045662328600883484, 0.0017952732741832733, 0.04389837756752968, -0.015394499525427818, 0.009491270408034325, -0.06891443580389023, 0.024214264005422592, 0.04714565351605415, -0.02247035689651966, 0.0040064784698188305, -0.03315429762005806, -0.022550536319613457, -0.01453256793320179, 0.04947086423635483, -0.049871765077114105, 0.041933976113796234, -0.01775979995727539, -0.04029029235243797, 0.019213056191802025, -0.024234309792518616, 0.020235348492860794, 0.01289890706539154, 0.04502089321613312, 0.030027290806174278, 0.024795567616820335, -0.014171759597957134, 0.020185235887765884, -0.007075856905430555, 0.012217379175126553, 0.016005869954824448, -0.011706233955919743, -0.029305674135684967, -0.024775521829724312, -0.042495232075452805, -0.024835657328367233, 0.06113700941205025, 0.0026885250117629766, -0.04161325469613075, 0.03986934944987297, -0.021007077768445015, -0.022249862551689148, 0.02675996907055378, 0.036000676453113556, 0.008514080196619034, -0.007130980491638184, -0.0050964211113750935, -0.0583307184278965, 0.03373560309410095, -0.08795711398124695, -0.031250033527612686, -0.0010886897798627615, -0.014001376926898956, -0.028062889352440834, 0.023091748356819153, 0.0657874271273613, 0.03367546573281288, 0.03141039237380028, -0.001928070792928338, 0.03852633759379387, 0.009917224757373333, -0.05347985029220581, 0.04141280800104141, 0.00012105252972105518, 0.046183496713638306, -0.07721303403377533, -0.021508200094103813, 0.027401406317949295, -0.033655423671007156, 0.0013630546163767576, -0.06534644216299057, 0.049310505390167236, 0.04790735989809036, 0.019563842564821243, 0.0120269525796175, 0.0305484589189291, -0.0035329172387719154, -0.02619871124625206, -0.006584756541997194, -0.08070085197687149, -0.04039051756262779, -0.006469498388469219, 0.016055982559919357, -0.013159490190446377, 0.04794745147228241, 0.010483494028449059, -0.02184896357357502, 0.02702055312693119, -0.024134084582328796, 0.026238800957798958, -0.003785984357818961, -0.018461372703313828, 0.006334194913506508, 0.010012437589466572, 0.03551959991455078, 0.012788659892976284, 0.028684282675385475, -0.007877654395997524, -0.09389040619134903, -0.005056331399828196, 0.006314150057733059, -0.011606009677052498, -0.03367546573281288, -0.016025913879275322, -0.05011230334639549, -0.022129593417048454, -0.006269048899412155, 0.00030756424530409276, 0.008614304475486279, -0.038867101073265076, 0.0038411079440265894, 0.010794189758598804, 0.012067042291164398, 0.007667182479053736, -0.03167097643017769, -0.018391214311122894, 0.042495232075452805, -0.0031846368219703436, 0.0072362166829407215, 0.06542662531137466, -0.08070085197687149, -0.02880455181002617, -0.07135991752147675, -0.026539474725723267, -0.06871399283409119, 0.024294443428516388, -0.03878692165017128, -0.07328423112630844, 0.011866592802107334, -0.01289890706539154, 0.023612916469573975, -0.015464656986296177, -0.031751155853271484, 0.018922405317425728, -0.00997735932469368, -0.03786485642194748, -0.022891299799084663, 0.031049583107233047, 0.011074818670749664, -0.015735263004899025, -0.011786413379013538, -0.021428020671010017, -0.012427850626409054, -0.00849904678761959, -0.05315912887454033, 0.04141280800104141, -0.01601589098572731, -0.004522635135799646, -0.022490400820970535, 0.019283214583992958, 0.06707030534744263, -0.0185215063393116, 0.002723603742197156, -0.024595117196440697, -0.04738619178533554, 0.0005496693192981184, 0.03551959991455078, 0.004843354225158691, 0.016246408224105835, -0.042094334959983826, -0.028784506022930145, -0.003710815915837884, -0.014652837067842484, 0.013570411130785942, -0.0346977598965168, 0.03832588717341423, -0.028463788330554962, 0.06145772710442543, 0.021468110382556915, 0.06534644216299057, -0.06326176971197128, -0.011956795118749142, -0.015033691190183163, -0.005813027266412973, -0.02046586386859417, -0.010663897730410099, -0.010683942586183548, -0.018180742859840393, -0.007782440632581711, 0.04461999237537384, -0.01476308424025774, 0.01174632366746664, -0.008564192801713943, 0.011365470476448536, 0.015795398503541946, 0.00548729719594121, 0.040089841932058334, 0.07452701777219772, 0.03529910743236542, 0.03325452283024788, 0.033595286309719086, 0.008584237657487392, 0.017218587920069695, -0.018080519512295723, -0.017870046198368073, -0.015384476631879807, -0.02052599936723709, 0.02435457892715931, 0.0014444871339946985, -0.006865385454148054, 0.0008331170538440347, -0.02978675253689289, -0.016206318512558937, 0.0813823789358139, 0.05776946246623993, 0.07765402644872665, -0.037844810634851456, -0.027561767026782036, -0.02696041949093342, 0.028744416311383247, 0.07865627110004425, 0.000863184395711869, 0.010804212652146816, -0.01878209039568901, 0.01872195675969124, -0.013841018080711365, -0.028002753853797913, 0.0010110157309100032, 0.014071534387767315, -0.004257040098309517, 0.014722994528710842, 0.03255295008420944, 0.018601685762405396, -0.014803173951804638, 0.009636595845222473, 0.005702780093997717, -0.03135025501251221, -0.07929770648479462, 0.02840365283191204, 0.07945806533098221, -0.0090101920068264, -0.01996474154293537, 0.03800516948103905, -0.10599754005670547, -0.03650180250406265, 0.04281594976782799, 0.03391600772738457, 0.004059096332639456, -0.01335993967950344, 0.013119400478899479, -0.0378849022090435, -0.03325452283024788, 0.040651097893714905, 0.09196610003709793, -0.020686358213424683, 0.04578259959816933, -0.005492308177053928, -0.04554206132888794, -0.006484531797468662, 0.009531360119581223, 0.02251044660806656, -0.014211849309504032, -0.04630376771092415, 0.0029541202820837498, 0.01663728430867195, -0.04650421813130379, -0.003903748467564583, -0.04594295844435692, 0.012006907723844051, 0.006429408211261034, -0.05568479001522064, -0.013530321419239044, -0.0268601942807436, -0.01693795807659626, -0.014081557281315327, -0.004016500897705555, 0.010283044539391994, 0.0007541901431977749, 0.042294781655073166, 0.01555485837161541, 0.002311429940164089, 0.0005960232228972018, 0.00205209874548018, 0.035900454968214035, 0.006203902885317802, 0.022089503705501556, -0.05873161926865578, 0.011124931275844574, -0.023452557623386383, -0.0029015024192631245, -0.0527181439101696, 0.02517642080783844, 0.011896660551428795, -0.03120994195342064, 0.04429927468299866, -0.022831164300441742, -0.018140653148293495, 0.0077473619021475315, 0.00806306954473257, -0.04498080164194107, -0.0014971049968153238, 0.017419036477804184, 0.021608425304293633, -0.03529910743236542, 0.007496800273656845, 0.0300874263048172, -0.03812544047832489, -0.013329872861504555, -0.014021421782672405, 0.05660685524344444, 0.04939068481326103, -0.01980438269674778, 0.028944866731762886, 0.000396513583837077, -0.06402347981929779, 0.06282078474760056, -0.021167436614632607, -0.013820973224937916, -0.05131499841809273, 0.031490571796894073, 0.03764436021447182, 0.005301881581544876, -0.012728524394333363, 0.0005252395640127361, 0.037544138729572296, 0.04474026337265968, -0.07240225374698639, 0.02072644792497158, 0.0508740097284317, -0.023612916469573975, -0.037183329463005066, 0.013019176200032234, 0.00519163440912962, -0.07661169022321701, 0.044339366257190704, -0.014692926779389381, 0.022169683128595352, 0.024795567616820335, -0.013470186851918697, -0.02820320427417755, 0.022951435297727585, 0.012287536635994911, -0.004622859880328178, -0.007571968715637922, -0.029105225577950478, 0.024895790964365005, 0.02333228848874569, -0.007316396106034517, -0.028062889352440834, -0.022911345586180687, -0.023653006181120872, -0.027200957760214806, 0.009095382876694202, 0.04758664220571518, 0.07264279574155807, -0.011405560187995434, 0.040089841932058334, -0.014522545039653778, -0.016647307202219963, -0.05809018015861511, 0.011495762504637241, 0.012668389827013016, -0.018240878358483315, -0.013339894823729992, 0.02702055312693119, 0.05388074740767479, 0.01473301649093628, -0.020906852558255196, 0.033595286309719086, -0.017108339816331863, -0.0351187027990818, 0.015534813515841961, -0.01560497097671032, 0.00285890675149858, 0.0564865879714489, -0.03690269961953163, 0.007421631831675768, 0.011365470476448536, -0.013089333660900593, 0.01025798823684454, 0.00348029937595129, -0.005276825278997421, 0.05203661322593689, 0.0263991616666317, 0.015224117785692215, -0.05291859060525894, -0.027541721239686012, -0.04014997556805611, 0.020505953580141068, 0.04002970829606056, 0.04574250802397728, -0.02339242212474346, 0.01719854213297367, 0.03355519846081734, -0.013600478880107403, 0.02625884674489498, 0.06779192388057709, 0.07432656735181808, 0.0005318167968653142, 0.07248243689537048, 0.030027290806174278, -0.0026334014255553484, 0.0018178237369284034, 0.03351510688662529, -0.03263312950730324, 0.011134953238070011, 0.06185862794518471, 0.043016400188207626, 0.04129253700375557, -0.06514599174261093, 0.011776391416788101 ]
20,472
metevolsim.metevolsim
flux_drop_analysis
Run a flux-drop analysis. Each flux is independently dropped by a factor "drop_coefficient" and the relative MOMA distance from wild-type target fluxes is computed. The result is saved in a file "filename", one flux per line. Parameters ---------- drop_coefficient: float Value of the drop coefficient (> 0.0). filename: str Name of the output (txt file). overwrite: bool Indicates if new data should overwrite or be appended to the file. Returns ------- None
def flux_drop_analysis( self, drop_coefficient, filename, overwrite ): """ Run a flux-drop analysis. Each flux is independently dropped by a factor "drop_coefficient" and the relative MOMA distance from wild-type target fluxes is computed. The result is saved in a file "filename", one flux per line. Parameters ---------- drop_coefficient: float Value of the drop coefficient (> 0.0). filename: str Name of the output (txt file). overwrite: bool Indicates if new data should overwrite or be appended to the file. Returns ------- None """ assert drop_coefficient > 0.0 assert filename != "" #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Initialize model states # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.compute_wild_type_steady_state() self.compute_mutant_steady_state() self.compute_moma_distance() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Open the output file depending on # # overwrite parameter # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# if overwrite or not os.path.isfile(filename): f = open(filename, "w") f.write("drop_value reaction dist\n") else: f = open(filename, 'a') #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Run the flux drop analysis # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for reaction in self.mutant_model.getListOfReactions(): reaction_id = reaction.getId() #if not reaction_id in fluxes_to_ignore: form_str_default = reaction.getKineticLaw().getFormula() form_str_edited = str(drop_coefficient)+" * "+form_str_default math_exp_default = libsbml.parseL3Formula(form_str_default) math_exp_edited = libsbml.parseL3Formula(form_str_edited) reaction.getKineticLaw().setMath(math_exp_edited) success = self.compute_mutant_steady_state() if success: self.compute_moma_distance() f.write(str(drop_coefficient)+" "+reaction_id+" "+str(self.relative_moma_distance)+"\n") f.flush() else: print(" >>> Failed to find steady-state for "+reaction_id) f.write(str(drop_coefficient)+" "+reaction_id+" NA\n") f.flush() reaction.getKineticLaw().setMath(math_exp_default) for species_id in self.species: self.species[species_id]["initial_value"] = self.species[species_id]["wild_type_value"] self.species[species_id]["mutant_value"] = self.species[species_id]["wild_type_value"] for parameter_metaid in self.parameters: self.set_mutant_parameter_value(parameter_metaid, self.get_wild_type_parameter_value(parameter_metaid)) for reaction_id in self.reactions: self.reactions[reaction_id]["mutant_value"] = self.reactions[reaction_id]["wild_type_value"] f.close()
(self, drop_coefficient, filename, overwrite)
[ 0.04071422666311264, 0.02261023223400116, 0.00539562338963151, 0.07798948884010315, 0.028776658698916435, -0.04296734556555748, -0.12554211914539337, -0.017273901030421257, 0.0051485709846019745, -0.01580146886408329, -0.049173299223184586, 0.019685132429003716, -0.016651328653097153, 0.0403980016708374, -0.0260294359177351, 0.0454576350748539, 0.002700282260775566, 0.054825857281684875, 0.01019832119345665, 0.020021123811602592, -0.010919714346528053, -0.014635381288826466, -0.060359831899404526, 0.06632861495018005, 0.027887269854545593, -0.01019832119345665, -0.019863009452819824, 0.018311521038413048, -0.034290868788957596, -0.017768004909157753, 0.01527771819382906, -0.03937026485800743, 0.01179922092705965, -0.0013970810687169433, -0.02614802122116089, -0.033401478081941605, 0.04442989453673363, 0.02719552256166935, -0.06474748253822327, 0.005178217310458422, 0.020574519410729408, -0.01931949518620968, 0.09455187618732452, 0.017481423914432526, -0.06668437272310257, -0.023242685943841934, -0.06308729201555252, 0.07842429727315903, -0.02589108608663082, 0.01357799768447876, -0.011977097950875759, 0.007199105806648731, 0.000999944400973618, 0.049173299223184586, 0.006052782759070396, 0.01680944301187992, 0.03415251895785332, 0.042216308414936066, 0.09360319375991821, -0.04656442999839783, 0.04609008878469467, 0.06435219943523407, 0.049252357333898544, -0.04529951885342598, 0.021958013996481895, 0.009383048862218857, -0.04186055064201355, 0.023124100640416145, -0.0031894459389150143, 0.05862058326601982, 0.012036390602588654, -0.02844066731631756, 0.0650637075304985, 0.039014507085084915, 0.031286709010601044, -0.03031826578080654, 0.022294005379080772, -0.06134803965687752, 0.0015675472095608711, -0.03316430747509003, 0.007999555207788944, -0.0034439098089933395, 0.027986090630292892, 0.021977778524160385, -0.00426659407094121, -0.015060312114655972, 0.06751447170972824, 0.01784706301987171, 0.02719552256166935, -0.029745103791356087, -0.03164246678352356, 0.026325898244976997, 0.0005496914964169264, 0.019645603373646736, -0.00849860068410635, 0.013103657402098179, -0.028895244002342224, -0.06870032101869583, 0.009383048862218857, -0.02498193457722664, -0.02717575989663601, 0.07577589899301529, 0.00533139007166028, 0.02132556028664112, -0.00022574409376829863, 0.007421453017741442, -0.0259306151419878, 0.0066061802208423615, 0.008819769136607647, -0.04186055064201355, -0.10886114835739136, 0.03322359919548035, -0.003179563907906413, -0.016216516494750977, -0.041267625987529755, -0.044746123254299164, -0.009887035004794598, 0.04419272392988205, -0.018588218837976456, -0.004249300342053175, 0.04751310870051384, -0.03490355610847473, -0.056960392743349075, 0.02946840599179268, 0.038797102868556976, 0.06012266129255295, 0.05660463497042656, 0.006887819617986679, 0.061506155878305435, -0.01352858729660511, -0.04257206246256828, -0.013370473869144917, 0.0118486313149333, 0.017698829993605614, 0.02695835381746292, -0.009219993837177753, 0.005682204384356737, -0.06316635012626648, 0.03927144408226013, 0.019566547125577927, 0.047908391803503036, -0.01525795366615057, 0.030812369659543037, -0.0146650280803442, -0.035773180425167084, 0.04269064590334892, -0.028559252619743347, -0.047038767486810684, -0.01072207186371088, -0.009941386990249157, -0.026464248076081276, 0.021878955885767937, -0.06921418756246567, -0.007208987604826689, 0.013103657402098179, 0.024586649611592293, -0.006596297957003117, 0.007036051247268915, 0.0004888548282906413, 0.01069242600351572, -0.03978531062602997, -0.03348053619265556, 0.03270973265171051, 0.01533700991421938, -0.019467726349830627, -0.030812369659543037, -0.012154975906014442, 0.038856394588947296, -0.0224323533475399, 0.03703808784484863, -0.00760427163913846, 0.010623251087963581, -0.060517944395542145, 0.013459412381052971, -0.03518025577068329, 0.04367885738611221, -0.017283782362937927, -0.04601103067398071, -0.00588972819969058, 0.01352858729660511, -0.02934982068836689, -0.03569412603974342, -0.03514072671532631, 0.022214947268366814, -0.01128535158932209, -0.015346892178058624, 0.006591356825083494, -0.025080755352973938, 0.04415319859981537, 0.04213725030422211, 0.06842362135648727, -0.03164246678352356, 0.006477712653577328, 0.02925099991261959, 0.04047705978155136, -0.0159793458878994, 0.07281126827001572, -0.021206974983215332, 0.041425738483667374, -0.05387717857956886, -0.007416511885821819, -0.002717575989663601, 0.023282214999198914, -0.02804538421332836, -0.01910208910703659, -0.003765078028663993, 0.013795403763651848, 0.02502146176993847, -0.07573637366294861, 0.02268928848206997, -0.003782371524721384, -0.0016120165819302201, 0.06941182911396027, 0.014210451394319534, 0.06826550513505936, -0.09415659308433533, 0.0383622907102108, 0.01474408432841301, 0.02474476397037506, 0.018410341814160347, -0.0409909263253212, -0.02249164693057537, -0.08577657490968704, 0.07194164395332336, 0.00736710149794817, 0.06866078823804855, 0.012560142204165459, 0.05391670763492584, 0.03830299898982048, 0.004691524431109428, 0.00042709175613708794, 0.023539148271083832, 0.015228306874632835, -0.04134668409824371, 0.01592993550002575, -0.0005660587339662015, -0.012194504030048847, 0.01066278014332056, -0.025436511263251305, -0.013449530117213726, -0.05838341265916824, -0.0695304125547409, 0.06095275655388832, 0.010376199148595333, 0.007317690644413233, -0.01818305253982544, 0.0633244588971138, 0.030298501253128052, -0.06454984098672867, 0.0035229665227234364, 0.03982483968138695, 0.03986436873674393, -0.007544978987425566, 0.06771211326122284, 0.036662571132183075, -0.06534040719270706, -0.0034883792977780104, -0.013439647853374481, 0.03069378435611725, -0.053798120468854904, 0.03737407922744751, -0.04284876212477684, 0.03130647540092468, 0.008024260401725769, -0.06387785822153091, -0.006136780604720116, -0.008513424545526505, -0.004639643244445324, 0.0012642904184758663, -0.0036588453222066164, 0.03814488276839256, 0.05960879102349281, -0.05312613770365715, -0.017214607447385788, -0.0652613490819931, -0.013894224539399147, 0.05051726475358009, -0.005642675794661045, -0.035733651369810104, 0.04320451617240906, -0.025298161432147026, -0.005242451094090939, 0.03365841135382652, 0.05450963228940964, -0.049173299223184586, 0.00380213581956923, -0.012876369059085846, -0.03731478750705719, 0.012105565518140793, -0.0033549710642546415, -0.018558572977781296, 0.014427857473492622, 0.04948952794075012, 0.0051880995742976665, 0.06356163322925568, -0.02723505161702633, -0.020574519410729408, -0.04367885738611221, 0.013311181217432022, -0.03174128755927086, -0.02138485200703144, -0.03263067454099655, 0.06771211326122284, -0.01931949518620968, -0.04478565230965614, -0.010751718655228615, 0.04166290909051895, -0.015455595217645168, 0.03771007061004639, 0.011611460708081722, 0.02934982068836689, 0.0032265037298202515, 0.028974300250411034, 0.034251339733600616, 0.06012266129255295, 0.012332853861153126, 0.005286920350044966, 0.0036242580972611904, 0.05277038365602493, 0.06704013049602509, 0.005785966292023659, -0.020110061392188072, 0.026918824762105942, 0.034350160509347916, 0.0063937148079276085, -0.08055882900953293, 0.007950144819915295, 0.011156884022057056, 0.008389897644519806, -0.03850064054131508, -0.07431335002183914, 0.0019121852237731218, 0.013074010610580444, -0.016453687101602554, 0.00952139776200056, -0.04403461143374443, -0.005548796150833368, -0.05739520490169525, 0.09842565655708313, -0.00765368202701211, 0.02701764553785324, 0.029132414609193802, -0.01907244138419628, 0.0201990008354187, 0.01827199198305607, 0.02381584793329239, 0.03065425716340542, -0.03492332249879837, -0.00028549987473525107, 0.05296802520751953, 0.051386889070272446, 0.07506439089775085, -0.0493314154446125, 0.06870032101869583, 0.02387513965368271, 0.005731614772230387, -0.027590807527303696, -0.005267156288027763, -0.013587879948318005, -0.011660871095955372, -0.03950861468911171, -0.01784706301987171, -0.018943974748253822, 0.018756214529275894, 0.028717365115880966, -0.07656646519899368, -0.038915686309337616, 0.00001417655948898755, -0.005007751286029816, -0.03251209110021591, -0.019428197294473648, -0.042216308414936066, -0.0074609811417758465, -0.02934982068836689, 0.011977097950875759, 0.03575341776013374, -0.004619879182428122, -0.015554415993392467, 0.01084065716713667, 0.016285691410303116, -0.014605735428631306, 0.0084491902962327, -0.08965036273002625, 0.00853318814188242, 0.058264829218387604, -0.02494240552186966, 0.009852447547018528, -0.004577880259603262, -0.000830095901619643, 0.006477712653577328, 0.10206227004528046, -0.0258317943662405, 0.044706594198942184, -0.016137460246682167, -0.0017503659473732114, 0.02921147085726261, 0.01595958136022091, 0.04941046983003616, -0.04276970401406288, 0.019823480397462845, -0.014526678249239922, -0.03537789732217789, -0.06755399703979492, 0.049252357333898544, -0.018439987674355507, -0.024250660091638565, -0.024527357891201973, 0.032215628772974014, -0.010386081412434578, 0.040595643222332, 0.011344644241034985, 0.02476452849805355, 0.019813599064946175, -0.013676818460226059, -0.020791925489902496, 0.018973620608448982, -0.04715735465288162, -0.04715735465288162, 0.011295233853161335, 0.015643354505300522, 0.027630334720015526, 0.01525795366615057, 0.06897702068090439, 0.02814420498907566, -0.00029260263545438647, -0.00538080045953393, -0.009417635388672352, 0.044588010758161545, -0.08269336819648743, 0.07874052971601486, -0.03608940914273262, -0.008809886872768402, -0.04941046983003616, -0.024211131036281586, 0.011137120425701141, -0.018874799832701683, -0.04193960875272751, -0.05114971846342087, 0.010336671024560928, 0.011413819156587124, 0.03132623806595802, 0.03650445491075516, 0.04158385097980499, -0.04644584283232689, -0.02954746223986149, -0.003819429548457265, -0.021641787141561508, -0.0063393632881343365, -0.0030560377053916454, 0.02919170632958412, -0.012846722267568111, 0.041149038821458817, 0.038994744420051575, -0.006097252015024424, 0.004938576836138964, 0.011967215687036514, -0.039212148636579514, -0.03887615725398064, -0.0012235267786309123, -0.01938866823911667, -0.00787602923810482, -0.001360023277811706, -0.00965974759310484, 0.036623042076826096, 0.021740607917308807, 0.02385537512600422, -0.0045111761428415775, -0.014358682557940483, -0.045734331011772156, -0.007263339124619961, -0.03053567185997963, -0.05004292353987694, 0.002367996843531728, -0.023993724957108498, -0.008879061788320541, -0.022373061627149582, -0.052572742104530334, -0.014032573439180851, 0.034626856446266174, -0.04636678472161293, 0.0024952287785708904, -0.0658542737364769, -0.07024192810058594, 0.024507593363523483, -0.013854696415364742, 0.004726111423224211, 0.04498329386115074, -0.056130293756723404, 0.04537857696413994, -0.09123149514198303, -0.045852918177843094, -0.06202002242207527, 0.026899060234427452, -0.013410001993179321, -0.0318598710000515, 0.01525795366615057, -0.03927144408226013, -0.024369243532419205, 0.009378107264637947, -0.058225300163030624, 0.013884342275559902, 0.016216516494750977, -0.08632997423410416, -0.001091353828087449, -0.0018565984209999442, 0.03514072671532631, -0.06419408321380615, -0.06482654064893723, -0.03298643231391907, -0.05352142080664635, -0.048026978969573975, -0.06534040719270706, 0.02381584793329239, 0.041069984436035156, -0.009679511189460754, -0.01593981869518757, -0.00965974759310484, 0.0475921668112278, 0.00588972819969058, 0.02134532295167446, -0.04182102158665657, -0.04628773033618927, -0.053481895476579666, 0.003204269101843238, -0.007920498959720135, -0.0079896729439497, -0.012579905800521374, -0.009817861020565033, 0.023539148271083832, -0.025574859231710434, -0.009832683950662613, -0.018647512421011925, 0.032156333327293396, 0.017560482025146484, 0.035634830594062805, -0.03743337467312813, 0.04826414957642555, -0.08783205598592758, -0.05640699341893196, -0.022965986281633377, 0.003984954673796892, -0.004454353824257851, 0.01809411495923996, -0.054825857281684875, -0.005400564521551132, -0.011759691871702671, -0.01021808572113514, -0.017728477716445923, 0.02255093865096569, 0.00366625702008605, 0.0012229091953486204, 0.028717365115880966, 0.007633917964994907, 0.005504326429218054, 0.11415795236825943, -0.02264975942671299, 0.025199340656399727, 0.04174196720123291, 0.029567226767539978, 0.0041776555590331554, -0.03998295217752457, -0.04182102158665657, 0.025278396904468536, -0.03154364600777626, 0.003033802844583988, 0.028480196371674538, 0.008266371674835682, -0.005197981372475624, -0.03956790640950203, -0.03069378435611725, 0.02255093865096569, 0.053560949862003326, 0.04980575665831566, 0.027907034382224083, -0.057118505239486694, -0.008908707648515701, 0.047038767486810684, -0.04296734556555748, -0.021266266703605652, -0.00953622069209814, 0.03476520627737045, -0.008943295106291771, -0.008424485102295876, -0.03037755750119686, 0.023420562967658043, 0.04850132018327713, 0.0022259417455643415, 0.03152387961745262, 0.02840113826096058, 0.026246841996908188, -0.00853318814188242, 0.0028040441684424877, -0.010415727272629738, -0.06190143898129463, -0.05688133463263512, 0.03695903345942497, 0.03053567185997963, -0.010771483182907104, 0.020712869241833687, 0.07534108310937881, -0.06711918115615845, -0.0336979404091835, -0.0031276827212423086, 0.006719823926687241, -0.034290868788957596, -0.008720948360860348, 0.02247188240289688, -0.007549920119345188, -0.005553736817091703, 0.007880969904363155, -0.022373061627149582, 0.005321507807821035, 0.0169972013682127, -0.03251209110021591, -0.020989568904042244, -0.03956790640950203, 0.04537857696413994, -0.014309272170066833, 0.03739384561777115, 0.021068625152111053, -0.023163629695773125, -0.031227417290210724, -0.047908391803503036, -0.0012908485950902104, -0.019527018070220947, -0.019932184368371964, -0.010376199148595333, -0.03877733647823334, -0.022175420075654984, -0.0381646491587162, -0.031029775738716125, -0.032156333327293396, 0.01692802831530571, -0.022373061627149582, 0.0044172960333526134, 0.06273153424263, 0.013074010610580444, 0.014961490407586098, -0.04960811138153076, 0.01800517551600933, 0.04632725939154625, -0.000765244651120156, 0.005435151979327202, -0.01688849925994873, -0.043560270220041275, 0.01420056913048029, -0.002638519275933504, -0.0001501615042798221, 0.03937026485800743, 0.031108831986784935, -0.059253036975860596, 0.029982274398207664, -0.02385537512600422, 0.006971817463636398, 0.027571042999625206, -0.03644516319036484, 0.013973281718790531, -0.010771483182907104, 0.020772162824869156, -0.010939477942883968, -0.018756214529275894, 0.002781809540465474, 0.024408772587776184, -0.022906694561243057, 0.03504190593957901, -0.07854288816452026, 0.025140047073364258, 0.012560142204165459, 0.011048180982470512, 0.03589176759123802, -0.000012806190170522314, -0.03069378435611725, -0.010030325502157211, 0.02492264099419117, -0.02278810925781727, -0.015149250626564026, 0.06111087277531624, 0.042216308414936066, 0.0433230996131897, 0.025476038455963135, -0.00953622069209814, 0.09146866202354431, 0.016384512186050415, -0.06822597980499268, 0.07502485811710358, 0.048185091465711594, -0.046762071549892426, 0.031029775738716125, -0.013271652162075043, 0.0008202138124033809, -0.0629291757941246, 0.003285796381533146, -0.024250660091638565, -0.005277038551867008, 0.00238034944050014, -0.010919714346528053, -0.008908707648515701, -0.002670635934919119, -0.009279286488890648, -0.02027805708348751, 0.04537857696413994, 0.02506099082529545, 0.025080755352973938, 0.04743405431509018, -0.017520952969789505, -0.01702684909105301, -0.06190143898129463, -0.007752502802759409, -0.049094244837760925, -0.004036835394799709, 0.034626856446266174, 0.06937230378389359, 0.015267835929989815, 0.04751310870051384, -0.011522522196173668, -0.0021345324348658323, -0.05004292353987694, 0.02355891279876232, -0.00702616898342967, -0.02480405569076538, -0.02278810925781727, 0.015267835929989815, 0.041425738483667374, 0.028618544340133667, -0.03237374126911163, -0.035516247153282166, -0.04727593809366226, -0.058225300163030624, 0.012332853861153126, -0.00965480599552393, 0.006087370216846466, 0.03531860560178757, -0.0204954631626606, 0.009699275717139244, 0.0258317943662405, -0.03982483968138695, 0.0071249897591769695, 0.02713623084127903, 0.014417975209653378, 0.03474544361233711, -0.0014749026158824563, -0.05684180557727814, -0.04763169586658478, -0.012560142204165459, -0.029982274398207664, 0.056960392743349075, 0.039212148636579514, 0.05616982281208038, -0.03739384561777115, 0.007930380292236805, 0.09534244239330292, -0.04727593809366226, 0.021859193220734596, 0.05197981745004654, 0.05644652247428894, 0.02482382021844387, 0.05960879102349281, -0.04964764043688774, -0.004422237165272236, -0.04415319859981537, 0.047829337418079376, -0.05431199073791504, 0.054786331951618195, 0.04201866313815117, 0.04095139726996422, 0.05043821036815643, -0.0501219816505909, -0.006457948591560125 ]
20,473
metevolsim.metevolsim
get_mutant_parameter_value
Get the mutant value of the parameter 'param_metaid' Parameters ---------- param_metaid: str The meta identifier of the parameter (as defined in the SBML model). Returns ------- float
def get_mutant_parameter_value( self, param_metaid ): """ Get the mutant value of the parameter 'param_metaid' Parameters ---------- param_metaid: str The meta identifier of the parameter (as defined in the SBML model). Returns ------- float """ assert param_metaid in list(self.parameters) assert self.parameters[param_metaid]["mutant_value"] == self.mutant_model.getElementByMetaId(param_metaid).getValue() return self.parameters[param_metaid]["mutant_value"]
(self, param_metaid)
[ 0.08673713356256485, 0.007184128277003765, 0.08497847616672516, 0.04481067135930061, 0.03448733314871788, -0.00011149633064633235, -0.004700020421296358, -0.02905307151377201, 0.0004523055104073137, 0.03805741295218468, -0.044775497168302536, 0.027118545025587082, -0.0057420264929533005, 0.03578874096274376, 0.00415043905377388, 0.04952387884259224, 0.020998407155275345, 0.018905600532889366, 0.0575082004070282, 0.051317714154720306, 0.022968105971813202, 0.014966201037168503, -0.01741073839366436, 0.04051953926682472, -0.005829959642142057, -0.07660724967718124, 0.08828476071357727, -0.03879605233669281, 0.014596882276237011, 0.009030722081661224, -0.03545459732413292, -0.014060490764677525, 0.013726345263421535, 0.022088775411248207, -0.041434042155742645, -0.03142726421356201, -0.01982010342180729, 0.01818455010652542, -0.12648285925388336, -0.016716068610548973, -0.020857714116573334, 0.010894902050495148, 0.040343672037124634, 0.0094264205545187, -0.02970377542078495, -0.022950520738959312, -0.005768406670540571, 0.0693967416882515, -0.05297085642814636, 0.014790334738790989, 0.038233280181884766, 0.03262315317988396, -0.014561709016561508, 0.01931009255349636, -0.008665800094604492, 0.023865023627877235, 0.01045523677021265, -0.0034975360613316298, 0.055186767131090164, 0.036791179329156876, 0.051810137927532196, 0.019696997478604317, -0.004029531031847, -0.059161338955163956, 0.015863118693232536, -0.020171836018562317, 0.01791195757687092, 0.0559254065155983, -0.04554930701851845, 0.036826349794864655, -0.06837671995162964, -0.026749227195978165, -0.023091211915016174, 0.008547089993953705, 0.07906937599182129, -0.0396050363779068, 0.01774488389492035, -0.02727682515978813, 0.0023148369509726763, 0.023900195956230164, 0.016716068610548973, 0.013673585839569569, 0.044634804129600525, -0.04442376643419266, -0.06464836001396179, 0.024480555206537247, -0.022229468449950218, -0.022475682199001312, 0.01460567582398653, 0.0027105354238301516, -0.01567845791578293, -0.012548042461276054, 0.0020125671289861202, 0.05754337087273598, 0.0018586843507364392, 0.004328503273427486, 0.0009540733299218118, 0.0028556250035762787, -0.044318243861198425, 0.013049260713160038, -0.019749756902456284, 0.03371352329850197, 0.03337937593460083, -0.033484894782304764, 0.08371224254369736, -0.04488101601600647, -0.020470809191465378, -0.010815761983394623, 0.05986480414867401, -0.01365599874407053, -0.037600163370370865, 0.030530346557497978, -0.0817425400018692, 0.013075641356408596, -0.031884513795375824, 0.0357183963060379, -0.04217267781496048, -0.009866085834801197, -0.020365288481116295, 0.02812098152935505, 0.026239214465022087, 0.033449724316596985, 0.0061553120613098145, 0.010859728790819645, -0.0193276796489954, 0.031374502927064896, 0.026450254023075104, -0.012143551371991634, 0.022598788142204285, 0.02747027762234211, -0.014561709016561508, -0.010200231336057186, 0.017481084913015366, -0.0069950721226632595, -0.03492699936032295, 0.0002967739710584283, 0.024357447400689125, 0.007711726240813732, 0.04790591448545456, 0.03417077288031578, 0.02062908746302128, 0.07836591452360153, -0.0018388994503766298, -0.06264349073171616, 0.018413174897432327, 0.0048231263644993305, 0.00402733264490962, 0.05490538105368614, -0.048609375953674316, -0.043509259819984436, -0.013911005109548569, 0.010763002559542656, 0.02189532294869423, -0.02650301344692707, -0.01579277217388153, 0.01741073839366436, 0.07576309889554977, -0.012117170728743076, 0.023407772183418274, -0.029633430764079094, -0.003156795632094145, -0.04470514878630638, 0.046885889023542404, 0.05589023232460022, 0.02251085452735424, 0.014051697216928005, 0.05219704285264015, 0.02824408747255802, -0.039675381034612656, 0.027734076604247093, -0.005601333919912577, -0.013207540847361088, -0.041574735194444656, -0.018870428204536438, 0.040167804807424545, 0.0077425031922757626, -0.00783043634146452, -0.00003003805977641605, 0.03971055522561073, 0.034592851996421814, -0.019696997478604317, -0.03640427440404892, 0.017331600189208984, -0.043192703276872635, 0.029967576265335083, 0.008041474968194962, 0.016962280496954918, 0.018166963011026382, 0.0028314434457570314, -0.011897338554263115, 0.03893674537539482, -0.03395973518490791, -0.008995548821985722, 0.00010387088696006685, -0.04741348698735237, 0.0383387990295887, 0.0437203012406826, -0.035050105303525925, 0.02525436505675316, 0.014438603073358536, 0.03172623738646507, -0.09735944867134094, -0.022317402064800262, 0.0174283254891634, -0.058668915182352066, -0.01708538644015789, 0.016804002225399017, 0.022581201046705246, -0.03047758713364601, -0.019292505457997322, 0.007724916562438011, -0.0027039404958486557, 0.04410720616579056, 0.016373129561543465, 0.01286460179835558, -0.09032480418682098, -0.0048143332824110985, -0.03452250733971596, 0.016417095437645912, 0.05321706831455231, 0.0590909942984581, -0.0879330262541771, 0.09961052983999252, 0.08525986224412918, 0.03156795725226402, -0.0011750051053240895, -0.02363639697432518, 0.002236796310171485, -0.07935076206922531, -0.01054316945374012, 0.059935152530670166, -0.0022488872054964304, 0.05311154946684837, 0.006616960279643536, -0.08125011622905731, -0.0028885998763144016, -0.0075050839222967625, -0.0110092144459486, -0.07512997835874557, 0.056769561022520065, -0.045443788170814514, -0.02381226420402527, 0.06433179974555969, 0.0879330262541771, -0.027716489508748055, 0.012750288471579552, 0.058844782412052155, 0.04727279394865036, -0.020189423114061356, 0.006559803616255522, 0.03271108493208885, 0.05539780482649803, -0.033924560993909836, 0.06429662555456161, 0.028349608182907104, 0.003365636570379138, 0.002901789965108037, 0.07323062419891357, 0.012275450862944126, 0.0017883379478007555, -0.03306281939148903, -0.0910986140370369, 0.01691831462085247, 0.03257039189338684, -0.0662311539053917, -0.014421015977859497, -0.016636928543448448, 0.06798981875181198, -0.036193232983350754, -0.02173704467713833, 0.07164783030748367, 0.014271530322730541, 0.0006655430770479143, -0.03798706829547882, -0.013612032867968082, -0.05543297901749611, 0.01357685960829258, 0.00527598150074482, -0.010200231336057186, -0.01711176708340645, -0.01366479229182005, -0.028033047914505005, 0.007403960917145014, 0.023865023627877235, -0.06682910025119781, 0.029264111071825027, 0.055468153208494186, 0.0007474307203665376, -0.007153351791203022, 0.03594702109694481, -0.07717002183198929, -0.05385018512606621, -0.07231611758470535, -0.011044387705624104, 0.010868522338569164, -0.013629619032144547, -0.04818729683756828, -0.01381427887827158, 0.03534907475113869, 0.0325528047978878, -0.011615952476859093, -0.01757781207561493, -0.08610402047634125, 0.0063707479275763035, -0.04234854504466057, 0.03135691583156586, 0.05360397323966026, -0.04618242383003235, 0.011149907484650612, -0.0045988974161446095, 0.01723487302660942, 0.02142048440873623, 0.00023549563775304705, 0.008327257819473743, 0.0024005717132240534, 0.03399490937590599, 0.004528550896793604, -0.026379907503724098, 0.07119058072566986, 0.05332258716225624, 0.04442376643419266, -0.024937806650996208, 0.07520032674074173, 0.02696026675403118, 0.02537747099995613, -0.04994595795869827, -0.05905582010746002, 0.010877314954996109, -0.011044387705624104, 0.02187773771584034, -0.0741451308131218, -0.010850935243070126, 0.019063880667090416, -0.014473776333034039, 0.04537343978881836, 0.0025544543750584126, -0.012196310795843601, -0.02887720614671707, 0.0681305080652237, -0.013708759099245071, 0.037916719913482666, -0.040976788848638535, 0.026309560984373093, 0.010560756549239159, 0.01997838355600834, 0.08244600892066956, 0.01126422081142664, 0.027188891544938087, 0.04920732229948044, 0.0021543591283261776, -0.01806144416332245, 0.038866396993398666, -0.042067158967256546, -0.016592962667346, -0.028525473549962044, 0.011607159860432148, 0.016689687967300415, -0.01284701470285654, -0.04153956100344658, 0.04537343978881836, 0.005122098606079817, -0.01802626997232437, 0.030934838578104973, 0.0031699854880571365, 0.0029545496217906475, -0.015907084569334984, -0.04934801533818245, -0.0026445856783539057, 0.05828201025724411, -0.013365820050239563, -0.011958891525864601, 0.012081997469067574, -0.01646106317639351, -0.014482569880783558, 0.0034008098300546408, 0.03805741295218468, -0.04871489480137825, 0.008542693220078945, 0.014552915468811989, -0.049594227224588394, -0.010340923443436623, -0.03781120106577873, -0.005803579930216074, 0.031990036368370056, 0.009584699757397175, 0.016716068610548973, 0.01726125366985798, -0.066371850669384, -0.07136644423007965, 0.018114203587174416, 0.00734240747988224, -0.0028842033352702856, 0.0010359609732404351, -0.06806015968322754, -0.004390056245028973, -0.02298569306731224, 0.05666404217481613, -0.04850385710597038, -0.0224932674318552, -0.02381226420402527, 0.009927638806402683, -0.04938318580389023, -0.0942642018198967, 0.006775239482522011, -0.014157216995954514, -0.07344166189432144, -0.018958359956741333, 0.026784399524331093, -0.06609046459197998, -0.023407772183418274, -0.018413174897432327, -0.00830087810754776, 0.01204682420939207, 0.014262736774981022, 0.022159121930599213, 0.008498727343976498, 0.004752779845148325, -0.055468153208494186, -0.0010760803706943989, 0.024832285940647125, 0.039182957261800766, -0.03526114299893379, -0.010622309520840645, -0.019063880667090416, -0.015194826759397984, -0.0050297691486775875, -0.018624214455485344, -0.0026182059664279222, -0.08385293185710907, 0.030917251482605934, -0.01493982132524252, -0.008094235323369503, 0.0017344789812341332, 0.0037239636294543743, 0.0074259438551962376, 0.018272483721375465, -0.048292819410562515, 0.037459470331668854, -0.0012783263809978962, 0.01244252361357212, 0.03526114299893379, 0.025430230423808098, -0.007887592539191246, 0.009364867582917213, -0.03636910021305084, -0.03148002177476883, -0.01770971156656742, 0.02873651310801506, -0.03788154944777489, -0.042067158967256546, 0.004796746652573347, 0.06387455016374588, 0.02426951564848423, -0.044142380356788635, 0.06577390432357788, -0.015036547556519508, -0.08350120484828949, -0.05571436509490013, 0.030758973211050034, -0.030618280172348022, -0.027505449950695038, 0.011176287196576595, -0.017991097643971443, 0.0008529503829777241, -0.04396651312708855, 0.0016069760313257575, 0.035085275769233704, -0.027100957930088043, -0.024339862167835236, 0.021473245695233345, 0.0013541686348617077, 0.0046076904982328415, 0.008547089993953705, -0.01182699203491211, -0.011774232611060143, 0.001712495693936944, -0.06654771417379379, -0.02523677796125412, -0.0091890012845397, 0.019450785592198372, -0.04709693044424057, -0.005047355778515339, 0.025658857077360153, 0.038092587143182755, -0.028138568624854088, -0.016698481515049934, -0.013638412579894066, -0.022317402064800262, -0.02025976963341236, -0.034592851996421814, -0.014552915468811989, 0.06197519600391388, 0.08033560961484909, 0.004783556796610355, -0.050543904304504395, 0.03545459732413292, 0.03130415827035904, -0.01413963083177805, 0.024814700707793236, 0.07913972437381744, -0.009593493305146694, 0.05064942315220833, 0.011396120302379131, -0.0364394448697567, 0.015907084569334984, -0.06151794642210007, -0.04051953926682472, -0.05824683606624603, -0.015265173278748989, 0.010173850692808628, 0.004554930608719587, -0.03812776133418083, -0.017366772517561913, 0.022915346547961235, 0.006748859770596027, -0.010516789741814137, 0.012257863767445087, 0.005416674539446831, 0.009013134986162186, -0.047202449291944504, 0.0051177022978663445, -0.032799020409584045, -0.028437539935112, -0.061060693114995956, 0.011958891525864601, 0.009382453747093678, -0.10340923815965652, -0.0434037409722805, -0.022123949602246284, 0.0023390185087919235, 0.0004061406652908772, -0.0077205197885632515, -0.04642863944172859, 0.024216756224632263, 0.007988715544342995, -0.03847949206829071, -0.019046293571591377, 0.007003865670412779, -0.04262993112206459, -0.0060761719942092896, -0.05589023232460022, -0.021156685426831245, 0.02604576200246811, 0.029123418033123016, 0.05159910023212433, -0.022088775411248207, -0.012899775058031082, 0.06756773591041565, 0.0031414073891937733, 0.006911535747349262, -0.01855386793613434, -0.030583105981349945, -0.0714367926120758, 0.03531390428543091, 0.03225383535027504, 0.011044387705624104, -0.024515727534890175, 0.031884513795375824, -0.013911005109548569, 0.012029238045215607, 0.0440368577837944, -0.011229047551751137, 0.10228369385004044, -0.004174620378762484, -0.025025738403201103, -0.035859089344739914, -0.04284096881747246, -0.021490830928087234, -0.01709417998790741, -0.04168025404214859, -0.012820634990930557, 0.03974572941660881, -0.016241230070590973, 0.003965779673308134, 0.0209104735404253, -0.015871910378336906, 0.026080936193466187, 0.0052452050149440765, -0.03515562415122986, 0.06531665474176407, -0.0010953157907351851, 0.0430871844291687, 0.04773004725575447, 0.040132634341716766, 0.014051697216928005, 0.047835566103458405, 0.011686298996210098, 0.054870206862688065, -0.00781284924596548, 0.056910254061222076, -0.03067103959619999, -0.0018509902292862535, -0.004104273859411478, -0.013708759099245071, 0.006731273140758276, -0.007148955017328262, -0.01960906572639942, 0.006968692410737276, 0.05937238037586212, 0.00036547164199873805, -0.023073626682162285, -0.019081465899944305, 0.017955923452973366, 0.024550901725888252, -0.014913441613316536, -0.035032518208026886, -0.003759136889129877, -0.018589042127132416, 0.016381923109292984, -0.006133328657597303, 0.021789804100990295, -0.015441039577126503, -0.029281698167324066, 0.012433730065822601, -0.007294044364243746, 0.035859089344739914, -0.04794108495116234, 0.04481067135930061, -0.002080715261399746, -0.009707805700600147, -0.06025170907378197, 0.03541942313313484, -0.03988642245531082, -0.01916939951479435, 0.029141005128622055, -0.027382344007492065, -0.006498250644654036, -0.07534101605415344, -0.013594445772469044, -0.02648542821407318, -0.04262993112206459, -0.018096616491675377, 0.060286883264780045, -0.046710021793842316, 0.0204356350004673, -0.0013926393585279584, -0.00885485578328371, -0.026291975751519203, -0.02124461904168129, 0.03237694129347801, 0.043016836047172546, 0.05367431789636612, -0.009734186343848705, -0.005003388971090317, 0.013735138811171055, 0.02889479324221611, -0.03907743841409683, 0.005728836636990309, 0.03336178883910179, 0.010639896616339684, -0.04066023230552673, 0.047343142330646515, 0.005152875557541847, -0.009136241860687733, 0.025465404614806175, -0.10974041372537613, 0.008903219364583492, 0.03661531209945679, -0.04554930701851845, 0.013541686348617077, -0.06644219160079956, -0.03037206642329693, -0.015898291021585464, -0.05367431789636612, 0.012741495855152607, -0.03545459732413292, -0.06366351246833801, -0.006243244744837284, 0.0031655889470130205, -0.01470240205526352, 0.009945224970579147, 0.009725392796099186, -0.00015704288671258837, -0.028507886454463005, -0.0052452050149440765, -0.038092587143182755, 0.014209977351129055, -0.03112829104065895, -0.01804385706782341, 0.06021653488278389, 0.03650979325175285, 0.020681846886873245, 0.000581457163207233, 0.10094711184501648, -0.007126971613615751, -0.0061728982254862785, 0.009558320045471191, 0.005654093809425831, -0.022563613951206207, -0.0019653032068163157, -0.06046275049448013, -0.03640427440404892, -0.010507996194064617, -0.036791179329156876, 0.004678037017583847, 0.0030798541847616434, -0.03406525403261185, 0.09961052983999252, -0.0020356494933366776, 0.03640427440404892, -0.08258669823408127, -0.012257863767445087, -0.024691592901945114, 0.023442944511771202, 0.006230054888874292, -0.021842563524842262, 0.08518951386213303, 0.01708538644015789, -0.00783043634146452, -0.06331177800893784, 0.023671571165323257, 0.02011907659471035, 0.011545605957508087, 0.008265704847872257, 0.0020884093828499317, 0.021438071504235268, -0.05286533385515213, 0.05515159294009209, 0.020189423114061356, -0.004928646143525839, -0.047202449291944504, -0.008740542456507683, 0.0361228883266449, -0.026098521426320076, -0.004985802806913853, 0.0287541002035141, 0.055644020438194275, 0.0029259715229272842, -0.005544177256524563, -0.018905600532889366, -0.015863118693232536, 0.03098759800195694, 0.010323337279260159, -0.0008655907004140317, 0.015045341104269028, -0.000017389100321452133, 0.0007188525050878525, -0.016206055879592896, -0.04790591448545456, 0.029088245704770088, 0.03526114299893379, 0.07928041368722916, -0.007039038930088282, -0.06528148055076599, 0.019450785592198372, 0.04642863944172859, -0.0446699783205986, 0.006929122377187014, 0.011369740590453148, -0.06545734405517578, 0.0584578774869442, -0.01126422081142664, -0.019521132111549377, 0.0038690532092005014, 0.07217542827129364, 0.0014497957890853286, 0.037459470331668854, 0.001286020502448082, -0.011237841099500656, -0.004748383536934853, -0.05219704285264015, 0.009373660199344158, 0.024163994938135147, 0.003176580648869276, -0.047378312796354294, 0.060673788189888, -0.07238646596670151, 0.0232846662402153 ]
20,474
metevolsim.metevolsim
get_mutant_reaction_array
Get a numpy array of mutant reaction fluxes. Parameters ---------- None Returns ------- numpy array
def get_mutant_reaction_array( self ): """ Get a numpy array of mutant reaction fluxes. Parameters ---------- None Returns ------- numpy array """ vec = [] for reaction_id in self.reactions: vec.append(self.reactions[reaction_id]["mutant_value"]) return np.array(vec)
(self)
[ 0.038362495601177216, 0.0021075287368148565, 0.0406397208571434, 0.02154606021940708, 0.0444234199821949, -0.010186206549406052, -0.044038042426109314, 0.000248934724368155, 0.06039903685450554, 0.0251020360738039, -0.012664878740906715, 0.01988193392753601, 0.004434021655470133, 0.05188571289181709, -0.017149262130260468, -0.0027983603067696095, 0.0007242235005833209, -0.021756265312433243, -0.01886594109237194, 0.0990067720413208, 0.009152696467936039, -0.018550632521510124, -0.014136317186057568, 0.042426470667123795, -0.009704485535621643, 0.04557955265045166, -0.007238950580358505, -0.03424597159028053, 0.023262737318873405, -0.026433337479829788, -0.024734176695346832, -0.008802353404462337, -0.006599575746804476, 0.050274141132831573, -0.02198398858308792, -0.013917353004217148, -0.004948586691170931, 0.023175152018666267, -0.03536706790328026, 0.0451241061091423, 0.018760837614536285, -0.045544516295194626, 0.02960393577814102, -0.0037201987579464912, -0.04190095514059067, -0.04599996283650398, 0.003301977412775159, 0.030602412298321724, -0.023245221003890038, -0.014942104928195477, 0.029709039255976677, 0.01281377486884594, 0.0037858879659324884, 0.034666385501623154, 0.01982938125729561, 0.058612290769815445, 0.007427259813994169, 0.0330197736620903, 0.027536915615200996, 0.03913325071334839, 0.007760085165500641, 0.023350322619080544, 0.08660464733839035, -0.028150014579296112, 0.04803194850683212, -0.020740272477269173, 0.0018863750156015158, 0.06421776860952377, 0.0023516735527664423, 0.03955366089940071, -0.03689105808734894, 0.02657347358763218, -0.02301749773323536, -0.05486362427473068, 0.02089792676270008, 0.01306777261197567, 0.03958869352936745, -0.023998456075787544, 0.002024322282522917, 0.02816753275692463, 0.018673252314329147, 0.02010965533554554, 0.049258146435022354, 0.06530383229255676, 0.023910870775580406, -0.007335294969379902, 0.024594038724899292, 0.016798919066786766, -0.10517279803752899, -0.028482839465141296, 0.02590782381594181, -0.0013083100784569979, -0.0234554260969162, 0.03054985962808132, -0.04995883256196976, 0.006288646720349789, -0.04456355795264244, -0.0130239799618721, -0.019076146185398102, 0.02408604323863983, -0.04754146933555603, 0.025820236653089523, 0.02888573333621025, 0.01350570097565651, -0.012717430479824543, 0.04810201749205589, -0.010799305513501167, -0.02904338762164116, 0.02207157388329506, 0.000688094412907958, -0.02867552824318409, 0.09648430347442627, 0.031548336148262024, 0.003779319114983082, -0.021651161834597588, 0.007028745021671057, 0.0024808624293655157, -0.001923598931171, -0.011298543773591518, 0.033282529562711716, 0.0583670511841774, 0.026188097894191742, 0.055774517357349396, 0.04106013476848602, -0.003950111102312803, 0.05023910477757454, -0.02858794294297695, 0.006052165757864714, 0.030882686376571655, 0.03359783813357353, -0.04855746030807495, -0.019706761464476585, -0.008719147183001041, -0.007654982153326273, 0.0012229140847921371, 0.023490460589528084, 0.05356735736131668, -0.06229088455438614, 0.09753533452749252, -0.008776078000664711, -0.022019021213054657, 0.054197974503040314, 0.004438400734215975, 0.006490093655884266, -0.03294970467686653, -0.007418501190841198, 0.01800760067999363, 0.10005780309438705, -0.02147599123418331, -0.06509362161159515, -0.036996159702539444, 0.011771505698561668, 0.026118028908967972, -0.009713243693113327, 0.0324241928756237, 0.027677051723003387, -0.0244539026170969, -0.02548741176724434, 0.04456355795264244, 0.005544168874621391, -0.0646381825208664, -0.028202565386891365, -0.02468162402510643, 0.009923449717462063, 0.0007652792846783996, 0.017122985795140266, 0.08120937645435333, -0.01215688232332468, -0.08919718116521835, 0.04456355795264244, -0.029866693541407585, -0.011000752449035645, -0.06383239477872849, -0.042146194726228714, 0.024856796488165855, 0.0020210379734635353, -0.016606232151389122, 0.019934484735131264, 0.03354528918862343, 0.0438278391957283, -0.0469108521938324, -0.01565154828131199, -0.004353004973381758, -0.03783698379993439, 0.0583670511841774, -0.06008372828364372, 0.05661533772945404, -0.026608508080244064, 0.05356735736131668, 0.017306916415691376, 0.048662565648555756, 0.009030076675117016, -0.025592515245079994, 0.06446300446987152, 0.01814773865044117, -0.027063952758908272, -0.03605023771524429, -0.017473328858613968, -0.06684533506631851, -0.04113020375370979, 0.0017473328625783324, -0.04908297583460808, -0.018690768629312515, 0.026836231350898743, -0.004948586691170931, 0.02497941628098488, 0.02816753275692463, -0.021108131855726242, 0.0026801195926964283, -0.0342634916305542, 0.012647361494600773, 0.030602412298321724, 0.04456355795264244, -0.03587506711483002, -0.0003391205391380936, -0.056510236114263535, 0.06688036769628525, -0.015248654410243034, -0.012717430479824543, 0.033790528774261475, -0.02350797690451145, -0.04239143431186676, -0.023490460589528084, 0.04564961791038513, -0.04680575057864189, 0.02040744759142399, -0.05444321408867836, 0.04491389915347099, -0.045754723250865936, -0.04042951762676239, 0.011193441227078438, 0.026082994416356087, 0.02454148791730404, -0.06204564496874809, -0.04862752929329872, 0.03286211937665939, 0.04596492648124695, 0.017464570701122284, 0.05335715413093567, 0.08464273065328598, -0.033282529562711716, -0.034666385501623154, 0.08499307185411453, 0.06267625838518143, 0.01627340540289879, 0.049538418650627136, 0.06260619312524796, 0.04070978984236717, -0.039238352328538895, 0.010046069510281086, -0.01741201989352703, 0.00413841987028718, 0.007760085165500641, 0.017543397843837738, 0.050764620304107666, -0.04981869459152222, 0.0034596314653754234, 0.06954297423362732, 0.018270358443260193, -0.04095502942800522, 0.041200269013643265, -0.05044931173324585, 0.03605023771524429, -0.003052358515560627, -0.07364197820425034, -0.030444758012890816, 0.002656033495441079, 0.05791160464286804, -0.06996338814496994, 0.009047592990100384, -0.008968766778707504, 0.02583775483071804, -0.026450853794813156, -0.03913325071334839, -0.0329672247171402, -0.028570424765348434, 0.026240648701786995, 0.02191391959786415, -0.06456810981035233, 0.03482403978705406, -0.12472190707921982, -0.021756265312433243, 0.06204564496874809, 0.04340742900967598, -0.05465342104434967, -0.04169074818491936, 0.022089090198278427, -0.019566625356674194, -0.013917353004217148, 0.016168303787708282, 0.00731339817866683, 0.017517121508717537, -0.05356735736131668, -0.03832746297121048, 0.028728079050779343, -0.0336679071187973, -0.022877361625432968, -0.020652687177062035, 0.03776691481471062, 0.04782174155116081, 0.014215144328773022, 0.03955366089940071, -0.022842327132821083, 0.024629073217511177, -0.07266101986169815, -0.014215144328773022, 0.06467321515083313, 0.024874312803149223, 0.020372413098812103, -0.0096869682893157, 0.024436384439468384, -0.008408218622207642, -0.045474447309970856, -0.012402121908962727, 0.018182773143053055, 0.022824808955192566, -0.01879587210714817, -0.008539596572518349, 0.0711195170879364, 0.05801670625805855, 0.047086022794246674, -0.000028208723961142823, 0.0502040721476078, 0.01981186494231224, -0.008360045962035656, -0.049398284405469894, -0.014442866668105125, -0.008443253114819527, -0.015301206149160862, 0.022824808955192566, -0.030970271676778793, -0.02278977632522583, -0.010580341331660748, 0.0033041671849787235, 0.0570707842707634, 0.04302205145359039, -0.006293025799095631, -0.05924290418624878, 0.027116505429148674, -0.0241035595536232, -0.017490847036242485, -0.017263123765587807, -0.012235709466040134, 0.028150014579296112, 0.042076125741004944, 0.049468353390693665, 0.022527018561959267, 0.021738748997449875, 0.023402875289320946, -0.03268694877624512, 0.004611382260918617, 0.04091999679803848, -0.022316813468933105, 0.06582934409379959, -0.07210047543048859, 0.009739520028233528, -0.03359783813357353, 0.0021962090395390987, -0.026398302987217903, 0.09459245949983597, 0.005093103274703026, 0.024261213839054108, 0.0451241061091423, -0.0647432804107666, -0.010904408060014248, -0.04021931067109108, -0.030462274327874184, -0.007011227775365114, 0.01135985367000103, -0.02532975748181343, -0.017368225380778313, 0.04393294081091881, -0.06383239477872849, 0.042216263711452484, -0.005053689703345299, 0.012498466297984123, -0.04543941468000412, -0.01858566701412201, 0.021896401420235634, -0.040604688227176666, 0.017368225380778313, -0.032844603061676025, -0.03114544227719307, -0.0007149175507947803, -0.000589013216085732, 0.013216668739914894, 0.03070751391351223, 0.005347101483494043, -0.06183544173836708, 0.04974862560629845, -0.011990469880402088, -0.054338112473487854, -0.013637078925967216, -0.03181109204888344, -0.018603183329105377, -0.002478672657161951, 0.04789181053638458, -0.00003900296724168584, -0.0017276261933147907, -0.0037946465890854597, 0.024348799139261246, 0.035454653203487396, -0.03326501324772835, -0.04726119339466095, -0.06453307718038559, -0.024523969739675522, -0.03689105808734894, -0.0036895438097417355, 0.011412404477596283, -0.03811725601553917, 0.00016490728012286127, 0.06088951602578163, 0.07672499120235443, -0.01916373148560524, 0.01375969871878624, -0.02851787395775318, -0.023350322619080544, -0.08064883202314377, 0.04484383016824722, 0.059768419712781906, 0.043512530624866486, 0.0014320247573778033, -0.026118028908967972, 0.011885367333889008, 0.0002882113913074136, 0.024699142202734947, 0.010650410316884518, 0.0451241061091423, -0.031390681862831116, 0.06295653432607651, 0.024769209325313568, 0.00698933145031333, 0.000284105830360204, -0.07031372934579849, -0.014495418407022953, -0.014863277785480022, -0.043372392654418945, -0.01715802028775215, -0.02548741176724434, 0.05857725441455841, 0.012043021619319916, 0.06120482459664345, 0.03210888430476189, -0.03310735896229744, 0.03019951842725277, -0.05363742634654045, -0.04309212043881416, 0.031390681862831116, 0.026380784809589386, -0.04943331703543663, -0.00517193041741848, -0.0034136490430682898, 0.0900380089879036, -0.014416591264307499, 0.016431059688329697, 0.07504335045814514, -0.029236076399683952, -0.00533396378159523, 0.008408218622207642, -0.040114209055900574, 0.005736857187002897, -0.043722737580537796, -0.04176081717014313, -0.011386129073798656, -0.009301591664552689, -0.026608508080244064, -0.013821009546518326, -0.043442461639642715, -0.033282529562711716, 0.05798167362809181, 0.061450064182281494, -0.007781981490552425, 0.0019717710092663765, -0.054127905517816544, -0.004992379806935787, 0.013873560354113579, -0.07245081663131714, 0.00559234106913209, -0.002220295136794448, 0.0005797072662971914, -0.06120482459664345, -0.04309212043881416, -0.04887276887893677, -0.022124124690890312, -0.06348204612731934, -0.021388405933976173, 0.011324819177389145, -0.029726555570960045, 0.019181247800588608, -0.05090475454926491, -0.03731146827340126, 0.04694588482379913, 0.02350797690451145, 0.015012172982096672, 0.0438278391957283, 0.050624482333660126, 0.016527405008673668, 0.010983235202729702, 0.01828787475824356, 0.11077827960252762, 0.03179357573390007, 0.03352777287364006, -0.05503879487514496, -0.017149262130260468, -0.034368593245744705, -0.05370749533176422, -0.03382556140422821, -0.0648483857512474, 0.018235323950648308, -0.012261984869837761, -0.005820063874125481, -0.025172103196382523, -0.06943786889314651, -0.011920401826500893, -0.019934484735131264, -0.01629968173801899, -0.008749802596867085, 0.015590238384902477, -0.019181247800588608, -0.010466480627655983, -0.005719340406358242, -0.003774939803406596, -0.08289101719856262, 0.03347522020339966, -0.011482473462820053, -0.0017790826968848705, -0.07504335045814514, -0.01666754111647606, -0.033440183848142624, -0.0055091348476707935, -0.017438294366002083, -0.03913325071334839, -0.029236076399683952, 0.026766162365674973, -0.03818732500076294, -0.017788637429475784, 0.0482071191072464, -0.016842711716890335, -0.03818732500076294, 0.028150014579296112, -0.006104717031121254, -0.008946869522333145, 0.04169074818491936, -0.012971428222954273, -0.0161595456302166, -0.01995200105011463, -0.029498832300305367, -0.003993903752416372, 0.023543011397123337, -0.022404398769140244, 0.0030567378271371126, 0.01135985367000103, -0.010326343588531017, 0.01683395355939865, 0.031250543892383575, -0.04095502942800522, 0.05125509947538376, -0.036680854856967926, -0.0005460415268316865, 0.009809588082134724, 0.008968766778707504, -0.047156091779470444, -0.010930684395134449, 0.008421355858445168, -0.036996159702539444, 0.05913780257105827, 0.00764184445142746, 0.06432287395000458, -0.061450064182281494, -0.014530452899634838, -0.056300029158592224, -0.01074675377458334, -0.022982463240623474, 0.04137544333934784, 0.038572702556848526, -0.01636975072324276, 0.035682376474142075, -0.08296108990907669, 0.025382310152053833, 0.013584528118371964, 0.023788250982761383, -0.03387811407446861, 0.005312066990882158, -0.03200378268957138, 0.06716064363718033, 0.028220083564519882, 0.01735946722328663, 0.04971359297633171, 0.004742760676890612, 0.022614603862166405, 0.017832430079579353, -0.01650988683104515, 0.00409243768081069, -0.0033457702957093716, 0.018042635172605515, 0.008684112690389156, -0.018165254965424538, 0.016685059294104576, 0.02687126398086548, 0.029498832300305367, 0.011596334166824818, -0.01629968173801899, -0.011780264787375927, -0.02292991243302822, -0.04607003182172775, -0.08240053802728653, 0.009914690628647804, -0.027414295822381973, 0.01168392039835453, 0.03513934463262558, -0.06891235709190369, -0.05118503049015999, -0.030076898634433746, 0.009161454625427723, 0.024523969739675522, -0.014600520953536034, -0.025592515245079994, 0.0730113610625267, -0.04796187952160835, 0.06046910583972931, -0.06162523478269577, -0.0063499566167593, -0.02998931333422661, -0.00473400205373764, -0.002750188112258911, -0.07973793894052505, 0.0021108132787048817, -0.026468370109796524, 0.010387653484940529, -0.037416573613882065, 0.012016745284199715, -0.012796257622539997, 0.04887276887893677, -0.04694588482379913, 0.013470666483044624, -0.011447438970208168, -0.04379280284047127, -0.014985897578299046, -0.02548741176724434, 0.05756126344203949, -0.007668119855225086, 0.045544516295194626, -0.031022822484374046, -0.0015929632354527712, -0.03605023771524429, -0.008605286478996277, -0.039448559284210205, -0.04211116209626198, -0.024208663031458855, 0.011894125491380692, -0.01572161726653576, 0.021213235333561897, -0.01070296112447977, 0.034578800201416016, -0.030935237184166908, -0.009231523610651493, -0.018130220472812653, 0.0596633180975914, -0.031898677349090576, 0.01581796072423458, -0.04007917642593384, 0.04883773624897003, -0.012761223129928112, -0.038712840527296066, 0.04666561260819435, -0.020057104527950287, -0.008443253114819527, 0.004434021655470133, 0.01125475112348795, 0.05058944597840309, 0.03202129900455475, 0.06067930907011032, 0.036330509930849075, -0.039448559284210205, 0.03347522020339966, 0.04529927670955658, 0.042006056755781174, 0.04106013476848602, 0.06141502782702446, 0.018165254965424538, -0.005456583574414253, 0.06134495884180069, -0.005399652756750584, 0.04470369592308998, 0.04007917642593384, -0.02490934729576111, -0.013453149236738682, 0.044038042426109314, -0.04733126237988472, -0.04754146933555603, -0.0015896788099780679, -0.01692153885960579, -0.01982938125729561, 0.00473838159814477, 0.01611575111746788, 0.09704485535621643, -0.015774168074131012, 0.045754723250865936, -0.03259936347603798, 0.025872789323329926, 0.0034596314653754234, -0.0005359144415706396, -0.02142344042658806, 0.03347522020339966, 0.00247648311778903, -0.04116523638367653, 0.02532975748181343, 0.006306163966655731, -0.03682098910212517, 0.010527790524065495, 0.028412772342562675, 0.06828173995018005, 0.013943629339337349, 0.0117277130484581, -0.007361570373177528, 0.010834340006113052, -0.03752167522907257, 0.04834725707769394, -0.011281026527285576, -0.007536741439253092, -0.021108131855726242, 0.013348046690225601, 0.016422301530838013, 0.06509362161159515, -0.029498832300305367, 0.01770981028676033, 0.04116523638367653, 0.010825580917298794, -0.010151172056794167, -0.05654526874423027, -0.038712840527296066, -0.014206386171281338, 0.018760837614536285, -0.017236847430467606, -0.0018732371972873807, -0.03387811407446861, -0.023280255496501923, -0.021073097363114357, -0.021283302456140518, 0.01634347438812256, -0.03605023771524429, -0.03259936347603798, -0.02490934729576111, -0.00011892483598785475, 0.03557727485895157, -0.008386322297155857, 0.026976367458701134, -0.02490934729576111, -0.02846532315015793, -0.05013400316238403, 0.009765795432031155, -0.0004858264292124659, -0.052691500633955, -0.01074675377458334, 0.03664581850171089, 0.0004984168335795403, 0.014749416150152683, -0.051290132105350494, -0.033790528774261475, -0.027834706008434296, -0.05910276994109154, -0.00943297054618597, 0.0025684479624032974, 0.014723140746355057, -0.06891235709190369, 0.03471893444657326, 0.018025118857622147, -0.023105083033442497 ]
20,475
metevolsim.metevolsim
get_mutant_reaction_value
Get the wild-type value of the reaction 'reaction_id'. Parameters ---------- reaction_id: str The identifier of the reaction (as defined in the SBML model). Returns ------- float
def get_mutant_reaction_value( self, reaction_id ): """ Get the wild-type value of the reaction 'reaction_id'. Parameters ---------- reaction_id: str The identifier of the reaction (as defined in the SBML model). Returns ------- float """ assert reaction_id in list(self.reactions) return self.reactions[reaction_id]["mutant_value"]
(self, reaction_id)
[ 0.0787227600812912, -0.026176199316978455, 0.1146598756313324, 0.022999048233032227, 0.07999362051486969, -0.021075105294585228, 0.009107834659516811, -0.025417212396860123, 0.027835378423333168, 0.01570042409002781, -0.057965368032455444, 0.06424906849861145, 0.01991015113890171, 0.04906934127211571, 0.0015775440260767937, 0.026846932247281075, 0.0061380802653729916, 0.042220816016197205, 0.04246792569756508, 0.08380620181560516, 0.014950263313949108, -0.01741255633533001, -0.011323015205562115, -0.001727576251141727, -0.0018853306537494063, -0.027835378423333168, 0.03104783222079277, -0.009787391871213913, -0.01878049597144127, -0.021816441789269447, -0.01671534776687622, -0.02637035958468914, -0.010669934563338757, 0.037031468003988266, -0.0777343139052391, -0.02414635196328163, -0.01878049597144127, 0.012320288456976414, -0.11112970113754272, 0.006345477886497974, -0.01567394845187664, 0.03095957823097706, 0.01351172011345625, -0.006866177543997765, -0.0606129914522171, -0.022981397807598114, -0.007470719050616026, 0.03388961777091026, -0.05044610798358917, -0.01192314364016056, -0.006469033658504486, 0.047798480838537216, -0.055670756846666336, 0.04197370260953903, 0.03482511267066002, 0.016362331807613373, 0.010749363340437412, 0.00825618114322424, 0.027199948206543922, 0.03547819331288338, 0.021586980670690536, 0.04246792569756508, 0.019292371347546577, -0.058035969734191895, 0.046668827533721924, -0.025523118674755096, 0.024993592873215675, 0.07716948539018631, -0.06724970787763596, 0.014173626899719238, -0.046527620404958725, -0.036572545766830444, -0.02100450173020363, -0.015382708981633186, 0.05041080713272095, -0.03854943811893463, 0.060189373791217804, -0.04974007233977318, 0.015550392679870129, 0.04455072805285454, 0.04924584925174713, 0.008697452954947948, 0.06184855103492737, -0.0285237617790699, -0.028417855501174927, -0.0015267978888005018, 0.025276007130742073, -0.01351172011345625, -0.029441604390740395, -0.004778965376317501, 0.019857197999954224, -0.0577535554766655, -0.01373235508799553, -0.004924585111439228, -0.053446751087903976, 0.0392201729118824, 0.014544294215738773, -0.03660784661769867, -0.014623722992837429, 0.025876134634017944, -0.038514137268066406, 0.06883828341960907, 0.048010293394327164, -0.026899883523583412, 0.02271663397550583, 0.009310819208621979, -0.024075748398900032, -0.0003480525629129261, -0.0023343239445239305, 0.0028175157494843006, -0.022910794243216515, 0.0235285721719265, -0.0268116295337677, -0.004642171785235405, 0.005908619612455368, 0.02822369709610939, -0.015620995312929153, 0.0011594396783038974, -0.00298078591004014, 0.04486844316124916, 0.05584726482629776, 0.012788034975528717, 0.030659513548016548, 0.010069805197417736, -0.00026352156419306993, 0.07099168747663498, -0.004454631358385086, -0.03415438160300255, 0.02160463109612465, 0.07907577604055405, -0.03373076021671295, 0.03200097754597664, 0.004986362997442484, 0.04116176441311836, -0.01510912086814642, 0.05556485056877136, 0.010211012326180935, -0.016265250742435455, 0.10046859830617905, 0.010246314108371735, 0.0080929109826684, 0.047339558601379395, 0.013273433782160282, -0.06050708889961243, -0.018392177298665047, -0.0267410259693861, -0.03459564968943596, 0.08048783987760544, -0.022222410887479782, -0.05228179693222046, -0.024252258241176605, 0.010352219454944134, 0.047198351472616196, 0.04034982621669769, 0.01909821107983589, 0.04896343871951103, 0.05267011374235153, 0.004256059415638447, 0.03629013150930405, 0.010555204004049301, -0.0048672198317945, -0.04465663060545921, 0.05810657516121864, 0.024393463507294655, -0.02146342396736145, -0.022310664877295494, 0.04317396134138107, 0.012346764095127583, -0.028329601511359215, 0.04762197285890579, -0.008578309789299965, -0.02414635196328163, -0.0781579315662384, -0.010299266315996647, 0.037631597369909286, 0.024322861805558205, -0.03369545936584473, 0.01885109953582287, 0.026899883523583412, 0.021781139075756073, -0.02169288508594036, -0.04892813414335251, -0.013688228093087673, 0.0005835809861309826, 0.012673305347561836, -0.038514137268066406, 0.033395394682884216, 0.003746391274034977, 0.03058890998363495, 0.016653569415211678, 0.048681024461984634, -0.04105585813522339, -0.038796551525592804, 0.02622915245592594, -0.027164647355675697, -0.0074001154862344265, 0.021516377106308937, -0.04536266624927521, -0.024005146697163582, -0.043562278151512146, -0.010519902221858501, -0.05916562303900719, -0.012540923431515694, 0.043491676449775696, -0.028788523748517036, -0.003735359525308013, 0.018692241981625557, 0.001485980348661542, -0.05281132087111473, -0.04596279561519623, -0.04758667200803757, 0.04144417867064476, 0.028347253799438477, 0.018286272883415222, -0.014350134879350662, -0.10428117960691452, 0.0004420984478201717, -0.036643147468566895, 0.003986883908510208, 0.050693221390247345, -0.01826862245798111, -0.05475291237235069, 0.027270551770925522, 0.08987808972597122, 0.023369714617729187, 0.033148281276226044, -0.05800066888332367, 0.05577666312456131, -0.022769587114453316, -0.017280174419283867, 0.031612660735845566, 0.01644176058471203, 0.0640372559428215, -0.027376456186175346, -0.07646344602108002, -0.02199294976890087, 0.012020223774015903, 0.01540918555110693, -0.012426192872226238, 0.08521826565265656, -0.028400205075740814, -0.049563564360141754, 0.06223687157034874, 0.06657897680997849, -0.019327672198414803, -0.00198241020552814, 0.05538834258913994, 0.04575098305940628, -0.053376149386167526, 0.0023365302477031946, 0.0009095699642784894, 0.01878049597144127, 0.0040795509703457355, 0.033077679574489594, 0.03646663948893547, -0.01909821107983589, -0.031683262437582016, 0.07300388813018799, 0.0029101825784891844, -0.025452515110373497, 0.01403241977095604, -0.06947371363639832, 0.02718229778110981, -0.004809854552149773, -0.1079525500535965, -0.024905338883399963, -0.033977873623371124, 0.05408218130469322, -0.003691232530400157, -0.0425032302737236, 0.08154689520597458, 0.011428920552134514, -0.011287713423371315, -0.024393463507294655, -0.06947371363639832, -0.05263481289148331, 0.022487172856926918, 0.03660784661769867, -0.01578867807984352, -0.02153402753174305, -0.10689350217580795, -0.022169457748532295, 0.03840823471546173, 0.0336601547896862, -0.037843406200408936, 0.04179719462990761, 0.03706676885485649, -0.00012355590297374874, -0.017280174419283867, 0.04105585813522339, -0.0031308182515203953, -0.03302472457289696, -0.04056163504719734, 0.0031241991091519594, 0.030253544449806213, -0.015047343447804451, -0.01681242696940899, -0.05383506789803505, 0.029388653114438057, 0.03388961777091026, -0.027976585552096367, 0.003459565108641982, -0.03823172301054001, 0.007709005381911993, -0.0791463777422905, 0.029000334441661835, 0.05245830491185188, -0.015188549645245075, 0.035990066826343536, 0.025064196437597275, 0.03143614903092384, -0.01136714220046997, -0.04440952092409134, -0.005467348266392946, 0.025011243298649788, 0.02079269289970398, -0.016503537073731422, -0.024905338883399963, 0.04917524755001068, 0.0161152184009552, 0.04405650123953819, 0.01908056065440178, 0.07010914385318756, 0.0355134941637516, -0.0043575516901910305, -0.08952507376670837, -0.059306830167770386, 0.025276007130742073, 0.002716023474931717, 0.019398275762796402, -0.05814187601208687, -0.039855603128671646, 0.008273832499980927, -0.04462132975459099, 0.06237807869911194, 0.018533384427428246, -0.001766187371686101, -0.008988691493868828, 0.02264603041112423, -0.014694326557219028, 0.017889128997921944, -0.0020960376132279634, 0.0235285721719265, 0.0286649689078331, 0.04843391105532646, 0.10357514023780823, 0.014420738443732262, -0.010687584988772869, 0.04056163504719734, -0.006071889773011208, 0.007457480765879154, -0.006672018673270941, -0.03671375289559364, -0.022610729560256004, -0.03787870705127716, -0.0033999935258179903, -0.0023475619964301586, -0.05281132087111473, -0.055953171104192734, 0.06396665424108505, -0.00450317095965147, -0.018674591556191444, 0.016221124678850174, -0.032495200634002686, -0.04589219018816948, -0.009134311228990555, -0.057435840368270874, 0.02412870153784752, 0.03734918311238289, -0.013043972663581371, -0.005917444825172424, 0.03134789690375328, -0.060789503157138824, 0.012788034975528717, 0.01061698142439127, 0.021957648918032646, -0.016582965850830078, 0.008260594680905342, 0.019504180178046227, -0.01406772155314684, 0.015126772224903107, -0.005079030059278011, -0.08310016989707947, 0.029000334441661835, 0.005537951830774546, -0.003450739663094282, 0.017394905909895897, -0.023352064192295074, -0.0994095429778099, 0.0425032302737236, 0.016168171539902687, -0.02250482328236103, 0.009955075569450855, -0.05295252799987793, -0.02449936978518963, 0.01878049597144127, 0.05651799589395523, -0.02100450173020363, -0.0028108966071158648, 0.023881589993834496, 0.039855603128671646, 0.01885109953582287, -0.05125804618000984, -0.03136554732918739, -0.01277920976281166, -0.01209965255111456, -0.04260913282632828, 0.026405660435557365, -0.04769257456064224, -0.021728187799453735, -0.0065617007203400135, 0.02815309353172779, 0.01433248445391655, 0.0335189513862133, -0.015047343447804451, -0.04543326795101166, -0.018603987991809845, -0.07183893024921417, -0.02993582934141159, 0.019857197999954224, 0.024852385744452477, -0.03749039024114609, -0.012170256115496159, -0.012435018084943295, -0.043562278151512146, -0.013017496094107628, 0.0326540581882, 0.059659846127033234, -0.06555522978305817, 0.06714380532503128, -0.0031639134977012873, 0.0015852663200348616, 0.020139610394835472, -0.0287355724722147, 0.02331676334142685, -0.004990775603801012, -0.06036588177084923, -0.003697851439937949, -0.026264453306794167, -0.0036471053026616573, 0.02021021395921707, 0.046527620404958725, 0.013291084207594395, -0.014685501344501972, 0.012143779546022415, -0.04218551516532898, -0.004584806505590677, 0.046915940940380096, 0.02963576465845108, -0.0430680550634861, -0.052317097783088684, -0.025011243298649788, 0.046598225831985474, 0.010087456554174423, 0.01310575008392334, 0.04462132975459099, -0.07265086472034454, 0.022469522431492805, 0.04387999325990677, -0.03572530671954155, -0.04402120038866997, -0.02813544310629368, -0.03369545936584473, -0.01474727876484394, -0.03830232843756676, 0.024922989308834076, 0.010413996875286102, -0.04917524755001068, -0.0336601547896862, 0.037843406200408936, 0.0177567470818758, 0.02725290134549141, 0.02472883090376854, -0.011561301536858082, -0.00030944132595323026, -0.008432690054178238, -0.08084085583686829, -0.035690002143383026, 0.01785382628440857, 0.006071889773011208, 0.01176428608596325, -0.0014087578747421503, -0.025487815961241722, -0.03911426663398743, -0.054329294711351395, -0.007519259117543697, -0.005026077385991812, -0.006191032938659191, 0.03452504798769951, -0.05976575240492821, -0.029512207955121994, 0.050093092024326324, 0.06664957851171494, 0.0024578797165304422, -0.028700269758701324, 0.029829923063516617, 0.002022124594077468, -0.029423953965306282, 0.03473685681819916, 0.0794287919998169, 0.019221767783164978, 0.038055215030908585, -0.06686139106750488, -0.011252411641180515, -0.014579595997929573, -0.04084404930472374, -0.04624520614743233, -0.07279207557439804, 0.029212145134806633, -0.007903165183961391, 0.02153402753174305, -0.01900995709002018, -0.024269908666610718, -0.009796218015253544, -0.0031330245546996593, -0.03357190266251564, 0.04998718574643135, 0.0019404895137995481, 0.00946967676281929, -0.038796551525592804, -0.039855603128671646, -0.0466335266828537, -0.06792043894529343, 0.0026498327497392893, -0.0005121502326801419, -0.004712774883955717, -0.056023772805929184, 0.012435018084943295, -0.02622915245592594, -0.02331676334142685, -0.01651236228644848, 0.0040795509703457355, -0.04455072805285454, 0.016079917550086975, -0.04522145912051201, -0.03812582045793533, -0.01229381188750267, -0.004580393433570862, -0.09249041229486465, 0.02711169421672821, -0.051505159586668015, -0.05496472492814064, 0.04070284217596054, 0.007911990396678448, 0.04857511818408966, -0.04529206082224846, -0.0397849977016449, 0.03081837110221386, 0.03362485393881798, -0.004463456571102142, 0.01701541244983673, -0.009672661311924458, -0.0287355724722147, 0.008507706224918365, 0.039608489722013474, -0.011755460873246193, 0.026723375543951988, 0.03274231404066086, 0.0054894122295081615, 0.002557165687903762, 0.005776238162070513, -0.026246802881360054, 0.07127410173416138, -0.009231390431523323, 0.018904052674770355, -0.013485243543982506, -0.05323494225740433, -0.002444641664624214, -0.02785302884876728, -0.03982030227780342, -0.06110721826553345, 0.04522145912051201, 0.04462132975459099, 0.023334413766860962, -0.009196088649332523, -0.009646185673773289, 0.0055335392244160175, -0.025717277079820633, 0.01577102765440941, 0.039255473762750626, -0.002702785190194845, -0.0035720891319215298, 0.03403082489967346, 0.01281451154500246, 0.02905328758060932, 0.03869064524769783, 0.024340512230992317, 0.04885753244161606, -0.03967909514904022, 0.0397849977016449, 0.0016448379028588533, -0.02384628728032112, 0.013882387429475784, -0.011261237785220146, 0.019221767783164978, 0.007598687894642353, -0.010113933123648167, 0.021198661997914314, 0.08415921777486801, 0.04755137115716934, -0.005864492617547512, -0.022469522431492805, -0.01333521120250225, -0.014464865438640118, -0.030553609132766724, -0.028629666194319725, 0.050905030220746994, -0.032424598932266235, 0.03706676885485649, -0.03766689822077751, -0.014385436661541462, -0.004238408524543047, -0.009125486016273499, 0.011720159091055393, 0.02479943446815014, -0.002696166280657053, 0.005582078825682402, 0.05609437823295593, -0.053446751087903976, 0.024322861805558205, -0.06350772827863693, 0.02035142108798027, -0.03535463660955429, -0.01675947569310665, 0.06400195509195328, -0.03358955308794975, -0.017589064314961433, -0.02487003616988659, -0.015753377228975296, -0.02199294976890087, -0.012487971223890781, 0.020069008693099022, 0.023493271321058273, -0.04144417867064476, 0.012134954333305359, 0.03318358212709427, -0.01574455201625824, -0.0010436060838401318, -0.013035147450864315, 0.08479464799165726, 0.033307138830423355, 0.05263481289148331, -0.01369705330580473, 0.037243276834487915, 0.00037811414222233, 0.049422357231378555, -0.051505159586668015, -0.028011886402964592, -0.042679738253355026, 0.017280174419283867, -0.04974007233977318, 0.04084404930472374, 0.019274719059467316, 0.015735726803541183, -0.00022656511282548308, -0.050163693726062775, -0.007126527838408947, 0.018904052674770355, -0.06957962363958359, 0.037172675132751465, -0.033095329999923706, -0.0027976585552096367, -0.028329601511359215, -0.03667845204472542, 0.04176189377903938, -0.05259951204061508, -0.04500964656472206, -0.024764131754636765, 0.021586980670690536, 0.01065228320658207, 0.041479479521512985, 0.03489571437239647, 0.022663680836558342, -0.04462132975459099, -0.03177151829004288, -0.011587778106331825, 0.03125964105129242, 0.026246802881360054, 0.03787870705127716, 0.033007074147462845, 0.021798791363835335, 0.034860413521528244, -0.009072532877326012, 0.05591787025332451, 0.022398918867111206, -0.03519577905535698, -0.05189347639679909, 0.028417855501174927, -0.02704109065234661, -0.01595636084675789, -0.05252890661358833, -0.053658559918403625, -0.037843406200408936, -0.0397849977016449, -0.017677318304777145, 0.04500964656472206, -0.023051999509334564, 0.08938386291265488, -0.018392177298665047, 0.022540125995874405, -0.03749039024114609, -0.0026542453560978174, 0.023369714617729187, -0.01311457622796297, 0.02093390002846718, -0.04617460444569588, 0.046598225831985474, 0.03376606106758118, 0.0037728676106780767, -0.024252258241176605, 0.015418010763823986, 0.05785946175456047, -0.0390789657831192, 0.03770219907164574, -0.01281451154500246, 0.021145708858966827, -0.03325418755412102, 0.05012839287519455, -0.005096680950373411, -0.00293445261195302, -0.03957318887114525, -0.0072456710040569305, 0.020474977791309357, 0.04539796710014343, -0.004117059055715799, 0.03549584373831749, 0.014641373418271542, 0.007069162558764219, -0.0040795509703457355, -0.015056168660521507, -0.010740537196397781, 0.027305852621793747, 0.03244224935770035, 0.0046156952157616615, 0.014756103977560997, 0.005304078105837107, -0.0058336034417152405, 0.007956117391586304, -0.019627736881375313, 0.02843550778925419, 0.004211932420730591, 0.012938067317008972, -0.034489747136831284, -0.0608954057097435, 0.030483005568385124, 0.03689026087522507, -0.03770219907164574, 0.03584885969758034, -0.009443201124668121, 0.0008522047428414226, 0.03577825799584389, -0.021039804443717003, -0.012417367659509182, -0.010219837538897991, 0.050093092024326324, 0.014570770785212517, -0.007960529997944832, -0.027605917304754257, -0.019045259803533554, 0.013767656870186329, -0.0038567089941352606, -0.0235285721719265, 0.0035235495306551456, -0.03632543236017227, -0.0674615204334259, 0.049951884895563126, -0.06096601113677025, 0.015894584357738495 ]
20,476
metevolsim.metevolsim
get_mutant_species_array
Get a numpy array of mutant species abundances. Parameters ---------- None Returns ------- numpy array
def get_mutant_species_array( self ): """ Get a numpy array of mutant species abundances. Parameters ---------- None Returns ------- numpy array """ vec = [] for species_id in self.species: if not self.species[species_id]["constant"]: vec.append(self.species[species_id]["mutant_value"]) return np.array(vec)
(self)
[ 0.06558715552091599, 0.01110807340592146, 0.029857369139790535, -0.030582576990127563, 0.02745179831981659, -0.0027504863683134317, -0.034969206899404526, -0.02179163508117199, 0.03351878747344017, 0.012478894554078579, -0.03381948545575142, 0.007707552518695593, -0.019616007804870605, 0.009595748037099838, -0.0018594525754451752, 0.0032015307806432247, 0.003933372441679239, -0.0053108264692127705, -0.003442529821768403, 0.06293395906686783, -0.015415105037391186, -0.0029096785001456738, -0.029875056818127632, -0.011364549398422241, -0.006097943056374788, 0.024904724210500717, 0.015255913138389587, -0.06265094876289368, 0.029450545087456703, -0.020146649330854416, 0.0006594312726520002, 0.00985222402960062, -0.023896507918834686, 0.03827686235308647, 0.020022831857204437, -0.03661419078707695, 0.009595748037099838, 0.04567045345902443, -0.0416729636490345, 0.05822894349694252, 0.0059210630133748055, -0.06268632411956787, 0.010267892852425575, -0.019032303243875504, -0.009834536351263523, -0.0270803514868021, 0.029733553528785706, 0.04542282223701477, -0.052250396460294724, -0.018360158428549767, 0.012717682868242264, 0.02209233120083809, 0.012187042273581028, 0.015813084319233894, 0.004691746085882187, 0.05709691345691681, 0.031343162059783936, 0.02446252480149269, 0.058016687631607056, 0.02476322092115879, 0.01774107851088047, 0.003623832017183304, 0.06328772008419037, -0.06721445918083191, 0.02518773265182972, -0.03083021007478237, 0.00941002368927002, 0.04722699895501137, 0.006920435931533575, 0.06296933442354202, -0.05041084066033363, 0.014097347855567932, -0.0014205686748027802, -0.02256990596652031, 0.057839807122945786, 0.023719627410173416, 0.017670325934886932, -0.038312241435050964, 0.011346861720085144, 0.007163646165281534, -0.018068308010697365, 0.025983693078160286, 0.036401934921741486, 0.030971713364124298, -0.04262811690568924, 0.021526314318180084, 0.04001028835773468, 0.009719564579427242, -0.02410876378417015, -0.012390454299747944, 0.014097347855567932, -0.0017433749744668603, 0.017891427502036095, 0.03493382781744003, -0.014504171907901764, 0.045104436576366425, -0.03150235489010811, -0.004083720501512289, -0.0012525325873866677, -0.010382864624261856, 0.0019489980768412352, 0.003842721227556467, 0.05302866920828819, 0.020694976672530174, -0.015344352461397648, 0.047722265124320984, 0.016582513228058815, -0.027044974267482758, 0.034969206899404526, 0.016945118084549904, -0.04326488450169563, 0.08285066485404968, 0.009215455502271652, 0.00037393567617982626, -0.0351283960044384, -0.013266011141240597, 0.002325973939150572, -0.004895158112049103, -0.024480212479829788, 0.0009159074979834259, 0.00910932756960392, 0.035340651869773865, 0.04043480008840561, 0.040576305240392685, 0.016352569684386253, 0.03955040127038956, -0.03417324274778366, -0.011921721510589123, -0.007013297639787197, 0.02541767805814743, -0.05886571481823921, -0.028123943135142326, -0.011302641592919827, 0.0011850970331579447, 0.0003208716516382992, -0.03852449730038643, 0.03993953764438629, -0.06721445918083191, 0.10570357739925385, -0.013646303676068783, -0.023118235170841217, 0.04839440807700157, -0.018413223326206207, -0.02506391704082489, -0.010046792216598988, 0.02375500462949276, 0.032422132790088654, 0.05875958502292633, -0.052781037986278534, -0.05150749906897545, -0.03610123693943024, 0.041106946766376495, 0.022410714998841286, -0.02060653641819954, 0.0144334202632308, -0.0005010683089494705, -0.0045369756408035755, -0.057132288813591, 0.048252902925014496, -0.0026863671373575926, -0.049809448421001434, -0.012876874767243862, -0.053488556295633316, 0.03447394073009491, -0.012416986748576164, 0.034031741321086884, 0.04036404937505722, -0.01940375193953514, -0.07556319981813431, -0.0015687057748436928, -0.07036292552947998, 0.006005080882459879, -0.0702567920088768, -0.01172715425491333, 0.05317017063498497, 0.002460845047608018, 0.0015642838552594185, 0.013946999795734882, 0.05465596541762352, 0.03595973551273346, -0.03696795180439949, -0.011284952983260155, -0.01779414340853691, -0.042486611753702164, 0.044149283319711685, -0.022817539051175117, 0.04262811690568924, -0.01078084483742714, 0.07747350633144379, 0.006257135421037674, 0.04376014694571495, 0.029574360698461533, -0.013575551100075245, 0.06562253832817078, 0.040753185749053955, -0.03251057118177414, -0.02350737154483795, -0.01583961769938469, -0.07690748572349548, -0.029362104833126068, -0.01792680285871029, -0.037003327161073685, -0.04662560671567917, 0.018501663580536842, 0.010259049013257027, 0.07966681569814682, 0.014654519967734814, -0.04457379877567291, -0.01892617531120777, -0.017997555434703827, 0.02393188327550888, 0.018307095393538475, 0.03226293995976448, -0.015848461538553238, 0.026284389197826385, -0.11164674907922745, 0.06650693714618683, -0.027823247015476227, -0.01333676278591156, 0.012133978307247162, -0.027770183980464935, -0.062367938458919525, 0.013504799455404282, 0.043972406536340714, -0.08108185976743698, 0.025912942364811897, -0.04535207152366638, 0.040045663714408875, -0.06197880208492279, -0.022233834490180016, 0.0012171565322205424, 0.013327918946743011, 0.03431474789977074, -0.0648796409368515, -0.0720255970954895, 0.06268632411956787, 0.05341780558228493, 0.004974754061549902, 0.028123943135142326, 0.06597629189491272, -0.06937239319086075, -0.03576516732573509, 0.06265094876289368, 0.07160108536481857, -0.00555403670296073, 0.03764009475708008, 0.0270803514868021, 0.041460707783699036, -0.008786520920693874, -0.032545946538448334, -0.03206837177276611, 0.004665214102715254, 0.013796651735901833, 0.002093818737193942, 0.03802923113107681, -0.09247294068336487, -0.012381610460579395, 0.0654810294508934, 0.03880750387907028, -0.04379552602767944, -0.002093818737193942, -0.05405457317829132, 0.038312241435050964, -0.0010662556160241365, -0.10273198783397675, -0.007291884161531925, 0.0017898059450089931, 0.06183730065822601, -0.07570470124483109, 0.012222418561577797, -0.004311453551054001, 0.02292366698384285, -0.0541607029736042, -0.06880638003349304, -0.014380356296896935, 0.01595458947122097, 0.03350109979510307, 0.02840695157647133, -0.00561152258887887, 0.031343162059783936, -0.070292167365551, -0.015415105037391186, 0.06937239319086075, 0.029574360698461533, -0.022127706557512283, -0.0547620952129364, 0.011585650034248829, -0.009321583434939384, -0.025470741093158722, 0.015017124824225903, -0.021331746131181717, -0.00815859716385603, -0.07400665432214737, -0.05186126008629799, 0.03162616863846779, -0.02340124361217022, -0.034615445882081985, 0.008468137122690678, 0.016211066395044327, 0.04280499741435051, -0.00529756024479866, 0.04276961833238602, -0.02297673188149929, 0.0393027700483799, -0.06947851926088333, -0.01446879655122757, 0.07241473346948624, -0.021172553300857544, 0.0067126015201210976, 0.015052500180900097, 0.0047005899250507355, -0.0017400584183633327, -0.011417613364756107, 0.015052500180900097, -0.019191496074199677, 0.02780555933713913, -0.026001382619142532, -0.01624644175171852, 0.07839328050613403, 0.05798131227493286, 0.055929504334926605, -0.03024650551378727, 0.045458197593688965, -0.011417613364756107, -0.011824438348412514, -0.0136905238032341, -0.014362667687237263, -0.01970444805920124, -0.014831400476396084, 0.0306710172444582, -0.048783544450998306, -0.04085931554436684, -0.01289456244558096, -0.00180417753290385, 0.08115261048078537, 0.03863062337040901, -0.01074546854943037, -0.06802810728549957, 0.017590731382369995, -0.07789801806211472, -0.03565903753042221, -0.0026686792261898518, -0.02838926389813423, 0.009003199636936188, 0.05737992003560066, 0.00683199567720294, -0.0016858888557180762, 0.014689896255731583, 0.0144334202632308, -0.02518773265182972, 0.03029956854879856, 0.058971840888261795, -0.008711347356438637, 0.06877100467681885, -0.03519915044307709, 0.03549984470009804, -0.005226808600127697, 0.012938782572746277, -0.03422630950808525, 0.09268520027399063, 0.025399988517165184, 0.0178648941218853, 0.048960424959659576, -0.08652976900339127, 0.035995110869407654, -0.052781037986278534, -0.022127706557512283, -0.024038011208176613, 0.014601456001400948, -0.05752142518758774, -0.036401934921741486, 0.051825884729623795, -0.027911687269806862, -0.0033806217834353447, 0.025276172906160355, -0.0008352059521712363, -0.026585085317492485, -0.02672659046947956, -0.011895189993083477, -0.05638939142227173, -0.011762529611587524, -0.04567045345902443, -0.027840934693813324, 0.018961552530527115, -0.029875056818127632, 0.0068143075332045555, 0.025435365736484528, 0.013195259496569633, -0.06678994745016098, 0.027363358065485954, 0.021225618198513985, -0.0636768564581871, -0.001553228823468089, -0.011576805263757706, 0.04043480008840561, 0.02279985137283802, 0.0029494764748960733, -0.04793452098965645, -0.022003890946507454, 0.03233369067311287, 0.01947450451552868, -0.006677225697785616, -0.037427838891744614, -0.012160509824752808, -0.09296820312738419, -0.05695540830492973, -0.009931820444762707, -0.0057176509872078896, -0.018360158428549767, -0.024515587836503983, -0.005505394656211138, 0.03381948545575142, 0.05727379024028778, -0.03686182200908661, 0.041637588292360306, -0.02053578570485115, 0.009542684070765972, -0.053134795278310776, 0.04400778189301491, 0.046519480645656586, 0.06120052933692932, -0.038135360926389694, -0.022180771455168724, 0.03785235062241554, 0.043194133788347244, 0.012850342318415642, -0.010825064964592457, 0.01080737728625536, -0.04779301583766937, 0.03288201987743378, 0.022516842931509018, 0.02594831772148609, -0.016299504786729813, -0.05101223289966583, -0.018085995689034462, -0.021773945540189743, -0.01959832012653351, 0.01181559357792139, -0.029362104833126068, 0.06781584769487381, 0.02345430850982666, 0.0767659842967987, 0.00246968911960721, 0.023171300068497658, 0.004576773848384619, -0.03654344007372856, -0.011532586067914963, 0.050693850964307785, 0.034969206899404526, -0.06120052933692932, 0.02471015602350235, -0.026355141773819923, 0.06746208667755127, -0.02846001647412777, 0.016211066395044327, 0.07071668654680252, 0.02941516786813736, -0.033960986882448196, 0.005691118538379669, -0.045635078102350235, 0.03940889611840248, -0.0038493541069328785, -0.008105533197522163, 0.014380356296896935, -0.02340124361217022, -0.032121434807777405, 0.007061939686536789, -0.032775890082120895, 0.017077777534723282, 0.05072922632098198, 0.060634516179561615, 0.015008280985057354, 0.014353823848068714, -0.08773255348205566, -0.022888291627168655, 0.013584394939243793, -0.06831111013889313, 0.013062599115073681, -0.025470741093158722, 0.007482030428946018, -0.06017462536692619, -0.023861132562160492, -0.03256363421678543, -0.008835162967443466, -0.02119024097919464, -0.032121434807777405, -0.0026310922112315893, -0.05405457317829132, 0.02340124361217022, -0.03834761679172516, -0.02035890519618988, 0.01894386298954487, 0.013885091990232468, -0.0076146903447806835, 0.02322436310350895, 0.07393590360879898, 0.02941516786813736, 0.0032988148741424084, 0.016821302473545074, 0.09721332788467407, 0.016476385295391083, 0.02631976641714573, -0.02626670151948929, -0.03891363367438316, -0.03940889611840248, -0.06997378915548325, 0.006902747787535191, -0.057132288813591, 0.008070156909525394, 0.0031705766450613737, 0.0066860695369541645, -0.037250958383083344, -0.03668494150042534, -0.0014603667659685016, -0.0031130905263125896, 0.01749344728887081, -0.0279824398458004, 0.0024763219989836216, 0.02440945990383625, 0.015370884910225868, -0.007371480111032724, -0.04457379877567291, -0.046767111867666245, 0.014389200136065483, -0.000005501594387169462, -0.017811831086874008, -0.07832252979278564, -0.004784607794135809, -0.035039957612752914, -0.022003890946507454, -0.03047644905745983, -0.0684526190161705, -0.03739246353507042, 0.06240331754088402, 0.0014647886855527759, -0.01792680285871029, 0.06286320090293884, -0.026938846334815025, 0.005956438835710287, 0.029362104833126068, -0.013619771227240562, -0.009489620104432106, 0.0678865984082222, 0.0047890301793813705, -0.004455168731510639, -0.010736624710261822, -0.05508047714829445, -0.01351364329457283, 0.02310054749250412, -0.03442087769508362, 0.012496582232415676, 0.014017751440405846, -0.03381948545575142, -0.027699431404471397, 0.04457379877567291, -0.02642589434981346, 0.0291675366461277, -0.022658346220850945, -0.026815030723810196, 0.03489845246076584, 0.034916140139102936, -0.031643860042095184, 0.03060026466846466, -0.019386064261198044, -0.043547891080379486, 0.063146211206913, -0.01600765250623226, 0.06700219959020615, -0.05929022654891014, -0.04298187419772148, -0.033377282321453094, -0.015751177445054054, -0.02893759310245514, 0.04298187419772148, 0.011691777966916561, -0.0033761998638510704, 0.040576305240392685, -0.022074641659855843, 0.0018318149959668517, 0.03905513510107994, 0.023065172135829926, -0.01767917163670063, -0.025559181347489357, -0.007437810301780701, 0.07103506475687027, 0.06049301102757454, 0.023418931290507317, 0.0553634874522686, 0.010320956818759441, 0.01499943621456623, 0.022552218288183212, 0.0018815625226125121, -0.0007169173331931233, -0.02060653641819954, -0.021526314318180084, 0.03528758883476257, -0.03305890038609505, -0.006005080882459879, 0.014495328068733215, 0.02088954485952854, 0.029008343815803528, -0.0006732500623911619, 0.02078341692686081, -0.011576805263757706, 0.018855424597859383, -0.057662926614284515, 0.020854169502854347, -0.03286433219909668, -0.014672208577394485, 0.019244560971856117, -0.05430220440030098, -0.02156168967485428, -0.059750113636255264, -0.02488703653216362, 0.022357650101184845, 0.008229348808526993, -0.023648876696825027, 0.006677225697785616, -0.04368939623236656, 0.002832293277606368, -0.06385373324155807, 0.010453617200255394, -0.012408141978085041, -0.005677852779626846, 0.003685740055516362, -0.07308688014745712, -0.005483284592628479, -0.021986203268170357, -0.024604028090834618, -0.033731043338775635, 0.003466850845143199, -0.0020319106988608837, 0.02101336233317852, -0.02012896165251732, -0.005523082800209522, -0.017307722941040993, -0.03284664452075958, -0.03305890038609505, -0.02999887242913246, 0.105986587703228, -0.04874816909432411, 0.026956534013152122, -0.0142919160425663, 0.034916140139102936, -0.07591696083545685, -0.020995672792196274, -0.047297753393650055, -0.01231970265507698, -0.054620590060949326, -0.01959832012653351, 0.013354451395571232, 0.03951502591371536, -0.02005820907652378, 0.012814966961741447, -0.001165197929367423, -0.026885783299803734, -0.008326632902026176, 0.03507533296942711, -0.018360158428549767, 0.00023339888139162213, 0.005766293033957481, 0.029698176309466362, -0.011691777966916561, -0.020571161061525345, 0.08270915597677231, 0.006482657510787249, 0.013522487133741379, -0.017422694712877274, 0.010665873065590858, 0.03955040127038956, 0.012708839029073715, 0.043901652097702026, 0.02755792625248432, -0.03993953764438629, -0.01959832012653351, 0.045988839119672775, 0.02232227474451065, 0.06650693714618683, 0.05886571481823921, 0.036755695939064026, 0.03919664025306702, 0.022870603948831558, 0.038665998727083206, 0.031095530837774277, 0.01690089888870716, -0.0038692532107234, 0.03417324274778366, 0.02577143721282482, -0.03243982046842575, -0.05327630043029785, 0.003440318861976266, -0.034332435578107834, 0.00666838139295578, 0.05256877839565277, 0.044078532606363297, 0.11044396460056305, 0.012063225731253624, 0.053134795278310776, -0.018430911004543304, 0.07535094022750854, -0.005898952949792147, 0.0065224552527070045, -0.0368971973657608, 0.04535207152366638, -0.00905184168368578, -0.017705703154206276, 0.052993293851614, 0.014849088154733181, -0.00865828339010477, -0.014972904697060585, 0.02400263585150242, 0.03912588953971863, 0.017281189560890198, -0.0021413553040474653, -0.003909051418304443, -0.016458697617053986, -0.03376641869544983, 0.02393188327550888, 0.013106819242238998, 0.005894531030207872, 0.011859813705086708, 0.005801668856292963, 0.053488556295633316, 0.037781599909067154, -0.03955040127038956, 0.027115726843476295, 0.04733312875032425, 0.020641913637518883, 0.018466288223862648, -0.07436041533946991, -0.03281126916408539, 0.021526314318180084, -0.014168099500238895, 0.0015233802841976285, -0.020801104605197906, -0.0032479616347700357, -0.01530013233423233, -0.014521860517561436, -0.03130778670310974, 0.0026620461139827967, -0.021933138370513916, 0.02053578570485115, -0.0067126015201210976, -0.028548456728458405, 0.005085304379463196, 0.01834247075021267, 0.01965138502418995, -0.006336731370538473, -0.008530044928193092, -0.048960424959659576, 0.006451703608036041, 0.00524007435888052, -0.01804177463054657, -0.0018848790787160397, 0.03877212852239609, -0.01318641472607851, 0.0476161353290081, -0.050340089946985245, -0.014017751440405846, -0.022074641659855843, -0.08355817943811417, -0.01414156798273325, -0.01384087186306715, 0.044750675559043884, -0.0696907788515091, 0.03880750387907028, -0.023790379986166954, -0.03923201560974121 ]
20,477
metevolsim.metevolsim
get_mutant_species_value
Get the wild-type value of the species 'species_id'. Parameters ---------- species_id: str The identifier of the species (as defined in the SBML model). Returns ------- float
def get_mutant_species_value( self, species_id ): """ Get the wild-type value of the species 'species_id'. Parameters ---------- species_id: str The identifier of the species (as defined in the SBML model). Returns ------- float """ assert species_id in list(self.species) return self.species[species_id]["mutant_value"]
(self, species_id)
[ 0.09453169256448746, -0.02909342758357525, 0.1001502126455307, -0.00954271387308836, 0.046282604336738586, -0.0024427417665719986, -0.002227657474577427, -0.013984860852360725, 0.008515577763319016, 0.02914610132575035, -0.06826508045196533, 0.0326225645840168, -0.013212313875555992, 0.035730309784412384, 0.028478899970650673, 0.03746854141354561, 0.003693741513416171, 0.06331375986337662, 0.06324353069067001, 0.04817885532975197, 0.0064042410813272, 0.020683197304606438, -0.022456543520092964, -0.04375426843762398, -0.005886283237487078, -0.03077898547053337, 0.07592032849788666, -0.04059384763240814, -0.017364755272865295, -0.023404670879244804, 0.0017481076065450907, -0.013449345715343952, 0.005811662413179874, 0.022316081449389458, -0.03606390953063965, -0.032745469361543655, -0.03304395452141762, 0.03897852078080177, -0.11145749688148499, 0.015565071254968643, -0.026231490075588226, 0.009103766642510891, 0.013554692268371582, -0.027372753247618675, -0.018330439925193787, -0.007321640849113464, -0.019629722461104393, 0.05267367511987686, -0.060469381511211395, -0.006935367360711098, -0.02956748940050602, 0.03915409743785858, -0.026846017688512802, 0.01665366068482399, 0.014476481825113297, 0.016925808042287827, 0.019735069945454597, 0.003711299505084753, 0.05499131605029106, 0.024563491344451904, 0.042525213211774826, 0.017821259796619415, 0.0037047152873128653, -0.08645506203174591, 0.023387111723423004, -0.03890828788280487, 0.028250647708773613, 0.060434263199567795, -0.0698452964425087, 0.04034803435206413, -0.055553171783685684, -0.021947365254163742, -0.0031494467984884977, 0.003658625762909651, 0.07160108536481857, -0.015187576413154602, 0.028461342677474022, -0.060223568230867386, 0.021982481703162193, 0.027126943692564964, 0.006294504273682833, 0.018207533285021782, 0.043473340570926666, -0.04396496340632439, -0.07072319090366364, 0.030217131599783897, 0.04982929676771164, -0.01351079810410738, 0.024879533797502518, 0.0151436822488904, 0.018031954765319824, -0.050004877150058746, 0.02024425007402897, 0.007027546409517527, -0.02419477514922619, 0.04361380264163017, 0.014511597342789173, -0.010991240851581097, 0.01036793552339077, -0.008160030469298363, -0.006702725309878588, 0.054850853979587555, 0.05176066607236862, -0.009814861230552197, 0.010806882753968239, 0.005434167571365833, -0.010139682330191135, -0.0011231563985347748, 0.014397471211850643, 0.017461324110627174, -0.02818041667342186, 0.014265786856412888, -0.041577089577913284, 0.0015077840071171522, -0.013923408463597298, -0.01420433446764946, 0.016004018485546112, -0.0013881708728149533, -0.008853566832840443, -0.0029672838281840086, 0.0022496050223708153, 0.03285081684589386, 0.022702354937791824, 0.0002559611457400024, 0.005886283237487078, 0.0862443670630455, 0.003957109991461039, -0.05780057981610298, 0.0033425837755203247, 0.06226028501987457, -0.04034803435206413, 0.011737450957298279, 0.02115725912153721, 0.061136581003665924, -0.005407830700278282, -0.006355957128107548, 0.002725862665101886, -0.008976472541689873, 0.10211669653654099, 0.011465303599834442, -0.004036120604723692, 0.03673110902309418, -0.005306873004883528, -0.07507754862308502, -0.013185977004468441, 0.008682377636432648, -0.01771591231226921, 0.029743069782853127, -0.04737119376659393, -0.03820597380399704, -0.04217405617237091, 0.04245498403906822, 0.042946603149175644, 0.027671238407492638, -0.004718683660030365, 0.01327376626431942, 0.06538558751344681, -0.029971322044730186, 0.046458180993795395, 0.00558779900893569, 0.009375913999974728, -0.03232407942414284, 0.03634483739733696, 0.04245498403906822, -0.03583565726876259, -0.003610341576859355, -0.006202325224876404, 0.005864336155354977, -0.02303595468401909, 0.03330732136964798, -0.0325523316860199, 0.00745332520455122, -0.05913497880101204, 0.00003532154005370103, 0.0630679503083229, 0.010332819074392319, -0.006957314908504486, 0.007071441039443016, 0.04452681541442871, 0.012079829350113869, -0.05397295951843262, -0.04968883469700813, -0.021367954090237617, -0.006351567339152098, 0.0003689900622703135, 0.015468502417206764, 0.013177198357880116, 0.012018376961350441, 0.047687236219644547, -0.003483046777546406, 0.037819698452949524, -0.019910650327801704, -0.020103786140680313, 0.023229090496897697, 0.008616535924375057, 0.001080359099432826, 0.049548372626304626, -0.03845178335905075, -0.020683197304606438, -0.011798903346061707, -0.02208782732486725, -0.044351235032081604, -0.032025594264268875, 0.020841218531131744, -0.037609003484249115, 0.026407070457935333, -0.0005843485705554485, 0.011482861824333668, -0.06443746387958527, -0.023896291851997375, -0.029743069782853127, 0.0326225645840168, 0.01794416643679142, 0.03169199451804161, 0.017672019079327583, -0.1608302891254425, 0.02774146944284439, -0.06671998649835587, 0.013765387237071991, 0.0419633612036705, -0.0029914258047938347, -0.07254920899868011, 0.045299362391233444, 0.08912386000156403, -0.02142062783241272, 0.04034803435206413, -0.07016133517026901, 0.04354357346892357, -0.04105035215616226, -0.016170818358659744, 0.020419828593730927, 0.027162058278918266, 0.05969683453440666, -0.02029692381620407, -0.08729784190654755, 0.011781345121562481, 0.01467839814722538, -0.0033886730670928955, -0.022245848551392555, 0.06728184223175049, -0.058397550135850906, -0.04944302514195442, 0.0698452964425087, 0.07040714472532272, -0.03051561675965786, -0.01840067096054554, 0.019664838910102844, 0.04048850014805794, -0.030585847795009613, -0.021561091765761375, 0.0010068353731185198, 0.01771591231226921, 0.03420277312397957, 0.04582609981298447, 0.04105035215616226, -0.03525624796748161, -0.029707953333854675, 0.059767063707113266, 0.022544333711266518, -0.03852201625704765, -0.0030572679825127125, -0.07149573415517807, 0.033447783440351486, 0.025476500391960144, -0.14776721596717834, -0.0168467964977026, -0.03123548999428749, 0.05569363385438919, -0.01883961819112301, -0.029988879337906837, 0.08062583953142166, 0.02839111164212227, -0.03567763790488243, -0.06334887444972992, -0.025458943098783493, -0.045545171946287155, 0.027776585891842842, 0.040628962218761444, 0.02954993210732937, -0.01720673404633999, -0.061593085527420044, -0.023650480434298515, 0.04796816036105156, 0.012711914256215096, -0.015828439965844154, 0.03239431232213974, 0.026442185044288635, 0.023387111723423004, -0.024984879419207573, 0.024844417348504066, -0.03330732136964798, -0.05962660163640976, -0.06464815884828568, -0.007769367191940546, 0.02633683755993843, -0.0186289232224226, -0.06359468400478363, -0.008717493154108524, 0.015354376286268234, 0.011482861824333668, -0.03848689794540405, 0.002488831290975213, -0.050004877150058746, 0.02933923713862896, -0.059521254152059555, 0.018909849226474762, 0.05773035064339638, -0.038311321288347244, 0.01071909349411726, 0.03399207815527916, 0.01955949142575264, -0.010288924910128117, -0.029005637392401695, 0.008739440701901913, -0.0033140520099550486, 0.014818861149251461, -0.024879533797502518, -0.034097425639629364, 0.05165531858801842, 0.029901091009378433, 0.05109346657991409, -0.024159658700227737, 0.0699857547879219, 0.008002009242773056, 0.003759583691135049, -0.045264244079589844, -0.05056672915816307, 0.0004957360797561705, -0.017935385927557945, 0.025476500391960144, -0.06155797094106674, -0.04498331993818283, 0.026020795106887817, -0.04143662378191948, 0.0770440325140953, -0.013756608590483665, 0.003906630910933018, -0.028830058872699738, 0.00698365131393075, -0.04547493904829025, -0.003669599536806345, 0.004507988691329956, 0.021947365254163742, 0.002343978499993682, 0.07423476874828339, 0.0698452964425087, 0.00018147726950701326, -0.027987278997898102, 0.03077898547053337, 0.017803702503442764, 0.03866247832775116, 0.026020795106887817, -0.04680934175848961, -0.02630172297358513, -0.01699603907763958, 0.030585847795009613, 0.011403851211071014, -0.0198053028434515, -0.05330576002597809, 0.046247486025094986, 0.005100567825138569, -0.020349597558379173, 0.03701203688979149, -0.05667687579989433, -0.009814861230552197, -0.027829259634017944, -0.05983729660511017, 0.007150451652705669, 0.024879533797502518, -0.015424608252942562, -0.020138902589678764, 0.03662576153874397, -0.045790981501340866, -0.01560018677264452, 0.031147699803113937, 0.017066270112991333, -0.012606566771864891, -0.0005185065092518926, -0.009507598355412483, -0.05109346657991409, -0.009648061357438564, -0.026196375489234924, -0.07964260131120682, 0.030919447541236877, 0.015266587026417255, -0.0013333024689927697, 0.009885093197226524, -0.03070875257253647, -0.10057160258293152, 0.024739069864153862, 0.03378138318657875, -0.02422989159822464, 0.029233889654278755, -0.03613414242863655, 0.02235119603574276, 0.021034354344010353, 0.03192024677991867, -0.04607190936803818, -0.0017283549532294273, 0.02472151257097721, 0.03402719646692276, -0.022210733965039253, -0.06471838802099228, 0.0256169643253088, -0.037433426827192307, -0.05011022463440895, -0.026442185044288635, -0.002042202278971672, -0.07872958481311798, -0.019015196710824966, 0.014134103432297707, 0.025529174134135246, 0.004075625911355019, 0.023211533203721046, 0.026371954008936882, -0.016820460557937622, 0.003610341576859355, -0.05969683453440666, -0.015433386899530888, 0.032464541494846344, 0.01838311366736889, -0.052076708525419235, -0.018067071214318275, 0.018822060897946358, -0.006553483195602894, -0.03771435096859932, -0.001147847156971693, 0.039013635367155075, -0.07500731199979782, 0.05302483215928078, 0.014265786856412888, 0.005284925457090139, 0.02286037616431713, 0.0067115044221282005, 0.013545913621783257, -0.011008798144757748, -0.043894730508327484, 0.008133693598210812, -0.022526774555444717, 0.010324040427803993, 0.03750365599989891, 0.045088667422533035, -0.002010378520935774, 0.008462904021143913, -0.019928207620978355, -0.04793304577469826, 0.016960924491286278, 0.059240326285362244, 0.017118943855166435, -0.024405470117926598, -0.015468502417206764, -0.05063696205615997, 0.031779784709215164, -0.002322031185030937, 0.047125380486249924, 0.022965723648667336, -0.028549132868647575, -0.004723072983324528, 0.03557229042053223, -0.060188453644514084, -0.01784759759902954, -0.009217893704771996, -0.007677188143134117, 0.003368920413777232, -0.05456992983818054, 0.01211494579911232, 0.010613746009767056, -0.039680834859609604, 0.020858775824308395, 0.0157406497746706, 0.025195574387907982, 0.042033594101667404, 0.036906689405441284, -0.03588833287358284, -0.007198735605925322, -0.007014377973973751, -0.08554205298423767, -0.02307106927037239, -0.021596206352114677, 0.003974667750298977, -0.013010397553443909, -0.011702335439622402, 0.005034725647419691, -0.024159658700227737, -0.026477301493287086, -0.03098967857658863, 0.014616944827139378, -0.03548450022935867, 0.06443746387958527, -0.046668875962495804, 0.0018062681192532182, 0.021139701828360558, 0.05214693769812584, -0.026038354262709618, -0.04733607545495033, 0.024300122633576393, 0.007137283217161894, -0.026213932782411575, 0.015196355991065502, 0.054605044424533844, -0.011307282373309135, 0.04958348721265793, -0.023826058954000473, -0.03002399578690529, -0.01362492423504591, -0.04824908822774887, -0.0054868413135409355, -0.06338398903608322, 0.02888273261487484, 0.0027565890923142433, 0.008375114761292934, -0.04371915012598038, -0.012703134678304195, 0.00040767231257632375, 0.01490665040910244, -0.006566651631146669, 0.0186289232224226, 0.010885893367230892, 0.03697692230343819, -0.006966093555092812, -0.039680834859609604, -0.06622836738824844, -0.03302639350295067, 0.006022356916218996, 0.005758988671004772, -0.008598977699875832, -0.06875670701265335, 0.03199047967791557, -0.03125304728746414, -0.013475681655108929, -0.025494059547781944, -0.014687176793813705, -0.06538558751344681, 0.028355995193123817, -0.009130103513598442, -0.04308706521987915, 0.005381493829190731, -0.015082228928804398, -0.0606098435819149, -0.002128894440829754, -0.04410542547702789, -0.04210382327437401, 0.048810940235853195, 0.006812462117522955, 0.04231451824307442, -0.05499131605029106, -0.0511636957526207, 0.013914629817008972, 0.05341110751032829, -0.012395871803164482, 0.025757428258657455, 0.006891472730785608, -0.05379738286137581, -0.014722292311489582, 0.06355956941843033, -0.005921399220824242, -0.014643281698226929, 0.049056749790906906, -0.039224330335855484, 0.014687176793813705, 0.04231451824307442, -0.02140307053923607, 0.10970170795917511, -0.039224330335855484, 0.0061233146116137505, -0.003191146766766906, -0.06942390650510788, -0.01675022952258587, -0.026231490075588226, -0.07472638785839081, -0.03120037354528904, 0.043227531015872955, 0.040628962218761444, 0.030111784115433693, -0.022316081449389458, -0.006549093872308731, -0.005715094041079283, 0.014704735018312931, -0.003924188669770956, 0.05302483215928078, 0.0004362038744147867, 0.018506018444895744, 0.024317679926753044, 0.024984879419207573, 0.022965723648667336, 0.05572874844074249, 0.023123743012547493, 0.0441756546497345, -0.028110185638070107, 0.0513041615486145, 0.013826839625835419, -0.019945764914155006, -0.010464503429830074, -0.014344797469675541, -0.00032948481384664774, 0.019629722461104393, -0.018909849226474762, -0.0034325679298490286, 0.0675627663731575, 0.033184416592121124, -0.0007846183143556118, -0.01724185049533844, 0.007545504253357649, -0.009928988292813301, 0.021736670285463333, -0.03474706783890724, 0.05962660163640976, -0.022263407707214355, 0.018699154257774353, -0.05748453736305237, 0.008669208735227585, 0.0029168047476559877, -0.01732086017727852, -0.0038627362810075283, 0.016039134934544563, 0.02142062783241272, 0.005636083427816629, -0.018786944448947906, -0.04473751038312912, -0.046212371438741684, -0.05295460298657417, 0.017610564827919006, -0.018769387155771255, -0.035291362553834915, 0.06226028501987457, -0.03616925701498985, -0.024774186313152313, -0.02187713421881199, -0.05488596856594086, -0.030691195279359818, -0.025810102000832558, 0.015319260768592358, 0.013080629520118237, -0.030831659212708473, -0.023141302168369293, 0.02122749201953411, 0.000861434091348201, -0.022210733965039253, -0.02819797396659851, 0.09221404790878296, -0.006004799157381058, 0.05801127478480339, -0.0081556411460042, 0.042735908180475235, -0.017636902630329132, 0.02117481827735901, -0.056536413729190826, 0.007018767297267914, -0.05843266472220421, -0.011263387277722359, -0.03267523646354675, 0.04842466488480568, 0.002651241607964039, -0.004025146830826998, 0.03750365599989891, -0.053481340408325195, 0.025476500391960144, 0.004093183670192957, -0.05941590666770935, 0.02681090123951435, -0.005583409685641527, -0.008989640511572361, -0.026828458532691002, -0.014476481825113297, 0.07570963352918625, -0.04217405617237091, -0.026442185044288635, -0.03441346809267998, 0.03539671003818512, -0.012299302965402603, 0.021561091765761375, 0.015573849901556969, 0.011149261146783829, -0.032710351049900055, -0.06127704307436943, -0.013616145588457584, 0.014529155567288399, 0.038311321288347244, 0.03264012187719345, 0.0419984795153141, 0.05758988484740257, 0.01840067096054554, 0.013054292649030685, 0.06587721407413483, -0.007084609474986792, -0.0010699339909479022, 0.011105366982519627, 0.025107786059379578, -0.02724984847009182, -0.019664838910102844, -0.03581809997558594, -0.06566651910543442, -0.019050313159823418, 0.012071050703525543, 0.0010896866442635655, 0.0721278190612793, 0.005517567507922649, 0.0931270569562912, -0.012668019160628319, 0.05548293888568878, -0.05516689643263817, 0.010034334845840931, 0.006110146641731262, 0.009463704191148281, 0.020665638148784637, -0.04287637397646904, 0.07065295428037643, 0.045264244079589844, 0.014221892692148685, -0.015942566096782684, 0.0035730309318751097, 0.028320880606770515, -0.013528355397284031, 0.017531555145978928, -0.0008850275189615786, 0.013484461233019829, -0.024528374895453453, 0.03025224804878235, 0.023597806692123413, 0.018541133031249046, -0.013958523981273174, -0.014529155567288399, 0.04354357346892357, 0.006540314760059118, -0.018541133031249046, 0.018260207027196884, 0.03188513219356537, 0.020086228847503662, 0.007045104168355465, -0.013949745334684849, -0.0005582860903814435, 0.04754677042365074, 0.018541133031249046, -0.005868725478649139, -0.013203535228967667, 0.022017596289515495, 0.004470678046345711, 0.02633683755993843, -0.017838818952441216, 0.015995239838957787, 0.015082228928804398, 0.05474550649523735, -0.013870734721422195, -0.07802727073431015, 0.013835619203746319, 0.039294563233852386, -0.016969703137874603, 0.043473340570926666, 0.007304083090275526, -0.0018973497208207846, 0.04491308704018593, -0.011842798441648483, 0.006935367360711098, 0.006856356747448444, 0.06847577542066574, -0.0020762206986546516, 0.01701359823346138, -0.02933923713862896, -0.0058204410597682, 0.01794416643679142, -0.011395071633160114, -0.023896291851997375, 0.006281335838139057, 0.00183370232116431, -0.0630328357219696, 0.05383249744772911, -0.0908094197511673, 0.005561462137848139 ]
20,478
metevolsim.metevolsim
get_number_of_parameters
Get the number of kinetic parameters. Parameters ---------- None Returns ------- int
def get_number_of_parameters( self ): """ Get the number of kinetic parameters. Parameters ---------- None Returns ------- int """ return len(self.parameters)
(self)
[ 0.012470313347876072, -0.039750177413225174, 0.006390825379639864, 0.017022566869854927, -0.0037991541903465986, 0.04631349816918373, -0.03641802817583084, -0.0012274675536900759, 0.05169878900051117, 0.043654512614011765, -0.018545594066381454, -0.05429045855998993, -0.0420389249920845, -0.018478278070688248, -0.0028083447832614183, -0.000198135559912771, 0.043015006929636, -0.00909609254449606, -0.0045354245230555534, -0.053751930594444275, 0.0015745663549751043, 0.014430895447731018, -0.014304677955806255, -0.025546472519636154, 0.0029051117599010468, 0.014052242040634155, 0.0770096555352211, -0.0010097419144585729, 0.03813458979129791, 0.00730380043387413, -0.1439218819141388, 0.009171823039650917, 0.020952146500349045, 0.03136931732296944, 0.0068662455305457115, 0.04543839022517204, 0.0120075149461627, 0.004247227218002081, -0.02361113391816616, 0.015558441169559956, -0.017569510266184807, -0.015491125173866749, 0.0449671745300293, -0.013143474236130714, 0.005873332265764475, 0.00632350891828537, 0.014085900969803333, 0.019723625853657722, -0.02478916570544243, -0.012865795753896236, 0.016879519447684288, -0.008776340633630753, 0.01879802905023098, -0.014742232859134674, -0.08273152261972427, 0.009011947549879551, 0.04782811179757118, 0.02081751450896263, -0.0019868777599185705, -0.02320723608136177, 0.008153666742146015, 0.046650078147649765, 0.03449951857328415, -0.05987769737839699, -0.02470502071082592, -0.022752853110432625, -0.009348527528345585, 0.029063738882541656, 0.024048687890172005, 0.038976039737463, 0.02229846827685833, 0.02519306167960167, 0.00297453161329031, 0.030258601531386375, -0.007926474325358868, -0.020245326682925224, -0.018528765067458153, 0.00622253492474556, 0.030527865514159203, -0.04170234501361847, 0.01045082975178957, 0.051261235028505325, 0.01799023523926735, 0.017737800255417824, 0.05772358179092407, 0.0044007920660078526, -0.0199928916990757, 0.012470313347876072, 0.0030691949650645256, 0.011031431145966053, -0.03268198296427727, 0.05287682265043259, 0.03988480940461159, 0.009314869530498981, 0.00011951242777286097, -0.005162305664271116, -0.009727180935442448, -0.08549148589372635, 0.03391050174832344, -0.06738344579935074, -0.021759940311312675, 0.029383491724729538, 0.024957455694675446, -0.008587013930082321, 0.00031791094806976616, -0.03968285769224167, -0.0100048603489995, -0.035441942512989044, 0.014414066448807716, 0.0559733621776104, 0.010324611328542233, -0.003561444114893675, -0.02409917488694191, 0.02009386569261551, 0.017754629254341125, -0.011023016646504402, -0.0015040948055684566, 0.013757734559476376, -0.01444772444665432, 0.003574065864086151, -0.02310626208782196, 0.05859869346022606, -0.011561545543372631, -0.030460549518465996, 0.045573022216558456, 0.053146086633205414, 0.014069071039557457, 0.014069071039557457, 0.00036340192309580743, -0.06223376467823982, 0.051059287041425705, -0.02519306167960167, 0.008090557530522346, 0.01669440045952797, 0.011376426555216312, -0.023560646921396255, 0.06785465776920319, -0.02340918406844139, -0.0043208543211221695, 0.014590771868824959, 0.03520633652806282, 0.08084667474031448, 0.0003747089358512312, 0.013757734559476376, -0.05089099705219269, 0.030982250347733498, 0.056007020175457, -0.04372182860970497, 0.012058001942932606, -0.024822823703289032, -0.011864468455314636, -0.002623225562274456, 0.013227620162069798, -0.038976039737463, -0.017224514856934547, -0.027178887277841568, 0.036451686173677444, -0.07963498681783676, -0.0016450380207970738, -0.08057741075754166, -0.03951456770300865, 0.04220721498131752, -0.041971608996391296, -0.03306904807686806, -0.0174853652715683, 0.02529403567314148, -0.017771458253264427, 0.006596981082111597, -0.0057807727716863155, -0.0012464002938941121, 0.0299893356859684, -0.01470016036182642, -0.024755507707595825, 0.00010209174797637388, 0.034045133739709854, 0.07559601217508316, -0.03343928977847099, -0.01099777314811945, 0.017123540863394737, -0.00155563373118639, 0.0194880198687315, -0.03833653777837753, -0.05217000097036362, -0.00939901452511549, 0.03263149410486221, 0.019959233701229095, 0.02409917488694191, 0.026976939290761948, -0.030039824545383453, 0.009718766435980797, 0.012478727847337723, 0.015263932757079601, -0.014548699371516705, 0.04789542779326439, -0.015415393747389317, 0.0022277431562542915, 0.08791486918926239, 0.02620280347764492, -0.01689634844660759, 0.010509731248021126, -0.00985339842736721, -0.03978383541107178, -0.041870635002851486, -0.008090557530522346, 0.009903885424137115, -0.008120008744299412, 0.015104057267308235, 0.005801809020340443, -0.030881274491548538, -0.018747542053461075, -0.03678826615214348, -0.03041006252169609, 0.06088744103908539, 0.021557990461587906, 0.04880419373512268, -0.06320984661579132, -0.019673138856887817, -0.017367562279105186, -0.03387684375047684, -0.014338335953652859, 0.0520353689789772, 0.04930906742811203, 0.03190784528851509, -0.01809121109545231, -0.0009666175465099514, -0.038269221782684326, 0.020009720697999, 0.023139920085668564, -0.026522556319832802, -0.052136342972517014, 0.0162484310567379, 0.03860580176115036, -0.018545594066381454, 0.037865325808525085, 0.00830512773245573, -0.010408757254481316, -0.013589443638920784, -0.06354642659425735, -0.05513191223144531, -0.0509919710457325, -0.02009386569261551, -0.030561523512005806, -0.015524783171713352, 0.022247981280088425, -0.07956767082214355, -0.007514163386076689, 0.003388946410268545, 0.06448885053396225, 0.000444128701929003, -0.0031196819618344307, 0.00009729284647619352, -0.06058451905846596, -0.04358719661831856, 0.019050465896725655, -0.044664252549409866, 0.007686660625040531, -0.007556235883384943, 0.028676671907305717, 0.0017691521206870675, -0.006197291426360607, -0.00034999128547497094, 0.030948592349886894, -0.04574131220579147, 0.08838608115911484, 0.037360452115535736, 0.029383491724729538, 0.04358719661831856, 0.028053997084498405, -0.07263410836458206, -0.0006216224282979965, 0.07411506026983261, 0.05361729860305786, -0.029635926708579063, -0.10285905003547668, -0.0015682554803788662, -0.06543128192424774, 0.02591671049594879, 0.02191140130162239, -0.03762971609830856, 0.05338169261813164, 0.0640513002872467, -0.04574131220579147, -0.024553559720516205, 0.014489796943962574, -0.05947380140423775, 0.021372871473431587, 0.01570148766040802, -0.0005069746403023601, -0.056949447840452194, -0.008801584132015705, 0.008422930724918842, -0.0012863691663369536, 0.025243548676371574, 0.044664252549409866, 0.06435421854257584, -0.03550925850868225, -0.04978027939796448, 0.007505748886615038, 0.045270100235939026, 0.056848473846912384, 0.05159781500697136, -0.01841096207499504, -0.02830643393099308, -0.02529403567314148, 0.01910095289349556, -0.00810317974537611, 0.0830007866024971, 0.007236483972519636, 0.02940032072365284, 0.006071073468774557, -0.02520989067852497, 0.03530731052160263, 0.025058429688215256, 0.009340113028883934, 0.030443720519542694, -0.03752874210476875, 0.038976039737463, -0.024637704715132713, -0.018865345045924187, 0.07828865945339203, 0.06152694299817085, -0.006941976025700569, 0.0035993093624711037, -0.04836663976311684, 0.002008965704590082, -0.014691745862364769, 0.021860914304852486, 0.008199946023523808, 0.004888833966106176, -0.028138142079114914, -0.0830007866024971, -0.02118775248527527, 0.006092109717428684, -0.007211240474134684, -0.058060161769390106, -0.033136364072561264, 0.02260139025747776, 0.027751075103878975, -0.03581218048930168, 0.00376128894276917, 0.02891227789223194, -0.03179004415869713, -0.047962743788957596, 0.02009386569261551, 0.00730380043387413, -0.0021362353581935167, 0.04856858775019646, -0.04328427091240883, 0.061964500695466995, 0.00821677502244711, -0.027027426287531853, 0.03608144819736481, 0.052338290959596634, 0.023745765909552574, 0.020245326682925224, 0.025563301518559456, 0.022332126274704933, 0.034247081726789474, 0.011569960042834282, 0.03857214376330376, 0.027464982122182846, 0.030477378517389297, -0.011729835532605648, 0.04049065336585045, 0.012621774338185787, 0.010812653228640556, 0.0001717087288852781, -0.018966320902109146, 0.022685537114739418, -0.018579252064228058, -0.02531086467206478, -0.05250658094882965, -0.04277940094470978, 0.005667177028954029, 0.043654512614011765, 0.033759038895368576, -0.00722386222332716, -0.00045832819887436926, 0.025378180667757988, -0.04389011859893799, -0.0380336157977581, -0.0310159083455801, -0.004118905868381262, -0.023072604089975357, -0.02559695951640606, 0.007207033224403858, -0.08461637794971466, -0.06489275395870209, -0.00846921093761921, -0.012958355247974396, 0.0037865324411541224, 0.0008840501541271806, -0.047255925834178925, -0.007341665681451559, -0.03577852249145508, 0.04782811179757118, 0.0008214671397581697, -0.017232930287718773, -0.014161631464958191, 0.012234706431627274, -0.0063866181299090385, -0.05408851057291031, -0.03278295695781708, 0.05829577147960663, 0.002246675780043006, -0.026068171486258507, 0.02418331988155842, 0.06435421854257584, -0.02371210791170597, -0.014220532961189747, -0.0035656513646245003, 0.009887056425213814, -0.04341890662908554, -0.020935317501425743, 0.004720543511211872, -0.015979167073965073, 0.00257484195753932, 0.009525232948362827, 0.05647823587059975, -0.0006116301519796252, 0.004455486312508583, 0.003935890272259712, 0.044664252549409866, 0.1040707379579544, 0.013766149058938026, 0.04382280260324478, -0.02840740792453289, -0.0010297264670953155, 0.004665849264711142, 0.007619344629347324, -0.1150432676076889, 0.01691317744553089, 0.0034730916377156973, -0.024065516889095306, -0.034566834568977356, -0.024536730721592903, 0.004354512318968773, -0.05287682265043259, -0.017350733280181885, 0.022937972098588943, 0.03091493248939514, 0.04651544615626335, 0.008801584132015705, 0.0370238721370697, 0.006045829970389605, -0.03759605810046196, 0.025546472519636154, -0.026926452293992043, 0.00358879123814404, -0.04311598092317581, -0.008961459621787071, -0.004097869619727135, 0.054357774555683136, -0.04782811179757118, 0.04567399621009827, -0.004362926818430424, -0.10245515406131744, -0.022180665284395218, -0.024587217718362808, -0.07270142436027527, 0.007042950484901667, 0.06152694299817085, -0.04651544615626335, -0.006584359332919121, -0.02290431410074234, 0.015491125173866749, 0.010173150338232517, -0.012781650759279728, 0.009769253432750702, 0.008624879643321037, 0.05264121666550636, 0.020060207694768906, -0.030645668506622314, -0.04870321974158287, 0.023543816059827805, 0.011822395958006382, 0.01888217404484749, 0.0660371258854866, -0.007779220584779978, -0.022685537114739418, -0.03110005334019661, -0.023055775091052055, -0.02739766612648964, 0.008927801623940468, -0.008258847519755363, 0.008427138440310955, -0.09276162832975388, -0.022130178287625313, -0.02840740792453289, -0.04018773138523102, -0.01879802905023098, -0.011830810457468033, 0.005292730871587992, 0.006479177623987198, -0.0011317525058984756, 0.0030271222349256277, 0.06374837458133698, -0.03212662413716316, -0.012243121862411499, 0.07451895624399185, -0.056949447840452194, 0.031133711338043213, 0.036350712180137634, -0.042846716940402985, -0.02179359830915928, -0.03441537171602249, 0.00361193111166358, 0.007775013335049152, 0.02021166868507862, 0.027229374274611473, -0.007783427834510803, -0.003626656485721469, 0.05657920986413956, 0.01928607188165188, 0.023156749084591866, -0.017821945250034332, 0.003125992836430669, 0.0610220730304718, -0.00011872356844833121, 0.03470146656036377, 0.03749508410692215, -0.011283866129815578, 0.046953000128269196, -0.04850127175450325, 0.008511283434927464, 0.03911067172884941, -0.021069949492812157, -0.061661574989557266, 0.041668687015771866, 0.08946313709020615, 0.020750196650624275, 0.003359495662152767, -0.014388822950422764, 0.061055731028318405, -0.0154995396733284, -0.02628694847226143, -0.00874268263578415, -0.03958188369870186, -0.0429813489317894, 0.055165570229291916, -0.008717439137399197, -0.08178909868001938, 0.04641447216272354, -0.019370216876268387, -0.0027410287875682116, 0.04988125339150429, 0.017333904281258583, -0.0325305201113224, -0.0034625735133886337, -0.043048664927482605, -0.02921520173549652, -0.007775013335049152, -0.028171801939606667, -0.03510536253452301, 0.08145251870155334, 0.05556946620345116, 0.04160137102007866, -0.06458982825279236, 0.008587013930082321, 0.010509731248021126, 0.0064160688780248165, -0.06182986497879028, 0.03921164572238922, -0.025782078504562378, -0.044664252549409866, -0.010879970155656338, -0.01564258523285389, 0.013816636055707932, -0.03921164572238922, 0.039245303720235825, -0.005263280123472214, 0.01980777084827423, -0.014203703962266445, -0.002316095633432269, -0.010147906839847565, -0.005402119364589453, -0.005292730871587992, 0.051665131002664566, -0.06139231100678444, -0.019235584884881973, 0.01968996785581112, 0.014338335953652859, 0.037360452115535736, 0.015297590754926205, -0.010602290742099285, 0.06482543796300888, -0.06819123774766922, -0.012335681356489658, -0.03917798772454262, 0.04473156854510307, -0.03473512455821037, 0.011738250032067299, -0.03217710927128792, -0.03779800608754158, -0.02191140130162239, 0.06425324827432632, 0.003254314186051488, -0.016240017488598824, 0.01354737114161253, 0.016096970066428185, -0.009011947549879551, -0.030056653544306755, -0.010972529649734497, 0.08347200602293015, -0.005793394520878792, -0.04368817061185837, -0.017333904281258583, 0.07855792343616486, 0.011822395958006382, -0.030763471499085426, 0.02741449512541294, -0.04567399621009827, -0.013606272637844086, -0.08535685390233994, -0.07472090423107147, 0.016399892047047615, 0.018141698092222214, 0.044361330568790436, 0.09841618686914444, 0.0013862915802747011, -0.024233806878328323, 0.011182892136275768, -0.018326817080378532, -0.01685427688062191, 0.005620896816253662, -0.02329138107597828, -0.03291758894920349, -0.08865534514188766, -0.03286710008978844, -0.0162484310567379, 0.04991491138935089, -0.04856858775019646, 0.015188202261924744, -0.06428690254688263, -0.03611510619521141, 0.024536730721592903, -0.03527365252375603, -0.037360452115535736, -0.03890872374176979, 0.04533741623163223, 0.01653452403843403, 0.09760838747024536, -0.044361330568790436, 0.015937093645334244, 0.02608500048518181, 0.013513713143765926, -0.01990874670445919, 0.020952146500349045, 0.055266544222831726, -0.0076109301298856735, -0.028777645900845528, -0.027582785114645958, 0.023038946092128754, -0.0084986612200737, 0.012234706431627274, -0.03587949648499489, 0.015735145658254623, 0.036956556141376495, -0.026859136298298836, -0.07364384829998016, -0.05388656258583069, -0.03202565014362335, 0.0024212771095335484, -0.023779423907399178, 0.042846716940402985, -0.03423025459051132, -0.021221410483121872, -0.06687857955694199, 0.0029555989895015955, -0.004211465362459421, 0.0006463400204665959, 0.005970099475234747, 0.034667808562517166, 0.025630617514252663, 0.012680675834417343, 0.01910095289349556, -0.04062528535723686, 0.02100263349711895, 0.045236438512802124, 0.004560668021440506, 0.009079263545572758, 0.043250612914562225, -0.036855582147836685, 0.009903885424137115, 0.05688213184475899, -0.042947690933942795, -0.017754629254341125, 0.017073053866624832, 0.034768782556056976, 0.05987769737839699, -0.06068549305200577, -0.040255047380924225, 0.04230818897485733, 0.06182986497879028, 0.008494454436004162, -0.0610220730304718, -0.01135959755629301, 0.023156749084591866, 0.023728936910629272, -0.0077371480874717236, -0.011511058546602726, 0.02021166868507862, -0.060954757034778595, 0.013875537551939487, -0.05190073698759079, 0.024334780871868134, -0.014397237449884415, -0.058060161769390106, -0.010046932846307755, -0.021120436489582062, -0.04049065336585045, 0.03958188369870186, 0.03907701373100281, -0.08360663801431656, -0.06475812196731567, 0.10144540667533875, 0.025731591507792473, 0.03421342372894287, -0.02499111369252205, 0.03441537171602249, 0.003651900216937065, 0.04870321974158287, 0.04351988062262535, 0.01691317744553089, -0.02549598552286625, 0.02950129471719265, 0.007400567177683115, -0.018680226057767868, 0.024233806878328323, -0.00780446408316493, -0.007207033224403858, -0.04429401457309723, -0.05731968581676483, -0.044058408588171005, -0.0035025423858314753, 0.0175190232694149, 0.0379999577999115, -0.02478916570544243, -0.003954822663217783, -0.0027915157843381166, 0.06829221546649933, 0.04920809343457222, -0.012992013245821, -0.04072625935077667, 0.07667307555675507, 0.012024343945086002, -0.008641708642244339, 0.025664275512099266, 0.0340283028781414, -0.02931617572903633, 0.05981038138270378, 0.0214906744658947, 0.056646525859832764, -0.10514779388904572, 0.02608500048518181, 0.009281211532652378, -0.0041651856154203415, -0.009819740429520607, -0.0061804624274373055, -0.0028504175134003162, -0.04728958383202553, -0.04028870537877083, 0.028441065922379494, 0.0669795498251915, 0.007947511039674282, 0.04772713780403137, -0.005831259768456221, -0.020060207694768906 ]
20,479
metevolsim.metevolsim
get_number_of_reactions
Get the number of reactions. Parameters ---------- None Returns ------- int
def get_number_of_reactions( self ): """ Get the number of reactions. Parameters ---------- None Returns ------- int """ return len(self.reactions)
(self)
[ -0.056636910885572433, -0.053707417100667953, 0.02188703417778015, 0.013502616435289383, 0.044380173087120056, 0.023284437134861946, 0.00490774679929018, 0.011978941969573498, 0.07192416489124298, 0.0012521909084171057, -0.013746741227805614, 0.02055697701871395, 0.009251480922102928, 0.002363378880545497, 0.004996136762201786, 0.013923521153628826, 0.04205678030848503, -0.025658339262008667, 0.007386874407529831, 0.006498765666037798, 0.025843536481261253, 0.047174979001283646, 0.017214994877576828, -0.038824230432510376, -0.03281371667981148, 0.05188910663127899, 0.013502616435289383, 0.027948059141635895, 0.021819690242409706, 0.0192269179970026, -0.06963444501161575, 0.012231484986841679, -0.0061662509106099606, 0.0517544187605381, -0.012963859364390373, 0.021179914474487305, -0.014125555753707886, 0.02537212334573269, -0.030086254701018333, 0.017492791637778282, -0.00037039598100818694, -0.001078567816875875, 0.058724597096443176, -0.014420188963413239, -0.021264096722006798, -0.037376321852207184, 0.010219561867415905, 0.013511034660041332, -0.00014968417235650122, -0.07946677505970001, 0.01776217110455036, 0.0371406152844429, -0.011095043271780014, 0.02005189098417759, 0.003962816204875708, 0.01964782178401947, 0.03143315017223358, 0.07650360465049744, -0.005560148507356644, 0.03764570131897926, -0.04178740084171295, 0.04313429445028305, 0.03269586339592934, -0.05498696491122246, 0.04724232107400894, -0.025944553315639496, 0.0014289708342403173, 0.04501994699239731, 0.03969971463084221, 0.0018845999147742987, 0.04340367391705513, 0.06822020560503006, -0.014630640856921673, 0.02281302399933338, -0.021853363141417503, -0.034716203808784485, 0.045053619891405106, -0.01352787110954523, 0.057546064257621765, -0.003594524459913373, 0.037915077060461044, 0.005711674224585295, 0.052091144025325775, 0.06465093046426773, 0.08512372523546219, -0.052495211362838745, 0.02390737645328045, -0.01552295871078968, -0.0822952538728714, 0.05512165650725365, -0.047073960304260254, 0.06468460708856583, 0.019058557227253914, -0.04370672628283501, -0.03902626782655716, -0.004836192820221186, -0.024361953139305115, -0.07347308844327927, 0.0385211817920208, -0.056771598756313324, -0.06983647495508194, 0.07630156725645065, -0.003851276356726885, -0.0062125506810843945, -0.014167645946145058, -0.032072924077510834, -0.018536634743213654, -0.015691319480538368, -0.037612028419971466, 0.008460180833935738, -0.00036224094219505787, -0.010387923568487167, 0.0022265848238021135, 0.017029795795679092, 0.052360519766807556, -0.008864249102771282, 0.016920361667871475, -0.007062777876853943, 0.03372287005186081, -0.005526476074010134, 0.0032725324854254723, 0.04286491498351097, 0.014378097839653492, -0.04229248687624931, 0.06862427294254303, 0.058084823191165924, -0.0192437544465065, -0.008586452342569828, 0.026112915948033333, -0.0015089426888152957, 0.04286491498351097, -0.019580477848649025, 0.01691194251179695, 0.0159101914614439, 0.03804976865649223, 0.021078897640109062, 0.07320371270179749, 0.0069365063682198524, 0.0017772692954167724, 0.03411010280251503, 0.016920361667871475, 0.06283262372016907, -0.022223757579922676, 0.039228301495313644, -0.04485158622264862, -0.0136036342009902, -0.0036197789013385773, 0.04990243911743164, 0.012046286836266518, -0.011322331614792347, 0.010051200166344643, -0.04219146817922592, 0.02680319920182228, 0.02390737645328045, 0.004646786022931337, 0.03214026987552643, -0.03501925617456436, -0.04565972089767456, -0.009832329116761684, -0.07347308844327927, -0.018907031044363976, 0.026988396421074867, -0.00842650793492794, -0.018806014209985733, -0.021971216425299644, 0.01883968524634838, 0.060879629105329514, -0.026483312249183655, -0.021600820124149323, 0.05404413864016533, 0.0225773174315691, -0.01846929080784321, -0.03081021085381508, -0.034312136471271515, 0.02045596018433571, 0.07104868441820145, -0.026500148698687553, -0.021129406988620758, 0.008123457431793213, -0.006389330606907606, -0.013384763151407242, -0.07050992548465729, -0.0371406152844429, -0.05020549148321152, 0.027005232870578766, -0.02404206618666649, 0.05943171679973602, 0.010337415151298046, -0.001365835196338594, 0.08411356061697006, 0.012071541510522366, -0.00869588740170002, -0.032325465232133865, 0.03666920214891434, -0.008144502528011799, -0.06195714324712753, 0.005972635000944138, 0.006229386664927006, -0.010051200166344643, -0.05246153846383095, -0.03885790333151817, -0.0029063457623124123, -0.028604671359062195, -0.012256739661097527, 0.058219511061906815, 0.0005227107903920114, -0.0024875456001609564, 0.007399501278996468, -0.06539172679185867, -0.07710970938205719, -0.06990382075309753, -0.014100301079452038, 0.05852256342768669, 0.005837945733219385, 0.0009964914061129093, -0.07549343258142471, 0.036029424518346786, -0.0411812961101532, -0.0332346186041832, -0.0003256748605053872, 0.050239164382219315, 0.013822504319250584, -0.031163770705461502, -0.009958600625395775, 0.015430359169840813, -0.019748840481042862, -0.035389650613069534, 0.038824230432510376, -0.0029168683104217052, -0.03875688835978508, -0.01750962808728218, 0.06401115655899048, 0.023941049352288246, 0.024361953139305115, 0.0013237446546554565, -0.04966673254966736, -0.016263749450445175, 0.012795496731996536, -0.03609677031636238, 0.026769526302814484, -0.05478493124246597, -0.025944553315639496, 0.04033948853611946, 0.0451546348631382, -0.05465024337172508, 0.0027001025155186653, -0.00033698667539283633, 0.022796187549829483, -0.02163449116051197, 0.009916510432958603, -0.02042228728532791, -0.06835488975048065, -0.04501994699239731, -0.029783202335238457, 0.008178174495697021, -0.021567147225141525, -0.04673723876476288, 0.05525634437799454, -0.04956571385264397, -0.035086601972579956, 0.056064482778310776, 0.014571714214980602, -0.0358610637485981, 0.026045572012662888, -0.03474987670779228, -0.01254295464605093, -0.000889160786755383, 0.03939666226506233, -0.05485227704048157, -0.00015520854503847659, 0.015295670367777348, -0.00716800382360816, 0.0014289708342403173, -0.0637417808175087, -0.05081159248948097, -0.10579855740070343, 0.03173619881272316, -0.0033146231435239315, -0.06758043169975281, -0.0034093265421688557, -0.03838649019598961, -0.024900710210204124, -0.009200972504913807, 0.006359867285937071, -0.030305124819278717, 0.03104591742157936, 0.04831983894109726, 0.030490322038531303, -0.05640120431780815, 0.009251480922102928, 0.052124813199043274, -0.0024959638249129057, 0.03609677031636238, 0.04724232107400894, 0.046501532196998596, -0.027847042307257652, -0.023654833436012268, 0.02710624970495701, 0.037241630256175995, 0.048252493143081665, -0.012046286836266518, -0.03341981768608093, -0.056872617453336716, -0.04178740084171295, -0.015017872676253319, 0.00245387339964509, 0.07380981743335724, 0.020237088203430176, 0.04491892829537392, 0.010606793686747551, 0.023402290418744087, 0.0557614304125309, -0.009049447253346443, 0.027779698371887207, 0.06859059631824493, -0.004537350498139858, -0.02284669689834118, -0.004196417983621359, -0.0024223055224865675, 0.07131806015968323, 0.026887379586696625, 0.015758665278553963, 0.00766888028010726, 0.019210081547498703, -0.008615915663540363, -0.04966673254966736, -0.003312518587335944, 0.013376344926655293, 0.033520836383104324, -0.03148365765810013, -0.07448326051235199, -0.056367531418800354, -0.013974029570817947, -0.008990520611405373, -0.046501532196998596, -0.014159227721393108, 0.0225604809820652, -0.002384423976764083, -0.024732349440455437, 0.01034583244472742, 0.031635183840990067, -0.02510274574160576, -0.01883968524634838, 0.028907721862196922, 0.02865517884492874, 0.009739730507135391, 0.05616549775004387, -0.037376321852207184, 0.06222652271389961, -0.03411010280251503, 0.003851276356726885, 0.026062406599521637, 0.05946538969874382, 0.0437740683555603, 0.0015973326517269015, 0.01553137693554163, 0.01347736269235611, 0.032072924077510834, 0.03429529815912247, 0.055020637810230255, -0.03249382972717285, 0.013123802840709686, 0.020876863971352577, 0.027779698371887207, -0.05670425668358803, 0.018907031044363976, -0.03703959658741951, 0.0009449306526221335, -0.00843492615967989, -0.035490669310092926, -0.026853708550333977, -0.009049447253346443, -0.03269586339592934, 0.0008828472346067429, 0.02362116053700447, 0.03700592368841171, 0.012298829853534698, 0.014672731049358845, 0.028183765709400177, -0.017156068235635757, -0.013586797751486301, 0.00478147529065609, -0.0437740683555603, -0.009739730507135391, -0.03399224951863289, 0.020405450835824013, -0.05562673881649971, -0.029143428429961205, -0.03215710446238518, 0.008131874725222588, -0.003293577814474702, -0.0034682531841099262, -0.058084823191165924, -0.037241630256175995, -0.10546183586120605, -0.005160289350897074, 0.03488456457853317, -0.03094490058720112, 0.018907031044363976, -0.00936933420598507, 0.09185820072889328, 0.013435271568596363, 0.026735855266451836, 0.010867754928767681, -0.04077722877264023, 0.06882630288600922, -0.023941049352288246, 0.04636684060096741, -0.03170252963900566, -0.04751170054078102, -0.02336861938238144, 0.01359521597623825, -0.007348992861807346, -0.032847389578819275, -0.019563641399145126, -0.08815424144268036, 0.023823196068406105, 0.0004992979811504483, 0.05161973088979721, 0.007664671167731285, 0.009032610803842545, 0.017358101904392242, 0.043605707585811615, 0.10175787657499313, 0.005909499246627092, 0.01833460107445717, 0.022661499679088593, 0.0318877249956131, 0.014681149274110794, 0.024513479322195053, -0.060340870171785355, -0.02404206618666649, 0.024126246571540833, -0.0689273253083229, 0.02269517071545124, -0.03198874369263649, -0.03264535218477249, -0.05879194289445877, -0.03439631685614586, 0.03916095569729805, 0.04299960657954216, 0.033268291503190994, 0.04212412238121033, 0.002626444213092327, 0.020388614386320114, -0.055424705147743225, 0.009899673983454704, -0.04744435474276543, 0.05353905260562897, -0.054347191005945206, -0.07737908512353897, -0.004899328574538231, 0.041619036346673965, -0.007997185923159122, 0.002937913406640291, -0.01080882828682661, -0.08485434949398041, 0.034429989755153656, -0.015834428369998932, -0.0783219113945961, 0.007193258032202721, 0.049161646515131, -0.05869092419743538, -0.0056274933740496635, -0.01539668720215559, -0.007572072092443705, -0.0106152119114995, -0.03331880271434784, -0.021062061190605164, 0.03094490058720112, 0.04155169427394867, 0.001413186895661056, -0.02641596645116806, -0.02560782991349697, 0.0311806071549654, -0.014234990812838078, -0.0205906480550766, 0.006810234859585762, -0.015539794228971004, -0.012206231243908405, 0.015556630678474903, 0.0338238850235939, -0.014428606256842613, -0.03249382972717285, -0.041349660605192184, -0.010867754928767681, -0.09408057481050491, -0.009116792120039463, 0.04087824746966362, -0.036298803985118866, -0.019479461014270782, -0.010985608212649822, -0.0031062753405421972, -0.009276735596358776, 0.005391786806285381, 0.013628887943923473, 0.04980142042040825, -0.01750962808728218, 0.015817591920495033, 0.030827047303318977, -0.0358273908495903, 0.030995408073067665, 0.01062363013625145, 0.002759029157459736, -0.03727530315518379, -0.001960362773388624, -0.013746741227805614, -0.022880369797348976, 0.04128231480717659, -0.029143428429961205, 0.020102400332689285, 0.0020845294930040836, 0.0451546348631382, 0.025287942960858345, 0.005635911598801613, -0.039733387529850006, 0.03552434220910072, 0.044144466519355774, 0.00042590274824760854, 0.02335178293287754, 0.02974953129887581, -0.00782882422208786, -0.011499111540615559, 0.031904563307762146, -0.020102400332689285, 0.02149980328977108, -0.011002443730831146, -0.04323531314730644, 0.011827416718006134, 0.06000414863228798, 0.03278004378080368, -0.0030347215943038464, -0.03370603173971176, 0.01873866841197014, -0.021819690242409706, -0.03421111777424812, -0.0411812961101532, -0.04141700267791748, -0.020388614386320114, 0.08835627883672714, 0.005223425105214119, -0.08067897707223892, -0.00146685226354748, -0.04397610202431679, -0.05592979118227959, 0.014428606256842613, 0.023570653051137924, -0.009335662238299847, -0.000666081381496042, -0.027274612337350845, -0.04589542746543884, 0.006528228987008333, -0.0036134652327746153, -0.03754468262195587, 0.07616688311100006, 0.03341981768608093, 0.02084319107234478, -0.04337000101804733, 0.08525841683149338, 0.026752689853310585, -0.0030515578109771013, -0.07380981743335724, -0.008464389480650425, 0.013982447795569897, 0.016474202275276184, 0.03609677031636238, 0.0015278833452612162, 0.000043931908294325694, -0.03831914812326431, 0.04330265522003174, -0.010177470743656158, 0.004878283478319645, -0.008241310715675354, 0.07845660299062729, -0.02217325009405613, -0.00956295058131218, -0.023402290418744087, -0.01845245435833931, 0.03919462859630585, -0.013250074349343777, -0.0136036342009902, -0.019176408648490906, 0.03946400806307793, -0.03677021712064743, -0.0015447195619344711, 0.014925274066627026, -0.05491961911320686, 0.01766115240752697, -0.026618001982569695, 0.031382638961076736, -0.029648514464497566, -0.018233584240078926, -0.04744435474276543, -0.01858714409172535, 0.03119744174182415, 0.023183420300483704, 0.023452799767255783, -0.015741828829050064, -0.011760071851313114, 0.07266495376825333, 0.017543300986289978, 0.0192605908960104, -0.03370603173971176, 0.04262920841574669, 0.009259899146854877, -0.06862427294254303, -0.0006318829255178571, 0.05589611828327179, 0.0225773174315691, -0.0245471503585577, -0.027426138520240784, -0.0272072684019804, 0.02016974426805973, -0.03429529815912247, -0.03663552924990654, -0.027173595502972603, 0.004709921311587095, 0.04922899231314659, 0.014925274066627026, 0.04498627409338951, -0.02508590929210186, 0.009184136055409908, -0.017055051401257515, 0.024900710210204124, -0.0570409782230854, 0.017459118738770485, -0.048252493143081665, -0.059936802834272385, -0.023402290418744087, -0.049026958644390106, 0.04363938048481941, -0.0636407658457756, 0.03025461547076702, -0.05670425668358803, -0.012846006080508232, 0.002643280429765582, -0.00617466913536191, 0.015842845663428307, -0.028604671359062195, 0.00013955615577287972, 0.009983855299651623, 0.07125071436166763, -0.029042411595582962, 0.03170252963900566, -0.014251826331019402, 0.027022069320082664, -0.023435963317751884, -0.007445800583809614, 0.0136036342009902, -0.0192437544465065, -0.024227263405919075, -0.004240612965077162, 0.05333701893687248, 0.03747733682394028, -0.0045583960600197315, -0.014706403948366642, 0.03943033516407013, 0.010699392296373844, -0.04205678030848503, -0.06747940927743912, -0.014984200708568096, -0.015952281653881073, -0.0015962803736329079, -0.03025461547076702, 0.05225950479507446, -0.0285204891115427, 0.0011880029924213886, -0.05007079988718033, -0.005122407805174589, -0.006254640873521566, 0.05239419266581535, 0.11226364970207214, 0.04037316143512726, 0.01737493835389614, 0.0232339296489954, 0.03885790333151817, -0.031012244522571564, 0.053033970296382904, 0.04869023337960243, 0.0021276723127812147, -0.01776217110455036, 0.050104472786188126, -0.07475264370441437, -0.02882354147732258, 0.07374247163534164, -0.010876172222197056, -0.092868372797966, 0.03747733682394028, 0.026887379586696625, 0.0006413532537408173, -0.038184456527233124, -0.025843536481261253, -0.03175303712487221, 0.017071887850761414, -0.016693072393536568, 0.0043142712675035, -0.06923037767410278, 0.01887335814535618, 0.029294954612851143, -0.0016751999501138926, 0.05111464485526085, 0.02338545396924019, 0.020540140569210052, -0.016785671934485435, -0.04724232107400894, -0.030372468754649162, -0.04172005504369736, -0.040541522204875946, -0.01134758535772562, 0.030827047303318977, -0.020944207906723022, 0.09502340108156204, 0.011524365283548832, -0.04818514734506607, -0.06387647241353989, 0.032847389578819275, 0.038184456527233124, 0.06411217898130417, -0.049195319414138794, 0.027123086154460907, -0.003384072333574295, -0.0033588178921490908, 0.021331440657377243, 0.04262920841574669, 0.004255344625562429, 0.00386811257340014, 0.012972276657819748, -0.01049735862761736, -0.0003438263665884733, -0.05003712698817253, -0.0019382652826607227, -0.0730690211057663, -0.017896858975291252, -0.0451546348631382, 0.038824230432510376, 0.008906339295208454, 0.029682185500860214, -0.015994371846318245, 0.07077930122613907, -0.005598030053079128, 0.03754468262195587, -0.03505292907357216, -0.004236403852701187, -0.02363799698650837, 0.05717566981911659, -0.024900710210204124, 0.0010491044959053397, 0.010791991837322712, 0.022661499679088593, -0.015110472217202187, 0.007971931248903275, 0.004364779684692621, 0.040945589542388916, -0.08485434949398041, 0.01036266889423132, 0.04195576161146164, -0.04023846983909607, -0.011246568523347378, -0.022358447313308716, 0.013755159452557564, 0.03237597644329071, -0.02533845230937004, 0.03825180232524872, 0.02612975239753723, 0.01912590116262436, 0.0703752338886261, 0.017358101904392242, 0.02096104435622692 ]
20,480
metevolsim.metevolsim
get_number_of_species
Get the number of species. Parameters ---------- None Returns ------- int
def get_number_of_species( self ): """ Get the number of species. Parameters ---------- None Returns ------- int """ return len(self.species)
(self)
[ 0.012506434693932533, -0.034934915602207184, 0.006764277350157499, 0.002989494940266013, 0.0320596843957901, 0.04477386549115181, -0.014991101808845997, 0.004146651830524206, 0.03882396221160889, -0.02072494849562645, -0.02404891699552536, -0.012165728025138378, -0.016146181151270866, -0.041749052703380585, 0.03965495526790619, 0.01569744572043419, 0.03367180749773979, 0.004724191501736641, 0.019495079293847084, -0.011525863781571388, -0.013104748912155628, 0.07000279426574707, 0.03633098304271698, -0.09406833350658417, -0.008816828951239586, 0.06395316869020462, 0.06062920019030571, -0.013719683513045311, 0.039023399353027344, -0.0021855097729712725, -0.07312732189893723, 0.0031910105608403683, -0.01841478981077671, 0.04357723891735077, 0.046435851603746414, 0.016985483467578888, -0.024879910051822662, 0.039854392409324646, -0.023899339139461517, 0.05826918035745621, -0.028719095513224602, -0.03265799954533577, 0.036796338856220245, -0.018398169428110123, -0.0054346900433301926, -0.03127855062484741, 0.010462193749845028, -0.011750231496989727, -0.017268020659685135, -0.054878734052181244, -0.032275743782520294, 0.0071382238529622555, 0.0032720323652029037, -0.022802429273724556, -0.020193113014101982, 0.04258004575967789, 0.053416185081005096, 0.035499993711709976, 0.006677023135125637, 0.034236885607242584, -0.016162801533937454, 0.019395360723137856, 0.012473194859921932, -0.10995690524578094, 0.009622891433537006, -0.033023636788129807, 0.025262165814638138, 0.05404774099588394, 0.018547749146819115, 0.0392228364944458, 0.051388565450906754, 0.049493901431560516, 0.02532864548265934, 0.051288846880197525, 0.029533468186855316, 0.0143263079226017, -0.00048353365855291486, -0.01814887300133705, 0.09067787975072861, -0.03277433663606644, 0.008858378045260906, 0.02303510718047619, 0.019212542101740837, 0.027007250115275383, 0.02225397527217865, -0.0035441822838038206, 0.052319277077913284, 0.002989494940266013, -0.031178832054138184, 0.05391478165984154, -0.03825888782739639, 0.06544895470142365, 0.04002058878540993, -0.02951684780418873, -0.007221323437988758, 0.004990108776837587, 0.002561533823609352, -0.05551028624176979, 0.044973306357860565, -0.06391993165016174, -0.01262277364730835, 0.07279492914676666, 0.040386226028203964, 0.009880498982965946, -0.017284641042351723, -0.0059997644275426865, 0.011309805326163769, -0.01069487165659666, -0.033887866884469986, 0.04151637479662895, -0.013378976844251156, -0.008326543495059013, -0.04467414692044258, 0.006751812528818846, 0.015124060213565826, -0.04354399815201759, 0.04178229346871376, 0.007275337819010019, 0.017168302088975906, -0.044208791106939316, -0.0297661442309618, 0.05192039906978607, -0.011351355351507664, -0.0475660003721714, 0.06561515480279922, 0.05534408986568451, -0.019711138680577278, -0.029732905328273773, -0.025012869387865067, -0.021954817697405815, 0.05501169338822365, -0.018996484577655792, 0.025794001296162605, 0.020691709592938423, 0.046602047979831696, -0.021173683926463127, 0.03809268772602081, -0.01713506132364273, -0.013802782632410526, 0.013237707316875458, 0.004807290621101856, 0.03365518897771835, -0.008625700138509274, -0.015232088975608349, -0.04022002965211868, 0.06182583048939705, 0.016910694539546967, -0.0032699548173695803, -0.02787148207426071, -0.024630611762404442, -0.0013275102246552706, -0.010362474247813225, 0.03237546235322952, -0.01689407415688038, -0.023566942662000656, 0.013860952109098434, 0.001812602044083178, -0.08190260082483292, 0.016304070129990578, -0.07306084781885147, -0.003232560120522976, 0.03676310181617737, -0.04204821214079857, 0.0023517082445323467, -0.06378696858882904, 0.028602756559848785, -0.01538997795432806, -0.03152784705162048, -0.004090559668838978, 0.02275256998836994, -0.012373475357890129, -0.0025947734247893095, -0.05454633757472038, 0.0101879658177495, 0.0642523244023323, 0.06947095692157745, 0.0015279871877282858, -0.018298450857400894, 0.019395360723137856, 0.014193348586559296, -0.024580752477049828, -0.07179773598909378, -0.04201497137546539, -0.02891853265464306, 0.019411981105804443, 0.01543152704834938, 0.03335603326559067, 0.016096321865916252, 0.0406189039349556, 0.058701299130916595, 0.02045903168618679, 0.0012869993224740028, -0.02497962862253189, 0.03011516109108925, 0.02702387049794197, -0.05457957461476326, 0.05155476555228233, -0.004753276240080595, -0.030896294862031937, -0.019212542101740837, -0.0566071979701519, 0.024746950715780258, -0.04527246206998825, -0.015207159332931042, 0.020591989159584045, 0.04161609709262848, -0.006884771399199963, 0.0073293522000312805, -0.08981364965438843, -0.04759924113750458, -0.02574414201080799, -0.03255828097462654, 0.0226029921323061, 0.033040255308151245, 0.06794193387031555, -0.1416010856628418, 0.043278079479932785, -0.06209174543619156, 0.005218631587922573, -0.008542601019144058, 0.05158800259232521, 0.0196114182472229, 0.024846671149134636, -0.012905310839414597, -0.03318983316421509, -0.022802429273724556, -0.029716284945607185, 0.02710697054862976, -0.005359900649636984, -0.033455751836299896, -0.041150741279125214, 0.0421479307115078, 0.023733140900731087, 0.0286526158452034, -0.006099483463913202, 0.0047325012274086475, -0.004474893677979708, -0.0032637224067002535, -0.07738200575113297, -0.016910694539546967, -0.0753876268863678, -0.02846979722380638, 0.0016297836555168033, 0.020907767117023468, -0.07472282648086548, -0.024447795003652573, -0.024181876331567764, 0.04936094582080841, -0.013744613155722618, -0.03805944696068764, -0.014592225663363934, -0.05534408986568451, -0.024630611762404442, -0.014808283187448978, 0.008966406807303429, -0.055211130529642105, -0.0414498969912529, 0.03249179944396019, -0.009440072812139988, -0.021472841501235962, -0.0053682103753089905, -0.030065301805734634, 0.001088599907234311, 0.04324484243988991, -0.08236795663833618, 0.01330418698489666, -0.0033904486335814, 0.04168257489800453, -0.05029165372252464, 0.016079701483249664, 0.03152784705162048, 0.007528790272772312, -0.04248032718896866, -0.09466664493083954, -0.025046108290553093, -0.07306084781885147, 0.019461840391159058, 0.022918768227100372, -0.014442646875977516, 0.009431762620806694, 0.007354282308369875, -0.008617390878498554, -0.012182347476482391, -0.02966642566025257, -0.010512053035199642, 0.00963951088488102, 0.02175537869334221, 0.04517274349927902, -0.07904399186372757, -0.004990108776837587, -0.007981681264936924, -0.03370504826307297, -0.005380675196647644, 0.030630378052592278, 0.04995925724506378, -0.036198027431964874, -0.055310849100351334, 0.06624671071767807, 0.019129443913698196, 0.0065108248963952065, -0.018364930525422096, -0.03234222158789635, -0.06604727357625961, -0.021373122930526733, -0.04410907253623009, 0.005646592937409878, 0.06777573376893997, -0.0024015677627176046, 0.011758541688323021, 0.014550675638020039, -0.010736420750617981, 0.07292788475751877, -0.007192238699644804, 0.040552426129579544, 0.04188201203942299, 0.00432531489059329, -0.04862967133522034, -0.007383367046713829, -0.024447795003652573, 0.0708005428314209, 0.051455043256282806, -0.01423489861190319, 0.010802900418639183, -0.027007250115275383, 0.021256783977150917, 0.012390095740556717, -0.006938785780221224, 0.0078030177392065525, 0.02702387049794197, -0.0008512477506883442, -0.07452338933944702, -0.05574296414852142, 0.02268609032034874, -0.01687745377421379, -0.015630966052412987, -0.04849671199917793, 0.022054536268115044, 0.006834912113845348, -0.03726169466972351, -0.016428718343377113, -0.002095139352604747, -0.032109543681144714, -0.039954110980033875, 0.014833212830126286, 0.06146019324660301, -0.0210739653557539, 0.02320130541920662, -0.06445176154375076, 0.045305702835321426, -0.006095328833907843, 0.03121207095682621, 0.02900163270533085, 0.03965495526790619, 0.021206924691796303, 0.007113294210284948, 0.053083788603544235, 0.026076538488268852, 0.04710064455866814, 0.018099013715982437, 0.06551543623209, -0.036031827330589294, -0.03726169466972351, 0.03317321464419365, 0.0005232655094005167, -0.02320130541920662, -0.03530055284500122, -0.024613993242383003, 0.004491513594985008, -0.022220734506845474, -0.04799811542034149, -0.026791192591190338, -0.0017513163620606065, -0.029101351276040077, -0.04746628180146217, 0.06531599909067154, 0.02361680194735527, 0.04460766911506653, 0.0054762396030128, -0.004641091916710138, -0.06734361499547958, -0.04188201203942299, 0.004902854561805725, -0.056573957204818726, -0.008405487053096294, -0.036198027431964874, -0.0011415757471695542, -0.06421908736228943, -0.015281949192285538, -0.0406189039349556, -0.005010883789509535, -0.01342883612960577, 0.004657711833715439, -0.031178832054138184, -0.027439367026090622, -0.01791619509458542, -0.0037706277798861265, -0.008874998427927494, -0.07884455472230911, 0.0035150975454598665, 0.03470223769545555, 0.06222470477223396, -0.03402082622051239, 0.043444279581308365, 0.08276683837175369, -0.038591284304857254, -0.00007472439028788358, 0.0011800091015174985, -0.008708799257874489, -0.06667882204055786, -0.039422277361154556, -0.009332044050097466, 0.014974481426179409, -0.029948962852358818, -0.05321674793958664, -0.016146181151270866, -0.03402082622051239, 0.028253739699721336, 0.0020203501917421818, 0.05926637351512909, 0.0013669823529198766, -0.005035813432186842, -0.004223518539220095, 0.0260100606828928, 0.14372843503952026, 0.020375931635499, 0.006465120241045952, -0.0019767230842262506, -0.00008108666952466592, -0.003074671607464552, 0.007192238699644804, -0.06298922002315521, -0.008858378045260906, 0.02532864548265934, -0.02318468503654003, 0.014301378279924393, -0.04410907253623009, -0.018298450857400894, -0.04367695748806, -0.04135017842054367, 0.02532864548265934, 0.04613669216632843, 0.051621243357658386, 0.009465002454817295, 0.07066758722066879, 0.019146062433719635, -0.04886234924197197, 0.032275743782520294, -0.014251518063247204, 0.030730096623301506, -0.06072891876101494, -0.03239208087325096, -0.053083788603544235, 0.015182229690253735, -0.020941006019711494, 0.030646996572613716, 0.0076451292261481285, -0.029533468186855316, -0.009431762620806694, -0.024148637428879738, -0.08376402407884598, 0.00860908068716526, 0.08283331245183945, -0.0027028026524931192, -0.007499705534428358, -0.05893397703766823, -0.0014178806450217962, -0.012415025383234024, -0.013079819269478321, 0.016835903748869896, 0.004882080014795065, 0.05850185826420784, 0.038425084203481674, -0.003444463247433305, -0.059233132749795914, 0.0191959235817194, 0.009165845811367035, -0.03446956351399422, 0.02873571403324604, -0.006739347707480192, -0.030896294862031937, 0.00976416002959013, 0.035167593508958817, 0.015057580545544624, -0.02429821528494358, 0.01859760843217373, 0.0003916051355190575, -0.06887264549732208, -0.029184451326727867, 0.04321160167455673, -0.016063081100583076, 0.01994381658732891, -0.029201069846749306, -0.008363937959074974, -0.026375696063041687, -0.0050856731832027435, 0.043012164533138275, 0.0709335058927536, -0.017467457801103592, -0.020193113014101982, 0.028935153037309647, -0.04886234924197197, 0.02165566012263298, 0.04274624586105347, -0.029466988518834114, -0.031228691339492798, -0.04314512014389038, 0.014151799492537975, 0.0008559221168980002, 0.03350561112165451, 0.005804481450468302, 0.01627914048731327, -0.01858098804950714, 0.07811328023672104, 0.007009420078247786, 0.031843625009059906, 0.007499705534428358, -0.0028399163857102394, 0.040984541177749634, 0.02497962862253189, 0.08449529856443405, 0.024414554238319397, -0.06199202686548233, 0.006556529551744461, 0.005821101367473602, -0.012897000648081303, 0.02429821528494358, -0.01117684692144394, -0.010246135294437408, 0.012888691388070583, 0.06900560110807419, 0.0012257136404514313, -0.02311820723116398, -0.04836375266313553, 0.054779015481472015, 0.029367268085479736, -0.018979864194989204, -0.015414907597005367, -0.05677339434623718, 0.04537218064069748, 0.06777573376893997, -0.0010418565943837166, -0.06102807819843292, 0.027073729783296585, -0.01866408810019493, -0.015630966052412987, -0.011118677444756031, -0.01096078846603632, -0.03609830513596535, 0.04440822824835777, -0.021256783977150917, -0.03282419592142105, 0.009996837936341763, -0.02208777517080307, -0.06624671071767807, 0.10211233794689178, 0.05720551311969757, 0.009157535620033741, -0.03762733191251755, 0.015290258452296257, 0.023932579904794693, 0.030248120427131653, -0.03104587271809578, 0.05976496636867523, -0.02551146410405636, 0.011226706206798553, 0.03139489144086838, -0.009822329506278038, -0.010246135294437408, -0.02727316878736019, -0.021539321169257164, 0.007765623275190592, 0.004624472465366125, -0.014168418943881989, 0.05394802242517471, -0.029899103567004204, 0.009780779480934143, -0.0368628203868866, 0.03523407503962517, 0.0015311033930629492, -0.012606153264641762, -0.019478460773825645, 0.0063529363833367825, 0.015298568643629551, -0.004429189022630453, -0.007462311070412397, 0.04716712608933449, -0.05298407003283501, 0.008214359171688557, -0.04653557017445564, 0.022536512464284897, -0.009922048076987267, -0.025544704869389534, -0.0489620678126812, -0.026541894301772118, -0.006527444813400507, 0.04912826791405678, -0.00019541304209269583, -0.05703931301832199, 0.004449964035302401, 0.02394919842481613, 0.013769542798399925, 0.011924739927053452, -0.01756717823445797, 0.036995779722929, 0.07379211485385895, -0.04852995276451111, 0.0020972169004380703, 0.060064125806093216, -0.016495198011398315, -0.05713903158903122, 0.008272528648376465, -0.018198732286691666, 0.0006928398506715894, -0.07937638461589813, -0.04656881093978882, -0.010977408848702908, 0.023650040850043297, -0.022370314225554466, 0.028719095513224602, -0.02497962862253189, -0.025544704869389534, 0.002389102941378951, -0.00019125807739328593, 0.004061474930495024, -0.008172809146344662, -0.005530253984034061, -0.02182185836136341, -0.028868673369288445, -0.048230793327093124, -0.05474577471613884, 0.025810621678829193, -0.040751863270998, 0.03583239018917084, -0.059233132749795914, -0.03335603326559067, -0.011035578325390816, -0.015822093933820724, 0.003182700602337718, -0.045305702835321426, 0.051787443459033966, -0.020941006019711494, 0.07585298269987106, -0.029184451326727867, 0.052219558507204056, -0.032957155257463455, -0.012099248357117176, -0.010686561465263367, 0.023683281615376472, -0.008766968734562397, -0.034236885607242584, 0.0008211242966353893, 0.0028399163857102394, 0.03280757740139961, 0.014941241592168808, 0.025594564154744148, -0.037228457629680634, 0.06062920019030571, -0.02207115665078163, -0.04630289226770401, -0.04085158184170723, 0.014143489301204681, -0.009298804216086864, -0.002576076192781329, -0.03367180749773979, 0.08103837072849274, -0.022054536268115044, 0.027173448354005814, -0.051787443459033966, 0.024181876331567764, -0.020242972299456596, 0.028719095513224602, 0.07505522668361664, 0.02627597749233246, -0.011625582352280617, -0.022536512464284897, 0.03282419592142105, -0.027057109400629997, 0.06614699214696884, 0.06531599909067154, 0.01266432274132967, 0.02557794377207756, 0.004300385247915983, -0.029832623898983, -0.017533937469124794, 0.056407760828733444, 0.006423570681363344, -0.02355032227933407, 0.020159874111413956, 0.041915252804756165, 0.018547749146819115, -0.027173448354005814, -0.05900045484304428, -0.0011779316700994968, 0.06315542012453079, 0.011692062020301819, 0.014226588420569897, 0.0039430586621165276, 0.022054536268115044, 0.037294935435056686, 0.0191959235817194, 0.028336837887763977, 0.03672986105084419, 0.012390095740556717, 0.0076451292261481285, -0.04666852951049805, -0.010337544605135918, -0.038425084203481674, -0.01239840593189001, 0.009971908293664455, 0.006585614290088415, -0.016744496300816536, 0.06372049450874329, 0.024065537378191948, -0.06235766410827637, -0.04956038296222687, 0.0497930608689785, 0.05321674793958664, 0.07718256860971451, -0.01678604446351528, 0.04128370061516762, 0.03232560306787491, -0.0004012134741060436, 0.06102807819843292, 0.033223073929548264, -0.01876380667090416, 0.004823910538107157, 0.014259828254580498, 0.013644893653690815, 0.010428953915834427, -0.008658939972519875, -0.009872188791632652, -0.042347367852926254, -0.0399208702147007, -0.04550513997673988, -0.00989711843430996, 0.014567295089364052, 0.04271300509572029, 0.011625582352280617, 0.031843625009059906, -0.035101115703582764, 0.0708005428314209, 0.0029500226955860853, 0.005983144976198673, -0.05969848856329918, 0.063421331346035, 0.019893955439329147, 0.01783309504389763, 0.027073729783296585, 0.012415025383234024, -0.007537100464105606, 0.024447795003652573, 0.0163788590580225, 0.06681178510189056, -0.07013574987649918, -0.006755967624485493, 0.008941477164626122, 0.0061867376789450645, -0.011783471331000328, 0.00716315396130085, 0.033987585455179214, -0.011866570450365543, -0.03026474080979824, 0.0024223425425589085, 0.04563809931278229, 0.010046697221696377, 0.06986983120441437, -0.018198732286691666, -0.0011987064499408007 ]
20,481
metevolsim.metevolsim
get_number_of_variable_species
Get the number of variable species. Parameters ---------- None Returns ------- int
def get_number_of_variable_species( self ): """ Get the number of variable species. Parameters ---------- None Returns ------- int """ count = 0 for species_id in self.species: if not self.species[species_id]["constant"]: count += 1 return count
(self)
[ 0.03246419504284859, -0.04202252998948097, 0.009003608487546444, -0.006601223722100258, 0.04144220054149628, 0.07633011788129807, -0.02640489488840103, -0.017059918493032455, 0.018109627068042755, 0.02176227606832981, -0.04738202318549156, 0.001765517983585596, -0.02085764892399311, -0.06721556186676025, 0.029340669512748718, 0.0018380589317530394, -0.0002834963088389486, 0.02176227606832981, 0.014619128778576851, -0.042875953018665314, -0.017921874299645424, 0.05994440242648125, -0.0073095643892884254, -0.08704910427331924, 0.035775475203990936, 0.00777467992156744, 0.037994373589754105, -0.028009328991174698, 0.018604611977934837, 0.008491555228829384, -0.08547880500555038, 0.01695750653743744, -0.044924166053533554, 0.02024318464100361, 0.026507306843996048, -0.00515040522441268, 0.0017484495183452964, 0.05598452314734459, -0.042636994272470474, 0.039257440716028214, 0.003044585231691599, -0.03505859896540642, -0.0010427756933495402, -0.011768697760999203, -0.023059478029608727, -0.04284181445837021, 0.030774418264627457, -0.0170257817953825, 0.00019242012058384717, -0.04352455213665962, -0.015062908641994, -0.03840401768684387, 0.008849992416799068, -0.008145919069647789, -0.0032387387473136187, 0.0367654450237751, 0.02783864550292492, 0.029920997098088264, -0.010352016426622868, 0.02055041678249836, 0.0010353083489462733, 0.04202252998948097, -0.013381666503846645, -0.07885624468326569, 0.0064177378080785275, -0.026865743100643158, 0.022991204634308815, 0.06810312718153, 0.004992522299289703, -0.010829932987689972, -0.009447388350963593, -0.008401945233345032, 0.05352666601538658, 0.038472291082143784, 0.04891818389296532, -0.0177853275090456, 0.009993578307330608, -0.03109871968626976, 0.06974169611930847, -0.031371813267469406, -0.009063348174095154, -0.020396800711750984, -0.00008200857701012865, 0.014951963908970356, 0.01362062431871891, 0.026712127029895782, 0.037448182702064514, 0.03364191949367523, 0.009046279825270176, 0.026012320071458817, -0.028845684602856636, 0.055301785469055176, 0.03942812234163284, 0.0034542279317975044, 0.010462961159646511, 0.035468243062496185, 0.031781457364559174, -0.053902171552181244, 0.036185119301080704, -0.08028999716043472, 0.0210966058075428, 0.0028888355009257793, 0.009763154201209545, -0.010010646656155586, -0.018877707421779633, 0.006136108655482531, 0.01754636876285076, 0.00005770603456767276, 0.018655817955732346, 0.03261781111359596, -0.02693401649594307, 0.003313413355499506, -0.027975192293524742, 0.010078920982778072, -0.002967777196317911, -0.05260496959090233, 0.031849730759859085, 0.030535461381077766, 0.009054813534021378, -0.012272217310965061, -0.04543621838092804, 0.06369946151971817, -0.01940682902932167, 0.0035011661238968372, 0.0795389860868454, 0.05403871834278107, 0.0035651728976517916, -0.0046127489767968655, -0.024493228644132614, 0.025961115956306458, 0.060900237411260605, -0.03202041611075401, 0.0361509807407856, 0.03905261680483818, 0.014593526721000671, -0.024629775434732437, 0.03138888254761696, -0.038301605731248856, 0.01891184411942959, -0.008401945233345032, 0.030159953981637955, 0.0409984216094017, -0.06649868935346603, -0.017179397866129875, -0.01652226224541664, 0.04922541603446007, 0.02976738102734089, -0.002359713427722454, -0.0656794011592865, -0.03912089020013809, -0.017017247155308723, -0.006835915148258209, 0.002203963929787278, -0.016778288409113884, -0.027633823454380035, 0.020567484200000763, 0.017085520550608635, -0.06967341899871826, 0.0005293887224979699, -0.08322577178478241, 0.019867677241563797, 0.05280978977680206, -0.03526342287659645, 0.015242127701640129, -0.041681159287691116, 0.02447615936398506, -0.03309572860598564, -0.026985222473740578, 0.012127134948968887, -0.011350520886480808, -0.03079148754477501, -0.025517335161566734, -0.0566331222653389, 0.024732187390327454, 0.057759642601013184, 0.04273940250277519, -0.017256205901503563, -0.06540630757808685, 0.020448004826903343, 0.03526342287659645, -0.01229781936854124, -0.08083619177341461, -0.04960092157125473, -0.02247915044426918, -0.012289285659790039, -0.00031763321021571755, 0.03628752753138542, -0.012075929902493954, 0.03567306324839592, 0.05069330334663391, 0.037277501076459885, 0.01690630242228508, -0.010437358170747757, 0.05741827189922333, 0.031303539872169495, -0.04236389696598053, 0.06666937470436096, -0.027975192293524742, -0.030279433354735374, -0.056086935102939606, -0.04506071284413338, 0.0035267688799649477, -0.04086187481880188, 0.0231960266828537, 0.012613586150109768, 0.0548580065369606, -0.014047335833311081, -0.002221032278612256, -0.09244273602962494, -0.04867922514677048, -0.019253212958574295, 0.0005003190017305315, 0.05188809335231781, 0.030518392100930214, 0.057588957250118256, -0.09797291457653046, 0.04314904659986496, -0.04844026640057564, -0.013671830296516418, -0.024203065782785416, 0.03895020857453346, 0.018536338582634926, 0.025312514975667, 0.026080595329403877, -0.03246419504284859, -0.021318497136235237, -0.020448004826903343, 0.06284604221582413, -0.01711965724825859, -0.04284181445837021, -0.01666734367609024, 0.0873904749751091, 0.017990147694945335, -0.0004941850202158093, 0.03289090842008591, 0.024578571319580078, 0.007407708093523979, 0.003202468389645219, -0.03700440376996994, -0.009797291830182076, -0.08288440108299255, -0.047211337834596634, 0.0025944046210497618, -0.001726047252304852, -0.056257616728544235, 0.0014753543073311448, -0.013390200212597847, 0.054994553327560425, -0.051444314420223236, -0.03826747089624405, 0.012289285659790039, -0.043251458555459976, -0.02090885303914547, -0.004868776071816683, -0.006072101648896933, -0.0427735410630703, -0.01821203902363777, 0.056735534220933914, 0.00626838905736804, -0.02060162089765072, -0.0268145389854908, -0.002967777196317911, -0.019116666167974472, 0.04301249980926514, -0.06810312718153, 0.019065460190176964, -0.00759119400754571, 0.03388087823987007, -0.059398211538791656, 0.012792805209755898, 0.024305475875735283, -0.004535940941423178, -0.011444397270679474, -0.09053106606006622, -0.0027906917966902256, -0.0680689886212349, 0.03304452449083328, 0.03942812234163284, 0.00802643969655037, 0.017136726528406143, 0.012221011333167553, -0.020567484200000763, 0.00019522041839081794, -0.012186874635517597, 0.014252157881855965, 0.02200123481452465, -0.003580107819288969, 0.01690630242228508, -0.06656696647405624, -0.011589478701353073, -0.013193913735449314, -0.03417104110121727, 0.028350699692964554, 0.03741404786705971, 0.00438659219071269, -0.01271599717438221, -0.03949639946222305, 0.05533592030405998, 0.018348585814237595, 0.049635060131549835, -0.002639209385961294, -0.013757172040641308, -0.022871725261211395, -0.03024529665708542, -0.05615520849823952, 0.004693824332207441, 0.08022172749042511, 0.0002824295370373875, 0.030108749866485596, 0.0033539508003741503, 0.014354567974805832, 0.07359916716814041, 0.01933855563402176, 0.023708079010248184, 0.03567306324839592, -0.010258140042424202, -0.061480563133955, -0.015805386006832123, -0.026558510959148407, 0.06492839008569717, 0.08889249712228775, -0.026421964168548584, 0.031184062361717224, -0.0057734036818146706, 0.0021058202255517244, 0.027650892734527588, 0.016283303499221802, -0.041920118033885956, 0.037516456097364426, -0.012605051510035992, -0.07141440361738205, -0.04093014821410179, -0.010633645579218864, -0.008299535140395164, 0.018519271165132523, -0.04867922514677048, -0.014115610159933567, 0.008935335092246532, -0.013868117704987526, -0.019031323492527008, -0.022888794541358948, -0.022086577489972115, -0.05632589012384415, 0.02543199434876442, 0.03439293056726456, -0.0313376784324646, 0.004497536923736334, -0.048781637102365494, 0.052229464054107666, 0.008747581392526627, 0.022188987582921982, 0.05328770726919174, 0.057520683854818344, 0.030484255403280258, 0.015284799039363861, 0.04710892587900162, 0.04591413587331772, 0.0355706550180912, 0.011580944992601871, 0.05772550404071808, -0.018126696348190308, 0.011623615399003029, 0.03871124982833862, -0.004595680627971888, 0.020584553480148315, -0.034563615918159485, -0.01259651780128479, 0.014516718685626984, -0.024083586409687996, -0.06649868935346603, -0.05267324298620224, 0.003962014336138964, 0.0015212257858365774, -0.04260285571217537, 0.04110083356499672, 0.01726473867893219, 0.05359493941068649, -0.0051888092420995235, 0.028965163975954056, -0.05888615921139717, -0.045538630336523056, -0.021181948482990265, -0.06434806436300278, -0.00802643969655037, -0.061207469552755356, 0.0126562574878335, -0.04710892587900162, -0.025107692927122116, -0.028709135949611664, 0.022513289004564285, 0.03091096691787243, 0.0012171940179541707, -0.005726465489715338, -0.025090623646974564, 0.046016547828912735, 0.01371450163424015, -0.013723035342991352, -0.07066339254379272, 0.00940471701323986, 0.04844026640057564, 0.030945103615522385, -0.04635791480541229, 0.020704032853245735, 0.07039029896259308, -0.022871725261211395, -0.027753302827477455, 0.0019009988754987717, -0.0028418973088264465, -0.06291431188583374, -0.04178357124328613, 0.0020802177023142576, 0.007403441239148378, -0.029187053442001343, -0.05721345171332359, -0.0238104909658432, -0.0385747030377388, 0.02971617504954338, -0.00238104909658432, 0.05827169492840767, -0.03336882218718529, 0.0028589656576514244, -0.03826747089624405, 0.02857258915901184, 0.11531446129083633, 0.011162767186760902, 0.009293772280216217, -0.009379114024341106, 0.0029016367625445127, -0.016087016090750694, 0.04256872087717056, -0.08288440108299255, -0.020345594733953476, 0.019065460190176964, -0.043114908039569855, 0.02181348204612732, -0.045948274433612823, -0.011589478701353073, -0.013210982084274292, -0.020686963573098183, 0.02483459748327732, 0.04045223072171211, 0.06943446397781372, 0.017461026087403297, 0.05502868816256523, -0.02602938935160637, 0.009532730095088482, 0.02422013320028782, 0.01995301991701126, -0.0002557600964792073, -0.042636994272470474, -0.02845310978591442, -0.06158297508955002, -0.000054005649872124195, -0.03157663717865944, 0.055540744215250015, 0.027531413361430168, -0.05936407670378685, -0.01259651780128479, -0.006503080017864704, -0.0903945192694664, 0.027616756036877632, 0.05076157674193382, 0.0003045651828870177, -0.0005883282283321023, -0.06516735255718231, -0.06649868935346603, -0.034512411803007126, -0.029426012188196182, 0.046733420342206955, 0.007706406060606241, 0.018877707421779633, 0.05653071403503418, -0.025312514975667, -0.05755481868982315, -0.00564965745434165, 0.0010091721778735518, -0.011085959151387215, 0.023247230798006058, -0.014388704672455788, -0.011487068608403206, 0.017102589830756187, 0.030450118705630302, -0.017298875376582146, -0.05308288708329201, 0.04454866051673889, -0.001218260731548071, -0.051376041024923325, -0.03265194967389107, 0.023605668917298317, -0.022991204634308815, 0.014465512707829475, -0.04314904659986496, 0.0017559169791638851, -0.02121608518064022, -0.01578831858932972, 0.018297379836440086, 0.06212916597723961, -0.014892224222421646, -0.00909748487174511, 0.03533169627189636, -0.048542678356170654, 0.009413251653313637, 0.009148689918220043, -0.008171521127223969, -0.049635060131549835, -0.03529755771160126, 0.03867711126804352, -0.006020896602421999, 0.04891818389296532, 0.010753124952316284, 0.026746263727545738, -0.019492171704769135, 0.04833785444498062, 0.0008278199238702655, 0.021967098116874695, 0.0005563248414546251, 0.002517596585676074, 0.02314482070505619, -0.0009195628808811307, 0.06079782545566559, -0.01983354054391384, -0.08069963753223419, 0.010147194378077984, 0.02188175544142723, -0.004256445448845625, 0.04785994067788124, -0.039871904999017715, -0.05236601084470749, -0.006793243810534477, 0.06967341899871826, -0.016923369839787483, -0.049259550869464874, -0.03809678554534912, 0.06625973433256149, 0.04093014821410179, -0.052570831030607224, 0.05639416724443436, -0.08814148604869843, -0.015353072434663773, 0.05857892706990242, -0.01223807968199253, -0.03295918181538582, 0.055540744215250015, 0.008807321079075336, 0.03186680004000664, 0.022376740351319313, -0.021676933392882347, -0.041134968400001526, 0.016923369839787483, -0.01638571359217167, -0.020413868129253387, -0.0027800241950899363, -0.04331973195075989, -0.05356080085039139, 0.061207469552755356, 0.02519303560256958, 0.029682038351893425, -0.03007461316883564, -0.002585870446637273, 0.03205455467104912, 0.03355657681822777, -0.03502446413040161, 0.08295267820358276, -0.020533347502350807, -0.009319375269114971, -0.00015894995885901153, 0.0008438216173090041, -0.035775475203990936, -0.029545489698648453, 0.016291838139295578, 0.020345594733953476, 0.01537014078348875, 0.0015244261594489217, 0.02536371909081936, -0.0013366731582209468, -0.017734121531248093, -0.02693401649594307, 0.01449111569672823, 0.020584553480148315, 0.006089170463383198, -0.03202041611075401, 0.006319594569504261, -0.00513760419562459, 0.0033432829659432173, 0.037584733217954636, 0.11435862630605698, -0.013996130786836147, 0.03440999984741211, -0.007975234650075436, 0.033966220915317535, -0.04205666482448578, -0.0238104909658432, -0.04045223072171211, -0.007283961866050959, -0.037584733217954636, 0.07919761538505554, 0.01898011937737465, -0.0033347487915307283, -0.005308288615196943, 0.019850609824061394, -0.01512264832854271, -0.010283742100000381, -0.010889672674238682, 0.04127151519060135, 0.03309572860598564, -0.06049059331417084, 0.0247151181101799, 0.07318951934576035, 0.005658191628754139, -0.03867711126804352, 0.012041793204843998, -0.028401903808116913, 0.0046980916522443295, -0.05574556440114975, -0.032088689506053925, -0.00796670001000166, 0.018604611977934837, -0.00789415929466486, -0.0011563876178115606, -0.033846739679574966, -0.0626753568649292, -0.006319594569504261, -0.012331956997513771, -0.017887737601995468, 0.01935562491416931, 0.040349818766117096, -0.005598452407866716, -0.06516735255718231, -0.05810100957751274, -0.0316619798541069, 0.008559828624129295, 0.012963489629328251, 0.00765520054847002, -0.050659164786338806, -0.037038542330265045, 0.026319552212953568, 0.009251100942492485, -0.020567484200000763, -0.040281545370817184, 0.043592825531959534, -0.01838272251188755, 0.0837719589471817, -0.009472991339862347, 0.07004892826080322, -0.012084463611245155, -0.016658809036016464, -0.008717712014913559, -0.010462961159646511, 0.0017644512699916959, -0.007360769901424646, 0.001408147276379168, -0.006200115196406841, 0.010761658661067486, 0.026285415515303612, 0.04929368942975998, -0.02181348204612732, 0.037209223955869675, -0.049805741757154465, 0.0026541443075984716, -0.03471723198890686, 0.03580961376428604, -0.0015937667340040207, -0.025346651673316956, -0.0391891673207283, 0.054994553327560425, -0.0463920533657074, 0.0470065176486969, -0.0837719589471817, 0.03949639946222305, 0.000490451289806515, 0.049635060131549835, 0.014363102614879608, 0.0204821415245533, -0.019014256075024605, -0.022188987582921982, 0.016820959746837616, -0.03628752753138542, 0.08889249712228775, 0.06322154402732849, -0.013927856460213661, 0.03024529665708542, -0.022701041772961617, 0.006332395598292351, -0.036014433950185776, 0.03669717162847519, -0.0033902213908731937, -0.02374221757054329, 0.00632812874391675, 0.04250044375658035, 0.042398035526275635, -0.049259550869464874, -0.022701041772961617, 0.013014694675803185, 0.05048847943544388, -0.0002241567854071036, -0.020021293312311172, 0.01790480688214302, 0.05513110011816025, 0.02362273819744587, 0.023844627663493156, -0.0035289025399833918, 0.006170245353132486, 0.012844010256230831, 0.006579888053238392, -0.05516523867845535, 0.017136726528406143, 0.014141212217509747, -0.03864297643303871, 0.007603995501995087, 0.007245557848364115, -0.0349561907351017, 0.019560445100069046, -0.00247919256798923, -0.05352666601538658, -0.07626184076070786, 0.06083196401596069, 0.014986100606620312, 0.04427556321024895, -0.01795601099729538, 0.02783864550292492, 0.06031990796327591, 0.030279433354735374, 0.04803062230348587, 0.07141440361738205, 0.013808378018438816, 0.012135669589042664, 0.048303719609975815, 0.026080595329403877, 0.03138888254761696, -0.017751190811395645, -0.009063348174095154, -0.009592469781637192, -0.07605702430009842, -0.07790041714906693, -0.009174292907118797, 0.04075946286320686, 0.013910788111388683, 0.007685070391744375, -0.029801517724990845, -0.03966708108782768, 0.05738413706421852, 0.000055572480050614104, 0.0040174867026507854, -0.05403871834278107, 0.049805741757154465, 0.011862574145197868, 0.029630832374095917, 0.011683355085551739, 0.0026456101331859827, -0.03608270734548569, 0.0016012341948226094, 0.04779166728258133, 0.03802851215004921, -0.07134612649679184, -0.003648381680250168, 0.0046767559833824635, 0.049157142639160156, -0.03411983698606491, 0.006541484035551548, 0.03210575878620148, -0.02676333300769329, -0.04748443514108658, 0.019970089197158813, 0.05950062349438667, 0.012758667580783367, 0.05158086121082306, -0.0149178272113204, -0.03324934467673302 ]
20,482
metevolsim.metevolsim
get_random_parameter
Get a kinetic parameter at random. Parameters ---------- None Returns ------- str
def get_random_parameter( self ): """ Get a kinetic parameter at random. Parameters ---------- None Returns ------- str """ param_index = np.random.randint(0, len(self.parameters)) param_metaid = list(self.parameters)[param_index] return param_metaid
(self)
[ 0.04814605787396431, -0.03801186382770538, 0.014699765481054783, 0.02071802318096161, 0.05513276904821396, 0.026442283764481544, -0.015590398572385311, 0.013324905186891556, 0.06412556767463684, 0.019265340641140938, -0.0364554189145565, 0.028016023337841034, -0.03374028578400612, 0.023917384445667267, -0.02749720960855484, -0.0024881514254957438, 0.03458768501877785, 0.04520610347390175, -0.026528753340244293, -0.05489065498113632, 0.029295768588781357, 0.015097524039447308, -0.026165582239627838, -0.0031539644114673138, 0.03363652154803276, -0.0010732990922406316, 0.06118561327457428, -0.00436021015048027, 0.021029312163591385, -0.023208336904644966, -0.08992797881364822, -0.06180819123983383, 0.02225717529654503, 0.06253453344106674, -0.027237800881266594, 0.016420502215623856, -0.0014008012367412448, 0.02225717529654503, -0.06602788716554642, -0.029658939689397812, 0.03562531620264053, -0.01912698894739151, 0.01838335394859314, -0.037147171795368195, -0.03815021738409996, 0.007401764392852783, 0.03583284094929695, 0.04434141144156456, -0.05364549905061722, 0.025802413001656532, 0.023951971903443336, -0.007034270092844963, -0.01226998120546341, -0.013290317729115486, -0.06907160580158234, 0.011880869045853615, 0.011716578155755997, -0.012875265441834927, 0.04977167770266533, 0.02294892817735672, 0.026442283764481544, 0.02834460698068142, -0.0221188236027956, -0.013947483152151108, 0.015408813022077084, -0.03718176111578941, -0.02056237868964672, 0.03227030858397484, 0.02379632741212845, 0.04977167770266533, 0.02671898528933525, 0.0282235499471426, 0.030904095619916916, 0.011526345275342464, 0.02763555943965912, -0.00882418267428875, -0.0260964073240757, -0.04489481449127197, 0.039360783994197845, -0.01266773883253336, -0.005711291451007128, 0.03458768501877785, 0.029607057571411133, -0.024851251393556595, -0.030938683077692986, -0.021894004195928574, -0.03275453671813011, -0.009425143711268902, 0.023415861651301384, -0.06727304309606552, 0.016576146706938744, 0.016662616282701492, -0.011240997351706028, 0.021150369197130203, 0.005451883655041456, -0.026805454865098, 0.04340754449367523, -0.006044197827577591, 0.06862196326255798, -0.021980473771691322, -0.004128905013203621, -0.0026827072724699974, -0.00229575764387846, 0.02687462978065014, 0.020268382504582405, -0.025058778002858162, -0.001637510722503066, 0.03849609196186066, 0.009286792948842049, 0.038669031113386154, -0.0353832021355629, 0.04416847229003906, -0.02901906706392765, -0.010531949810683727, -0.0011792238801717758, -0.01378319226205349, -0.020008975639939308, 0.030990565195679665, -0.014189597219228745, 0.00668839318677783, 0.0005280026234686375, 0.02305269055068493, -0.04295790195465088, 0.009753727354109287, 0.0021411937195807695, 0.02824084460735321, 0.012131630443036556, -0.005659409798681736, -0.018538998439908028, -0.02917471155524254, 0.03294476866722107, -0.008889034390449524, 0.0033160941675305367, 0.0029032037127763033, -0.019524747505784035, -0.036282479763031006, 0.026563340798020363, 0.005624822340905666, 0.015633633360266685, 0.021911296993494034, 0.06696175783872604, 0.060666799545288086, 0.017138198018074036, -0.00761793740093708, 0.023156454786658287, 0.01372266374528408, 0.03586742654442787, -0.030402574688196182, -0.0018731392920017242, -0.03811562806367874, 0.007414734922349453, -0.007479586638510227, 0.01900593191385269, -0.03849609196186066, -0.0027410739567130804, -0.0398104228079319, 0.018884874880313873, -0.07187321037054062, -0.02991834655404091, -0.06436768174171448, 0.0061522843316197395, -0.0019336676923558116, 0.01180304680019617, -0.027099451050162315, -0.01848711632192135, 0.035486962646245956, -0.016187036409974098, 0.039291609078645706, 0.017778068780899048, -0.04752347618341446, -0.017951007932424545, -0.027324270457029343, -0.0412285178899765, -0.03614412993192673, 0.006225782912224531, 0.050947658717632294, -0.06799938529729843, -0.006934830453246832, 0.04126310721039772, 0.030229635536670685, 0.020960137248039246, -0.033204175531864166, -0.018158534541726112, -0.03673212230205536, 0.005240034312009811, 0.01907510869204998, 0.03510649874806404, 0.015590398572385311, -0.014760293997824192, 0.0027216183952987194, 0.04416847229003906, 0.0475926548242569, -0.034051574766635895, 0.027756616473197937, 0.0003853284288197756, 0.02983187697827816, 0.04513692855834961, -0.002373579889535904, -0.009451084770262241, 0.07028217613697052, 0.052400343120098114, -0.01102482434362173, -0.04973708838224411, 0.011171821504831314, -0.028690483421087265, -0.02225717529654503, 0.054613951593637466, -0.00609175581485033, -0.015426106750965118, 0.00514059467241168, -0.0002899420796893537, -0.024782076478004456, 0.07249578833580017, -0.001335949287749827, 0.04133228212594986, -0.07038594037294388, -0.08363302052021027, -0.006100402679294348, -0.012520741671323776, 0.024903131648898125, 0.011543639935553074, -0.015209933742880821, 0.0691753700375557, 0.03569449111819267, 0.017985595390200615, -0.009848843328654766, 0.01368807628750801, -0.01917887106537819, -0.07858321815729141, -0.052331164479255676, 0.03752763569355011, -0.026943806558847427, 0.054683130234479904, -0.02367527037858963, -0.024833956733345985, 0.012062454596161842, 0.01757919043302536, -0.04382259398698807, -0.053853023797273636, -0.009918018244206905, -0.04569033160805702, 0.03150938078761101, 0.031042447313666344, 0.05115518346428871, -0.043096255511045456, 0.043269190937280655, -0.006364133674651384, 0.06806856393814087, -0.017216019332408905, -0.030765745788812637, 0.031613145023584366, 0.0019066460663452744, -0.019663099199533463, 0.05495982989668846, 0.0004899021005257964, -0.001062490395270288, -0.016187036409974098, 0.01898863911628723, 0.010678947903215885, 0.026217464357614517, -0.08799106627702713, -0.005473501048982143, -0.050843894481658936, 0.08183445781469345, -0.011284232139587402, -0.008608009666204453, -0.02767014689743519, 0.08494735509157181, -0.04219697415828705, -0.04112475737929344, 0.08397889882326126, 0.06914077699184418, -0.04119393229484558, -0.07941332459449768, 0.04534445330500603, -0.060666799545288086, 0.020337557420134544, 0.005521059036254883, -0.031180797144770622, 0.02670169249176979, 0.039464548230171204, -0.01182034146040678, 0.018919462338089943, 0.0550290048122406, -0.06730763614177704, 0.030056698247790337, 0.02287975326180458, -0.01826229691505432, 0.0012375905644148588, -0.0011251806281507015, -0.03991418704390526, -0.006070138420909643, -0.018175827339291573, 0.025421947240829468, 0.022585757076740265, -0.007959490641951561, -0.02984917163848877, 0.017129549756646156, 0.03439745306968689, 0.03690505772829056, 0.08570828288793564, -0.007713053375482559, -0.03953372314572334, -0.006740274839103222, -0.03759681433439255, 0.021098487079143524, 0.03394781053066254, -0.04347671940922737, 0.011318819597363472, -0.007782228756695986, -0.02293163537979126, 0.010186073370277882, 0.06205030530691147, 0.02519712783396244, 0.015668220818042755, -0.053161270916461945, 0.032374072819948196, -0.029295768588781357, 0.06208489462733269, 0.0944935530424118, 0.040917228907346725, -0.004342915955930948, 0.0010333070531487465, -0.02384820766746998, 0.0444105863571167, -0.05558240786194801, -0.05949081480503082, 0.0030415544752031565, -0.030022108927369118, 0.007570379413664341, -0.06447144597768784, -0.02767014689743519, -0.021202249452471733, -0.001513211173005402, -0.016221623867750168, 0.0037181759253144264, -0.009771021082997322, 0.015313697047531605, 0.00922626443207264, -0.01597950980067253, 0.018694642931222916, -0.06333004683256149, -0.04562115669250488, 0.04271579161286354, 0.03728552162647247, 0.05717344209551811, 0.0707664042711258, -0.026909219101071358, 0.007371500134468079, -0.03732011094689369, -0.011163175106048584, 0.012771502137184143, 0.057588495314121246, 0.010808651335537434, 0.04665878415107727, 0.041608985513448715, 0.0027410739567130804, 0.08114270865917206, -0.0368012972176075, 0.047765590250492096, 0.023208336904644966, -0.04672796279191971, 0.04143604636192322, 0.009139795787632465, -0.0010165536077693105, 0.015875747427344322, -0.03725093603134155, 0.016628028824925423, 0.05731179192662239, -0.024228673428297043, -0.051604826003313065, -0.031837962567806244, -0.05637792497873306, 0.013359492644667625, 0.03652459383010864, -0.021859416738152504, -0.03732011094689369, -0.0021087678615003824, 0.05288456752896309, -0.06997088342905045, -0.021790241822600365, -0.02834460698068142, 0.060908909887075424, 0.02991834655404091, -0.04223156347870827, 0.005408648867160082, -0.0036230599507689476, -0.0631571114063263, -0.05105142295360565, -0.036386243999004364, -0.023208336904644966, -0.007946520112454891, 0.02587158791720867, 0.033965107053518295, 0.021133074536919594, -0.009624022990465164, 0.030022108927369118, -0.03152667358517647, -0.08812941610813141, 0.004902804270386696, -0.03884197026491165, -0.03576366603374481, -0.08889035135507584, 0.009399203583598137, 0.028655895963311195, -0.06810314953327179, 0.01919616386294365, 0.04285414144396782, -0.05668921396136284, -0.019490160048007965, -0.07955167442560196, 0.045448217540979385, -0.005287592299282551, -0.048457346856594086, 0.057035092264413834, 0.012140276841819286, 0.02071802318096161, 0.03232219070196152, 0.021945886313915253, 0.025387359783053398, -0.004416415002197027, -0.03427639603614807, 0.021686477586627007, 0.05817648395895958, 0.007540115155279636, 0.04226614907383919, -0.0007144518312998116, 0.015495282597839832, -0.03690505772829056, 0.03443203866481781, -0.09511613100767136, -0.02204964868724346, -0.011967338621616364, -0.009468378499150276, 0.03054092451930046, -0.02509336546063423, 0.0029204976744949818, -0.023882795125246048, -0.042404498904943466, 0.031025152653455734, 0.06685799360275269, 0.04136687144637108, -0.013273024000227451, 0.03213195875287056, -0.03911866992712021, -0.01182898785918951, 0.009779667481780052, 0.029970228672027588, 0.003495517885312438, -0.05118977278470993, 0.044791050255298615, 0.052400343120098114, 0.07616207748651505, -0.04126310721039772, 0.07332588732242584, -0.01334219891577959, -0.09158818423748016, -0.03195901960134506, -0.011301525868475437, -0.06585495173931122, -0.026355816051363945, 0.07429434359073639, -0.03915325924754143, -0.033913224935531616, 0.008871740661561489, 0.01111129391938448, 0.003951643127948046, -0.00018374707724433392, -0.014630590565502644, 0.00628631142899394, 0.03776974976062775, 0.003994877450168133, -0.008270779624581337, -0.041712746024131775, -0.02832731418311596, -0.02747991494834423, -0.02898447960615158, 0.08591580390930176, -0.015279109589755535, 0.009459731169044971, -0.01419824454933405, -0.043234605342149734, 0.007790875621140003, 0.02153083309531212, -0.028517546132206917, 0.024418905377388, -0.06288041174411774, 0.025370066985487938, -0.04797311872243881, -0.031734198331832886, -0.02384820766746998, 0.04292331635951996, 0.022533876821398735, 0.041678160429000854, -0.03138832375407219, 0.022533876821398735, 0.059317879378795624, -0.008132428862154484, 0.005681027192622423, 0.08003590255975723, -0.03157855570316315, 0.010886473581194878, -0.011007530614733696, -0.027030274271965027, 0.020251089707016945, -0.09788314253091812, -0.019490160048007965, -0.009053326211869717, -0.002183347474783659, 0.029451413080096245, 0.0460016205906868, -0.007933549582958221, 0.031734198331832886, -0.01995709352195263, 0.008292397484183311, -0.003973260056227446, -0.0012548844097182155, 0.019645804539322853, -0.007380146998912096, 0.00836589653044939, 0.012295921333134174, 0.006826743949204683, 0.00953755434602499, -0.037216346710920334, 0.020977430045604706, 0.02362338826060295, -0.058591537177562714, -0.050774719566106796, 0.013653487898409367, 0.10251789540052414, -0.018538998439908028, -0.01038495171815157, -0.03277182951569557, 0.0783756896853447, 0.01192410383373499, -0.011336113326251507, -0.020268382504582405, -0.015495282597839832, -0.03801186382770538, -0.010592478327453136, -0.049322038888931274, -0.06045927107334137, 0.05582452192902565, -0.031699612736701965, 0.033204175531864166, 0.019524747505784035, -0.003880305914208293, 0.00805893074721098, -0.015590398572385311, -0.0322876013815403, 0.016178390011191368, -0.030022108927369118, -0.06454061716794968, -0.05558240786194801, 0.04980626329779625, 0.0029572469647973776, -0.0060355509631335735, -0.025577591732144356, -0.019299928098917007, 0.03489897400140762, 0.02896718494594097, 0.001727222464978695, 0.10991965979337692, 0.004035950172692537, -0.03756222501397133, 0.00710344547405839, -0.06931371986865997, -0.012676386162638664, -0.023502331227064133, -0.02613099478185177, 0.00878959521651268, -0.00335068185813725, -0.005443236790597439, 0.001864492311142385, -0.04070970416069031, 0.012157570570707321, 0.0260964073240757, 0.012157570570707321, -0.04195486009120941, 0.04261202737689018, 0.02767014689743519, 0.028500251471996307, 0.053991373628377914, 0.024297848343849182, -0.00993531197309494, 0.0776839405298233, 0.0020179750863462687, 0.004526663105934858, 0.004427223466336727, 0.007380146998912096, -0.026338521391153336, 0.04039841517806053, -0.013091438449919224, -0.019351808354258537, 0.0023303451016545296, 0.034847091883420944, 0.035296730697155, -0.002926982706412673, 0.010125544853508472, -0.02666710503399372, 0.00651977863162756, -0.01822770945727825, 0.018037477508187294, 0.062430769205093384, 0.005058448761701584, -0.014440357685089111, -0.05274621769785881, -0.0014116098172962666, 0.016334034502506256, 0.0141117749735713, -0.018850287422537804, -0.036628358066082, -0.05648168921470642, -0.05416431277990341, -0.00476012984290719, 0.019403690472245216, -0.024868544191122055, 0.01841794140636921, 0.06111643835902214, -0.052331164479255676, -0.03209736943244934, 0.05143188685178757, -0.01924804598093033, -0.02590617537498474, 0.02059696614742279, -0.05731179192662239, -0.01114588137716055, -0.09885159879922867, -0.0073498827405273914, -0.01192410383373499, 0.020112738013267517, -0.05118977278470993, 0.0012030028738081455, -0.07387929409742355, -0.033238764852285385, 0.02139248326420784, 0.001356485765427351, -0.040225476026535034, -0.03915325924754143, 0.06322629004716873, 0.03669753298163414, 0.08716096729040146, -0.04641667380928993, -0.014051246456801891, 0.02837919443845749, -0.00013983692042529583, -0.016187036409974098, 0.009589435532689095, 0.03873820602893829, -0.026563340798020363, -0.04434141144156456, -0.011266938410699368, 0.0033463584259152412, 0.018175827339291573, 0.06111643835902214, -0.07228825986385345, 0.0014397123595699668, 0.04946038872003555, 0.004889833740890026, -0.03676670789718628, -0.05208905041217804, 0.01063571311533451, -0.010791357606649399, -0.04880322143435478, -0.02825813740491867, -0.048491932451725006, -0.028673190623521805, -0.09124231338500977, -0.03448392078280449, 0.010142838582396507, -0.028050612658262253, -0.056135810911655426, 0.034933559596538544, -0.03763139992952347, 0.02445349283516407, -0.016628028824925423, -0.0022806255146861076, 0.03693964704871178, 0.018677350133657455, 0.022447407245635986, 0.054786890745162964, -0.005417296197265387, -0.003266374347731471, 0.04610538110136986, 0.018936756998300552, -0.00220280303619802, 0.012909852899610996, -0.014449005015194416, -0.006416015326976776, 0.04907992482185364, -0.08508570492267609, -0.043995533138513565, 0.021582715213298798, 0.043234605342149734, 0.00027724189567379653, -0.03918784484267235, -0.004496398847550154, 0.021150369197130203, -0.022568464279174805, 0.015036995522677898, -0.027116743847727776, -0.007237473037093878, -0.051639411598443985, 0.024920426309108734, -0.040087126195430756, 0.01037630531936884, 0.020199207589030266, -0.007635231129825115, -0.006844038143754005, -0.051708586513996124, -0.004872540012001991, 0.00918303057551384, 0.031699612736701965, -0.03192443400621414, -0.024782076478004456, 0.06056303530931473, -0.02607911452651024, 0.0690024271607399, -0.06474814563989639, 0.01987062394618988, -0.036282479763031006, 0.0029767025262117386, 0.0490107499063015, 0.01598815619945526, 0.015080230310559273, 0.03192443400621414, 0.03815021738409996, -0.021945886313915253, -0.004461811389774084, 0.01841794140636921, -0.025612179189920425, -0.021617302671074867, 0.005391355138272047, -0.037147171795368195, 0.010678947903215885, 0.0011640917509794235, 0.03294476866722107, -0.01680096797645092, -0.016316739842295647, 0.0065370723605155945, -0.01748407445847988, 0.10763687640428543, -0.03732011094689369, -0.01598815619945526, 0.05872988700866699, 0.040986403822898865, -0.010333070531487465, -0.018711937591433525, 0.03457038849592209, -0.054613951593637466, 0.05336879566311836, 0.00990072451531887, 0.010013134218752384, -0.030160460621118546, -0.0012473183451220393, -0.021859416738152504, 0.014449005015194416, 0.045551981776952744, 0.029935641214251518, -0.009624022990465164, -0.06692717224359512, -0.043857183307409286, 0.008556128479540348, 0.040882643312215805, -0.021254131570458412, 0.03898032009601593, 0.002955085365101695, -0.03756222501397133 ]
20,483
metevolsim.metevolsim
get_wild_type_parameter_value
Get the wild-type value of the parameter 'param_metaid' Parameters ---------- param_metaid: str The meta identifier of the parameter (as defined in the SBML model). Returns ------- float
def get_wild_type_parameter_value( self, param_metaid ): """ Get the wild-type value of the parameter 'param_metaid' Parameters ---------- param_metaid: str The meta identifier of the parameter (as defined in the SBML model). Returns ------- float """ assert param_metaid in list(self.parameters) assert self.parameters[param_metaid]["wild_type_value"] == self.wild_type_model.getElementByMetaId(param_metaid).getValue() return self.parameters[param_metaid]["wild_type_value"]
(self, param_metaid)
[ 0.0763070359826088, -0.024868866428732872, 0.09635800123214722, 0.014453699812293053, 0.04970230534672737, 0.017385179176926613, 0.029669053852558136, -0.04881666228175163, -0.009547235444188118, 0.01955500617623329, -0.04931262135505676, 0.030483845621347427, 0.0014435986522585154, -0.015383625403046608, 0.03129863739013672, 0.062278442084789276, 0.007842372171580791, 0.09869609773159027, 0.05041082203388214, 0.0010489338310435414, -0.0006935694837011397, 0.02362896502017975, -0.01646411046385765, 0.006434198934584856, 0.01805826835334301, -0.0942324548959732, 0.0979875847697258, -0.025187697261571884, -0.08020386099815369, 0.00797079037874937, -0.04987943544983864, -0.042723435908555984, 0.027986330911517143, -0.002104510087519884, -0.04878123849630356, -0.011885333806276321, -0.005251865368336439, 0.016526104882359505, -0.10500188171863556, -0.007873369380831718, -0.049454327672719955, 0.005136731546372175, 0.00116129987873137, -0.017332041636109352, -0.031918589025735855, -0.00801064446568489, 0.0205469261854887, 0.011814482510089874, -0.08679305016994476, 0.06334121525287628, 0.0010433986317366362, 0.016100997105240822, -0.045026108622550964, 0.011637354269623756, -0.015826446935534477, -0.0014978443505242467, -0.004671768750995398, -0.03585084527730942, 0.06149907410144806, 0.031210072338581085, 0.036736488342285156, 0.023310134187340736, -0.01764201559126377, -0.06582101434469223, 0.044848982244729996, -0.008209913969039917, 0.018226541578769684, 0.01249642763286829, -0.07368552684783936, 0.022725608199834824, -0.06443940848112106, -0.0821877047419548, 0.004910892341285944, 0.06727346777915955, 0.07453574985265732, -0.06939901411533356, 0.02646302431821823, -0.02894282527267933, 0.007643102202564478, 0.025028280913829803, 0.031316351145505905, 0.05721256136894226, 0.029137667268514633, -0.057637669146060944, -0.06805283576250076, 0.04325482249259949, -0.03253853693604469, 0.00579653587192297, 0.03156432881951332, 0.004505710676312447, -0.02609105408191681, -0.07095775008201599, 0.009759790264070034, 0.037232447415590286, -0.004253302235156298, 0.0034252258483320475, 0.035372596234083176, -0.039818525314331055, -0.003099751891568303, 0.022371351718902588, -0.0018886345205828547, 0.016818366944789886, 0.04555749520659447, -0.008604025468230247, 0.06748602539300919, -0.03914543613791466, 0.006872592493891716, 0.0035757850855588913, -0.015064793638885021, 0.023044440895318985, -0.013045527040958405, -0.007545681670308113, -0.06957614421844482, -0.0299170333892107, 0.006186218932271004, 0.025878500193357468, 0.0014956302475184202, 0.07744065672159195, -0.0066423253156244755, 0.008134634234011173, -0.00013969640713185072, 0.014825670048594475, -0.004470285028219223, -0.023310134187340736, 0.028570855036377907, 0.04750591143965721, 0.024638598784804344, -0.023310134187340736, -0.046230584383010864, 0.08962710946798325, -0.010069765150547028, 0.0037152739241719246, -0.043538227677345276, 0.005336001515388489, -0.024744875729084015, -0.003068754216656089, 0.011114824563264847, -0.0015698028728365898, 0.030678685754537582, 0.01334664598107338, 0.0028052753768861294, 0.09742077440023422, 0.012505284510552883, -0.09479926526546478, -0.005991377402096987, 0.021769113838672638, 0.015746738761663437, 0.027118399739265442, -0.0005073075881227851, -0.010981977917253971, -0.03886203095316887, 0.010291175916790962, -0.0021631838753819466, 0.003635565983131528, -0.02109602466225624, -0.010388596914708614, 0.10698571801185608, -0.009237260557711124, -0.01362119521945715, -0.0056061227805912495, 0.009263829328119755, -0.031139221042394638, 0.021467994898557663, -0.03211342915892601, -0.014630828984081745, 0.008922857232391834, -0.004618630278855562, 0.040031079202890396, 0.020794905722141266, 0.029173092916607857, -0.004149239044636488, -0.034221261739730835, -0.02470945008099079, -0.005455563310533762, 0.054555632174015045, 0.04130640625953674, -0.029031390324234962, -0.00007486453978344798, 0.03211342915892601, 0.02065320312976837, 0.05912555009126663, -0.056858304888010025, -0.0036001403350383043, -0.022318212315440178, 0.003427439834922552, 0.021839965134859085, 0.015117932111024857, 0.0006343420827761292, -0.024319767951965332, 0.03730329871177673, 0.03705531731247902, 0.007607676554471254, -0.01633126474916935, 0.004282085690647364, -0.03457551822066307, -0.02038750983774662, 0.07418148964643478, 0.006106511224061251, 0.010424022562801838, 0.04998571053147316, 0.03035985492169857, -0.04314854368567467, -0.010645433329045773, 0.009635799564421177, -0.04325482249259949, -0.009981201030313969, 0.012788690626621246, -0.008666020818054676, -0.040916722267866135, -0.041235554963350296, -0.02609105408191681, -0.012629274278879166, 0.021574271842837334, -0.015117932111024857, 0.008528745733201504, -0.0847383588552475, -0.0835338830947876, -0.019643569365143776, 0.025276262313127518, 0.03216656669974327, 0.02598477713763714, -0.02750808373093605, 0.02926165796816349, 0.07198509573936462, 0.05342200770974159, 0.013470635749399662, -0.0013627837179228663, 0.01309866551309824, -0.03174145892262459, -0.02648073621094227, 0.00021615232981275767, 0.012708982452750206, 0.022070232778787613, 0.008369330316781998, 0.008223198354244232, 0.025063708424568176, 0.01677408628165722, 0.007448260672390461, -0.0593026801943779, -0.0019771987572312355, -0.028925113379955292, -0.03193629905581474, -0.02033437229692936, 0.05218210816383362, -0.07290616631507874, -0.04307769238948822, 0.013240368105471134, 0.07159540802240372, -0.0075412532314658165, -0.0090025644749403, 0.026764143258333206, 0.01184105221182108, 0.0260379146784544, 0.002698998199775815, 0.01983841136097908, 0.003961040172725916, -0.0677340030670166, 0.01627812534570694, 0.02017495594918728, -0.011380516923964024, -0.03854319825768471, -0.027153825387358665, 0.047824740409851074, 0.062384720891714096, -0.06259727478027344, 0.013745184987783432, -0.03496520221233368, 0.05831075832247734, 0.025719083845615387, -0.033406466245651245, 0.03918086364865303, 0.02329242043197155, -0.03563828766345978, -0.03615196421742439, -0.02198166772723198, -0.039322566241025925, 0.024408331140875816, -0.003697561100125313, 0.0016461896011605859, -0.008418040350079536, -0.004556635394692421, -0.060578007251024246, 0.033353328704833984, 0.039216287434101105, -0.029562775045633316, 0.059656936675310135, 0.04399876296520233, 0.03315848857164383, -0.03289279341697693, 0.03218428045511246, -0.05136731639504433, -0.0043485090136528015, -0.037834685295820236, 0.016526104882359505, 0.009405532851815224, 0.01641097106039524, -0.04236917942762375, -0.057637669146060944, 0.03978310152888298, 0.030041024088859558, -0.024851152673363686, 0.021237727254629135, 0.0031152504961937666, 0.011460225097835064, -0.04630143567919731, 0.051934126764535904, 0.006615756079554558, -0.02860628068447113, 0.01609214022755623, 0.010565725155174732, -0.012337012216448784, 0.033353328704833984, -0.01680065505206585, 0.0067795999348163605, 0.008971567265689373, -0.006620184052735567, -0.010317745618522167, -0.030678685754537582, 0.028747983276844025, 0.05062337592244148, 0.06422685831785202, -0.0031351775396615267, 0.057354263961315155, 0.00834718905389309, 0.007288844790309668, -0.0708160474896431, -0.08275451511144638, 0.0036953468807041645, -0.008085924200713634, -0.015950437635183334, -0.007519112434238195, -0.005517558194696903, 0.016703233122825623, -0.02153884619474411, 0.037728406488895416, -0.03957054764032364, 0.007846800610423088, 0.005079164635390043, 0.022920450195670128, 0.02060006558895111, 0.03572685271501541, 0.0013351073721423745, 0.04598260298371315, 0.005747825372964144, 0.04686824604868889, 0.06295152753591537, -0.004357365425676107, -0.029385646805167198, 0.055476702749729156, 0.011035116389393806, 0.0025882928166538477, -0.05016284063458443, -0.019909262657165527, 0.0032237418927252293, 0.027029836550354958, -0.01897048018872738, 0.0302535779774189, 0.020670916885137558, -0.06061343103647232, 0.02784462831914425, 0.07524426281452179, 0.004862182307988405, 0.024798015132546425, 0.02664015255868435, 0.006531619932502508, 0.023983223363757133, -0.014232289046049118, 0.002250641118735075, 0.04169609025120735, -0.009981201030313969, -0.032095715403556824, 0.0036776340566575527, -0.03392014279961586, -0.04491983354091644, 0.01758887805044651, 0.024851152673363686, 0.0035580722615122795, -0.023274708539247513, 0.019962402060627937, -0.0011546575697138906, -0.026834994554519653, -0.001993804704397917, -0.020316658541560173, -0.004764761310070753, 0.005327145103365183, -0.005459991283714771, 0.003779483027756214, -0.05551212653517723, -0.08183344453573227, -0.015303917229175568, -0.0006863736198283732, 0.01819111406803131, -0.006243785843253136, 0.003531503025442362, -0.009635799564421177, -0.009263829328119755, 0.042121198028326035, -0.0072179934941232204, 0.003555858042091131, 0.014542263932526112, 0.0037617702037096024, -0.07921194285154343, -0.08842263370752335, 0.060471728444099426, 0.026675578206777573, -0.07453574985265732, -0.027118399739265442, 0.033229339867830276, -0.0725519061088562, -0.003440724452957511, 0.02300901524722576, -0.06242014467716217, -0.017606589943170547, 0.028482291847467422, 0.04279428720474243, 0.007226849906146526, 0.036913614720106125, -0.0012498642317950726, -0.037019893527030945, 0.024815727025270462, 0.022938163951039314, -0.05607893690466881, 0.017916565760970116, 0.02708297409117222, -0.0029779758770018816, 0.031210072338581085, 0.03765755519270897, 0.023115292191505432, -0.0736146792769432, 0.0386849008500576, -0.034114982932806015, -0.00011319629265926778, -0.021467994898557663, -0.03462865576148033, -0.017686298117041588, 0.0037108457181602716, -0.04555749520659447, 0.014471412636339664, 0.0007594391936436296, 0.013107522390782833, -0.014577689580619335, 0.032591674476861954, -0.013470635749399662, 0.022424491122364998, -0.040420763194561005, -0.039322566241025925, 0.05508701875805855, 0.052252959460020065, -0.03645308315753937, -0.04700994864106178, -0.05349285900592804, 0.003631137777119875, 0.07382722944021225, -0.057460542768239975, 0.08055812120437622, -0.026923557743430138, -0.08743071556091309, 0.010326601564884186, 0.047824740409851074, -0.06567931175231934, -0.015569610521197319, 0.025524241849780083, -0.02554195560514927, -0.06415600329637527, -0.03730329871177673, 0.034823495894670486, 0.014480269514024258, -0.04180236905813217, 0.015197640284895897, 0.003217099467292428, -0.0025949350092560053, 0.07864513248205185, 0.04169609025120735, -0.02410721220076084, 0.038932882249355316, -0.000771063263528049, -0.0532803051173687, 0.013027814216911793, -0.004392791073769331, 0.01895276829600334, -0.0003855316317640245, -0.0184036698192358, -0.01169934868812561, -0.006956728640943766, -0.033406466245651245, -0.009990056976675987, -0.01334664598107338, -0.005978092551231384, -0.031652893871068954, -0.042723435908555984, 0.007992931641638279, 0.06656495481729507, 0.0593026801943779, -0.005026026163250208, -0.02865942008793354, 0.02240677736699581, 0.03896830976009369, 0.0033743013627827168, 0.028482291847467422, 0.08962710946798325, -0.010946552269160748, -0.011991611681878567, -0.061676204204559326, -0.012638131156563759, 0.006939015816897154, -0.08183344453573227, -0.004552206955850124, -0.01889962889254093, -0.007669671438634396, 0.0015078078722581267, -0.009219547733664513, -0.033831577748060226, -0.019431015476584435, -0.012522997334599495, 0.010574582032859325, -0.014781387522816658, 0.055441275238990784, -0.01169934868812561, -0.02060006558895111, -0.0014391704462468624, -0.02070634253323078, -0.048143573105335236, -0.005318288691341877, -0.02763207256793976, 0.03207800164818764, 0.02416035160422325, -0.09805843234062195, -0.02417806349694729, 0.005721256136894226, 0.030111875385046005, 0.04757676273584366, 0.012399007566273212, -0.03399099409580231, 0.009786359034478664, 0.02361125312745571, -0.012646987102925777, -0.017057491466403008, 0.0027919907588511705, -0.030873527750372887, -0.018563084304332733, -0.04329025000333786, -0.054343078285455704, 0.027649786323308945, 0.028429152444005013, 0.07248105108737946, 0.0013439637841656804, -0.007536825258284807, 0.024018649011850357, 0.005070308223366737, 0.005840817932039499, 0.007009867113083601, -0.05678745359182358, -0.015950437635183334, 0.011061686091125011, 0.03128092363476753, 0.034221261739730835, 0.030395280569791794, 0.03399099409580231, -0.007877797819674015, 0.0260379146784544, 0.0362759530544281, 0.019377877935767174, 0.12994159758090973, 0.0115133635699749, -0.06656495481729507, -0.06702549010515213, -0.05320945382118225, -0.007545681670308113, -0.0010085264220833778, -0.03996022790670395, 0.0003827640030067414, 0.01614527963101864, 0.040243636816740036, -0.017916565760970116, -0.0014989514602348208, -0.0011502293637022376, 0.010477161034941673, 0.022566193714737892, -0.05629149451851845, -0.006350062787532806, -0.009547235444188118, -0.0041049569845199585, 0.009874924086034298, 0.041625238955020905, -0.02855314314365387, 0.03374301269650459, -0.0012531853280961514, 0.05409509688615799, -0.030271289870142937, 0.03588626906275749, 0.010973121039569378, 0.029297083616256714, 0.021521134302020073, 0.003646636614575982, -0.0047869025729596615, -0.018775640055537224, -0.045026108622550964, -0.008643879555165768, 0.053351156413555145, -0.011566502042114735, 0.009600373916327953, -0.03338875621557236, 0.03064326010644436, 0.031139221042394638, 0.04098757356405258, -0.02465631067752838, 0.009910349734127522, 0.01257613580673933, 0.004031891468912363, -0.06054257974028587, 0.017571164295077324, 0.03528403118252754, 0.003930042497813702, 0.004933033604174852, -0.021839965134859085, 0.06128652021288872, -0.02679956890642643, -0.0033765153493732214, 0.014630828984081745, -0.03960597142577171, -0.016526104882359505, 0.02033437229692936, 0.0037529137916862965, -0.023540401831269264, 0.04336110129952431, -0.03776383399963379, -0.02493971772491932, -0.05838160961866379, -0.007430547848343849, -0.019537292420864105, -0.008971567265689373, 0.018935054540634155, -0.0042134481482207775, -0.0429714173078537, -0.053847115486860275, 0.03124549798667431, -0.027826914563775063, -0.025347113609313965, -0.04066874459385872, 0.07368552684783936, 0.0689384788274765, 0.05090678110718727, -0.01079599279910326, 0.0016539390198886395, 0.056043513119220734, -0.009095557034015656, -0.046726543456315994, -0.03183002397418022, 0.004080601967871189, -0.006412058137357235, -0.04775388911366463, 0.01879335194826126, -0.0069434442557394505, 0.016216130927205086, 0.05678745359182358, -0.05898384749889374, -0.02083033137023449, 0.046939097344875336, -0.053953394293785095, -0.00035813203430734575, -0.037480428814888, -0.06387259811162949, -0.02669329196214676, -0.05639776960015297, -0.025789935141801834, -0.06401430070400238, -0.0574251152575016, -0.04601803049445152, 0.01219530962407589, -0.044530149549245834, 0.005681402049958706, -0.0030333285685628653, -0.0002550376229919493, -0.03096209280192852, -0.06284525245428085, -0.04481355473399162, -0.017836857587099075, 0.013718616217374802, -0.006456340197473764, 0.034770358353853226, 0.02554195560514927, -0.0030776106286793947, 0.0025905068032443523, 0.07765321433544159, 0.023062152788043022, -0.022885024547576904, -0.0272423904389143, -0.002661358332261443, -0.032963644713163376, 0.02800404280424118, -0.08488006144762039, -0.03857862576842308, 0.031812310218811035, -0.023912370204925537, -0.018040556460618973, -0.022814173251390457, 0.007505827583372593, 0.07765321433544159, 0.013922314159572124, 0.029562775045633316, -0.073898084461689, 0.0049241771921515465, -0.013063239865005016, 0.01677408628165722, 0.05267806723713875, -0.010849131271243095, 0.09040647745132446, 0.019643569365143776, -0.0020823690574616194, -0.02439061924815178, -0.04548664391040802, 0.0017834643367677927, -0.014763674698770046, -0.010415165685117245, -0.059160977602005005, 0.02143256925046444, -0.03376072645187378, 0.06869050115346909, 0.027384093031287193, -0.004946318455040455, -0.013878031633794308, -0.028907399624586105, 0.07198509573936462, 0.013311220332980156, -0.007009867113083601, 0.06939901411533356, 0.030891241505742073, 0.02460317313671112, -0.00742611987516284, -0.010857988148927689, 0.01829739287495613, 0.026020202785730362, 0.010468305088579655, 0.014666254632174969, 0.0205469261854887, 0.01819111406803131, 0.029297083616256714, -0.0338670015335083, -0.014967372640967369, -0.0005546341417357326, 0.0014114941004663706, 0.09763332456350327, -0.03430982306599617, -0.07127657532691956, 0.0238946583122015, 0.061569929122924805, -0.027809202671051025, 0.018155688419938087, 0.01824425347149372, -0.021733688190579414, 0.0405624657869339, -0.029456498101353645, 0.022938163951039314, -0.03544344753026962, 0.039039161056280136, 0.042333751916885376, 0.01950186677277088, 0.012106744572520256, -0.011141393333673477, 0.013036670163273811, -0.018811065703630447, -0.008781153708696365, -0.01052144356071949, 0.0014336352469399571, -0.04197949543595314, 0.03850777447223663, -0.06869050115346909, -0.0008192201494239271 ]
20,484
metevolsim.metevolsim
get_wild_type_reaction_array
Get a numpy array of wild-type reaction fluxes. Parameters ---------- None Returns ------- numpy array
def get_wild_type_reaction_array( self ): """ Get a numpy array of wild-type reaction fluxes. Parameters ---------- None Returns ------- numpy array """ vec = [] for reaction_id in self.reactions: vec.append(self.reactions[reaction_id]["wild_type_value"]) return np.array(vec)
(self)
[ 0.021826114505529404, -0.032791975885629654, 0.039463020861148834, -0.019168255850672722, 0.048651110380887985, -0.004015388898551464, -0.040976766496896744, -0.005289311986416578, 0.05495252087712288, 0.004349821247160435, -0.015639115124940872, 0.04689094051718712, 0.00460724625736475, 0.007916366681456566, -0.011705133132636547, -0.008396012708544731, -0.002290421864017844, 0.039674241095781326, -0.015383889898657799, 0.06544313579797745, 0.002462038304656744, -0.009284899570047855, -0.018340976908802986, 0.017293674871325493, 0.024026326835155487, 0.022811809554696083, -0.010032971389591694, -0.02226615697145462, -0.057909607887268066, -0.030926194041967392, -0.04196246340870857, -0.03791407123208046, 0.008646837435662746, 0.029694074764847755, -0.027441056445240974, -0.0031353035010397434, -0.0018305772682651877, 0.03546743467450142, -0.027388252317905426, 0.042842548340559006, 0.013078066520392895, -0.061148323118686676, -0.019643502309918404, -0.03872374817728996, -0.04136400669813156, -0.044497109949588776, 0.02443116530776024, 0.00536852004006505, -0.055198945105075836, 0.03400649130344391, -0.0031045007053762674, 0.006517031230032444, -0.018252966925501823, 0.031137416139245033, 0.004624847788363695, 0.051889825612306595, -0.0007766752387396991, 0.029166024178266525, 0.040659938007593155, 0.0334080345928669, -0.0035533441696316004, 0.03780846297740936, 0.0797005146741867, -0.028849193826317787, 0.07596895843744278, -0.0015511502278968692, 0.0023146241437643766, 0.04182165116071701, -0.02040037512779236, 0.02318144403398037, -0.024202343076467514, -0.011309094727039337, -0.005720553919672966, -0.00662264134734869, 0.014116566628217697, -0.013931749388575554, 0.0429481603205204, -0.03446413576602936, 0.011344298720359802, 0.01591194048523903, 0.027775488793849945, 0.059599369764328, 0.017487293109297752, 0.0543188601732254, 0.01591194048523903, 0.011449908837676048, 0.01284924428910017, 0.04037830978631973, -0.07681383937597275, -0.02483600564301014, 0.007375114131718874, -0.0517842136323452, -0.012065968476235867, 0.027194634079933167, -0.05157299339771271, 0.01181954424828291, -0.022107740864157677, -0.04266653209924698, 0.010455412790179253, 0.012541214004158974, -0.03159505873918533, 0.01809455268085003, 0.048334281891584396, 0.023762300610542297, -0.022371767088770866, 0.05477650463581085, -0.005108894780278206, -0.028373947367072105, -0.03493938222527504, 0.018605001270771027, -0.019925128668546677, 0.049319975078105927, 0.022899817675352097, -0.02370949648320675, 0.010411407798528671, 0.006618240848183632, 0.01559511013329029, 0.0587896928191185, 0.0006897667772136629, 0.011405904777348042, 0.03823090344667435, 0.017214467748999596, 0.04351141303777695, 0.018992239609360695, 0.026596175506711006, 0.06287328898906708, -0.013298087753355503, -0.015999948605895042, -0.017522497102618217, 0.05981059372425079, -0.058824896812438965, -0.00013503807713277638, -0.05002404376864433, 0.002113304566591978, -0.005570939276367426, 0.022547783330082893, 0.04446190595626831, -0.08793811500072479, 0.07857400923967361, -0.03143664449453354, -0.004765661433339119, 0.059564169496297836, 0.02200213074684143, -0.004048392176628113, -0.054987724870443344, 0.01284924428910017, 0.041117582470178604, 0.07723627984523773, -0.0006551134283654392, -0.039744649082422256, -0.05305153876543045, 0.01621996983885765, -0.0009064878104254603, 0.028655575588345528, 0.024959217756986618, 0.0022321161814033985, -0.002930683782324195, -0.023234250023961067, 0.019449884071946144, 0.02524084411561489, -0.03882936015725136, -0.014107766561210155, -0.04755980521440506, -0.04755980521440506, -0.027757888659834862, 0.014679821208119392, 0.027194634079933167, 0.005122095812112093, -0.028497159481048584, 0.05692391097545624, -0.02569848857820034, -0.034129705280065536, -0.0606202706694603, -0.025874504819512367, 0.026860201731324196, 0.051502589136362076, -0.04143441095948219, 0.013482905924320221, 0.015128664672374725, 0.03809008747339249, 0.0023322259075939655, -0.04717256873846054, -0.037878867238759995, -0.032721567898988724, 0.03400649130344391, -0.057311151176691055, 0.04734858497977257, -0.03492178022861481, 0.04143441095948219, 0.08026377111673355, 0.03284478187561035, 0.02603292092680931, -0.030820583924651146, 0.06125393137335777, 0.03333762660622597, -0.060479458421468735, -0.020629197359085083, 0.017064852640032768, -0.0911768302321434, -0.03453454375267029, -0.006164996884763241, 0.0014862439129501581, -0.031084610149264336, -0.00610779132694006, -0.003111101221293211, 0.022178146988153458, 0.025328852236270905, -0.05780399590730667, -0.011045069433748722, -0.053931623697280884, -0.0064378236420452595, 0.037562038749456406, 0.03434092551469803, -0.04182165116071701, 0.001143010682426393, -0.04942558705806732, 0.016959242522716522, -0.007784354034811258, -0.01196035835891962, 0.021280460059642792, -0.04446190595626831, -0.0020660001318901777, -0.0710756853222847, 0.053473979234695435, -0.037033986300230026, 0.05093933269381523, -0.03622430935502052, 0.06769615411758423, -0.016668813303112984, -0.05812082812190056, -0.037033986300230026, 0.046609312295913696, -0.003003290854394436, -0.07294146716594696, 0.02152688428759575, 0.053861215710639954, 0.05326275900006294, 0.029218830168247223, 0.06790737807750702, 0.05555097758769989, -0.014723826199769974, -0.04829907789826393, 0.018605001270771027, 0.02529365010559559, -0.012875647284090519, 0.009443314746022224, 0.04551800712943077, 0.058437660336494446, -0.038618139922618866, -0.0030516954138875008, -0.02457197941839695, -0.03119022026658058, 0.035696256905794144, -0.02826833724975586, 0.05009445175528526, -0.04425068572163582, -0.059352949261665344, 0.022547783330082893, 0.017918534576892853, -0.05319235101342201, 0.04421548172831535, 0.0005715053412131965, 0.04463792219758034, 0.03317921236157417, -0.08160150051116943, 0.0013806336792185903, -0.006420221645385027, 0.048193465918302536, -0.01895703561604023, -0.004765661433339119, -0.02173810452222824, 0.03882936015725136, -0.05199543386697769, -0.0272122360765934, -0.03809008747339249, -0.021949324756860733, 0.03928700461983681, 0.02476559765636921, -0.04474353417754173, 0.034974586218595505, -0.11201724410057068, -0.0377732589840889, 0.08484021574258804, 0.032492745667696, -0.01658080518245697, -0.035977885127067566, 0.012294790707528591, 0.012373997829854488, -0.018393781036138535, 0.010270594619214535, 0.03155985474586487, 0.054072435945272446, -0.009936162270605564, -0.02133326604962349, 0.020822815597057343, -0.006085789296776056, -0.035185806453228, -0.03784366324543953, 0.04763021320104599, 0.04069514200091362, 0.03295039013028145, 0.0586840845644474, 0.0232518520206213, 0.002532445127144456, -0.07399756461381912, -0.004470833111554384, 0.02245977520942688, 0.02874358370900154, 0.02536405622959137, 0.006081388797610998, 0.01318367663770914, -0.009302500635385513, -0.03816049546003342, -0.006706249434500933, 0.023146241903305054, -0.004272813908755779, -0.006178198382258415, -0.017214467748999596, 0.0490383505821228, 0.05217145383358002, 0.05530455708503723, 0.004444430582225323, 0.03541462868452072, 0.004778862930834293, -0.02879638783633709, -0.07216698676347733, -0.043969057500362396, -0.021386070176959038, -0.003117701970040798, -0.016756823286414146, 0.015920741483569145, -0.01804174669086933, -0.025645682588219643, -0.004633648786693811, 0.04312417656183243, 0.0022255154326558113, 0.0020814016461372375, -0.036365121603012085, -0.006349815055727959, -0.023287054151296616, -0.04509556666016579, 0.012241985648870468, -0.012840443290770054, 0.04780622944235802, 0.06861144304275513, 0.023568682372570038, 0.01314847357571125, -0.013720528222620487, 0.023498276248574257, -0.0289900079369545, 0.030010906979441643, -0.019590696319937706, 0.004266213160008192, 0.0797005146741867, -0.010147382505238056, -0.01172273512929678, -0.036435529589653015, 0.015058258548378944, -0.04498995840549469, 0.0806158035993576, 0.07519447803497314, 0.04407466948032379, 0.031947094947099686, -0.0350273922085762, -0.004642449785023928, -0.008435617201030254, -0.007155092898756266, 0.0029416847974061966, -0.012145176529884338, -0.030398143455386162, -0.04520117864012718, 0.022283757105469704, -0.09096560627222061, 0.015515902079641819, 0.004532438702881336, 0.00038833761936984956, 0.007867962121963501, -0.04446190595626831, 0.020963629707694054, -0.027652278542518616, 0.0033245219383388758, -0.010948260314762592, -0.047066956758499146, -0.009240894578397274, -0.010358602739870548, 0.014979050494730473, 0.025663284584879875, 0.03678756207227707, -0.061993204057216644, 0.020629197359085083, -0.0012178178876638412, -0.04372263327240944, -0.02742345631122589, 0.01357971504330635, -0.011001065373420715, 0.01804174669086933, 0.02649056538939476, 0.014794232323765755, 0.0008201294112950563, 0.013034062460064888, 0.029799684882164, 0.012770036235451698, -0.031876686960458755, -0.013632520101964474, -0.0490383505821228, -0.02761707454919815, -0.050235264003276825, -0.0012068168725818396, -0.019185857847332954, -0.030538957566022873, 0.02682499773800373, 0.0276698786765337, 0.03493938222527504, -0.015665516257286072, 0.021843714639544487, -0.026138531044125557, 0.011344298720359802, -0.02675459161400795, 0.013808537274599075, 0.06216922029852867, 0.03479856997728348, -0.021509282290935516, 0.007463122718036175, 0.05273470655083656, 0.016131961718201637, 0.06565435975790024, 0.03474576398730278, 0.05065770447254181, -0.03546743467450142, 0.06713289767503738, -0.007577533833682537, 0.017918534576892853, -0.01876341737806797, -0.08308004587888718, -0.0214740801602602, -0.030697371810674667, -0.04154002293944359, -0.03481617197394371, -0.03236953541636467, 0.07082925736904144, -0.014759029261767864, 0.07082925736904144, 0.021386070176959038, -0.021227655932307243, 0.04446190595626831, -0.06308450549840927, 0.0039427815936505795, 0.053931623697280884, 0.02034757100045681, -0.07364553213119507, -0.05231226608157158, -0.05100974068045616, 0.10025931149721146, -0.005557738244533539, 0.046996552497148514, 0.07082925736904144, -0.02668418362736702, 0.04192725941538811, 0.01241800282150507, -0.07498326152563095, -0.00671945046633482, -0.012893248349428177, -0.05034087598323822, -0.03985025733709335, 0.014424596913158894, -0.0031771077774465084, -0.01314847357571125, -0.0638589859008789, -0.017100056633353233, 0.028954803943634033, 0.04727817699313164, 0.03446413576602936, 0.049319975078105927, -0.08237597346305847, 0.0351330004632473, 0.016307979822158813, -0.056642286479473114, 0.026736989617347717, 0.0001922436204040423, -0.018340976908802986, -0.03745642676949501, -0.04220888763666153, -0.07216698676347733, -0.06248605251312256, -0.07128690183162689, -0.021122045814990997, 0.007493925746530294, -0.012796439230442047, 0.032404739409685135, -0.04220888763666153, -0.026314549148082733, 0.05417804792523384, 0.015436694957315922, 0.02668418362736702, 0.05093933269381523, 0.05027046799659729, 0.031876686960458755, 0.002858076710253954, 0.029166024178266525, 0.11497433483600616, 0.030697371810674667, -0.004734858404844999, -0.10772243142127991, -0.0035533441696316004, -0.047066956758499146, -0.0797005146741867, 0.0003443333553150296, -0.04710216075181961, 0.015436694957315922, -0.012858045287430286, -0.02687780186533928, -0.030028507113456726, -0.038547731935977936, -0.04727817699313164, -0.02253018133342266, -0.033584050834178925, 0.01585913635790348, -0.010446611791849136, -0.030151719227433205, 0.030802983790636063, -0.026208937168121338, -0.019185857847332954, -0.05372040346264839, 0.05646626651287079, -0.00186248030513525, -0.004281614441424608, -0.06744973361492157, -0.0045852442272007465, -0.015797529369592667, 0.005953776650130749, 0.018534595146775246, -0.028514761477708817, -0.00911768339574337, 0.03706919029355049, -0.041258394718170166, -0.012400400824844837, 0.049319975078105927, -0.014591813087463379, -0.023691894486546516, 0.029078016057610512, -0.0052453079260885715, -0.02701861597597599, 0.050622500479221344, -0.012858045287430286, 0.006059386767446995, 0.009416911751031876, -0.016976844519376755, -0.02054118923842907, 0.042772140353918076, -0.02576889470219612, 0.02311103790998459, -0.012708431109786034, 0.019731510430574417, -0.006829461548477411, 0.040589530020952225, -0.027986710891127586, 0.07667302340269089, -0.026965811848640442, -0.008730445057153702, 0.018657807260751724, -0.002354227937757969, -0.03837171569466591, 0.005500532686710358, 0.013262884691357613, -0.07315268367528915, 0.043969057500362396, 0.00042216587462462485, 0.07427919656038284, -0.03164786472916603, 0.004173804074525833, -0.028391549363732338, -0.02180851250886917, -0.001679862616583705, 0.023832708597183228, 0.031031804159283638, 0.004598445259034634, 0.02358628436923027, -0.061394743621349335, 0.024730395525693893, -0.027898700907826424, 0.02543446235358715, -0.05910652503371239, -0.020858019590377808, -0.032668761909008026, 0.04266653209924698, 0.03287998586893082, 0.01876341737806797, 0.03678756207227707, -0.0002918032696470618, 0.006926270667463541, 0.05544536933302879, 0.030486151576042175, 0.040976766496896744, 0.014450998976826668, 0.018675409257411957, 0.013174875639379025, -0.023357462137937546, 0.015427893958985806, 0.01186354923993349, 0.030626965686678886, 0.03532662242650986, -0.009390509687364101, -0.00934650469571352, -0.022406969219446182, -0.006930671166628599, -0.07723627984523773, 0.022706199437379837, 0.0065522342920303345, 0.011194683611392975, 0.006341014057397842, -0.04960160329937935, -0.019713908433914185, -0.017452089115977287, -0.005650147330015898, 0.02311103790998459, -0.002354227937757969, -0.00994496326893568, 0.059564169496297836, -0.0334080345928669, 0.030239729210734367, -0.04456751421093941, -0.019309069961309433, -0.013482905924320221, -0.0041870055720210075, -0.011159480549395084, -0.09730222076177597, -0.010261793620884418, -0.018745815381407738, 0.009848153218626976, -0.04023749753832817, 0.04474353417754173, 0.0027920703869313, 0.005482931155711412, -0.06037384644150734, -0.04249051585793495, 0.03618910536170006, -0.0430537685751915, -0.016299178823828697, -0.04414507374167442, 0.08927584439516068, -0.010173785500228405, 0.049249570816755295, -0.022213350981473923, 0.006644643377512693, -0.02022435888648033, -0.03611869737505913, -0.038336511701345444, -0.055726997554302216, -0.060796286910772324, -0.009372907690703869, -0.009830552153289318, 0.0052453079260885715, -0.004506036173552275, 0.06005701422691345, -0.010649031028151512, 0.04696134850382805, -0.031031804159283638, 0.06375337392091751, -0.02814512513577938, 0.0061957999132573605, -0.01811215467751026, 0.03166546672582626, -0.01737288199365139, -0.026138531044125557, 0.006706249434500933, -0.0325455516576767, 0.00524970842525363, -0.04136400669813156, 0.022952621802687645, 0.03282717987895012, 0.02054118923842907, 0.04738378897309303, 0.03791407123208046, -0.042842548340559006, -0.009988967329263687, 0.0430537685751915, 0.01132669672369957, 0.0955420508980751, 0.06871705502271652, -0.0017205666517838836, -0.01909784972667694, 0.024607183411717415, -0.011537916958332062, 0.020699605345726013, 0.06255646049976349, -0.04168083518743515, -0.027317846193909645, 0.05636065825819969, -0.04076554626226425, -0.03738601878285408, -0.022882215678691864, -0.011986760422587395, 0.026455361396074295, 0.025452064350247383, 0.02179091051220894, 0.08181272447109222, -0.016325581818819046, 0.027370650321245193, -0.03215831518173218, 0.03205270320177078, 0.029412448406219482, 0.01146751083433628, -0.025276048108935356, 0.011581921949982643, 0.03356644883751869, -0.02298782579600811, 0.03390088304877281, 0.003694157814607024, -0.016255173832178116, 0.04129359871149063, -0.021949324756860733, 0.06297890096902847, -0.00905607733875513, -0.004528038669377565, -0.04893273860216141, 0.0002509618061594665, -0.015823932364583015, 0.05477650463581085, -0.012409201823174953, -0.00827720109373331, 0.003955983091145754, 0.010164984501898289, 0.04418027773499489, 0.1035684272646904, -0.022688597440719604, 0.05871928483247757, 0.02397352084517479, -0.0008019776432774961, 0.0020461981184780598, -0.046398092061281204, -0.016730420291423798, -0.023480674251914024, 0.002741465577855706, 0.0019119851058349013, 0.00248624081723392, -0.023744698613882065, 0.00659183831885457, -0.03236953541636467, 0.0008855857304297388, -0.009821751154959202, -0.053931623697280884, -0.02226615697145462, -0.0241143349558115, 0.007784354034811258, 0.027581870555877686, -0.01734647899866104, 0.042103275656700134, -0.021966926753520966, -0.022477377206087112, -0.006006581708788872, 0.003916379064321518, -0.009874556213617325, -0.005663348361849785, -0.023463072255253792, 0.011115476489067078, 0.04220888763666153, -0.0010847049998119473, -0.05100974068045616, -0.02654336951673031, -0.03210550919175148, -0.036822766065597534, -0.024079130962491035, -0.03287998586893082, 0.023867910727858543, -0.0692451074719429, 0.012426803819835186, 0.02682499773800373, -0.03647073358297348 ]
20,485
metevolsim.metevolsim
get_wild_type_reaction_value
Get the wild-type value of the reaction 'reaction_id'. Parameters ---------- reaction_id: str The identifier of the reaction (as defined in the SBML model). Returns ------- float
def get_wild_type_reaction_value( self, reaction_id ): """ Get the wild-type value of the reaction 'reaction_id'. Parameters ---------- reaction_id: str The identifier of the reaction (as defined in the SBML model). Returns ------- float """ assert reaction_id in list(self.reactions) return self.reactions[reaction_id]["wild_type_value"]
(self, reaction_id)
[ 0.06264960020780563, -0.04317981377243996, 0.10692480951547623, 0.0037345062009990215, 0.08317944407463074, -0.005013204645365477, 0.016068756580352783, -0.02524711564183235, 0.027861932292580605, 0.005499065853655338, -0.06300295144319534, 0.06049413979053497, 0.0215015672147274, 0.005870087072253227, 0.013206591829657555, 0.030865438282489777, -0.0008745501982048154, 0.08134200423955917, 0.028356628492474556, 0.04402786120772362, 0.006223440635949373, -0.011369152925908566, -0.013065250590443611, -0.02563580498099327, 0.021112879738211632, -0.05671325698494911, 0.034699324518442154, 0.004072400275617838, -0.07257883250713348, -0.01918710209429264, -0.027632253244519234, -0.045229263603687286, 0.0023277169093489647, 0.019911477342247963, -0.07469895482063293, -0.0061395191587507725, -0.0137631231918931, 0.017013976350426674, -0.08332078158855438, 0.014028138481080532, -0.029558030888438225, 0.024893762543797493, -0.019328443333506584, -0.03189016506075859, -0.06473438441753387, -0.017738351598381996, 0.0016066547250375152, -0.0005004922859370708, -0.07155410945415497, 0.02602449432015419, -0.015291377902030945, 0.03696078807115555, -0.07476962357759476, 0.0420137457549572, 0.017870860174298286, -0.0002603222383186221, 0.0044147116132080555, -0.014116477221250534, 0.022137604653835297, 0.026501521468162537, 0.011174808256328106, 0.04194307327270508, 0.015591728501021862, -0.055158499628305435, 0.0693633183836937, -0.014240151271224022, 0.02220827527344227, 0.05448712781071663, -0.07158944755792618, 0.004598014056682587, -0.04286179319024086, -0.06692517548799515, -0.010335593484342098, 0.01696980744600296, 0.03915158286690712, -0.05173097178339958, 0.06399234384298325, -0.044381216168403625, 0.0135157760232687, 0.04035298526287079, 0.047243379056453705, 0.029028000310063362, 0.04427520930767059, -0.026748869568109512, -0.04028231278061867, 0.012252536602318287, 0.027861932292580605, 0.010459267534315586, -0.027278900146484375, -0.007504347711801529, 0.015194205567240715, -0.08614761382341385, -0.007760528940707445, -0.027861932292580605, -0.050105541944503784, 0.03954027220606804, 0.03332124650478363, -0.07081206887960434, 0.013736622408032417, 0.018621735274791718, -0.017773687839508057, 0.05660725012421608, 0.05946941301226616, -0.010105913504958153, 0.016890302300453186, 0.018409723415970802, -0.005962842609733343, -0.0022680885158479214, -0.04674868285655975, 0.022755973041057587, -0.011130639351904392, 0.00529147032648325, -0.014425661414861679, -0.028674647212028503, 0.0210068728774786, 0.009946904145181179, 0.0018782953266054392, 0.06858593970537186, 0.011704838834702969, 0.031607482582330704, 0.03738481178879738, 0.0022791309747844934, 0.025883153080940247, -0.012217201292514801, 0.016660623252391815, 0.07113008201122284, -0.004854195285588503, -0.036501429975032806, -0.0105034364387393, 0.09879767149686813, -0.031112786382436752, 0.035582710057497025, -0.030441414564847946, 0.04498191550374031, -0.006431036163121462, 0.05151895806193352, 0.006819725036621094, -0.016422109678387642, 0.08586493134498596, 0.014116477221250534, 0.014673009514808655, 0.057702645659446716, 0.025476796552538872, -0.06671316176652908, -0.03042374737560749, -0.0043970439583063126, -0.024929098784923553, 0.06600645929574966, -0.002026262227445841, -0.028904326260089874, -0.03922225162386894, 0.016536949202418327, 0.024469738826155663, 0.06084749475121498, 0.015309046022593975, 0.027773594483733177, 0.06505240499973297, 0.0033016479574143887, 0.01957579143345356, 0.012464549392461777, 0.011492826975882053, -0.027738260105252266, 0.04173106327652931, -0.04582996666431427, -0.03918691724538803, -0.019222436472773552, 0.01470834482461214, 0.02289731428027153, 0.011828512884676456, 0.05703127384185791, -0.01079495344310999, -0.03593606501817703, -0.06706652045249939, -0.0027605751529335976, 0.03696078807115555, 0.04607731103897095, -0.04190773889422417, 0.013445105403661728, 0.0032861887011677027, 0.013206591829657555, 0.030724097043275833, -0.06908063590526581, -0.02628950960934162, -0.0017833315068855882, -0.007044987753033638, -0.02462874725461006, 0.03077710047364235, -0.012393878772854805, 0.01583024300634861, 0.046006642282009125, 0.04339182376861572, -0.017694182693958282, -0.045582618564367294, 0.024734754115343094, -0.014063473790884018, -0.028798319399356842, 0.03742014989256859, -0.026960881426930428, -0.03787950798869133, -0.025582801550626755, -0.006647464819252491, -0.019469784572720528, -0.0061218515038490295, 0.024893762543797493, -0.02192559279501438, -0.007910704240202904, 0.015026362612843513, -0.027826597914099693, -0.04876279830932617, -0.04823276773095131, -0.06328563392162323, 0.033550925552845, 0.023657025769352913, 0.004598014056682587, -0.008493737317621708, -0.09427474439144135, -0.05378042161464691, -0.027155226096510887, 0.004443421959877014, 0.03802084922790527, -0.031413137912750244, -0.013842628337442875, -0.009337369352579117, 0.08367414027452469, 0.02602449432015419, 0.04784408211708069, -0.03692545369267464, 0.059681426733732224, 0.00775169488042593, -0.02784426510334015, -0.006029095966368914, 0.029257679358124733, 0.03501734510064125, -0.032031506299972534, -0.013524609617888927, -0.010574107058346272, 0.014620006084442139, 0.03132480010390282, 0.0014973359648138285, 0.04215508699417114, -0.023462681099772453, -0.048480115830898285, 0.003714629914611578, 0.03058275580406189, -0.042261093854904175, -0.035582710057497025, 0.041448380798101425, 0.0690452978014946, -0.048091426491737366, 0.002095828764140606, 0.011846180073916912, -0.02224360965192318, 0.031642816960811615, -0.003295022528618574, 0.0325792022049427, -0.015203039161860943, -0.0824020653963089, 0.041837070137262344, 0.00011891177564393729, -0.03277354687452316, 0.009796729311347008, -0.026095164939761162, 0.03316223621368408, 0.020989205688238144, -0.0934973657131195, -0.016342604532837868, -0.0508122518658638, 0.04247310385107994, 0.03862155228853226, -0.048550788313150406, 0.05791465938091278, 0.017013976350426674, -0.029169341549277306, -0.013453938998281956, -0.07162477821111679, -0.045582618564367294, 0.017119983211159706, 0.030105728656053543, -0.008621828630566597, -0.013400936499238014, -0.08643029630184174, -0.03787950798869133, 0.041448380798101425, 0.031713489443063736, -0.0105034364387393, 0.05042356252670288, 0.025900820270180702, 0.020335501059889793, -0.02181958593428135, 0.04254377633333206, 0.024151720106601715, 0.0046775187365710735, -0.006510540377348661, 0.015644731000065804, 0.02162524126470089, 0.001319554983638227, -0.014187147840857506, -0.08233139663934708, 0.027367237955331802, 0.04035298526287079, -0.025883153080940247, 0.03270287811756134, 0.006824141833931208, 0.003155889455229044, -0.07674840837717056, 0.042720451951026917, 0.02621883898973465, -0.0009893901878967881, 0.03823286294937134, 0.039010241627693176, 0.011360319331288338, -0.0037853007670491934, -0.05749063566327095, -0.00820663757622242, 0.031766489148139954, 0.0043109143152832985, -0.009946904145181179, -0.03446964547038078, 0.021307222545146942, 0.015786072239279747, 0.0430031344294548, 0.03210217505693436, 0.05166029930114746, 0.031607482582330704, -0.018780745565891266, -0.11158907413482666, -0.07667773962020874, 0.016501614823937416, 0.015706568956375122, -0.0008751023560762405, -0.015750737860798836, -0.04582996666431427, 0.0015536517603322864, -0.042685117572546005, 0.05413377657532692, -0.011263146996498108, 0.020123489201068878, 0.0166076198220253, 0.0001115272389142774, 0.004193865694105625, 0.010900959372520447, 0.0270315520465374, 0.03137780353426933, 0.02869231440126896, 0.04660734161734581, 0.08332078158855438, 0.0021631866693496704, -0.038126856088638306, 0.05031755566596985, -0.00819338671863079, 0.02462874725461006, -0.06833858788013458, -0.02192559279501438, -0.007133326027542353, 0.004536177031695843, -0.021572237834334373, -0.0007806906360201538, -0.024505073204636574, -0.05413377657532692, 0.047738075256347656, 0.02521178126335144, -0.004946950823068619, 0.004032648168504238, 0.0034783247392624617, -0.043073806911706924, 0.020918535068631172, -0.03042374737560749, 0.021148214116692543, 0.015556393191218376, -0.011386820115149021, -0.027826597914099693, 0.024222390726208687, -0.07335621118545532, -0.01726132445037365, 0.014301988296210766, 0.022579295560717583, 0.016846133396029472, -0.024646414443850517, 0.027702923864126205, 0.005216382909566164, 0.0004347905924078077, 0.010370928794145584, -0.08353279531002045, 0.016422109678387642, -0.0027760344091802835, -0.013206591829657555, 0.006373615935444832, -0.009505212306976318, -0.08508755266666412, 0.008038794621825218, 0.015132368542253971, -0.007570601534098387, 0.006020262371748686, -0.005759663879871368, -0.019787803292274475, 0.02853330411016941, 0.03915158286690712, -0.002174228895455599, 0.012561721727252007, 0.04427520930767059, 0.03802084922790527, 0.01131614949554205, -0.04996420070528984, 0.004399252589792013, 0.009717224165797234, -0.016210097819566727, -0.04869212955236435, 0.03210217505693436, -0.04784408211708069, -0.006961066275835037, 0.01461117248982191, -0.007044987753033638, -0.00851582270115614, 0.03065342642366886, -0.009584717452526093, -0.04466389864683151, 0.010353261604905128, -0.01609525829553604, -0.04823276773095131, 0.025088107213377953, 0.008246390148997307, -0.03316223621368408, 0.005574153270572424, 0.01826838217675686, -0.03462865576148033, 0.010618275962769985, 0.07049404829740524, 0.06696051359176636, -0.058515358716249466, 0.07632438093423843, -0.01892208680510521, 0.010344427078962326, 0.004189448896795511, -0.0393989272415638, 0.013100585900247097, -0.018869083374738693, -0.056359902024269104, -0.01892208680510521, -0.03609507158398628, 0.008246390148997307, -0.009346202947199345, 0.04674868285655975, 0.007446927484124899, -0.013816126622259617, 0.015026362612843513, -0.04544127732515335, 0.038939569145441055, 0.0612361840903759, 0.03360392898321152, -0.04989353194832802, -0.07370956242084503, -0.05922206863760948, 0.07109475135803223, 0.008175719529390335, 0.016819631680846214, 0.02992905117571354, -0.08070597052574158, 0.06671316176652908, 0.044734567403793335, -0.0628616064786911, -0.049328166991472244, -0.015945082530379295, -0.04010563716292381, -0.03996429592370987, -0.029293015599250793, 0.04197841137647629, 0.00938153825700283, -0.055971212685108185, -0.016174761578440666, 0.019222436472773552, 0.017941530793905258, 0.06438103318214417, 0.05070624500513077, -0.03254386782646179, 0.030176399275660515, -0.008188970386981964, -0.07476962357759476, -0.012932742945849895, 0.02065351977944374, 0.0016309478087350726, 0.028939662501215935, -0.004185032099485397, -0.06300295144319534, -0.06607712805271149, -0.05314438417553902, -0.0026987383607774973, -0.005914256442338228, 0.017676515504717827, 0.03742014989256859, -0.05664258450269699, -0.0017170778010040522, 0.05664258450269699, 0.047667402774095535, -0.00662096356973052, -0.013983969576656818, 0.01723482273519039, 0.013674785383045673, -0.019505120813846588, 0.039716947823762894, 0.09363871067762375, 0.013754289597272873, 0.0007575018098577857, -0.10077645629644394, 0.012985745444893837, -0.02293265052139759, -0.05413377657532692, -0.030830103904008865, -0.04197841137647629, 0.0299643874168396, -0.01598925143480301, 0.010167750529944897, -0.03065342642366886, -0.01459350436925888, -0.032031506299972534, 0.0017513089114800096, -0.04342716187238693, 0.07512298226356506, -0.013206591829657555, -0.008851508609950542, -0.012093528173863888, -0.04441655054688454, -0.05423977971076965, -0.051412951201200485, 0.025512130931019783, 0.0061969393864274025, 0.0076545230112969875, -0.044805239886045456, 0.02181958593428135, -0.0016585536068305373, 0.0013438479509204626, 0.02104220911860466, 0.011395654641091824, -0.0312717966735363, 0.009558215737342834, -0.04084767773747444, -0.016404442489147186, -0.013922132551670074, -0.011828512884676456, -0.09081187844276428, 0.010026409290730953, -0.0416957288980484, -0.07187213003635406, 0.0543811209499836, 0.00547256413847208, 0.05236700549721718, -0.016722459346055984, -0.025052770972251892, 0.010627110488712788, 0.03374527022242546, -0.017287826165556908, 0.027967939153313637, -0.02378069795668125, 0.011598832905292511, -0.017119983211159706, 0.03077710047364235, 0.0005322389188222587, 0.04989353194832802, 0.03439897671341896, 0.005521150305867195, 0.012711896561086178, 0.003666043747216463, -0.016881469637155533, 0.09335602819919586, 0.005923090036958456, 0.00022678125242237002, -0.029946720227599144, -0.057737983763217926, 0.00984973181039095, -0.010397430509328842, -0.0271905604749918, -0.04961084946990013, 0.028674647212028503, 0.0657944455742836, 0.0046642678789794445, -0.019328443333506584, 0.006161603610962629, 0.009761394001543522, -0.016033420339226723, 0.008869175799190998, -0.0034672825131565332, 0.0002676377771422267, -0.03565337881445885, 0.015211873687803745, 0.0180828720331192, -0.004505258519202471, 0.032296519726514816, 0.007482262793928385, 0.04823276773095131, -0.041448380798101425, 0.019257772713899612, 0.030706429854035378, 0.0076854415237903595, 0.03309156745672226, -0.001960008405148983, 0.008383315056562424, 0.004434587899595499, -0.012438047677278519, 0.020088152959942818, 0.07512298226356506, 0.04208441823720932, 0.013303764164447784, -0.02309165894985199, -0.0075661842711269855, -0.0007702004513703287, -0.003584330901503563, -0.03565337881445885, 0.05257901921868324, -0.0010098183993250132, 0.03236719220876694, -0.06158953532576561, -0.0043970439583063126, 0.012111195363104343, 0.00739392451941967, -0.0018948587821796536, 0.02192559279501438, 0.008219888433814049, 0.022384952753782272, 0.03351559117436409, -0.043921854346990585, -0.0035114516504108906, -0.03514101728796959, 0.009346202947199345, -0.015132368542253971, -0.01628960110247135, 0.05582987144589424, -0.036819446831941605, -0.028003275394439697, -0.019858473911881447, -0.005817084107547998, -0.016333771869540215, 0.005317972041666508, 0.03243786096572876, -0.01625426672399044, -0.05300304293632507, -0.03393961489200592, 0.06162487342953682, -0.025123443454504013, 0.005658074747771025, -0.035618044435977936, 0.09893901646137238, 0.050564903765916824, 0.051412951201200485, -0.020247163251042366, 0.044699233025312424, 0.0210068728774786, 0.020794861018657684, -0.04551194608211517, -0.05194298177957535, -0.05296770855784416, 0.008948680944740772, -0.06063548102974892, 0.007694275118410587, 0.015874411910772324, 0.019858473911881447, 0.017040478065609932, -0.015759572386741638, -0.019134098663926125, 0.02328600361943245, -0.07498163729906082, 0.02533545531332493, -0.014001637697219849, -0.030441414564847946, -0.028020942583680153, -0.033268243074417114, 0.00537539180368185, -0.07378023862838745, -0.033303577452898026, -0.04067100211977959, 0.026501521468162537, -0.012826736085116863, 0.03423996642231941, 0.023657025769352913, 0.017287826165556908, -0.04985819756984711, -0.07137743383646011, -0.013489274308085442, 0.0004808921949006617, 0.058904048055410385, 0.047314051538705826, 0.011280814185738564, 0.01060060877352953, 0.020565180107951164, -0.017932696267962456, 0.038480211049318314, 0.04052966088056564, -0.053073715418577194, -0.06204889714717865, 0.01869240589439869, -0.029010333120822906, -0.003030007239431143, -0.06833858788013458, -0.043921854346990585, -0.002336550736799836, -0.021360225975513458, -0.025194114074110985, 0.018021034076809883, -0.0034518232569098473, 0.06985801458358765, -0.010476934723556042, 0.027437908574938774, -0.04158972203731537, 0.014664174988865852, 0.030105728656053543, -0.023409677669405937, 0.04992886632680893, -0.03266754373908043, 0.047314051538705826, 0.029646368697285652, 0.015936248004436493, 0.006329446565359831, -0.032526202499866486, 0.038939569145441055, -0.04674868285655975, 0.025900820270180702, -0.05413377657532692, 0.017049312591552734, -0.019469784572720528, 0.05720795318484306, -0.008895677514374256, 0.001727015827782452, -0.01879841275513172, -0.017384998500347137, 0.03872755542397499, 0.07176612317562103, 0.009628886356949806, 0.058939382433891296, 0.0008143697050400078, 0.015194205567240715, -0.009363871067762375, -0.007681024260818958, 0.010953961871564388, 0.023462681099772453, 0.03100677952170372, 0.010830288752913475, 0.02270296961069107, 0.01032675988972187, 0.02065351977944374, -0.009549381211400032, -0.0009231363655999303, 0.005591820925474167, -0.0068771447986364365, 0.022755973041057587, -0.04130703955888748, -0.0579853281378746, 0.035423699766397476, 0.0430031344294548, -0.021130546927452087, 0.03950493410229683, -0.004964618477970362, 0.032526202499866486, 0.03795018047094345, -0.0315898135304451, 0.01892208680510521, -0.03385127708315849, 0.028798319399356842, 0.0436391718685627, -0.029452024027705193, -0.025317786261439323, -0.015680067241191864, 0.018674738705158234, 0.014628839679062366, -0.04501724988222122, -0.028321292251348495, -0.028444966301321983, -0.06116551160812378, 0.03312690183520317, -0.0478794164955616, -0.0009921507444232702 ]
20,486
metevolsim.metevolsim
get_wild_type_species_array
Get a numpy array of wild-type species abundances. Parameters ---------- None Returns ------- numpy array
def get_wild_type_species_array( self ): """ Get a numpy array of wild-type species abundances. Parameters ---------- None Returns ------- numpy array """ vec = [] for species_id in self.species: if not self.species[species_id]["constant"]: vec.append(self.species[species_id]["wild_type_value"]) return np.array(vec)
(self)
[ 0.04212774336338043, -0.029774494469165802, 0.022102108225226402, -0.0639834925532341, 0.028155550360679626, 0.010329567827284336, -0.03179817646741867, -0.03135824576020241, 0.028507495298981667, -0.014324136078357697, -0.029739299789071083, 0.02968650870025158, -0.017993155866861343, -0.02848989889025688, 0.010347165167331696, 0.005191179923713207, -0.002727569080889225, 0.055501628667116165, -0.0029453346505761147, 0.026395829394459724, -0.028824245557188988, 0.0016024467768147588, -0.028806647285819054, -0.03955854848027229, 0.029211383312940598, 0.015274385921657085, 0.02255963534116745, -0.05053921416401863, -0.043817076832056046, -0.025815119966864586, -0.028419509530067444, -0.017386052757501602, -0.014192157424986362, 0.012379643507301807, 0.016866935417056084, -0.026448620483279228, 0.014517705887556076, 0.05346035212278366, -0.027944384142756462, 0.05634629726409912, -0.00736443605273962, -0.07411948591470718, -0.03994568809866905, -0.05117271468043327, -0.01206289418041706, -0.02813795395195484, 0.04258527234196663, 0.0029123397544026375, -0.0629628524184227, 0.025005647912621498, -0.02657180093228817, 0.010197588242590427, -0.010355963371694088, 0.006233815103769302, -0.012230067513883114, 0.04518966004252434, 0.011754942126572132, 0.01566152460873127, 0.060182489454746246, 0.023316316306591034, 0.00821790099143982, 0.01517760194838047, 0.05338996276259422, -0.06549684703350067, 0.049976103007793427, -0.006229415535926819, 0.009960026480257511, 0.020940691232681274, -0.015529545955359936, 0.04005127027630806, -0.02660699561238289, -0.026519009843468666, 0.022893982008099556, 0.02625505067408085, 0.05272126942873001, 0.0035502389073371887, 0.01633021980524063, -0.037622854113578796, 0.022348469123244286, -0.006937703583389521, -0.008587443269789219, 0.06338518112897873, 0.007118075154721737, 0.016805345192551613, -0.030478384345769882, 0.03737649321556091, 0.011332609690725803, 0.03822116181254387, -0.0021677573677152395, -0.0021611584816128016, 0.007804366759955883, -0.04300760477781296, 0.017694003880023956, 0.03266043961048126, -0.016902128234505653, 0.04501368850469589, 0.00013575979392044246, -0.032238107174634933, 0.020711926743388176, -0.016180643811821938, 0.01484325435012579, -0.004628068767488003, 0.0648985430598259, 0.02688855119049549, -0.022313274443149567, 0.05536085367202759, 0.024460135027766228, -0.011367803439497948, -0.021415816619992256, 0.040614381432533264, -0.03417380154132843, 0.021063871681690216, 0.0025647946167737246, -0.029756898060441017, -0.004641266539692879, -0.010549533180892467, 0.017254073172807693, 0.057261351495981216, -0.0027121715247631073, -0.01729806698858738, -0.013461872935295105, 0.02454812079668045, 0.02162698283791542, 0.017210081219673157, 0.03994568809866905, 0.03998088091611862, -0.02021920494735241, -0.031622204929590225, -0.06584879755973816, 0.04145905002951622, -0.05050401762127876, -0.009423310868442059, -0.050398435443639755, 0.010549533180892467, 0.007918749004602432, -0.03287160396575928, 0.02856028638780117, -0.08897154033184052, 0.07524570822715759, -0.04585835337638855, -0.0032774819992482662, 0.055888768285512924, 0.00028458001906983554, -0.0461399108171463, -0.032519660890102386, 0.037974800914525986, 0.0515950471162796, 0.02680056542158127, -0.030759939923882484, -0.029985662549734116, -0.05198218673467636, 0.03684857860207558, -0.00983684603124857, 0.0152567895129323, 0.0005653106491081417, -0.023668259382247925, 0.015441560186445713, -0.05631110072135925, 0.02711731567978859, 0.015089615248143673, -0.02461851015686989, 0.012599608860909939, -0.07334520667791367, -0.027522051706910133, -0.04698457568883896, 0.03832674399018288, -0.02766282856464386, -0.0038911851588636637, -0.01476406678557396, 0.00881180725991726, -0.05902107432484627, -0.015846295282244682, -0.05504410341382027, 0.008019932545721531, 0.05282685160636902, 0.03896024450659752, -0.019339343532919884, 0.004159542731940746, 0.030830327421426773, 0.03758766129612923, 0.014878449030220509, -0.0317101888358593, -0.044908102601766586, -0.01940973289310932, 0.023985009640455246, -0.01807234436273575, 0.03061916120350361, -0.02365066297352314, 0.05859874188899994, 0.06430023908615112, 0.031111882999539375, 0.04990571364760399, -0.016286225989460945, 0.05785965546965599, 0.04951857402920723, -0.0693330466747284, 0.006510971114039421, 0.027750814333558083, -0.09403953701257706, -0.012951553799211979, -0.015740713104605675, 0.008209102787077427, -0.044978491961956024, -0.009951227344572544, 0.006814523134380579, 0.07334520667791367, 0.00815191213041544, -0.07735737413167953, -0.03857310488820076, -0.02711731567978859, -0.001042635296471417, 0.025005647912621498, 0.01678774692118168, -0.028613079339265823, 0.02907060645520687, -0.09425070881843567, 0.0005292913410812616, -0.01568792015314102, -0.005221975035965443, 0.005340755917131901, -0.04328915849328041, -0.02194373309612274, -0.02660699561238289, 0.03927699476480484, -0.05933782458305359, 0.0446617417037487, -0.02680056542158127, 0.05814121291041374, -0.01383141428232193, -0.048216380178928375, -0.042092546820640564, 0.037306103855371475, -0.0010008418466895819, -0.07538648694753647, 0.012634803541004658, 0.0758088231086731, 0.05997132509946823, 0.014508907683193684, 0.03899543732404709, 0.022823592647910118, -0.04100152105093002, -0.04395785555243492, -0.007817564532160759, 0.021714968606829643, -0.0426204651594162, 0.0076195960864424706, -0.001438572653569281, 0.054058656096458435, -0.000824319722596556, -0.051454268395900726, -0.028630675747990608, -0.029211383312940598, 0.05198218673467636, -0.03832674399018288, 0.03320595249533653, -0.08277732133865356, -0.05775407329201698, 0.011262220330536366, 0.04258527234196663, -0.04290201887488365, -0.0022007522638887167, 0.00013995288463775069, 0.051806215196847916, 0.04107191041111946, -0.1031900942325592, 0.02614946849644184, -0.004311318509280682, 0.03850271552801132, -0.02512882836163044, 0.008253095671534538, -0.006110634189099073, 0.048955462872982025, -0.07890593260526657, -0.05979534983634949, -0.00930892862379551, 0.01630382426083088, 0.04719574376940727, 0.022119704633951187, 0.0067969257943332195, 0.03186856582760811, -0.05856354534626007, -0.031041495501995087, 0.07806126773357391, 0.023791439831256866, 0.024055399000644684, -0.05490332469344139, -0.0013296898687258363, 0.022102108225226402, -0.03681338205933571, 0.01503682415932417, 0.0006868414930067956, 0.02583271823823452, -0.02797957882285118, -0.026466218754649162, 0.02306995540857315, 0.012194872833788395, -0.045717574656009674, -0.0061986204236745834, 0.029545731842517853, 0.02952813357114792, 0.007298446726053953, 0.06486335396766663, 0.026043884456157684, 0.026870954781770706, -0.07348598539829254, -0.0003189496055711061, 0.022313274443149567, -0.008081522770226002, 0.008411470800638199, 0.022577231749892235, -0.01681414246559143, -0.007606397848576307, 0.002054475247859955, 0.018371496349573135, -0.014517705887556076, -0.010373560711741447, -0.027539648115634918, -0.023087551817297935, 0.04434499144554138, 0.04008646681904793, 0.05578318610787392, -0.01823071949183941, 0.03311796858906746, -0.028542689979076385, -0.017130892723798752, -0.025973495095968246, -0.03266043961048126, -0.02708212099969387, -0.004069357179105282, -0.007355637848377228, 0.014887247234582901, -0.03558157756924629, -0.01842428930103779, -0.003127905772998929, 0.06711579114198685, 0.0038097980432212353, -0.007144471164792776, -0.03610949218273163, -0.019585704430937767, -0.058035630732774734, -0.054375406354665756, 0.020201608538627625, -0.02595589868724346, 0.02477688528597355, 0.08143993467092514, -0.0232987180352211, -0.007597599644213915, -0.023738648742437363, 0.01281957421451807, -0.014121768064796925, 0.04944818466901779, -0.007923147641122341, 0.015397567301988602, 0.07235976308584213, 0.008930589072406292, 0.01597827486693859, -0.004498288966715336, 0.03558157756924629, -0.03741168975830078, 0.07440104335546494, 0.09256137162446976, 0.040156856179237366, 0.03230849280953407, -0.051454268395900726, 0.039452966302633286, -0.01299554668366909, 0.0016629372257739305, -0.005239571910351515, -0.00864903349429369, -0.05536085367202759, -0.057261351495981216, 0.03588072955608368, -0.04628068581223488, -0.018635455518960953, 0.03674299269914627, -0.02169737219810486, 0.03244927152991295, -0.043077994138002396, -0.00980165135115385, -0.03713013231754303, -0.03042559139430523, -0.01912817731499672, -0.03952335566282272, -0.005675103049725294, -0.030091244727373123, 0.010391158051788807, 0.018089940771460533, 0.03549358993768692, -0.07475298643112183, 0.00008592392259743065, 0.021327828988432884, -0.043465130031108856, -0.028824245557188988, 0.04047360271215439, 0.04913143813610077, 0.02878905087709427, -0.011614164337515831, -0.029633717611432076, -0.0026461819652467966, 0.04290201887488365, 0.012177275493741035, -0.032009340822696686, -0.03016163408756256, 0.03248446807265282, -0.06440582126379013, -0.05870432406663895, -0.02509363554418087, -0.0041639418341219425, -0.04304279759526253, -0.018494676798582077, 0.026202259585261345, -0.005419943481683731, 0.021011080592870712, -0.029704106971621513, 0.04448577016592026, -0.012881164439022541, 0.03408581390976906, 0.0011119242990389466, 0.015309580601751804, 0.03257245197892189, 0.041353464126586914, -0.06032326817512512, -0.0027671626303344965, 0.08397392928600311, 0.05050401762127876, 0.05666304752230644, 0.0173332616686821, 0.018142733722925186, -0.03339952230453491, 0.028771454468369484, -0.01071670651435852, 0.029827287420630455, -0.02856028638780117, -0.06760851293802261, -0.031463827937841415, -0.03276602178812027, -0.01400738675147295, -0.006862915586680174, -0.029950467869639397, 0.0713743194937706, -0.006247012875974178, 0.08481859415769577, -0.00823109969496727, 0.03744688257575035, 0.020817510783672333, -0.04212774336338043, 0.03927699476480484, 0.06824201345443726, 0.010241582058370113, -0.08474820852279663, -0.026079079136252403, -0.08334042876958847, 0.07475298643112183, -0.020201608538627625, 0.04071996733546257, 0.0614846833050251, 0.026167064905166626, 0.015459157526493073, 0.005886269733309746, -0.06771410256624222, 0.031463827937841415, 0.025691939517855644, -0.0010607823496684432, -0.03413860499858856, -0.008530251681804657, -0.0037042147014290094, 0.0003934628330171108, -0.043500326573848724, 0.032238107174634933, 0.015652727335691452, 0.04515446349978447, 0.0589858777821064, 0.059830546379089355, -0.1026269793510437, 0.021538997069001198, 0.019779274240136147, -0.04621029645204544, 0.03595111891627312, -0.01677894778549671, -0.01073430385440588, -0.03595111891627312, -0.031076690182089806, -0.057261351495981216, -0.044591352343559265, -0.02088790014386177, -0.020623940974473953, -0.004256327636539936, -0.03417380154132843, 0.025586357340216637, -0.02532239817082882, -0.010144797153770924, 0.02856028638780117, -0.0038405931554734707, -0.00159034866373986, 0.03179817646741867, 0.07003693282604218, 0.045999132096767426, 0.005142787471413612, 0.01944492757320404, 0.10072648525238037, 0.015010427683591843, -0.019849663600325584, -0.0719374343752861, -0.022225288674235344, -0.051524657756090164, -0.08179187774658203, 0.03301238268613815, -0.025023246183991432, 0.003127905772998929, 0.0057058981619775295, -0.01720128208398819, -0.03554638475179672, -0.011411796323955059, -0.04005127027630806, -0.007417228072881699, -0.0005226923967711627, 0.0021567591466009617, -0.02563914842903614, -0.004412502516061068, 0.05599435046315193, -0.03389224410057068, -0.052967630326747894, -0.014975233934819698, 0.038185965269804, 0.016022268682718277, -0.0119045190513134, -0.07397870719432831, 0.00645817955955863, -0.018723441287875175, -0.001144919078797102, 0.008565446361899376, -0.04937779903411865, -0.02625505067408085, 0.0635259598493576, 0.004071556497365236, -0.006739735137671232, 0.07060004025697708, -0.02704692631959915, 0.02217249572277069, 0.02560395374894142, -0.009748859331011772, -0.016638170927762985, 0.0693330466747284, 0.00397037249058485, 0.016127850860357285, 0.008178307674825191, -0.04033282771706581, -0.03317075967788696, 0.0401216596364975, -0.031041495501995087, 0.043148383498191833, -0.010611123405396938, 0.016101455315947533, -0.04698457568883896, 0.056170325726270676, -0.010056810453534126, 0.054058656096458435, -0.02637823112308979, -0.042022161185741425, 0.039875298738479614, 0.029897674918174744, -0.014552900567650795, 0.03938257694244385, -0.007192863617092371, -0.08101759850978851, 0.044520966708660126, -0.01874103769659996, 0.06792526692152023, -0.02933456376194954, -0.03257245197892189, -0.003380865789949894, -0.025111231952905655, -0.005987453740090132, 0.017931565642356873, 0.00008942961721913889, 0.018600260838866234, 0.012256463058292866, -0.0030069248750805855, -0.005402346141636372, -0.004826037213206291, 0.01877623237669468, -0.04631588235497475, -0.04793482646346092, -0.015960678458213806, 0.040966328233480453, 0.060534436255693436, 0.027592439204454422, 0.042726047337055206, -0.006396589335054159, -0.004232131410390139, 0.0648985430598259, 0.05233412981033325, 0.021802954375743866, -0.0025449979584664106, -0.01774679496884346, 0.02704692631959915, -0.043465130031108856, -0.0065417662262916565, -0.006106235086917877, 0.0128987617790699, 0.05053921416401863, -0.003286280669271946, 0.02403780072927475, -0.006260210648179054, 0.05940821394324303, -0.04730132594704628, 0.026870954781770706, -0.007487616967409849, -0.018248315900564194, -0.016761351376771927, -0.034349773079156876, 0.004304719623178244, -0.029211383312940598, -0.045260049402713776, 0.006106235086917877, 0.01762361451983452, -0.009124157950282097, -0.009476102888584137, -0.025199217721819878, -0.020711926743388176, -0.039065826684236526, -0.011851727031171322, 0.014350532554090023, -0.005789485294371843, 0.0004786993667948991, -0.08622637391090393, -0.017535628750920296, -0.02451292611658573, -0.022348469123244286, -0.029035411775112152, 0.04462654888629913, 0.01928655244410038, -0.015925483778119087, -0.03135824576020241, -0.06440582126379013, 0.024565719068050385, -0.025885509327054024, -0.03380425646901131, -0.03938257694244385, 0.12135042250156403, -0.04033282771706581, 0.030918315052986145, -0.009282533079385757, 0.036989353597164154, -0.034208994358778, -0.04832196608185768, -0.04606952145695686, -0.022489245980978012, -0.07897631824016571, -0.03283641114830971, 0.013866608962416649, 0.014350532554090023, -0.018371496349573135, 0.0401216596364975, 0.026782967150211334, 0.03007364831864834, -0.023087551817297935, 0.03355789557099342, -0.013866608962416649, -0.003330273786559701, 0.015124809928238392, 0.014253747649490833, -0.020782316103577614, -0.016576580703258514, 0.033487509936094284, -0.00988083891570568, 0.01944492757320404, -0.05979534983634949, 0.019532913342118263, 0.025199217721819878, 0.007025689817965031, 0.02621985599398613, 0.024759287014603615, -0.035792745649814606, -0.05599435046315193, 0.0411422997713089, -0.014931240119040012, 0.1155785396695137, 0.05933782458305359, 0.009854442439973354, 0.02914099581539631, -0.0013340892037376761, 0.028067564591765404, 0.004632467869669199, 0.0476180762052536, -0.02018401026725769, 0.013400282710790634, 0.04138866066932678, -0.026079079136252403, -0.022858787328004837, -0.01948012225329876, -0.023597871884703636, 0.05360113084316254, 0.06824201345443726, 0.033997826278209686, 0.08193265646696091, 0.02217249572277069, 0.02922898158431053, -0.01684933714568615, 0.06215338036417961, 0.01745644211769104, 0.015643928200006485, -0.0426204651594162, 0.01967369206249714, 0.02929937094449997, 0.004984412342309952, 0.055888768285512924, 0.010320768691599369, 0.005133988801389933, 0.015555941499769688, -0.02416098304092884, 0.025815119966864586, -0.00695530092343688, -0.031076690182089806, -0.04508407413959503, -0.012256463058292866, -0.010523136705160141, 0.03327634185552597, 0.009951227344572544, 0.006779328919947147, 0.03737649321556091, 0.002701173070818186, 0.0817214846611023, 0.07165587693452835, -0.03178057819604874, 0.06820682436227798, 0.027926787734031677, 0.016726156696677208, 0.021451009437441826, -0.05096154659986496, -0.018089940771460533, 0.001391280209645629, -0.025392787531018257, 0.009432110004127026, -0.01886422000825405, 0.004672061651945114, 0.010487942956387997, -0.026853356510400772, -0.014684879221022129, -0.021415816619992256, -0.047829240560531616, 0.02150380238890648, -0.0066957417875528336, -0.019216163083910942, 0.007667988538742065, 0.0038515913765877485, 0.03825635462999344, -0.01617184467613697, -0.004944818560034037, -0.00436411052942276, -0.007144471164792776, 0.006071040872484446, 0.027029328048229218, -0.013233109377324581, 0.008481860160827637, 0.021961329504847527, 0.02734607830643654, -0.04244449362158775, -0.015995873138308525, -0.0103999562561512, -0.06113274022936821, -0.026519009843468666, -0.04156463220715523, 0.048955462872982025, -0.05916185304522514, 0.010100804269313812, -0.010118400678038597, -0.050820767879486084 ]
20,487
metevolsim.metevolsim
get_wild_type_species_value
Get the wild-type value of the species 'species_id'. Parameters ---------- species_id: str The identifier of the species (as defined in the SBML model). Returns ------- float
def get_wild_type_species_value( self, species_id ): """ Get the wild-type value of the species 'species_id'. Parameters ---------- species_id: str The identifier of the species (as defined in the SBML model). Returns ------- float """ assert species_id in list(self.species) return self.species[species_id]["wild_type_value"]
(self, species_id)
[ 0.07047279924154282, -0.048412665724754333, 0.08211857825517654, -0.03133101761341095, 0.048342298716306686, 0.013070715591311455, 0.00547984940931201, -0.014891468919813633, 0.007991080172359943, 0.009244496934115887, -0.07033206522464752, 0.02304527349770069, -0.01328181754797697, -0.0093588437885046, 0.04746270924806595, 0.05171992629766464, -0.006029593292623758, 0.10224360972642899, 0.049538541585206985, -0.0037250660825520754, -0.0017415893962606788, 0.023080457001924515, -0.022535109892487526, -0.07085981965065002, 0.022605478763580322, -0.05041813105344772, 0.08451106399297714, -0.031102322041988373, -0.07388561218976974, -0.01980837993323803, -0.018752871081233025, -0.02883297950029373, 0.013906327076256275, 0.003250087145715952, -0.028639469295740128, -0.011733738705515862, -0.022535109892487526, 0.034339215606451035, -0.07810764014720917, 0.023080457001924515, -0.04665348306298256, -0.003731663106009364, -0.021092582494020462, -0.048940420150756836, -0.020529644563794136, -0.005009268410503864, -0.01292998157441616, 0.011434677056968212, -0.07205606251955032, 0.027830244973301888, -0.04971446096897125, 0.02100462280213833, -0.04496467113494873, 0.015076182782649994, -0.005317125003784895, -0.006715673953294754, 0.0021341065876185894, -0.02645808458328247, 0.0432758554816246, 0.016439547762274742, 0.030996771529316902, 0.019738012924790382, -0.0027597155421972275, -0.07796690613031387, 0.040390800684690475, -0.0275487769395113, 0.029343141242861748, 0.030750486999750137, -0.07458928227424622, 0.024487800896167755, -0.03824459761381149, -0.05189584568142891, 0.010968494229018688, 0.03859643638134003, 0.06596929579973221, -0.02418874017894268, 0.022095315158367157, -0.04573870822787285, 0.020424094051122665, 0.022218458354473114, 0.007841549813747406, 0.04186851158738136, 0.02744322642683983, -0.043311040848493576, -0.07163385301828384, 0.03789276257157326, 0.04243144765496254, 0.01926303282380104, 0.02862187661230564, 0.017222383990883827, 0.01758301630616188, -0.07402634620666504, 0.021039806306362152, -0.009297272190451622, -0.015076182782649994, 0.03842051699757576, 0.04637201502919197, -0.04063708335161209, 0.036450233310461044, -0.010212047025561333, 0.015357651747763157, 0.04538687318563461, 0.05291616916656494, 0.004736595321446657, -0.0021560965105891228, 0.016896935179829597, 0.014214184135198593, 0.0028762612491846085, -0.02181384712457657, 0.04397952929139137, -0.010159270837903023, -0.018594544380903244, -0.03409292921423912, -0.022922130301594734, -0.0010654040379449725, -0.03289668634533882, 0.03270317614078522, 0.07047279924154282, 0.009649109095335007, -0.013299409300088882, -0.0246285367757082, 0.01949172653257847, 0.011601800099015236, -0.023625802248716354, 0.017618199810385704, 0.07867058366537094, 0.005374298430979252, -0.06055101379752159, -0.037681661546230316, 0.08289261907339096, -0.025068331509828568, 0.0101240873336792, -0.012806838378310204, 0.05956587567925453, 0.012243900448083878, -0.012956369668245316, -0.0008543023723177612, -0.0034040154423564672, 0.0842999592423439, 0.01260453276336193, 0.007718407548964024, 0.05210694670677185, 0.004052713513374329, -0.09098485112190247, -0.025402575731277466, 0.031964320689439774, -0.007212642580270767, 0.0019922726787626743, -0.028780203312635422, -0.015788650140166283, -0.052458781749010086, 0.04260736703872681, 0.015498385764658451, 0.04718123748898506, -0.013536899350583553, -0.0105550866574049, 0.07874094694852829, -0.04074263572692871, 0.0334596261382103, 0.008787109516561031, 0.02056482806801796, -0.0014348321128636599, 0.021796254441142082, -0.027284899726510048, -0.06202872842550278, 0.008751926012337208, -0.05661045014858246, 0.02007225714623928, 0.026493268087506294, 0.03687243536114693, -0.033037420362234116, -0.006306664552539587, -0.042079612612724304, 0.017468668520450592, 0.061113953590393066, 0.023889679461717606, -0.017072852700948715, 0.0021209127735346556, 0.016421956941485405, 0.007560080848634243, 0.005312727298587561, -0.06294350326061249, -0.02760155312716961, 0.001371061778627336, -0.020441684871912003, 0.025772003456950188, 0.009121354669332504, -0.005778910126537085, 0.030240323394536972, 0.027038615196943283, 0.03219301626086235, 0.008079039864242077, -0.020811112597584724, 0.018858421593904495, 0.014152612537145615, -0.028041347861289978, 0.07430781424045563, -0.013220245949923992, -0.02781265415251255, 0.01171614695340395, -0.0131762670353055, -0.00523356394842267, -0.020863888785243034, 0.0027663123328238726, -0.03789276257157326, 0.017072852700948715, -0.010643046349287033, -0.02251751907169819, -0.0691710039973259, -0.02017780765891075, -0.04869413375854492, 0.02093425579369068, 0.0008328623371198773, 0.012287880294024944, 0.022904539480805397, -0.14819341897964478, -0.027689510956406593, -0.04890523478388786, 0.023344334214925766, 0.03036346659064293, -0.014381306245923042, -0.03880753740668297, 0.010572678409516811, 0.07205606251955032, -0.012120758183300495, 0.053056903183460236, -0.04130557179450989, 0.04658311605453491, -0.0013578679645434022, -0.032175421714782715, -0.0178556889295578, 0.042396266013383865, 0.021338867023587227, -0.027249716222286224, -0.014953039586544037, 0.01931580901145935, 0.018101973459124565, 0.008246161974966526, -0.020687971264123917, 0.011320331133902073, -0.03933529183268547, -0.046020179986953735, 0.00900700781494379, 0.027742287144064903, -0.06188799440860748, -0.05319763720035553, -0.005990011617541313, 0.05893256887793541, -0.022693436592817307, -0.028639469295740128, 0.01506738644093275, -0.022060131654143333, 0.06945247203111649, 0.004736595321446657, 0.026370124891400337, -0.03284391388297081, -0.07339303940534592, 0.01970282942056656, 0.027073798701167107, -0.03414570540189743, -0.009939373470842838, -0.0228341706097126, 0.042888835072517395, 0.05210694670677185, -0.1313052773475647, -0.003076368011534214, -0.04936262220144272, 0.03242170810699463, 0.032017096877098083, -0.02374894544482231, 0.0633305236697197, 0.035535458475351334, -0.054569799453020096, -0.055484574288129807, -0.020424094051122665, -0.04172777757048607, 0.02348506823182106, 0.028604285791516304, 0.03673170134425163, -0.005598593968898058, -0.03838533163070679, -0.04081300273537636, 0.04193887859582901, 0.010889331810176373, 0.018524177372455597, 0.03416329622268677, 0.01404706109315157, 0.052142128348350525, -0.03180599585175514, 0.026071064174175262, -0.009235701523721218, -0.022218458354473114, -0.02802375517785549, 0.006698082201182842, 0.016624262556433678, -0.002858669264242053, -0.06178244203329086, -0.032333750277757645, 0.01996670663356781, 0.014777122065424919, -0.037576109170913696, 0.02932555042207241, 0.0007295104442164302, 0.03289668634533882, -0.05611787736415863, 0.039827860891819, 0.023660985752940178, -0.027953388169407845, 0.013079511933028698, 0.0427481010556221, -0.008153804577887058, -0.0024826445151120424, -0.027284899726510048, 0.002007665578275919, 0.0007778879371471703, -0.007995478808879852, -0.03089122101664543, -0.043909162282943726, 0.011724942363798618, 0.017239974811673164, 0.04950335621833801, -0.013580878265202045, 0.05112180486321449, 0.001705306232906878, 0.003973550628870726, -0.06072693318128586, -0.06336570531129837, -0.008298937231302261, -0.008694753050804138, 0.001762479660101235, -0.012129554525017738, -0.04809601232409477, 0.024857230484485626, -0.03754092752933502, 0.06888953596353531, -0.042783286422491074, 0.022640662267804146, 0.00903339497745037, -0.019984297454357147, -0.012208716943860054, -0.004197846166789532, 0.026757145300507545, 0.03224579244852066, -0.00017042068066075444, 0.0784594789147377, 0.03961675986647606, -0.020142624154686928, -0.05661045014858246, 0.04246663302183151, 0.020652785897254944, 0.049538541585206985, -0.046407200396060944, -0.0324568934738636, -0.010563882999122143, 0.017178403213620186, 0.015665508806705475, 0.02007225714623928, 0.016589079052209854, -0.03894827142357826, 0.02364339493215084, 0.04021488130092621, -0.007991080172359943, 0.022869354113936424, -0.008659569546580315, -0.007023530546575785, 0.007098296191543341, -0.03020513989031315, 0.005990011617541313, 0.004065907560288906, -0.008268151432275772, -0.04281846806406975, 0.03572896867990494, -0.043909162282943726, -0.03423366695642471, 0.038561251014471054, 0.008298937231302261, 0.026493268087506294, -0.02732008323073387, 0.0064473990350961685, -0.027671920135617256, -0.027460817247629166, -0.0073973569087684155, -0.08141490072011948, 0.007221438456326723, 0.015938181430101395, -0.005897654686123133, -0.010088903829455376, -0.02564886212348938, -0.08978860825300217, -0.015102569945156574, 0.022200865671038628, -0.000626158551312983, 0.019597278907895088, 0.013519307598471642, 0.031911544501781464, 0.025560902431607246, 0.02218327485024929, -0.030856037512421608, 0.03129583224654198, 0.04281846806406975, 0.019896339625120163, -0.032826319336891174, -0.056962285190820694, 0.07268936187028885, -0.01190086081624031, -0.060902852565050125, -0.03641505166888237, 0.0008625485352240503, -0.08078160136938095, -0.006095562595874071, 0.037153907120227814, -0.016008548438549042, -0.02267584577202797, 0.01970282942056656, 0.026370124891400337, -0.009649109095335007, 0.025085924193263054, -0.0005145604955032468, -0.03729464113712311, 0.023907272145152092, -0.004338580649346113, -0.05055886507034302, -0.01106524933129549, 0.05010147765278816, -0.00031747721368446946, -0.009473190642893314, 0.03627431392669678, 0.052036579698324203, -0.052247680723667145, 0.06002325937151909, -0.003305061487480998, -0.002951026428490877, 0.008334120735526085, -0.009130150079727173, -0.0018053596140816808, -0.017785321921110153, -0.03430403396487236, -0.005906450562179089, -0.023696169257164, 0.013730408623814583, 0.010150475427508354, 0.047110870480537415, -0.0009142244816757739, 0.019685236737132072, -0.022411968559026718, -0.0491163395345211, 0.06473786383867264, 0.0679747611284256, 0.003623913275077939, -0.036063212901353836, -0.03824459761381149, -0.09161815792322159, 0.05400685966014862, -0.006205511745065451, 0.04454246535897255, 0.0018603340722620487, -0.036766886711120605, 0.03396978974342346, 0.028041347861289978, -0.079655721783638, -0.015867814421653748, 0.004776176996529102, -0.0036678926553577185, -0.039370473474264145, -0.05298653617501259, 0.028322815895080566, 0.004987278487533331, -0.03782239556312561, 0.04355732724070549, -0.005097227171063423, 0.02629975788295269, 0.08366665244102478, 0.062310196459293365, -0.0509810708463192, 0.030556976795196533, -0.0028872559778392315, -0.0750114843249321, 0.003916377201676369, -0.016272425651550293, 0.0005953728687018156, 0.0013171868631616235, -0.013994285836815834, -0.033195748925209045, -0.050136663019657135, -0.014785917475819588, -0.017187200486660004, 0.012243900448083878, -0.013871143572032452, 0.0662507638335228, -0.041094470769166946, 0.03182358667254448, 0.03180599585175514, 0.028058938682079315, -0.03750574216246605, -0.034550316631793976, 0.011865677312016487, 0.01633399724960327, -0.013114695437252522, 0.017618199810385704, 0.06681369990110397, -0.019984297454357147, -0.0010483619989827275, -0.054569799453020096, -0.005132411140948534, -0.025068331509828568, -0.05865110084414482, 0.013369777239859104, -0.01548079401254654, 0.0339873805642128, -0.00016052527644205838, -0.0014370310818776488, -0.050945885479450226, -0.0004403450293466449, -0.023889679461717606, 0.0216379277408123, -0.021074989810585976, 0.04084818810224533, -0.005677757319062948, 0.013149878941476345, 0.025402575731277466, -0.04848303273320198, -0.0708950012922287, -0.00943800713866949, 0.0254905354231596, 0.01753024011850357, 0.008751926012337208, -0.06727109104394913, 0.037681661546230316, -0.007841549813747406, 0.021954581141471863, 0.010994882322847843, 0.0010335189290344715, -0.052845802158117294, 0.02246474288403988, 0.007287407759577036, -0.015665508806705475, 0.005009268410503864, -0.027583960443735123, -0.06290832161903381, -0.02624698355793953, -0.02527943253517151, -0.05358465760946274, 0.061500973999500275, 0.00460025854408741, 0.0556253083050251, -0.03597525507211685, -0.03894827142357826, -0.007005938794463873, 0.05523828789591789, -0.021884214133024216, 0.043205488473176956, -0.004474916961044073, 0.000782835588324815, -0.039194557815790176, 0.05843999981880188, 0.01266610436141491, 0.005255553871393204, 0.04517577216029167, -0.041587043553590775, 0.02424151636660099, 0.04426099732518196, -0.001019775285385549, 0.13214968144893646, -0.019192665815353394, -0.020265767350792885, -0.02505073882639408, -0.07001540809869766, -0.012384635396301746, -0.004364968277513981, -0.07128202170133591, -0.014020673930644989, 0.027073798701167107, 0.062415748834609985, 0.0071158879436552525, -0.03261521831154823, 0.009481986053287983, -0.014680366963148117, 0.030293099582195282, -0.020318541675806046, 0.007173061370849609, -0.0027157359290868044, -0.02001948095858097, 0.003584331599995494, 0.025789596140384674, -0.011883269064128399, 0.045316506177186966, 0.004206642042845488, 0.04647756740450859, -0.03266799449920654, 0.02679232880473137, 0.0497848279774189, 0.007995478808879852, -0.005545818712562323, -0.0019515915773808956, -0.006306664552539587, 0.011689758859574795, -0.027337675914168358, -0.004916911479085684, 0.05210694670677185, 0.019456543028354645, 0.024276699870824814, -0.023836905136704445, 0.020529644563794136, 0.005563410464674234, 0.058580733835697174, -0.030662527307868004, 0.05326800420880318, 0.0005291287088766694, 0.00492570735514164, -0.08577767014503479, 0.022605478763580322, 0.018101973459124565, 0.007304999977350235, -0.0190519317984581, 0.008699150756001472, 0.032386526465415955, 0.01731034182012081, -0.04971446096897125, -0.035465091466903687, -0.07473001629114151, -0.015401630662381649, 0.0027619143947958946, 0.005444665905088186, -0.03694280609488487, 0.0614657886326313, -0.03764647617936134, -0.027302492409944534, -0.020863888785243034, -0.047427523881196976, -0.025789596140384674, 0.0015722682001069188, 0.03219301626086235, -0.020001890137791634, -0.043099939823150635, -0.08064086735248566, 0.05038294941186905, 0.0006987247616052628, -0.010977290570735931, -0.04200924560427666, 0.09781046956777573, 0.020142624154686928, 0.060093630105257034, -0.01420538779348135, 0.04915152117609978, 0.02608865685760975, -0.010933310724794865, -0.05464016646146774, -0.011549023911356926, -0.06927655637264252, -0.01198881957679987, -0.042079612612724304, 0.002041749656200409, -0.011505044996738434, 0.008787109516561031, 0.06364717334508896, -0.020037073642015457, 0.019773196429014206, 0.011003677733242512, -0.056786369532346725, 0.02001948095858097, 0.002812490798532963, -0.03694280609488487, -0.0324568934738636, -0.023573027923703194, 0.03396978974342346, -0.06526561826467514, -0.019544502720236778, -0.0497848279774189, 0.03835014998912811, -0.03898345306515694, 0.02007225714623928, -0.0004573870974127203, 0.002625577850267291, -0.033195748925209045, -0.09562908858060837, -0.014337326399981976, -0.027408042922616005, 0.07085981965065002, 0.04010932892560959, 0.010563882999122143, 0.05421796441078186, 0.008013070560991764, 0.005959226284176111, 0.04243144765496254, 0.019632462412118912, -0.02585996314883232, 0.0018779259407892823, 0.018629727885127068, -0.031788405030965805, 0.005761318374425173, -0.05502718687057495, -0.055062368512153625, 0.013325797393918037, 0.03078567050397396, -0.014847489073872566, 0.03305501490831375, 0.04127039015293121, 0.07416708022356033, 0.00323249539360404, 0.05210694670677185, -0.052458781749010086, 0.02007225714623928, 0.00769641762599349, -0.0013292812509462237, 0.05502718687057495, -0.027021022513508797, 0.06860806792974472, 0.03333648294210434, 0.022763803601264954, 0.01123237144201994, -0.049538541585206985, 0.0027179347816854715, -0.022763803601264954, -0.003742657834663987, -0.047110870480537415, 0.020424094051122665, -0.009059783071279526, 0.03838533163070679, 0.02126850001513958, 0.026528451591730118, 0.00492570735514164, -0.01949172653257847, 0.06185280904173851, 0.023203600198030472, -0.005743726622313261, 0.046934954822063446, 0.01460999995470047, 0.03761129453778267, 0.0015986558282747865, 0.004806962329894304, 0.023361925035715103, 0.03477901220321655, 0.013299409300088882, -0.004798166453838348, -0.009306068532168865, 0.03300223872065544, 0.032228197902441025, 0.007951498962938786, 0.005418277811259031, -0.007788774557411671, -0.0004747040511574596, 0.06308423727750778, -0.01753024011850357, -0.08113343268632889, 0.027742287144064903, 0.04345177486538887, 0.0014271356631070375, 0.039053820073604584, 0.007353377062827349, 0.023995231837034225, 0.03880753740668297, -0.0101240873336792, 0.04193887859582901, -0.01395910233259201, 0.046934954822063446, 0.024980371817946434, -0.007881131954491138, -0.0181899331510067, -0.004947696812450886, 0.03068011999130249, 0.010915718972682953, -0.040883369743824005, -0.024065598845481873, 0.011724942363798618, -0.047427523881196976, 0.03317815810441971, -0.07761507481336594, -0.002460654592141509 ]
20,488
metevolsim.metevolsim
parse_copasi_output
Parse the Copasi output 'filename'. Parameters ---------- filename: str Name of the Copasi output (txt file). task: str Define Copasi task (STEADY_STATE/MCA). Returns ------- - boolean, list of [str, float] lists, list of [str, float] lists if task == "STEADY_STATE" - boolean, list of [str], list of [str], list of list of [str] if task == "MCA"
def parse_copasi_output( self, filename, task ): """ Parse the Copasi output 'filename'. Parameters ---------- filename: str Name of the Copasi output (txt file). task: str Define Copasi task (STEADY_STATE/MCA). Returns ------- - boolean, list of [str, float] lists, list of [str, float] lists if task == "STEADY_STATE" - boolean, list of [str], list of [str], list of list of [str] if task == "MCA" """ assert os.path.isfile(filename), "The Copasi output \""+filename+"\" does not exist. Exit." assert task in ["STEADY_STATE", "MCA"] #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Parse to extract the steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# if task == "STEADY_STATE": concentrations = [] fluxes = [] parse_concentrations = False parse_fluxes = False f = open(filename, "r") l = f.readline() if "No steady state with given resolution was found!" in l: return False, concentrations, fluxes while l: if l == "\n" and parse_concentrations: parse_concentrations = False if l == "\n" and parse_fluxes: parse_fluxes = False if parse_concentrations: name = l.split("\t")[0] val = l.split("\t")[1] concentrations.append([name, val]) if parse_fluxes: name = l.split("\t")[0] val = l.split("\t")[1] fluxes.append([name, val]) if l.startswith("Species"): parse_concentrations = True if l.startswith("Reaction"): parse_fluxes = True l = f.readline() f.close() return True, concentrations, fluxes #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Parse to extract the MCA result # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# elif task == "MCA": colnames = [] rownames = [] unscaled = [] scaled = [] N = 0 f = open(filename, "r") l = f.readline() while l: if l.startswith("Unscaled concentration control coefficients"): l = f.readline() l = f.readline() l = f.readline() l = f.readline() colnames = l.strip("\n\t").split("\t") N = len(colnames) l = f.readline() for i in range(len(colnames)): colnames[i] = colnames[i].strip("()") while l != "\n": l = l.strip("\n\t").split("\t") rownames.append(l[0]) unscaled.append(l[1:(N+1)]) l = f.readline() if l.startswith("Scaled concentration control coefficients"): l = f.readline() l = f.readline() l = f.readline() l = f.readline() l = f.readline() while l != "\n": l = l.strip("\n\t").split("\t") scaled.append(l[1:(N+1)]) l = f.readline() break l = f.readline() f.close() return rownames, colnames, unscaled, scaled
(self, filename, task)
[ 0.024193068966269493, 0.04483972117304802, -0.028840092942118645, -0.0076074665412306786, 0.005210069939494133, -0.020096348598599434, -0.041517507284879684, -0.017467109486460686, 0.03358902782201767, -0.053522322326898575, -0.03644246608018875, 0.05841393023729324, -0.043942928314208984, 0.002151542343199253, 0.004458494950085878, 0.0412321612238884, 0.008545024320483208, -0.00475912494584918, -0.018425049260258675, 0.012055770494043827, -0.011036685667932034, -0.003306929487735033, -0.02635352686047554, 0.04496201127767563, 0.06061515212059021, 0.0027693624142557383, 0.03536223620176315, -0.04512506723403931, -0.02543635107576847, -0.009569204412400723, -0.01564294844865799, 0.04312765970826149, -0.02083008922636509, -0.01359458826482296, -0.026047801598906517, -0.0007617657538503408, 0.055112093687057495, -0.038888268172740936, -0.03709467872977257, 0.07418935745954514, -0.02623123675584793, -0.061552710831165314, 0.03717620670795441, 0.03295719623565674, -0.05755789577960968, -0.027494901791214943, -0.07190661132335663, 0.03458772972226143, -0.02154344879090786, -0.009569204412400723, 0.03128589689731598, -0.055642019957304, -0.037502311170101166, 0.039295900613069534, -0.0003073177067562938, -0.005890308879315853, 0.012147488072514534, 0.039418190717697144, 0.06917545944452286, -0.021319249644875526, 0.014155085198581219, 0.03689086064696312, 0.02133963070809841, 0.01250416785478592, -0.021645355969667435, 0.01685565896332264, 0.021278485655784607, -0.017762644216418266, -0.010618861764669418, 0.0353010892868042, 0.0013337269192561507, 0.00664952676743269, 0.023826196789741516, -0.02146192081272602, 0.03784880042076111, -0.04102834686636925, -0.04051880165934563, -0.02969612553715706, 0.002369371708482504, -0.023989250883460045, -0.059881411492824554, 0.03397627919912338, 0.03717620670795441, -0.030755972489714622, 0.004726004786789417, 0.008759032003581524, 0.09179913997650146, 0.0324680358171463, -0.02655734494328499, 0.030878262594342232, -0.029247727245092392, 0.011800999753177166, 0.01816008798778057, 0.03479154780507088, -0.000021675450625480153, 0.019056882709264755, -0.04304613173007965, -0.05234018340706825, -0.015479895286262035, -0.03397627919912338, -0.00953863188624382, 0.011892717331647873, -0.014511764980852604, -0.011383174918591976, 0.011240502819418907, -0.025843985378742218, -0.034322768449783325, 0.05266629159450531, 0.049975909292697906, -0.04002964124083519, -0.07166203111410141, -0.008560310117900372, -0.037869181483983994, -0.017599590122699738, 0.0030750876758247614, -0.04973132908344269, 0.014399665407836437, 0.027474520727992058, -0.10883823037147522, -0.0269445963203907, 0.017558827996253967, -0.03652399033308029, -0.032488416880369186, 0.03811376541852951, 0.013023900799453259, 0.0029986563604325056, 0.01736520230770111, -0.01564294844865799, 0.07981470227241516, -0.029349636286497116, -0.0018560078460723162, -0.031224751845002174, 0.03309986740350723, -0.00252605602145195, -0.007663516327738762, -0.04308689758181572, -0.009085139259696007, -0.02710765041410923, 0.022868258878588676, -0.017416154965758324, 0.04025384038686752, -0.01756901852786541, -0.03163238614797592, -0.045491937547922134, 0.0009795950027182698, 0.005650823935866356, 0.06554751843214035, -0.040009260177612305, -0.06477301567792892, 0.012055770494043827, -0.025966275483369827, -0.012514358386397362, -0.10313136130571365, -0.06840095669031143, 0.03685009852051735, -0.00637946929782629, -0.006955252494663, -0.031265515834093094, 0.00009991805563913658, -0.0035769869573414326, -0.028310170397162437, 0.0015617471653968096, -0.0015986888902261853, 0.054949041455984116, -0.005179497413337231, -0.0023719193413853645, -0.019087454304099083, -0.008203631266951561, -0.01816008798778057, 0.014206038787961006, -0.005390957463532686, 0.0355660505592823, -0.06787103414535522, 0.04106910899281502, -0.01961737871170044, 0.011495274491608143, -0.013482488691806793, -0.02790253609418869, 0.02154344879090786, 0.0179868433624506, -0.06501759588718414, -0.01924031786620617, -0.04475819692015648, 0.05392995476722717, 0.007021492812782526, 0.017008522525429726, 0.05784324184060097, -0.016081154346466064, 0.04443208873271942, 0.021237723529338837, 0.010883823037147522, -0.04092643782496452, -0.00805076863616705, 0.04806002974510193, 0.039927735924720764, -0.03320177644491196, 0.0064609963446855545, 0.011953862383961678, 0.034322768449783325, -0.07512691617012024, -0.0026547154411673546, -0.02778024598956108, 0.021645355969667435, 0.020993143320083618, 0.006853343918919563, 0.0017897672951221466, -0.03978506103157997, 0.007210023235529661, -0.07170279324054718, 0.09212524443864822, -0.02309245616197586, -0.06204187124967575, 0.02492680959403515, -0.0033578837756067514, 0.05959606543183327, -0.03780803829431534, 0.06579209864139557, 0.017579209059476852, -0.01898554526269436, -0.010445617139339447, 0.0302464310079813, -0.018017414957284927, 0.01073096040636301, 0.045410409569740295, -0.02178802900016308, 0.0564572848379612, 0.02012692019343376, 0.05959606543183327, 0.01614229939877987, 0.03693162649869919, -0.0009254561737179756, -0.03318139538168907, 0.0007585810963064432, -0.00705716060474515, 0.024254214018583298, -0.023663144558668137, 0.011199739761650562, 0.03238650783896446, -0.002267463132739067, -0.012728366069495678, -0.06338705867528915, -0.04744857922196388, 0.013268481008708477, -0.036625899374485016, -0.02443764917552471, -0.05800629407167435, 0.047203999012708664, -0.00914118904620409, -0.09995181858539581, 0.032610706984996796, 0.0370539166033268, 0.026007039472460747, 0.023500090464949608, -0.008708077482879162, -0.007169260177761316, -0.08226050436496735, -0.03994811698794365, -0.013625160790979862, 0.05686492100358009, -0.058250874280929565, 0.06909393519163132, -0.06876783072948456, 0.0710098147392273, 0.006838057655841112, -0.03342597559094429, 0.008274966850876808, -0.0017413607565686107, -0.008774318732321262, 0.002131160581484437, -0.0018725679256021976, 0.07027607411146164, 0.03735964000225067, -0.08658142387866974, 0.015510467812418938, -0.041007962077856064, -0.007006206549704075, 0.05743560567498207, -0.04263849928975105, -0.028269406408071518, 0.033283304423093796, -0.02372428961098194, 0.055112093687057495, -0.012911802157759666, 0.01874096505343914, -0.024417266249656677, -0.06672965735197067, -0.013146190904080868, -0.053400032222270966, 0.033364828675985336, 0.04463590681552887, -0.002234342973679304, -0.018170278519392014, 0.011077449657022953, -0.06901241093873978, 0.06636279076337814, 0.002305678790435195, -0.033364828675985336, -0.06106354668736458, -0.014155085198581219, -0.0626533180475235, -0.017925698310136795, -0.04761163145303726, 0.045573461800813675, -0.06167500093579292, -0.04911987856030464, 0.007429126650094986, 0.015011115930974483, -0.03627941012382507, 0.043902162462472916, -0.039173610508441925, 0.04435056075453758, 0.009844357147812843, 0.030980171635746956, -0.011800999753177166, 0.0028483413625508547, 0.02254215069115162, -0.01777283474802971, 0.04304613173007965, 0.054826751351356506, 0.02083008922636509, -0.021258104592561722, -0.03585139662027359, 0.03805261850357056, 0.04781544953584671, 0.048793770372867584, -0.012707985006272793, -0.006980729289352894, -0.03572910651564598, 0.04066147655248642, 0.0031540668569505215, -0.02258291468024254, 0.018333332613110542, -0.02647581696510315, 0.03685009852051735, 0.03259032592177391, -0.06656660884618759, -0.01669260486960411, -0.024417266249656677, 0.04051880165934563, -0.04977209120988846, 0.07414859533309937, -0.0052482858300209045, -0.03124513290822506, 0.017660735175013542, 0.06028904393315315, 0.006904297973960638, 0.04422827064990997, -0.004175699315965176, -0.01878172904253006, 0.03230497986078262, -0.01006346009671688, 0.02635352686047554, -0.02492680959403515, 0.11071334779262543, 0.02070779912173748, 0.09432646632194519, -0.03919399157166481, -0.04512506723403931, 0.03805261850357056, 0.012025197967886925, 0.01882249303162098, -0.012453213334083557, 0.0027846486773341894, 0.008025291375815868, -0.02392810583114624, -0.052095603197813034, -0.027678336948156357, 0.033731698989868164, 0.042149338871240616, 0.001801231992430985, -0.0041349357925355434, 0.026047801598906517, 0.04137483611702919, -0.0786733329296112, 0.012198442593216896, 0.03350749984383583, 0.021726883947849274, -0.0006706850253976882, -0.03795070946216583, -0.037665367126464844, -0.011515655554831028, 0.030266812071204185, -0.06840095669031143, 0.04031498730182648, 0.009594681672751904, -0.02138039469718933, -0.0009343731799162924, 0.010216322727501392, 0.002937511308118701, 0.020891234278678894, 0.010710579343140125, 0.03617750108242035, 0.03367055580019951, -0.04932369291782379, 0.05005743354558945, -0.011892717331647873, 0.025110244750976562, 0.018435239791870117, -0.006221511401236057, -0.0025400682352483273, -0.03542337939143181, -0.06028904393315315, 0.010618861764669418, 0.05156568065285683, -0.0645284354686737, -0.028085971251130104, 0.025171389803290367, -0.025986656546592712, -0.034282006323337555, -0.007943764328956604, 0.06346859037876129, 0.03621826693415642, 0.02647581696510315, -0.051647208631038666, -0.0728849321603775, 0.0359736867249012, -0.09522326290607452, -0.01077172439545393, 0.03259032592177391, 0.023357419297099113, -0.009844357147812843, 0.011006113141775131, 0.02250138856470585, 0.0034699831157922745, 0.018170278519392014, 0.03016490302979946, -0.015969054773449898, 0.041354451328516006, -0.027515284717082977, -0.013879932463169098, -0.008152676746249199, 0.05788400396704674, -0.06041133403778076, -0.061756525188684464, -0.016132108867168427, -0.030817117542028427, -0.02460070140659809, 0.00021544085757341236, 0.03572910651564598, -0.0023859317880123854, 0.012076152488589287, 0.039092086255550385, 0.022358715534210205, -0.010328422300517559, -0.027087267488241196, -0.0011190822115167975, -0.05551972985267639, -0.01802760548889637, -0.046959418803453445, -0.007734851911664009, -0.04761163145303726, 0.039173610508441925, -0.030470628291368484, -0.039173610508441925, 0.056946445256471634, 0.02150268480181694, 0.018394477665424347, 0.010318231768906116, -0.042353156954050064, 0.02170650102198124, 0.008764127269387245, 0.034404296427965164, 0.03780803829431534, 0.05796553194522858, 0.040804147720336914, -0.07753195613622665, -0.008249489590525627, 0.0062367976643145084, -0.03703353554010391, -0.013930886052548885, -0.0653437003493309, -0.05225865915417671, 0.0011127130128443241, 0.01562256645411253, 0.015571612864732742, -0.013146190904080868, -0.02138039469718933, 0.011495274491608143, 0.01777283474802971, -0.020004630088806152, -0.030735591426491737, -0.024396885186433792, -0.0353010892868042, 0.03685009852051735, -0.0014356353785842657, 0.012300350703299046, 0.059922173619270325, -0.08315730094909668, -0.007490271702408791, -0.09049471467733383, -0.048753008246421814, -0.0245191752910614, 0.029757270589470863, -0.002845793729647994, -0.022786730900406837, 0.022032609209418297, 0.008111913688480854, 0.006277561187744141, 0.032651469111442566, 0.0058036865666508675, 0.04361682012677193, 0.026170091703534126, -0.051810260862112045, -0.018261995166540146, 0.02500833570957184, 0.027719100937247276, -0.04806002974510193, -0.039846207946538925, -0.03165276721119881, -0.0564572848379612, -0.039683155715465546, -0.029023529961705208, 0.03862330690026283, 0.016631459817290306, -0.023316655308008194, -0.015989437699317932, -0.03483230993151665, 0.05234018340706825, -0.011281266808509827, 0.048508428037166595, -0.021971464157104492, -0.04045765846967697, -0.03601444885134697, 0.05556049197912216, -0.05058735981583595, 0.06236797571182251, 0.009696589782834053, -0.0397442989051342, -0.026964977383613586, -0.04765239357948303, -0.04113025218248367, -0.05217713117599487, 0.016498979181051254, 0.04748934134840965, 0.03216230869293213, -0.021849174052476883, 0.05755789577960968, -0.050261251628398895, -0.018180469051003456, -0.037706129252910614, 0.026027420535683632, -0.006287751719355583, 0.029308872297406197, -0.0038190195336937904, 0.027556046843528748, -0.001043287804350257, 0.015062070451676846, 0.034485820680856705, -0.01520474161952734, 0.017558827996253967, -0.009319528937339783, 0.008244394324719906, 0.021482303738594055, -0.03358902782201767, 0.09571242332458496, 0.035912539809942245, 0.009599776938557625, 0.0020381691865622997, -0.007816378958523273, -0.025843985378742218, -0.008167962543666363, -0.027046505361795425, -0.043739110231399536, -0.007841856218874454, -0.023785434663295746, -0.005049563944339752, 0.016662033274769783, 0.026761161163449287, -0.01706966757774353, -0.01277932059019804, 0.042393919080495834, 0.00637946929782629, 0.008035481907427311, 0.008855844847857952, -0.0231739841401577, 0.0010031614219769835, 0.050424303859472275, -0.01584676466882229, 0.01389012299478054, -0.002675096970051527, 0.03399666026234627, -0.006038076244294643, 0.010430330410599709, -0.0013286315370351076, 0.012707985006272793, 0.03309986740350723, -0.05633499473333359, -0.017833979800343513, 0.038378726691007614, 0.013839168474078178, 0.007566703017801046, 0.001208889065310359, 0.010496571660041809, 0.0028865570202469826, -0.04455437883734703, 0.0009522071341052651, 0.06053362414240837, 0.004929821472615004, -0.009548822417855263, 0.027454139664769173, -0.10264220088720322, -0.02945154532790184, -0.003087826306000352, -0.029940705746412277, -0.017752453684806824, -0.02806559018790722, 0.04973132908344269, -0.0393366664648056, -0.01554104033857584, 0.01870020292699337, 0.05910690501332283, -0.03309986740350723, 0.021360013633966446, -0.036544375121593475, -0.0051387338899075985, -0.022725585848093033, 0.018312949687242508, -0.030470628291368484, 0.0087233642116189, -0.03434314951300621, 0.04035574942827225, 0.0036865384317934513, -0.03136742487549782, 0.022990548983216286, -0.03358902782201767, 0.0077807107008993626, 0.014970352873206139, -0.05768018588423729, -0.0005875659408047795, -0.06094125658273697, 0.025049099698662758, -0.01470539066940546, 0.048426900058984756, -0.005997312720865011, -0.0020853017922490835, 0.03175467625260353, 0.07141745090484619, 0.02928849123418331, -0.01685565896332264, 0.009110616520047188, 0.00001386313306284137, -0.023642761632800102, 0.025273296982049942, -0.017008522525429726, -0.0028865570202469826, -0.014471000991761684, 0.013013710267841816, -0.02568093128502369, 0.0852769985795021, 0.03870483115315437, -0.018088750541210175, 0.08478783816099167, -0.028269406408071518, 0.006568000186234713, -0.009900406934320927, -0.06701499968767166, 0.04031498730182648, 0.015785619616508484, -0.005951453931629658, -0.003699277061969042, -0.022521769627928734, 0.04471743106842041, 0.012565312907099724, 0.004695432260632515, 0.06208263337612152, -0.06297942996025085, 0.03418009728193283, 0.09701685607433319, -0.017293864861130714, 0.03430238738656044, 0.013961458578705788, -0.03142856806516647, 0.03919399157166481, 0.027556046843528748, 0.020045394077897072, -0.009462200105190277, 0.026638871058821678, 0.005523438565433025, 0.047407813370227814, 0.013523252680897713, 0.04133407026529312, 0.03377246484160423, 0.03797109052538872, -0.048630718141794205, 0.022684823721647263, 0.032814525067806244, 0.018384285271167755, -0.04981285333633423, 0.0042164623737335205, -0.02046321891248226, -0.027454139664769173, 0.038215670734643936, 0.011026495136320591, 0.00599221745505929, 0.0185269583016634, 0.03560681641101837, -0.07080599665641785, 0.020931998267769814, 0.01739577390253544, 0.0025846532080322504, 0.034445058554410934, -0.041007962077856064, 0.01747730001807213, 0.05437835305929184, -0.022114135324954987, -0.03397627919912338, -0.049975909292697906, -0.017507873475551605, -0.04626644030213356, 0.01569390296936035, 0.04504353925585747, 0.06721881777048111, -0.008091531693935394, 0.04964980110526085, 0.016784323379397392, -0.025130625814199448, -0.043739110231399536, 0.01127107534557581, 0.015327032655477524, -0.018211042508482933, 0.008458402007818222, 0.035239946097135544, 0.028269406408071518, 0.051891788840293884, -0.058250874280929565, 0.04029460623860359, -0.008738650009036064, -0.03805261850357056, 0.01810913346707821, 0.013839168474078178, -0.036544375121593475, 0.06713729351758957, -0.033324066549539566, 0.06848248094320297, 0.0024305167607963085, -0.020891234278678894, 0.014216230250895023, 0.02150268480181694, 0.014002222567796707, 0.023235129192471504, 0.015571612864732742, -0.03279414027929306, 0.020840279757976532, 0.0070928288623690605, -0.08234203606843948, 0.029186582192778587, 0.03890864923596382, 0.06367240846157074, -0.03668704628944397, -0.003971882164478302, 0.017426347360014915, -0.046755600720644, 0.009793402627110481, 0.006481377873569727, 0.023744670674204826, -0.037746891379356384, 0.04312765970826149, -0.06460995972156525, 0.013747450895607471, -0.0101042240858078, 0.017456918954849243, -0.009446914307773113, 0.022481005638837814, 0.0957939475774765, 0.033690936863422394, 0.018007224425673485, -0.08739669620990753, 0.029859177768230438 ]
20,489
metevolsim.metevolsim
random_parameter_mutation
Mutate a given parameter 'param_metaid' through a log10-normal law of variance of sigma^2. x' = x*10^(N(0,sigma)) Parameters ---------- param_metaid: str Parameter meta identifier (as defined in the SBML model). sigma: float > 0.0 Log10-scale standard deviation. Returns ------- int, int
def random_parameter_mutation( self, param_metaid, sigma ): """ Mutate a given parameter 'param_metaid' through a log10-normal law of variance of sigma^2. x' = x*10^(N(0,sigma)) Parameters ---------- param_metaid: str Parameter meta identifier (as defined in the SBML model). sigma: float > 0.0 Log10-scale standard deviation. Returns ------- int, int """ assert param_metaid in list(self.parameters) assert sigma > 0.0 factor = np.random.normal(0.0, sigma, 1) wild_type_value = self.get_mutant_parameter_value(param_metaid) mutant_value = wild_type_value*10**factor[0] self.set_mutant_parameter_value(param_metaid, mutant_value) return wild_type_value, mutant_value
(self, param_metaid, sigma)
[ 0.026616044342517853, -0.00116150570102036, 0.03388650342822075, 0.019037360325455666, 0.0377846285700798, -0.005452844314277172, -0.04790162667632103, -0.06396553665399551, 0.02177511528134346, 0.05352218076586723, -0.0382922925055027, 0.054174888879060745, -0.009564007632434368, 0.03945266455411911, -0.06719282269477844, 0.030496038496494293, 0.01821240969002247, 0.05816367268562317, 0.02500240132212639, 0.02005268633365631, -0.016562504693865776, 0.10175016522407532, -0.041156962513923645, 0.030749870464205742, 0.0275044534355402, -0.012927275151014328, -0.005248872563242912, -0.02681548334658146, 0.004890788812190294, -0.0013609447050839663, 0.005470974836498499, -0.07716476917266846, 0.06135469675064087, 0.05112891271710396, -0.012283630669116974, -0.07266832888126373, 0.025763895362615585, 0.034684259444475174, -0.12154901772737503, -0.009391765110194683, 0.018284931778907776, -0.0275044534355402, 0.037276964634656906, -0.02953510545194149, -0.013498395681381226, -0.02474856935441494, 0.03336070850491524, 0.12459499388933182, -0.08869597315788269, -0.007061954587697983, 0.035373229533433914, 0.006286861840635538, 0.001777953584678471, -0.01677100919187069, 0.016199888661503792, 0.026742959395051003, 0.033868372440338135, 0.0017042971448972821, 0.10617408156394958, 0.021666329354047775, 0.06951356679201126, 0.03268986940383911, -0.04075808450579643, -0.09123428910970688, 0.038654908537864685, -0.037965938448905945, -0.043223876506090164, 0.022971749305725098, -0.021448759362101555, 0.06371170282363892, -0.04075808450579643, -0.021503152325749397, 0.019671939313411713, 0.043659016489982605, 0.0077327946200966835, 0.03366893157362938, -0.008036485873162746, -0.04075808450579643, -0.003972915932536125, -0.009409895166754723, 0.017351195216178894, -0.026289688423275948, 0.05638685077428818, -0.024005206301808357, -0.05040368065237999, -0.0003164394584018737, -0.020850442349910736, -0.04101191461086273, 0.031203141435980797, -0.04155584052205086, -0.04833676666021347, -0.013444002717733383, 0.01786792278289795, 0.008802513591945171, 0.013706900179386139, 0.030278470367193222, 0.026833614334464073, 0.0069350386038422585, 0.03767584264278412, -0.034430425614118576, -0.00816340185701847, 0.04909826070070267, 0.03647920861840248, 0.028211556375026703, 0.03103996440768242, -0.014386805705726147, -0.008077280595898628, 0.013280825689435005, 0.000047416342567885295, -0.0076104118488729, -0.0508025586605072, 0.10769706964492798, -0.010570268146693707, 0.012020734138786793, -0.03134818747639656, -0.018040165305137634, -0.008281252346932888, 0.012881947681307793, -0.02659791335463524, -0.00044647144386544824, -0.012147649191319942, 0.009156064130365849, -0.0016918322071433067, 0.04213602468371391, -0.0012374285142868757, 0.038219768553972244, 0.036062199622392654, -0.028900526463985443, -0.05907021090388298, 0.003422192297875881, -0.024802962318062782, -0.017786335200071335, 0.039343878626823425, 0.04101191461086273, 0.02008894830942154, -0.06490833312273026, 0.0028669359162449837, -0.021104274317622185, 0.05239807069301605, -0.016417456790804863, 0.005638685077428818, 0.061499740928411484, 0.0006209805724211037, -0.02850164845585823, 0.008294850587844849, 0.012619051150977612, 0.03312500938773155, 0.04235359653830528, -0.017913250252604485, -0.054392460733652115, -0.02505679428577423, 0.026180904358625412, 0.027885200455784798, -0.004804667551070452, -0.03207341954112053, 0.02121306024491787, 0.0659961849451065, -0.06197114288806915, -0.04195471853017807, -0.03945266455411911, -0.008911297656595707, -0.044347986578941345, 0.007660271599888802, 0.02315305732190609, -0.00422448106110096, -0.0066222818568348885, 0.048699382692575455, 0.009573073126375675, -0.029371928423643112, -0.007021159864962101, -0.01648998074233532, -0.004863592330366373, 0.012745966203510761, -0.01567409373819828, 0.01599138416349888, 0.058997686952352524, -0.030151553452014923, -0.014740357175469398, 0.044384248554706573, 0.0021077077835798264, -0.0008215527632273734, -0.05878011882305145, 0.027395669370889664, -0.06831692904233932, -0.014223628677427769, -0.014504656195640564, -0.03836481645703316, 0.0306954775005579, -0.03357828035950661, 0.003680556546896696, 0.031583890318870544, -0.027649501338601112, 0.033868372440338135, -0.023823898285627365, -0.03138444945216179, 0.03597154840826988, -0.020034555345773697, -0.042534902691841125, 0.025020532310009003, 0.042752474546432495, 0.05558909475803375, -0.025455672293901443, -0.022010816261172295, -0.006060226820409298, 0.009890362620353699, 0.014432133175432682, -0.000637411663774401, -0.000856114667840302, -0.00708008510991931, -0.0329255685210228, 0.004272074438631535, -0.010225782170891762, 0.10443352162837982, 0.008154336363077164, 0.022047076374292374, -0.05243433266878128, 0.023189319297671318, -0.017188018187880516, 0.003501514671370387, -0.024113990366458893, 0.11516696959733963, -0.07564178109169006, 0.028447257354855537, 0.07767243683338165, 0.03742201253771782, 0.049170784652233124, 0.003376865293830633, -0.029933983460068703, -0.06044815480709076, -0.004065836314111948, 0.03872743248939514, -0.0061463480815291405, 0.04793788865208626, -0.04496443271636963, -0.026072118431329727, 0.00040766014717519283, 0.024005206301808357, -0.016036709770560265, -0.03620724752545357, 0.03328818455338478, -0.0881883054971695, 0.015365869738161564, 0.04993227869272232, 0.0680268406867981, -0.04978723078966141, 0.02734127640724182, 0.009672792628407478, 0.05102012678980827, -0.010398025624454021, -0.029045574367046356, -0.005321395583450794, -0.0015739818336442113, -0.0357358455657959, 0.05602423474192619, 0.06091955676674843, 0.010080736130475998, 0.016852596774697304, 0.07379243522882462, 0.025020532310009003, -0.00941896066069603, -0.030967440456151962, -0.053014516830444336, -0.010715315118432045, 0.054863862693309784, -0.041410792618989944, -0.018194278702139854, -0.046632468700408936, 0.06976739317178726, 0.032834913581609726, 0.0031819590367376804, 0.08419952541589737, 0.03945266455411911, -0.04035920649766922, -0.02997024543583393, 0.016789140179753304, -0.023352496325969696, 0.03147510439157486, 0.0073747108690440655, -0.007469898089766502, 0.0030459777917712927, 0.030369123443961143, -0.03609846159815788, 0.050041064620018005, 0.04402163252234459, -0.023896420374512672, 0.0569307766854763, 0.022300908342003822, 0.017006710171699524, 0.03337883949279785, 0.006354852579534054, -0.05471881479024887, -0.02871921844780445, -0.0243134293705225, 0.0314025804400444, 0.003503781044855714, 0.00980877410620451, -0.01571035571396351, 0.013480264693498611, 0.018910445272922516, 0.02846538834273815, 0.012220173142850399, -0.0007003029459156096, 0.004093032795935869, 0.025491932407021523, 0.001357545144855976, 0.00929204560816288, 0.06817188113927841, -0.06128217279911041, 0.0105612026527524, 0.023642590269446373, 0.008050084114074707, 0.0876806452870369, -0.006522562354803085, 0.012437742203474045, 0.06284142285585403, -0.029371928423643112, -0.0029553237836807966, -0.03948892652988434, 0.037276964634656906, 0.07013001292943954, 0.0012827555183321238, -0.001925266464240849, 0.025600718334317207, -0.03491995856165886, 0.014006058685481548, -0.047285180538892746, -0.052579376846551895, -0.016290541738271713, -0.035282574594020844, -0.009251250885426998, -0.07386495918035507, -0.002905464032664895, 0.020542219281196594, 0.056894514709711075, -0.009251250885426998, -0.032145943492650986, -0.029353797435760498, -0.027014922350645065, 0.036279771476984024, -0.030604824423789978, 0.02315305732190609, -0.0393076166510582, -0.021956423297524452, 0.02797585539519787, 0.052325546741485596, 0.036714911460876465, 0.026199035346508026, -0.0025405811611562967, -0.018602222204208374, -0.00328847742639482, 0.03323379158973694, 0.03542762249708176, 0.021702591329813004, 0.013444002717733383, 0.08710046112537384, 0.017287736758589745, 0.004185953177511692, 0.04721265658736229, -0.049134522676467896, 0.01696138270199299, 0.0626601129770279, -0.0029009312856942415, 0.04014163464307785, -0.01655343919992447, 0.07150795310735703, -0.007066487334668636, -0.065343476831913, 0.0176140908151865, 0.0424986407160759, -0.038546122610569, -0.0021201728377491236, -0.07919542491436005, -0.014649702236056328, 0.0006872714147903025, 0.043441444635391235, 0.038473598659038544, -0.08093597739934921, -0.011331762187182903, 0.0015705822734162211, -0.030278470367193222, -0.00000783042469265638, -0.020705396309494972, 0.08195130527019501, 0.004890788812190294, -0.010207652114331722, 0.010271109640598297, 0.023189319297671318, -0.0022244250867515802, 0.0003175726451445371, 0.022627264261245728, -0.01833932474255562, 0.003356468165293336, 0.035681452602148056, -0.018982969224452972, -0.014522787183523178, -0.01677100919187069, 0.04282499849796295, -0.0345936045050621, -0.07912290096282959, -0.022409694269299507, -0.006128217093646526, -0.012192976661026478, -0.1169075295329094, -0.0007331650122068822, -0.0030618421733379364, -0.10762454569339752, -0.0243134293705225, 0.040032852441072464, -0.05751096084713936, 0.013761292211711407, -0.01743278279900551, -0.0059151798486709595, 0.007963962852954865, -0.010243913158774376, 0.07176178693771362, -0.025147447362542152, 0.04014163464307785, -0.04409415274858475, -0.004079434555023909, 0.028737349435687065, 0.07408253103494644, -0.028918657451868057, 0.011549332179129124, 0.03800220042467117, 0.026489127427339554, 0.02531062439084053, -0.03577210754156113, 0.0030165151692926884, -0.06857076287269592, 0.01765035279095173, 0.009835969656705856, -0.021285582333803177, 0.0020147874020040035, 0.05294199287891388, 0.036714911460876465, -0.04340518265962601, -0.0449281707406044, 0.039561450481414795, -0.008961157873272896, 0.023225581273436546, 0.036243509501218796, 0.014395871199667454, 0.021503152325749397, -0.012356153689324856, -0.035681452602148056, -0.0038233366794884205, 0.04032294452190399, 0.010126062668859959, 0.0012192976428195834, -0.05606049671769142, 0.042281072586774826, 0.0513102225959301, 0.0347205214202404, -0.035246312618255615, 0.06204366683959961, -0.03312500938773155, -0.035590801388025284, -0.04380406066775322, -0.009881297126412392, -0.01416017021983862, -0.003021047916263342, 0.011984472163021564, -0.050294894725084305, 0.023080533370375633, 0.0005422248505055904, -0.017541568726301193, 0.06744664907455444, -0.03622537851333618, -0.00549817131832242, 0.004831863567233086, 0.029154358431696892, 0.017641287297010422, 0.023914551362395287, -0.019291192293167114, -0.07245075702667236, -0.027830809354782104, -0.05562535673379898, -0.011023538187146187, -0.0382922925055027, 0.028864266350865364, 0.01218391116708517, -0.026761090382933617, 0.04652368277311325, 0.06015806272625923, -0.03836481645703316, -0.02315305732190609, -0.021503152325749397, 0.017351195216178894, 0.02944445237517357, -0.00782344862818718, -0.016163626685738564, -0.04155584052205086, 0.045943498611450195, 0.009273914620280266, -0.05294199287891388, -0.024005206301808357, 0.032055288553237915, 0.032363515347242355, 0.028483517467975616, -0.009799708612263203, -0.028012117370963097, -0.0051264893263578415, -0.03597154840826988, -0.03916257247328758, 0.03220033645629883, -0.04764779657125473, -0.007927700877189636, -0.02906370535492897, -0.051455266773700714, -0.00985410064458847, -0.005992236081510782, -0.07600440084934235, -0.01771381124854088, 0.0008453495102003217, 0.01771381124854088, -0.0222102552652359, -0.020796051248908043, 0.022047076374292374, -0.017006710171699524, -0.027903331443667412, 0.034339774399995804, -0.057764794677495956, -0.015093907713890076, -0.038872476667165756, 0.033143140375614166, -0.037313226610422134, -0.07825262099504471, -0.051636576652526855, 0.01858409121632576, 0.008843307383358479, -0.01996203325688839, -0.045508358627557755, -0.03626164048910141, 0.026235297322273254, 0.018982969224452972, -0.013444002717733383, 0.002919062040746212, -0.04877190664410591, -0.016589701175689697, -0.003501514671370387, -0.04971471056342125, 0.0006017165724188089, -0.007442701607942581, 0.0027762819081544876, -0.006975832860916853, 0.002706024795770645, -0.002234623534604907, 0.017015773802995682, 0.0005362756783142686, -0.03225472941994667, -0.003984247799962759, -0.017169887199997902, -0.05515395477414131, -0.001363211078569293, 0.002015920588746667, -0.038872476667165756, -0.03734948858618736, 0.02289922535419464, -0.0008402501698583364, 0.02083231322467327, -0.00030029172194190323, -0.0017439582152292132, 0.12350714951753616, -0.003231818787753582, -0.009128867648541927, 0.027903331443667412, -0.08202382922172546, -0.025709502398967743, -0.04583471268415451, -0.028610434383153915, 0.04130200669169426, -0.010688118636608124, 0.012909144163131714, 0.009364568628370762, -0.02768576145172119, -0.03209155052900314, 0.03745827451348305, 0.005008638836443424, -0.01883792132139206, 0.03569958359003067, 0.008317513391375542, 0.025763895362615585, -0.03579023852944374, -0.0010872826678678393, -0.001831212779507041, 0.06135469675064087, -0.018982969224452972, 0.06476329267024994, 0.041882194578647614, 0.05109265074133873, -0.06530721485614777, 0.08905858546495438, -0.042099762707948685, -0.09246718138456345, -0.025328755378723145, 0.027740154415369034, 0.022137731313705444, -0.0382922925055027, -0.02349754236638546, -0.013253629207611084, -0.037965938448905945, 0.00813620537519455, 0.033215660601854324, -0.016598766669631004, 0.008235924877226353, -0.043223876506090164, 0.01805829629302025, -0.02380576729774475, 0.026543520390987396, 0.017233343794941902, -0.007288589607924223, -0.009233119897544384, -0.023479411378502846, 0.007007562089711428, -0.0078506451100111, 0.019889509305357933, -0.04242612048983574, -0.009518680162727833, 0.07132664322853088, -0.06998496502637863, -0.04286126047372818, 0.02008894830942154, -0.034774914383888245, -0.017532503232359886, -0.05881638079881668, -0.05102012678980827, -0.02436782233417034, -0.06838945299386978, -0.031620148569345474, -0.06443693488836288, -0.025491932407021523, -0.025818288326263428, 0.03996032848954201, -0.05127396062016487, 0.00974531564861536, 0.003211421426385641, -0.01293633971363306, -0.0014527320163324475, -0.015202692709863186, 0.03392276540398598, 0.06044815480709076, 0.023225581273436546, -0.018502501770853996, -0.03160201758146286, -0.001598911709152162, 0.014241758733987808, -0.029480714350938797, 0.021593807265162468, 0.023696981370449066, -0.011068865656852722, 0.003256748663261533, 0.044819388538599014, -0.007184337358921766, -0.011902883648872375, 0.04278873652219772, -0.10834977775812149, 0.011993537656962872, 0.027740154415369034, 0.032145943492650986, 0.000597750477027148, 0.007433636114001274, -0.004142892546951771, -0.001172837452031672, -0.03437603637576103, 0.009672792628407478, -0.013017929159104824, -0.02474856935441494, -0.0034947155509144068, -0.019236799329519272, 0.014531852677464485, 0.021503152325749397, -0.028574172407388687, -0.014976057223975658, -0.04384032264351845, 0.005493638571351767, -0.033052485436201096, 0.0028374732937663794, 0.00794583186507225, -0.014123909175395966, 0.03486556559801102, 0.009428026154637337, -0.003957051318138838, 0.03134818747639656, -0.03850986063480377, 0.0027694827876985073, 0.023914551362395287, -0.006812655832618475, 0.012881947681307793, -0.03513753041625023, 0.0019116683397442102, -0.05751096084713936, -0.06635880470275879, 0.009242185391485691, -0.025165578350424767, -0.015302412211894989, 0.047067608684301376, -0.05203545466065407, 0.0176140908151865, 0.021847637370228767, -0.000390379223972559, -0.01698857918381691, 0.02039717324078083, -0.010642791166901588, 0.034303512424230576, -0.028773611411452293, -0.0063185906037688255, 0.023080533370375633, 0.004809199832379818, 0.04130200669169426, -0.03716818243265152, 0.003904925426468253, 0.02396894432604313, 0.00910167209804058, -0.016381196677684784, -0.009754381142556667, 0.02512931637465954, -0.0382922925055027, 0.045762188732624054, 0.0010634858626872301, -0.007352047599852085, -0.036279771476984024, -0.05388479679822922, 0.05149152874946594, 0.005715740844607353, -0.034085940569639206, -0.01702483929693699, 0.05065751075744629, 0.02853791043162346, 0.04133826866745949, -0.0608832947909832, 0.00752429012209177, 0.057402174919843674, 0.009251250885426998, -0.015139235183596611, -0.010298306122422218, -0.0025768429040908813, -0.02755884639918804, -0.007157141342759132, -0.004380859434604645, -0.0036284304223954678, 0.002601772779598832, 0.057402174919843674, 0.003961584065109491, -0.03789341449737549, 0.0393076166510582, 0.058272454887628555, -0.014957926236093044, -0.005212610587477684, 0.04859059676527977, -0.033396970480680466, 0.04967844858765602, -0.01983511634171009, -0.010126062668859959, -0.00014157620898913592, 0.03617098554968834, -0.0029122629202902317, 0.0539935827255249, 0.005688544828444719, -0.010724379681050777, -0.04909826070070267, -0.0380384624004364, -0.006128217093646526, 0.05903394892811775, -0.0026425670366734266, 0.008444429375231266, 0.03299809247255325, -0.00782344862818718, -0.014278020709753036 ]
20,490
metevolsim.metevolsim
rebuild_metaids
Rebuild the unique metaids for all model variables. Parameters ---------- None Returns ------- None
def rebuild_metaids( self ): """ Rebuild the unique metaids for all model variables. Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Rebuild wild_type metaids # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# metaid = 0 for species in self.wild_type_model.getListOfSpecies(): species.setMetaId("_"+str(metaid)) metaid += 1 for parameter in self.wild_type_model.getListOfParameters(): parameter.setMetaId("_"+str(metaid)) metaid += 1 for reaction in self.wild_type_model.getListOfReactions(): for elmt in reaction.getListOfAllElements(): if elmt.getElementName() == "parameter" or elmt.getElementName() == "localParameter": parameter = elmt parameter.setMetaId("_"+str(metaid)) metaid += 1 for reaction in self.wild_type_model.getListOfReactions(): reaction.setMetaId("_"+str(metaid)) metaid += 1 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Rebuild mutant metaids # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# metaid = 0 for species in self.mutant_model.getListOfSpecies(): species.setMetaId("_"+str(metaid)) metaid += 1 for parameter in self.mutant_model.getListOfParameters(): parameter.setMetaId("_"+str(metaid)) metaid += 1 for reaction in self.mutant_model.getListOfReactions(): for elmt in reaction.getListOfAllElements(): if elmt.getElementName() == "parameter" or elmt.getElementName() == "localParameter": parameter = elmt parameter.setMetaId("_"+str(metaid)) metaid += 1 for reaction in self.mutant_model.getListOfReactions(): reaction.setMetaId("_"+str(metaid)) metaid += 1
(self)
[ -0.0019119896460324526, -0.01841326802968979, -0.02970116399228573, 0.03442717343568802, 0.020267317071557045, -0.008915802463889122, -0.04653303325176239, -0.01720449887216091, 0.027138210833072662, 0.008515909314155579, -0.07772471010684967, 0.017040906473994255, 0.020303672179579735, 0.06311042606830597, 0.012378514744341373, -0.029410332441329956, -0.01630473881959915, 0.06089283898472786, 0.04449721425771713, -0.06910882890224457, 0.00809783861041069, 0.04653303325176239, -0.026047592982649803, 0.018476886674761772, 0.02208501473069191, 0.01954023912549019, 0.01136060431599617, 0.03555414825677872, 0.013241920620203018, 0.012105859816074371, -0.027429042384028435, -0.012378514744341373, 0.026538372039794922, 0.013051061891019344, -0.022139545530080795, -0.09466563910245895, -0.022394023835659027, 0.08368675410747528, -0.03555414825677872, 0.02081262692809105, 0.07038121670484543, -0.042279623448848724, 0.022975685074925423, -0.039916619658470154, -0.02741086669266224, 0.004403369966894388, -0.017840692773461342, 0.06852716207504272, -0.01684095896780491, -0.008852182887494564, -0.0077933743596076965, -0.008520453236997128, 0.00006564299110323191, 0.054203715175390244, -0.004671480506658554, 0.04580595716834068, -0.018422355875372887, 0.05344028025865555, 0.09924624115228653, -0.014650635421276093, 0.014559750445187092, 0.04031651094555855, -0.029864756390452385, -0.030464597046375275, 0.028865022584795952, -0.04558783397078514, -0.021612413227558136, 0.028955908492207527, -0.026193009689450264, 0.03310025483369827, -0.06790914386510849, -0.023121101781725883, 0.06180168688297272, 0.025429576635360718, 0.050604674965143204, -0.03041006438434124, 0.009642880409955978, -0.049404993653297424, 0.028774138540029526, -0.011124303564429283, 0.0318642221391201, -0.0016393351834267378, 0.0006645953399129212, -0.016377447172999382, -0.027574459090828896, 0.030955374240875244, 0.028137944638729095, 0.014159857295453548, 0.012514841742813587, -0.1076076403260231, -0.02751992829144001, 0.01713179051876068, 0.0032468605786561966, 0.015514041297137737, -0.00299919955432415, 0.02024914138019085, -0.03958943486213684, -0.055294331163167953, -0.01600481942296028, -0.07219891250133514, -0.030391888692975044, -0.04540606215596199, -0.02148517407476902, -0.014877847395837307, 0.02208501473069191, -0.03969849646091461, -0.032336823642253876, 0.004671480506658554, -0.03489977493882179, -0.014877847395837307, -0.09924624115228653, 0.009733765386044979, -0.015059617348015308, -0.0005555335665121675, 0.007588883396238089, -0.07187172770500183, 0.0386078767478466, 0.022703031077980995, 0.03666294366121292, -0.0239935964345932, -0.023121101781725883, -0.01567763462662697, -0.03197328373789787, 0.02163059078156948, 0.028428776189684868, 0.06340125948190689, 0.033372912555933, 0.04733281955122948, -0.012614814564585686, -0.030246471986174583, -0.10891638696193695, -0.008956700563430786, -0.017195411026477814, 0.06183804199099541, 0.02590217813849449, -0.04566054046154022, -0.03157339245080948, -0.04307940974831581, 0.029592102393507957, 0.023048393428325653, -0.04068005084991455, 0.03484524413943291, 0.03457259014248848, 0.013614548370242119, -0.019103992730379105, -0.006939057260751724, 0.005125904455780983, 0.0337546281516552, -0.06838174909353256, -0.057766400277614594, -0.016041172668337822, 0.003151431679725647, 0.0025924898218363523, 0.014777873642742634, -0.06252876669168472, 0.05943867936730385, -0.02066721022129059, -0.004130715504288673, -0.025956708937883377, -0.019322115927934647, -0.03277307003736496, -0.026720140129327774, 0.007370760198682547, 0.0077933743596076965, -0.017040906473994255, -0.00252659828402102, 0.01908581517636776, -0.054167360067367554, -0.016513774171471596, 0.04300670325756073, -0.001191727351397276, 0.017895223572850227, -0.022448554635047913, -0.04653303325176239, -0.019976485520601273, 0.058129940181970596, -0.020594503730535507, -0.07750658690929413, 0.01954023912549019, 0.08637694269418716, -0.0322459377348423, -0.05714838206768036, -0.012769319117069244, -0.0378807969391346, 0.008279608562588692, 0.0022266784217208624, 0.03828069195151329, -0.021739652380347252, 0.06947236508131027, 0.0305554810911417, 0.049623120576143265, -0.008066029287874699, -0.017086349427700043, 0.033245671540498734, 0.0168773140758276, 0.011197011917829514, 0.01136060431599617, -0.04733281955122948, 0.0060892836190760136, 0.019140345975756645, -0.010360871441662312, -0.03838975355029106, 0.010306339710950851, 0.00685271667316556, 0.003315024310722947, 0.01044266764074564, 0.023157455027103424, 0.011160657741129398, -0.00013022092753089964, -0.031627923250198364, 0.015286829322576523, 0.014796051196753979, 0.08194176852703094, 0.004680568818002939, 0.03344561904668808, -0.07179901748895645, 0.006198345683515072, -0.0010656246449798346, 0.008311417885124683, -0.0029855668544769287, -0.019503885880112648, -0.014150768518447876, -0.06394656747579575, 0.02561134658753872, -0.05227695778012276, 0.010206366889178753, -0.04213421046733856, 0.04107994586229324, -0.025284159928560257, 0.007398025598376989, 0.029155854135751724, -0.0015848042676225305, 0.003467256436124444, 0.012251275591552258, -0.03549961745738983, -0.009133925661444664, 0.00021556745923589915, 0.013278273865580559, 0.0014814228052273393, 0.02762898989021778, -0.06827268749475479, -0.0052077011205255985, 0.060565654188394547, 0.0008912393823266029, -0.01245122216641903, -0.017831604927778244, 0.030882665887475014, 0.010633525438606739, -0.03259130194783211, -0.04795083776116371, 0.024647966027259827, -0.0036535703111439943, -0.018813161179423332, 0.04893239587545395, 0.04333388805389404, -0.049586765468120575, -0.03475436195731163, 0.024538904428482056, -0.0008577256230637431, -0.06514624506235123, 0.017613479867577553, -0.013523663394153118, 0.018086081370711327, 0.015105059370398521, -0.08354134112596512, -0.0292467400431633, 0.016931844875216484, 0.10651702433824539, -0.0671093612909317, -0.024757029488682747, 0.02913767844438553, 0.03918953984975815, -0.05507620796561241, 0.009579261764883995, -0.02261214703321457, 0.00819326750934124, 0.03235499933362007, -0.015813961625099182, -0.08281426131725311, -0.027356334030628204, -0.011224277317523956, -0.015604926273226738, 0.08034219592809677, 0.024611612781882286, 0.0043193018063902855, -0.011960444040596485, -0.012242186814546585, 0.03340926393866539, -0.02871960774064064, 0.00817509088665247, -0.01975836232304573, -0.0074707334861159325, 0.005948412232100964, 0.009002142585814, -0.012251275591552258, -0.029573924839496613, -0.04991395026445389, 0.05104092136025429, 0.00006159577606013045, 0.015459510497748852, -0.018467798829078674, 0.04078911244869232, 0.027538103982806206, -0.02632024697959423, -0.011051596142351627, 0.00777065334841609, 0.054567255079746246, -0.048459794372320175, 0.06096554547548294, 0.004830528981983662, 0.03242770954966545, 0.025320515036582947, -0.013378247618675232, 0.050713736563920975, 0.027756229043006897, -0.035372376441955566, -0.011542374268174171, 0.0014859670773148537, 0.058129940181970596, 0.10564453154802322, 0.016631923615932465, -0.02066721022129059, 0.030919020995497704, 0.05729379877448082, 0.023575525730848312, -0.049514058977365494, -0.004244321491569281, -0.006202890072017908, -0.044606275856494904, -0.041443485766649246, -0.06670946627855301, -0.024211719632148743, 0.004619221668690443, 0.0037171896547079086, 0.041007235646247864, -0.055476102977991104, -0.009988242760300636, -0.08194176852703094, 0.06176533177495003, 0.009842827916145325, 0.03128255903720856, -0.00032377723255194724, -0.02328469417989254, 0.0033990927040576935, 0.03715372085571289, 0.025484107434749603, 0.0618743933737278, 0.02670196443796158, -0.008652236312627792, 0.006907247472554445, 0.03655387833714485, -0.009056673385202885, 0.024139011278748512, 0.0382443368434906, 0.05983857437968254, -0.00334228971041739, -0.020630856975913048, -0.003517243079841137, -0.04035286605358124, 0.03798985853791237, 0.018313294276595116, -0.01844962127506733, 0.04413367435336113, -0.0011525333393365145, 0.03506336733698845, -0.05176800116896629, -0.05289497226476669, 0.021212520077824593, 0.033463794738054276, -0.08070573210716248, -0.019249407574534416, 0.01983107067644596, -0.005312218330800533, 0.00029452366288751364, 0.015768518671393394, 0.03302754834294319, -0.03104625828564167, 0.011033418588340282, -0.020085548982024193, -0.05016842857003212, -0.0013371431268751621, -0.01623203046619892, 0.00819326750934124, -0.011705966666340828, 0.006452823057770729, -0.030191941186785698, 0.08637694269418716, 0.006907247472554445, -0.05231330916285515, 0.02695644088089466, 0.060565654188394547, 0.008797652088105679, 0.015214120969176292, 0.0022244062274694443, 0.028247006237506866, -0.004432907793670893, 0.021085280925035477, -0.008215988986194134, -0.04031651094555855, -0.034063637256622314, 0.014677900820970535, -0.09292065352201462, -0.007638870272785425, 0.056784842163324356, -0.02106710523366928, -0.020721742883324623, 0.0033082079607993364, 0.04675116017460823, -0.04213421046733856, -0.002353917108848691, -0.04046192765235901, 0.032718539237976074, 0.04169796034693718, -0.02395724132657051, 0.0442427359521389, -0.005534886382520199, 0.034627120941877365, -0.008297785185277462, 0.04627855867147446, 0.08405029028654099, 0.04678751155734062, 0.04038922116160393, 0.0309371966868639, 0.060202114284038544, -0.04395190626382828, -0.01567763462662697, -0.0030832679476588964, 0.035754092037677765, -0.09728312492370605, 0.06492812186479568, -0.028319714590907097, 0.011578727513551712, 0.012114948593080044, -0.03168245404958725, 0.014041706919670105, -0.021176166832447052, 0.004407914355397224, -0.003283214522525668, -0.04028015956282616, 0.05354934558272362, 0.044897109270095825, 0.002824246184900403, -0.02014007978141308, -0.06540072709321976, 0.012496664188802242, -0.007866082713007927, -0.017631657421588898, 0.055476102977991104, 0.0024016317911446095, 0.032082345336675644, -0.007697945460677147, 0.06994497030973434, 0.03435446694493294, -0.04068005084991455, 0.07794283330440521, -0.009979154914617538, -0.02321198582649231, 0.012433045543730259, 0.006970866583287716, -0.0652553141117096, -0.006548252422362566, -0.0024697952903807163, -0.011415135115385056, 0.04562418535351753, -0.0026470208540558815, 0.016977285966277122, -0.038825999945402145, -0.04515158385038376, -0.041189007461071014, 0.02373911812901497, 0.007802463136613369, -0.02053997293114662, 0.05863889306783676, -0.004907780792564154, -0.055621519684791565, -0.03284578025341034, -0.0551125630736351, -0.009029407985508442, -0.019958309829235077, -0.05878430977463722, 0.0502411350607872, -0.0251205675303936, 0.022630322724580765, -0.0009389539482071996, -0.031846046447753906, -0.02410265803337097, 0.0476236529648304, -0.04882333427667618, -0.03595403954386711, -0.04082546755671501, -0.03962578624486923, -0.023557348176836967, 0.03002834878861904, 0.027883466333150864, 0.03030100278556347, 0.01979471743106842, -0.027810759842395782, 0.010888002812862396, 0.008479555137455463, 0.016768252477049828, 0.020158255472779274, -0.023975418880581856, -0.00687089329585433, 0.006598238833248615, 0.009206634014844894, 0.035008836537599564, -0.004610133357346058, -0.04071640595793724, -0.04664209485054016, -0.03517242893576622, -0.0314825065433979, -0.12229463458061218, 0.043661072850227356, -0.01664101332426071, -0.0030764515977352858, -0.024429842829704285, -0.0014223476173356175, 0.01370543334633112, 0.012714788317680359, 0.038971416652202606, -0.010333605110645294, -0.04533335566520691, -0.042315978556871414, 0.013923556543886662, 0.005180435720831156, 0.032082345336675644, -0.053258512169122696, -0.0035944951232522726, 0.009415668435394764, -0.0036512981168925762, -0.04420638456940651, -0.02646566368639469, -0.018649566918611526, 0.016850048676133156, 0.04576960206031799, -0.06660040467977524, 0.034699831157922745, -0.08906713873147964, 0.06267417967319489, 0.030737251043319702, -0.03546326234936714, 0.024157188832759857, -0.01047902088612318, -0.025320515036582947, 0.005516709294170141, 0.0014711982803419232, 0.020049193874001503, 0.0042034233920276165, -0.024211719632148743, 0.0019449354149401188, -0.06601874530315399, -0.0031241660472005606, -0.03157339245080948, 0.01555948331952095, 0.013469132594764233, -0.05405829846858978, 0.014877847395837307, -0.04166160896420479, 0.02815612219274044, 0.039952971041202545, 0.04177067056298256, -0.0074071139097213745, 0.0708538144826889, -0.03310025483369827, -0.01545042172074318, 0.051949769258499146, -0.043733783066272736, -0.02632024697959423, -0.04755094647407532, 0.019176699221134186, -0.007884259335696697, -0.015223209746181965, 0.0009520186576992273, 0.008429568260908127, -0.022484907880425453, -0.016395624727010727, 0.005134993232786655, -0.045915018767118454, 0.020340025424957275, -0.03969849646091461, 0.01126971933990717, 0.048168960958719254, 0.029682986438274384, -0.005234966520220041, 0.06569156050682068, 0.02246673032641411, 0.043624721467494965, 0.0978647917509079, 0.07663409411907196, -0.00004913461452815682, -0.031700629740953445, 0.05940232798457146, -0.007952422834932804, -0.04177067056298256, -0.0025129655841737986, 0.039843909442424774, -0.007079928647726774, -0.04558783397078514, -0.015314094722270966, 0.018231498077511787, 0.01915852352976799, -0.011069772765040398, 0.02635660208761692, 0.025375045835971832, -0.01164234708994627, -0.06718207150697708, 0.029410332441329956, 0.022248607128858566, 0.027229096740484238, 0.016504686325788498, -0.032936662435531616, 0.0036785637494176626, 0.025247806683182716, 0.0015643552178516984, -0.025484107434749603, -0.03689924255013466, -0.036572057753801346, 0.01111521478742361, 0.02670196443796158, -0.06736383587121964, -0.08790381252765656, -0.009133925661444664, -0.029901109635829926, -0.026156654581427574, -0.032973017543554306, 0.03268218785524368, -0.03535420075058937, -0.033427443355321884, 0.023121101781725883, -0.035117898136377335, 0.005925691220909357, -0.060383882373571396, 0.04187973216176033, -0.003405909053981304, 0.0438791960477829, -0.00713445944711566, -0.012051329016685486, -0.0052122450433671474, -0.04107994586229324, 0.017486242577433586, 0.06241970509290695, 0.009570172987878323, -0.0039216806180775166, 0.029537571594119072, -0.044897109270095825, 0.03051912784576416, 0.011169745586812496, -0.0618743933737278, -0.01282384991645813, 0.02066721022129059, -0.05140446126461029, 0.05245872586965561, -0.02639295533299446, -0.010497198440134525, 0.030355533584952354, 0.004503343719989061, -0.03969849646091461, -0.052095185965299606, -0.010978887788951397, -0.027392689138650894, 0.01107886154204607, 0.041443485766649246, 0.043479304760694504, -0.06616415828466415, 0.03193692862987518, -0.009797384962439537, 0.041152652353048325, -0.023066570982336998, 0.053113095462322235, 0.036044925451278687, -0.0001705510658212006, -0.017458977177739143, 0.03328202664852142, 0.014896024018526077, -0.028483306989073753, -0.02046726457774639, 0.016059350222349167, 0.08601340651512146, -0.012742053717374802, 0.041407130658626556, 0.003067363053560257, 0.01263299211859703, 0.0071935346350073814, 0.00299919955432415, 0.02028549462556839, 0.00890671368688345, 0.002917403122410178, 0.014232564717531204, -0.032118700444698334, -0.011369693093001842, -0.017386268824338913, -0.022939331829547882, 0.012360337190330029, -0.02010372467339039, -0.03393639624118805, 0.014150768518447876, -0.00901577528566122, -0.005553063470870256, 0.0006146086961962283, 0.0019222141709178686, -0.00009926327766152099, -0.008724943734705448, -0.02448437362909317, 0.011933178640902042, -0.0013121498050168157, 0.027247272431850433, 0.0005762666696682572, 0.05053196847438812, -0.027047326788306236, 0.019812893122434616, 0.04547877237200737, 0.07270786911249161, 0.02890137769281864, -0.006257420871406794, 0.002274392871186137, -0.05096821486949921, 0.01863139122724533, 0.05387653037905693, 0.032336823642253876, 0.010660790838301182, 0.047296468168497086, 0.023720942437648773, 0.060565654188394547, 0.0021573787089437246, -0.0303737111389637, 0.004935046657919884, 0.04878697916865349, 0.031173497438430786, 0.02677467279136181, -0.06420104950666428, 0.018649566918611526, -0.009174823760986328, -0.008593160659074783, -0.02762898989021778, 0.05722109228372574, -0.04755094647407532, 0.04646032676100731, -0.004698745906352997, -0.07056298106908798, 0.018176967278122902, -0.04896874725818634, -0.007966055534780025, -0.059220556169748306, 0.05478537827730179, -0.05976586788892746, 0.020158255472779274, 0.08303238451480865, 0.0015813960926607251, 0.006434646435081959, -0.054421838372945786, 0.052095185965299606, 0.01735900342464447, -0.013032885268330574, -0.06201981008052826, 0.053076744079589844, 0.04889604076743126, 0.04682386666536331, 0.022212253883481026, -0.004880515392869711, -0.02702914923429489, 0.01777707412838936, -0.07027215510606766, 0.003642209805548191, 0.0294285099953413, 0.024993328377604485, 0.05514891818165779, 0.02561134658753872, -0.030228296294808388 ]
20,491
metevolsim.metevolsim
replace_variable_names
Replace variable names by their identifiers to avoid collisions. Parameters ---------- None Returns ------- None
def replace_variable_names( self ): """ Replace variable names by their identifiers to avoid collisions. Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Replace variables names by identifiers in wild-type # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for species in self.wild_type_model.getListOfSpecies(): species_id = species.getId() assert species_id in self.species species.setName(species_id) for reaction in self.wild_type_model.getListOfReactions(): reaction_id = reaction.getId() assert reaction_id in self.reactions reaction.setName(reaction_id) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Replace species names by identifiers in mutant # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for species in self.mutant_model.getListOfSpecies(): species_id = species.getId() assert species_id in self.species species.setName(species_id) for reaction in self.mutant_model.getListOfReactions(): reaction_id = reaction.getId() assert reaction_id in self.reactions reaction.setName(reaction_id)
(self)
[ 0.011981401592493057, -0.037200745195150375, -0.023378776386380196, -0.0231133084744215, -0.046297408640384674, -0.024316757917404175, -0.01914900541305542, -0.012052192352712154, 0.04661596938967705, 0.018122533336281776, -0.08608203381299973, 0.010317808948457241, -0.009839968755841255, 0.04261627048254013, 0.006649943068623543, -0.0368821881711483, 0.00861439760774374, 0.08983395993709564, -0.0031280836556106806, -0.09365668147802353, -0.009415222331881523, 0.05390745773911476, -0.0210957620292902, -0.04983696714043617, 0.016025345772504807, 0.029519908130168915, 0.02180367335677147, 0.014671464450657368, 0.0020529432222247124, 0.014087437652051449, -0.01973303221166134, -0.0003531261463649571, -0.01116730272769928, 0.019644543528556824, 0.015167002566158772, -0.08955080062150955, -0.03148436173796654, 0.08041874319314957, 0.00040373075171373785, -0.015246642753481865, 0.039395272731781006, -0.043182600289583206, 0.006141131743788719, -0.02061792090535164, -0.04728848487138748, 0.010981475934386253, 0.014795348979532719, 0.06583576649427414, 0.014282113872468472, 0.03044019266963005, -0.017901310697197914, -0.05826111137866974, 0.0019987437408417463, 0.03836879879236221, 0.006658792030066252, 0.019113609567284584, 0.02086568996310234, 0.0856572836637497, 0.027555452659726143, -0.023661939427256584, 0.014007797464728355, 0.013963553123176098, -0.04842114448547363, -0.03084724210202694, -0.01631735824048519, -0.03590880706906319, 0.016264265403151512, 0.021839067339897156, -0.03989081084728241, -0.0033448815811425447, -0.05284558981657028, -0.039855413138866425, 0.02670595981180668, 0.04668676108121872, 0.08523254096508026, 0.030918031930923462, -0.02996235154569149, -0.06661446392536163, 0.001214510528370738, -0.014830744825303555, 0.024440642446279526, -0.04491697996854782, -0.05224386602640152, -0.004539482295513153, -0.01586606539785862, 0.00805691722780466, -0.02104266732931137, 0.005840269383043051, 0.056278958916664124, -0.0959927961230278, -0.027466963976621628, 0.0055438317358493805, 0.019786125048995018, 0.03392665460705757, -0.018228719010949135, 0.04031555727124214, 0.0159191582351923, -0.07751630246639252, 0.0016049679834395647, -0.02806868962943554, 0.03125429153442383, 0.010707160457968712, -0.009140906855463982, -0.016936780884861946, -0.015361678786575794, -0.0033183349296450615, 0.005083689000457525, 0.004433295223861933, -0.014680313877761364, 0.007751630153506994, -0.08997554332017899, -0.01609613746404648, -0.007570228073745966, 0.02422826923429966, -0.0003796728269662708, -0.07673759758472443, 0.0023692911490797997, 0.004858042113482952, 0.015751030296087265, -0.009061266668140888, -0.04013857990503311, 0.037802472710609436, -0.0565975196659565, 0.030811846256256104, 0.047607045620679855, 0.05029710754752159, 0.025166252627968788, 0.03036940097808838, 0.0020275027491152287, -0.001317378948442638, -0.06866741180419922, -0.0002120969002135098, -0.047961000353097916, 0.06240239366889, 0.03470535948872566, 0.001966666430234909, -0.0421915240585804, -0.014167077839374542, 0.08919684588909149, -0.009848818182945251, -0.02617502585053444, -0.0008135451353155077, -0.006026096176356077, 0.00558365136384964, -0.011087663471698761, -0.020883386954665184, 0.04137742519378662, -0.018051741644740105, -0.0977625697851181, -0.028865089640021324, -0.04675755277276039, 0.01598994992673397, -0.011335432529449463, -0.024422945454716682, -0.04534173011779785, 0.056278958916664124, -0.021078063175082207, -0.04877509921789169, -0.05072185397148132, 0.0019478625617921352, 0.03452838212251663, -0.043642740696668625, -0.04704071581363678, 0.02061792090535164, 0.022387700155377388, -0.017370376735925674, 0.03109501115977764, -0.041094258427619934, 0.04558949917554855, 0.013671539723873138, -0.024688411504030228, 0.031413570046424866, -0.03847498819231987, 0.03344881534576416, 0.022546980530023575, 0.021414320915937424, -0.022971726953983307, -0.07871975004673004, 0.0419437550008297, 0.07118049263954163, -3.802258845553297e-7, -0.057942550629377365, -0.04615582525730133, -0.011609748005867004, -0.01308751292526722, -0.03741312026977539, 0.008114434778690338, 0.04148361086845398, 0.057482410222291946, 0.045943453907966614, 0.04640359431505203, 0.010070040822029114, -0.01415822934359312, 0.040386348962783813, 0.030457889661192894, -0.0002727947721723467, 0.03274090588092804, -0.03624506667256355, 0.006667640991508961, -0.02228151261806488, -0.03325413912534714, 0.025325533002614975, -0.02582106925547123, 0.02937832474708557, 0.029820770025253296, 0.02707761339843273, 0.026670563966035843, -0.02298942394554615, -0.01677750051021576, -0.06742856651544571, 0.010786800645291805, 0.06293332576751709, 0.05029710754752159, -0.013777726329863071, 0.026192722842097282, -0.04994315281510353, 0.01793670654296875, -0.008857741951942444, 0.01542362105101347, 0.03907671198248863, -0.006685338914394379, -0.00418773852288723, -0.039218295365571976, 0.028617320582270622, -0.03465226665139198, 0.010777952149510384, -0.0294314194470644, 0.05111120641231537, -0.011326583102345467, -0.03447528928518295, 0.03026321530342102, 0.02622811868786812, 0.010344356298446655, -0.011990250088274479, 0.023980500176548958, 0.002265316667035222, -0.01406089123338461, -0.021414320915937424, -0.006158829666674137, 0.012512334622442722, -0.057057663798332214, -0.00598185183480382, 0.0020374576561152935, 0.0059862760826945305, 0.004517360124737024, -0.053093358874320984, -0.008609972894191742, 0.02298942394554615, -0.031643640249967575, -0.025874163955450058, 0.025449417531490326, -0.003712110687047243, -0.014264415949583054, 0.07284408807754517, -0.005380127113312483, 0.0015352829359471798, -0.030581774190068245, 0.021839067339897156, 0.00009498733561486006, -0.052102282643318176, -0.018104834482073784, 0.00866749044507742, -0.022900935262441635, 0.04049253463745117, -0.0591106042265892, -0.012485788203775883, 0.0017509746830910444, 0.04881049320101738, -0.02794480510056019, -0.09202849119901657, 0.03420982137322426, 0.03610348328948021, -0.014821896329522133, 0.010379751212894917, 0.006406598724424839, 0.004271802958101034, 0.027573151513934135, 0.04997854679822922, -0.05857967212796211, -0.0305640771985054, 0.028281062841415405, -0.043996695429086685, 0.03481154516339302, 0.05443838983774185, 0.04658057168126106, -0.0203347560018301, -0.01773318089544773, -0.02245848998427391, -0.026015745475888252, -0.02127273939549923, -0.0049553802236914635, -0.04427986219525337, 0.05196069926023483, 0.03925368934869766, -0.07617127150297165, 0.021679788827896118, -0.054402995854616165, 0.05415522679686546, 0.03001544624567032, 0.021024970337748528, -0.007026021368801594, 0.05235005170106888, 0.08466620743274689, -0.02114885486662388, 0.00028537679463624954, -0.035360176116228104, 0.01624656841158867, -0.03691758215427399, 0.007658717222511768, 0.042757850140333176, 0.01962684467434883, -0.008932957425713539, -0.02877660095691681, 0.023307984694838524, 0.05663291737437248, -0.008189650252461433, -0.002444506622850895, 0.0009982658084481955, 0.00986651610583067, 0.06689763069152832, 0.05843808874487877, -0.07167603075504303, -0.013583051040768623, 0.014043193310499191, 0.027042217552661896, -0.011503561399877071, -0.0178128220140934, 0.00018969814118463546, 0.027325382456183434, -0.023024819791316986, -0.09740861505270004, -0.04003239423036575, -0.02175057865679264, -0.026458190754055977, 0.02652898244559765, -0.03369658440351486, -0.053447313606739044, 0.00011710957187460735, 0.07404753565788269, 0.012273414991796017, -0.013158303685486317, -0.011512409895658493, -0.046722155064344406, 0.008313534781336784, 0.06187146157026291, 0.012211472727358341, -0.02210453525185585, 0.010654067620635033, 0.025024669244885445, -0.01075140479952097, 0.004813797771930695, -0.004543906543403864, 0.00864094402641058, -0.007455192506313324, 0.03716535121202469, 0.011777876876294613, 0.014671464450657368, -0.004389050882309675, -0.04059872031211853, 0.015060815960168839, 0.029272139072418213, -0.017211096361279488, 0.046899132430553436, -0.006818071939051151, 0.02599804848432541, -0.049730777740478516, -0.021909859031438828, 0.0077206590212881565, -0.0032740903552621603, -0.08091428130865097, -0.01973303221166134, 0.03097112663090229, -0.003946606535464525, -0.04608503356575966, -0.050438690930604935, 0.010423996485769749, 0.060597218573093414, 0.003139144740998745, -0.013972402550280094, -0.03982001915574074, 0.03148436173796654, -0.026511283591389656, -0.001652530743740499, 0.019414471462368965, -0.021237343549728394, -0.03321874514222145, 0.03357269987463951, 0.010822196491062641, -0.011220396496355534, 0.05100502073764801, 0.04003239423036575, -0.015060815960168839, 0.04944761469960213, 0.050261713564395905, 0.03481154516339302, -0.015441318042576313, -0.061906855553388596, -0.03670520707964897, -0.0515359528362751, 0.03652822971343994, 0.0047076111659407616, -0.062013041228055954, -0.05206688866019249, 0.037129957228899, -0.015609447844326496, 0.011636294424533844, 0.061836063861846924, 0.07277330011129379, -0.026918333023786545, 0.030280912294983864, -0.017246492207050323, 0.009264791384339333, -0.018069440498948097, -0.07886133342981339, 0.0608803853392601, 0.026511283591389656, 0.044704608619213104, -0.018954329192638397, 0.04810258373618126, 0.032333854585886, -0.018476488068699837, -0.04484619200229645, 0.029626093804836273, 0.07234854996204376, -0.045766476541757584, -0.002274165628477931, -0.006481814198195934, 0.02948451228439808, -0.01909591071307659, 0.045412518084049225, -0.07978162169456482, 0.005561529193073511, 0.005561529193073511, -0.029767677187919617, 0.08332117646932602, -0.04718229919672012, 0.0013328645145520568, -0.014565277844667435, -0.031236592680215836, 0.028033293783664703, 0.03263471648097038, 0.02281244657933712, -0.004282864276319742, -0.00821177288889885, -0.053164150565862656, 0.012494636699557304, -0.04615582525730133, 0.05263321474194527, -0.019414471462368965, 0.009114359505474567, -0.0157864261418581, 0.031413570046424866, -0.01611383445560932, -0.06990625709295273, 0.1030719056725502, 0.011892911978065968, -0.04427986219525337, 0.006017247214913368, 0.022086836397647858, -0.0656941831111908, -0.026900634169578552, -0.007406523451209068, 0.021732881665229797, 0.06626050919294357, -0.01884814165532589, 0.016158079728484154, -0.012273414991796017, -0.06477389484643936, 0.02819257415831089, -0.004787251353263855, 0.008238319307565689, -0.007149905432015657, 0.05433220416307449, -0.021113459020853043, -0.05443838983774185, -0.023785823956131935, -0.039855413138866425, 0.023892011493444443, -0.008034794591367245, -0.0152820385992527, 0.023962803184986115, -0.04304101690649986, 0.017591599375009537, 0.003083839314058423, 0.023909708485007286, -0.018529582768678665, 0.01707836426794529, 0.009441768750548363, -0.004924409091472626, -0.021679788827896118, -0.018830444663763046, -0.028174875304102898, 0.005791600327938795, 0.015520958229899406, -0.004796099849045277, 0.010707160457968712, -0.006499512121081352, 0.002915710210800171, -0.03882894292473793, 0.014874989166855812, 0.010379751212894917, -0.04456302523612976, -0.007229545619338751, 0.008552455343306065, 0.03606808930635452, -0.003214360447600484, 0.031944505870342255, -0.020051591098308563, 0.00222328444942832, -0.01308751292526722, -0.021608997136354446, -0.057305432856082916, 0.05610198155045509, -0.06388901174068451, 0.022016046568751335, -0.0020684287883341312, -0.039855413138866425, 0.022777050733566284, -0.0060924626886844635, 0.04031555727124214, -0.046191222965717316, -0.095001719892025, -0.027750128880143166, 0.028528831899166107, 0.014813046902418137, 0.005875665228813887, -0.012432694435119629, 0.022370001301169395, 0.00722512137144804, 0.00928248930722475, -0.04516474902629852, -0.014414846897125244, -0.017016422003507614, 0.004866891074925661, 0.06236699968576431, -0.02210453525185585, 0.03539557382464409, -0.09974472224712372, -0.017361529171466827, 0.06229620799422264, -0.0069198342971503735, 0.029679186642169952, -0.017211096361279488, -0.011264640837907791, 0.0213435310870409, -0.009494862519204617, -0.061659086495637894, -0.012282263487577438, -0.023555753752589226, -0.009813422337174416, -0.0351124070584774, -0.029059765860438347, -0.07277330011129379, -0.025307834148406982, -0.043642740696668625, -0.08586966246366501, -0.009078964591026306, 0.01838799938559532, 0.01803404465317726, 0.0732688382267952, 0.016662465408444405, -0.016158079728484154, 0.12161918729543686, -0.017264191061258316, -0.006194225046783686, 0.03373198211193085, -0.05719924345612526, -0.0210957620292902, -0.02304251678287983, 0.012600824236869812, 0.045412518084049225, -0.00403509521856904, 0.07489702850580215, 0.046722155064344406, -0.061729878187179565, -0.010123133659362793, 0.022493885830044746, 0.006596849765628576, 0.003386913798749447, 0.01925519108772278, -0.0071720280684530735, 0.053801268339157104, -0.058119531720876694, -0.0029223470482975245, 0.024688411504030228, 0.053872060030698776, 0.033590398728847504, 0.04905826225876808, 0.07921528816223145, -0.021962951868772507, -0.05603118985891342, 0.046722155064344406, 0.017644692212343216, -0.03734232857823372, -0.01179557479918003, 0.08197614550590515, 0.00889313779771328, 0.0017664602492004633, 0.005769478157162666, -0.01654743030667305, 0.0017808397533372045, -0.02884739078581333, 0.019060514867305756, 0.013627295382320881, 0.023325681686401367, -0.04024476557970047, 0.028458040207624435, 0.02493618056178093, 0.033962052315473557, 0.03362579271197319, 0.011388525366783142, 0.011733632534742355, 0.05121739208698273, 0.011078814044594765, -0.012565428391098976, 0.00016619327652733773, 0.0157864261418581, -0.02127273939549923, -0.03723614290356636, -0.08275485038757324, -0.09946155548095703, 0.009786875918507576, -0.028705809265375137, -0.023237193003296852, 0.009291337803006172, 0.011078814044594765, -0.003190025920048356, -0.07666680961847305, -0.019396774470806122, -0.061482109129428864, -0.01374233141541481, -0.04289943352341652, -0.015264340676367283, -0.019237494096159935, -0.017308434471488, 0.05677449703216553, 0.04020937159657478, -0.03387356176972389, -0.06091577932238579, 0.03610348328948021, 0.06452612578868866, 0.0074905878864228725, 0.04877509921789169, 0.08048953115940094, -0.042049940675497055, 0.033360328525304794, 0.0031125980895012617, -0.058367300778627396, -0.01001694705337286, 0.035731829702854156, -0.042049940675497055, 0.0388997346162796, -0.014671464450657368, 0.03267011418938637, 0.04700532183051109, 0.037129957228899, -0.031767524778842926, -0.0611281543970108, 0.04827956110239029, -0.013857366517186165, 0.02718379907310009, 0.009388675913214684, 0.01844109408557415, -0.014653767459094524, 0.06537562608718872, 0.021538205444812775, 0.02973228134214878, -0.04502316936850548, 0.046828340739011765, 0.03192680701613426, 0.016910234466195107, -0.014786500483751297, 0.03751930594444275, -0.03438679873943329, -0.0303163081407547, -0.013680389150977135, 0.021290436387062073, 0.09627595543861389, 0.0358734130859375, -0.02670595981180668, -0.0020075927022844553, -0.05429680645465851, 0.033006370067596436, -0.036669813096523285, 0.03783786669373512, 0.035661038011312485, -0.028528831899166107, 0.02428136207163334, -0.01043284498155117, 0.031236592680215836, -0.016379300504922867, -0.01665361598134041, -0.008738282136619091, 0.02971458248794079, -0.02375042997300625, -0.005349155981093645, 0.037731681019067764, -0.03355500102043152, -0.03420982137322426, 0.009963853284716606, -0.0166713148355484, 0.009132057428359985, -0.021662089973688126, -0.02157360129058361, -0.022193023934960365, 0.018706560134887695, 0.008154255338013172, 0.029803071171045303, 0.009769177995622158, -0.010485938750207424, 0.019945405423641205, -0.02736077830195427, 0.02268856205046177, -0.006446418818086386, 0.012335357256233692, -0.02789171040058136, -0.007189725525677204, -0.0014125045854598284, 0.031112708151340485, 0.0159191582351923, 0.08296722173690796, 0.03449298441410065, 0.04413827881217003, 0.04626201465725899, 0.0147157097235322, -0.008654217235744, 0.006282714195549488, -0.018405698239803314, 0.02624581754207611, -0.005242969375103712, 0.02152050845324993, 0.06880899518728256, -0.03594420477747917, -0.027502359822392464, 0.005481889471411705, -0.044173672795295715, 0.028033293783664703, 0.012857441790401936, -0.07220696657896042, 0.03617427498102188, -0.0328470915555954, -0.0024179599713534117, -0.01879504881799221, 0.012388450093567371, -0.05337652191519737, 0.018706560134887695, 0.056880686432123184, -0.019396774470806122, -0.0032099359668791294, 0.004457629751414061, 0.03960764408111572, 0.0294314194470644, -0.03452838212251663, -0.052102282643318176, 0.0479963980615139, 0.005720809567719698, 0.05479234457015991, 0.016025345772504807, 0.01379542425274849, -0.01803404465317726, 0.0012244655517861247, -0.015520958229899406, 0.03327183797955513, 0.04031555727124214, -0.015432469546794891, 0.01433520670980215, 0.035183198750019073, -0.013901610858738422 ]
20,492
metevolsim.metevolsim
run_copasi_for_mutant
Run Copasi to compute the mutant steady-state and update model state. Parameters ---------- None Returns ------- None
def run_copasi_for_mutant( self ): """ Run Copasi to compute the mutant steady-state and update model state. Parameters ---------- None Returns ------- None """ if os.path.isfile("./output/mutant_output.txt"): os.system("rm ./output/mutant_output.txt") cmd_line = self.copasi_path+" ./output/mutant.cps" process = subprocess.call([cmd_line], stdout=subprocess.PIPE, shell=True)
(self)
[ 0.024757763370871544, 0.026915302500128746, 0.05145731195807457, 0.04760970175266266, -0.0028519972693175077, -0.011722629889845848, -0.045955587178468704, -0.010958501137793064, 0.003011565189808607, 0.003897055285051465, -0.0034947642125189304, 0.02678944543004036, -0.020352786406874657, 0.05616793781518936, -0.017530007287859917, -0.007358107715845108, 0.01669396087527275, -0.0576782152056694, -0.021071966737508774, 0.013511589728295803, 0.0070569515228271484, -0.007681738585233688, -0.0032745152711868286, 0.03585110977292061, 0.0005770293646492064, 0.02006511576473713, 0.014896010980010033, -0.022600224241614342, 0.01461732853204012, -0.03063705749809742, 0.04865251109004021, 0.015705088153481483, -0.024056563153862953, 0.006000656168907881, 0.033585693687200546, -0.018177269026637077, 0.016990622505545616, 0.0046521942131221294, -0.07946936041116714, 0.01739516109228134, -0.02017299272119999, -0.04354633390903473, 0.01941785402595997, 0.048940181732177734, -0.04663880914449692, -0.021809125319123268, -0.027634482830762863, 0.07846251130104065, -0.037541184574365616, -0.031482093036174774, 0.00849081575870514, -0.005865809973329306, -0.015696099027991295, 0.02103600837290287, 0.035869091749191284, 0.013313814997673035, 0.03692987933754921, 0.053435057401657104, 0.05250012129545212, -0.028659313917160034, 0.02695126086473465, 0.006032120436429977, 0.03085281141102314, -0.012999174185097218, 0.06576898694038391, -0.017583945766091347, -0.01241484098136425, 0.03306429088115692, 0.005420817527920008, 0.03157199174165726, -0.031536031514406204, -0.01675688847899437, -0.005987171549350023, 0.005209558177739382, 0.0565994456410408, -0.04023810848593712, -0.03937509283423424, -0.006719836033880711, -0.01968754641711712, 0.03426891565322876, -0.03378346934914589, -0.0164242684841156, 0.006108533125370741, 0.008324505761265755, -0.07831867784261703, 0.06504981219768524, 0.08666115999221802, -0.019831381738185883, -0.027256913483142853, -0.018393022939562798, 0.014635307714343071, 0.02808396890759468, -0.004863453097641468, 0.029468391090631485, 0.05591622740030289, 0.06357549130916595, -0.04099324718117714, -0.014536420814692974, -0.04933573305606842, 0.0021103431936353445, -0.038799747824668884, 0.047034356743097305, 0.021665289998054504, -0.07889401912689209, 0.037936732172966, -0.020478643476963043, -0.019669566303491592, 0.033262062817811966, 0.017718791961669922, -0.07080324739217758, -0.05224841088056564, 0.060914523899555206, -0.06656008958816528, -0.05426211282610893, -0.03396326303482056, -0.017862627282738686, -0.02206083945930004, -0.056203898042440414, -0.03225521370768547, 0.026825405657291412, -0.01236090250313282, 0.02206083945930004, 0.004288109485059977, 0.021503474563360214, -0.016235483810305595, 0.07975703477859497, -0.01675688847899437, 0.023661013692617416, 0.07112687826156616, 0.0037105181254446507, -0.031428154557943344, -0.06296418607234955, 0.04106516391038895, -0.0011068625608459115, 0.007376087363809347, -0.00486794812604785, -0.025135332718491554, -0.06645221263170242, 0.009762865491211414, 0.058649107813835144, 0.017485057935118675, -0.00405212864279747, 0.017197385430336, -0.01176757924258709, 0.04631517827510834, 0.02695126086473465, -0.03457456827163696, -0.018734632059931755, -0.05016278848052025, 0.02574663609266281, 0.047573741525411606, 0.040741533041000366, 0.0062928227707743645, -0.03680402413010597, -0.005775912664830685, 0.001981115434318781, -0.004133036360144615, -0.03430487588047981, 0.01838403195142746, -0.04081344977021217, -0.058217599987983704, -0.026609651744365692, 0.010877593420445919, 0.09766460955142975, -0.010338208638131618, -0.004209449049085379, -0.0051780943758785725, 0.06469021737575531, -0.016460226848721504, 0.023768890649080276, 0.014293697662651539, -0.00984377320855856, -0.04825696349143982, -0.024685844779014587, 0.008423392660915852, -0.01654113456606865, -0.005960202310234308, -0.06159774586558342, 0.07163030654191971, -0.03265076130628586, -0.09320569783449173, 0.03247096762061119, -0.004144273232668638, 0.021809125319123268, 0.031428154557943344, 0.0053578889928758144, 0.0073715923354029655, 0.0014125140151008964, 0.05562855303287506, -0.047142233699560165, 0.03471840173006058, 0.04440934956073761, 0.010050537064671516, 0.021449536085128784, 0.03941104933619499, 0.007915472611784935, 0.015866903588175774, -0.05501725152134895, -0.008194154128432274, -0.010428106412291527, -0.014086933806538582, -0.025171291083097458, 0.019435832276940346, -0.019975217059254646, 0.02553088217973709, -0.0005792768206447363, -0.04185626283288002, 0.06587686389684677, -0.016577092930674553, 0.015417415648698807, 0.04707031697034836, -0.017961515113711357, 0.05329122021794319, 0.010886583477258682, 0.04591962695121765, -0.060159385204315186, 0.09514748305082321, 0.009699936956167221, -0.0037801885046064854, 0.002433974063023925, 0.00370827061124146, -0.005834345705807209, 0.005524199455976486, 0.043402496725320816, -0.06325186043977737, 0.02466786652803421, -0.01144394837319851, 0.03861995413899422, -0.03025948815047741, -0.04311482608318329, 0.04365421086549759, -0.029162738472223282, 0.01578599587082863, -0.007884007878601551, -0.035923030227422714, -0.068789541721344, -0.045847710222005844, 0.020083094015717506, -0.06591282784938812, 0.016415277495980263, -0.06483405828475952, -0.039878517389297485, 0.04886826500296593, 0.018896447494626045, 0.000045229666284285486, -0.00011974624067079276, 0.061921376734972, -0.04728607088327408, -0.0320034995675087, 0.018285145983099937, 0.07191797345876694, -0.01632538065314293, -0.059835754334926605, 0.02119782380759716, 0.02229457162320614, -0.0347004234790802, 0.0016844538040459156, 0.02418242022395134, 0.06576898694038391, -0.00437575951218605, -0.017646873369812965, -0.040525779128074646, -0.005011783912777901, -0.03130229935050011, -0.04998299479484558, -0.01713445782661438, -0.03286651521921158, 0.03664220869541168, -0.05785801261663437, 0.0019181872485205531, 0.06742310523986816, 0.04545215889811516, -0.04663880914449692, 0.009654988534748554, -0.058325476944446564, -0.011812527664005756, -0.004045386333018541, 0.03545556217432022, 0.02824578434228897, -0.035653337836265564, 0.05285971239209175, 0.04868847131729126, 0.009349336847662926, 0.016469215974211693, -0.05393848195672035, -0.050234705209732056, 0.023031732067465782, 0.004953350406140089, 0.009439234621822834, 0.019112201407551765, -0.0010152795584872365, 0.010518004186451435, 0.0027823266573250294, -0.07328441739082336, 0.03340590000152588, 0.04110112413764, -0.07385975867509842, -0.013169979676604271, -0.007587346248328686, -0.05149327218532562, -0.019453812390565872, -0.05224841088056564, -0.10514408349990845, 0.019705524668097496, -0.01499489787966013, 0.04430147260427475, 0.029126780107617378, -0.042970988899469376, -0.0023957674857228994, 0.004683658014982939, 0.0323091521859169, -0.004957845434546471, 0.015597211197018623, 0.04994703456759453, -0.025297148153185844, 0.03876378759741783, 0.01864473521709442, 0.0054118274711072445, 0.08148306608200073, 0.023067690432071686, -0.03015161119401455, -0.021539432927966118, 0.06526556611061096, 0.08716458827257156, -0.007448005490005016, -0.017808688804507256, 0.015336507931351662, 0.028101949021220207, -0.018132319673895836, 0.02299577370285988, -0.04825696349143982, 0.05476553738117218, 0.018608776852488518, -0.009286408312618732, 0.031194422394037247, -0.000369984278222546, -0.02445211261510849, -0.08141114562749863, 0.048077166080474854, -0.05469362065196037, 0.06576898694038391, 0.05584430694580078, -0.011452937498688698, 0.011830506846308708, 0.009771854616701603, 0.042323727160692215, -0.016846785321831703, 0.015561251901090145, -0.03612080216407776, -0.04394188150763512, -0.01537246722728014, 0.12326741218566895, -0.040525779128074646, 0.08040429651737213, -0.0022227149456739426, 0.0865173265337944, 0.016289422288537025, -0.017655862495303154, -0.014680257067084312, -0.042539481073617935, -0.00905267521739006, -0.020298847928643227, 0.03265076130628586, -0.03991447761654854, -0.017718791961669922, -0.08579814434051514, -0.022258613258600235, -0.040310025215148926, 0.03746926411986351, 0.013089071959257126, 0.029756061732769012, 0.025890471413731575, 0.016091646626591682, -0.06019534543156624, 0.014068953692913055, 0.047789495438337326, -0.0544419065117836, -0.0072637153789401054, -0.006131007336080074, -0.013673405162990093, -0.011452937498688698, -0.050558336079120636, -0.03074493445456028, 0.02792215347290039, 0.040957286953926086, 0.012369891628623009, -0.006441153585910797, 0.008648136630654335, 0.014653287827968597, -0.011219204403460026, 0.0400223545730114, -0.026483794674277306, 0.01686476543545723, -0.0714864656329155, 0.05947616696357727, -0.005636571440845728, 0.050234705209732056, 0.02808396890759468, -0.029036883264780045, 0.015687108039855957, 0.0149409594014287, -0.04120900109410286, -0.0339273065328598, 0.0200111772865057, -0.03883570805191994, -0.0592244528234005, -0.005420817527920008, -0.05224841088056564, -0.011857476085424423, -0.02288789674639702, 0.02531512826681137, 0.022815978154540062, 0.022528305649757385, 0.005052237771451473, -0.02200690098106861, 0.004016169346868992, -0.07220564782619476, -0.07652072608470917, 0.01290028728544712, 0.04390592500567436, 0.02587249130010605, 0.02103600837290287, 0.06332378089427948, -0.0014203799655660987, 0.05836143717169762, 0.04739394783973694, 0.004002684727311134, -0.007937946356832981, -0.008144711144268513, 0.025440983474254608, 0.005816366523504257, 0.06199329346418381, -0.06447446346282959, 0.06314398348331451, 0.013268866576254368, -0.003036287147551775, 0.010500024072825909, 0.008194154128432274, -0.004061118233948946, 0.03459254652261734, 0.005043248180299997, 0.00540733290836215, -0.004537574946880341, -0.004099324811249971, -0.000941675971262157, 0.04088537022471428, -0.035383645445108414, -0.012639584019780159, 0.0037195077165961266, 0.035923030227422714, 0.05239224433898926, 0.03232713043689728, 0.008607682771980762, -0.02945041097700596, 0.030223529785871506, 0.023732932284474373, -0.022959813475608826, -0.020406724885106087, -0.01984936185181141, -0.008800962008535862, -0.030187569558620453, -0.026609651744365692, -0.003501506522297859, 0.02245638705790043, 0.024434132501482964, -0.08205840736627579, 0.0041060671210289, 0.036624230444431305, -0.027526605874300003, 0.0028902036137878895, -0.03403518348932266, -0.06141795217990875, 0.014374605379998684, 0.01477914396673441, -0.009699936956167221, -0.032075416296720505, -0.08889061957597733, -0.0357791930437088, -0.029486369341611862, -0.017925554886460304, -0.06950872391462326, 0.008787477388978004, -0.019669566303491592, 0.09838379174470901, -0.046171341091394424, -0.054405950009822845, 0.010580931790173054, -0.07781524956226349, 0.03550950065255165, -0.08464745432138443, 0.008962777443230152, 0.0019395379349589348, 0.02711307629942894, -0.03227319195866585, -0.028497498482465744, 0.04566791281104088, -0.0640789195895195, -0.016792846843600273, 0.006850187201052904, -0.02565673738718033, 0.028964964672923088, 0.09637008607387543, -0.02218669466674328, -0.013709364458918571, 0.012810389511287212, 0.057282667607069016, -0.007758151739835739, -0.08730842173099518, -0.010850624181330204, 0.013331795111298561, -0.001660855719819665, -0.029576268047094345, 0.011102337390184402, 0.00174176343716681, 0.013143010437488556, -0.03117644228041172, 0.01109334733337164, 0.004840978886932135, 0.013484620489180088, -0.02060450054705143, 0.009367316029965878, -0.03425093740224838, -0.03671412542462349, 0.022312551736831665, 0.004072355572134256, 0.013853199779987335, 0.009475192986428738, -0.01848291978240013, -0.012540697120130062, -0.015768015757203102, -0.0112012242898345, -0.048400796949863434, 0.0047960299998521805, 0.03790077194571495, 0.07867826521396637, -0.05861315131187439, 0.030619077384471893, -0.03728947043418884, 0.03403518348932266, -0.06296418607234955, -0.03980660066008568, -0.019112201407551765, 0.030061714351177216, 0.02488362044095993, 0.004935371223837137, -0.012810389511287212, -0.006477112881839275, -0.010805675759911537, -0.042431604117155075, 0.06695563346147537, -0.06792652606964111, -0.01566912978887558, -0.04225181043148041, 0.05570047348737717, 0.03746926411986351, 0.03680402413010597, 0.008499805815517902, 0.029306575655937195, -0.012172117829322815, 0.029845960438251495, -0.016073668375611305, -0.07065941393375397, 0.043078865855932236, -0.0432586632668972, 0.025405025109648705, -0.0062029254622757435, -0.007627800107002258, 0.019759463146328926, 0.0010506766848266125, -0.08450362086296082, 0.06853783130645752, 0.050881966948509216, 0.023193547502160072, 0.032938431948423386, -0.012540697120130062, 0.005133145488798618, 0.065085768699646, 0.01698163151741028, 0.023768890649080276, 0.03471840173006058, 0.0016226493753492832, 0.009699936956167221, -0.00978983473032713, 0.017170416191220284, 0.011785558424890041, 0.03187764436006546, -0.026879344135522842, -0.04476894065737724, 0.007232251577079296, -0.0033239589538425207, 0.005686014890670776, 0.0029621217399835587, 0.0037105181254446507, -0.023678993806242943, -0.06127411499619484, -0.00205303356051445, 0.048005249351263046, -0.02695126086473465, 0.014734195545315742, 0.04369017109274864, -0.06443850696086884, 0.012945235706865788, 0.055376842617988586, -0.00452633760869503, 0.002433974063023925, -0.013053112663328648, -0.016091646626591682, 0.0018485167529433966, -0.00995165016502142, 0.03833227977156639, 0.020748335868120193, -0.003346433397382498, -0.023499198257923126, -0.004391491413116455, -0.03297439217567444, -0.0003036848793271929, -0.039231255650520325, -0.019453812390565872, -0.0009804442524909973, 0.024757763370871544, -0.000820876273792237, 0.007978400215506554, -0.061130277812480927, 0.00642766896635294, -0.05645561218261719, 0.0011686671059578657, -0.021000048145651817, -0.01000558864325285, 0.009331357665359974, -0.0014585864264518023, 0.010661839507520199, -0.015444384887814522, 0.06634433567523956, 0.01483308244496584, 0.0512055978178978, -0.056851159781217575, -0.009906700812280178, 0.042970988899469376, -0.010032557882368565, 0.016352349892258644, 0.011264152824878693, 0.004085840191692114, 0.05134943500161171, -0.02923465706408024, -0.0350060760974884, -0.06695563346147537, -0.01103940885514021, 0.023786870762705803, 0.0009405522723682225, 0.02119782380759716, 0.00041409023106098175, 0.048077166080474854, 0.01670295000076294, -0.0001618154492462054, -0.026339959353208542, -0.12470576912164688, 0.0304213035851717, -0.02195296250283718, -0.0432586632668972, -0.029414452612400055, -0.024146459996700287, 0.06688372045755386, -0.006454638205468655, 0.024362213909626007, 0.06375528872013092, -0.016559114679694176, 0.016397299244999886, 0.035437583923339844, -0.025189271196722984, 0.03594100847840309, 0.030511200428009033, 0.012405850924551487, -0.03883570805191994, 0.0026879343204200268, -0.02955828793346882, -0.01371835358440876, 0.05796588957309723, -0.02950434945523739, 0.012819379568099976, 0.03653433173894882, 0.00718280766159296, -0.005034258123487234, 0.027184994891285896, -0.03241702914237976, -0.017431119456887245, 0.032614801079034805, 0.045955587178468704, -0.0256027989089489, -0.016729919239878654, -0.07181009650230408, -0.05113368108868599, 0.06303610652685165, -0.02331940457224846, -0.0453442819416523, 0.027400748804211617, -0.02146751619875431, -0.03779289498925209, 0.014050974510610104, -0.02222265489399433, 0.012612614780664444, 0.029162738472223282, 0.00019342002633493394, -0.0025216240901499987, 0.007421036250889301, -0.032291170209646225, 0.02267214097082615, -0.014635307714343071, 0.0009220109204761684, -0.005223042797297239, -0.04865251109004021, 0.07195393741130829, 0.038691870868206024, -0.0065580205991864204, 0.05656348913908005, 0.025387044996023178, -0.01925603859126568, -0.06763885915279388, 0.018096361309289932, 0.0008248093072324991, -0.015021867118775845, -0.024973517283797264, 0.008985252119600773, 0.020532581955194473, -0.021755186840891838, -0.0012742966646328568, -0.04556003585457802, 0.008908838964998722, -0.016559114679694176, 0.05979979783296585, 0.005537684075534344, -0.03074493445456028, -0.007178313098847866, -0.03151805326342583, -0.000037925496144453064, 0.010715777985751629, -0.0266815684735775, -0.000528990407474339, 0.006908620707690716, -0.02207881771028042, 0.008009864948689938, -0.010446085594594479, -0.026106225326657295, -0.0006253492902033031, -0.04358229413628578, -0.05454978346824646, 0.042323727160692215, 0.0027238933835178614, -0.020784294232726097, 0.017116477712988853, -0.01778171956539154, 0.0373973473906517, 0.0022620451636612415, 0.005816366523504257, 0.028641333803534508, 0.08507896214723587, -0.030565138906240463, 0.03887166455388069, 0.014329656958580017, -0.02229457162320614, -0.033100247383117676, 0.02288789674639702, -0.057390544563531876, 0.028012052178382874, -0.01567811891436577, 0.03268672153353691, -0.00026407380937598646, -0.047573741525411606, 0.004917391575872898 ]
20,493
metevolsim.metevolsim
run_copasi_for_wild_type
Run Copasi to compute the wild-type steady-state and update model state. Parameters ---------- None Returns ------- None
def run_copasi_for_wild_type( self ): """ Run Copasi to compute the wild-type steady-state and update model state. Parameters ---------- None Returns ------- None """ if os.path.isfile("./output/wild_type_output.txt"): os.system("rm ./output/wild_type_output.txt") cmd_line = self.copasi_path+" ./output/wild_type.cps" process = subprocess.call([cmd_line], stdout=subprocess.PIPE, shell=True)
(self)
[ 0.010526709258556366, -0.011399436742067337, 0.029528768733143806, 0.014737392775714397, -0.014467477798461914, -0.010049858130514622, -0.024724271148443222, -0.028880972415208817, -0.005240861792117357, -0.018462229520082474, -0.015088283456861973, 0.04559774696826935, -0.008704778738319874, 0.021413305774331093, -0.010985566303133965, -0.015745077282190323, 0.014620429836213589, 0.0004591377219185233, -0.026163822039961815, -0.031472161412239075, 0.0031490155961364508, 0.013234863057732582, -0.009905903600156307, 0.006608434021472931, 0.02438237890601158, 0.009060167707502842, 0.02035163901746273, -0.023140765726566315, -0.0679827481508255, -0.04952051863074303, 0.051859788596630096, 0.011552388779819012, -0.018264289945364, -0.005128396674990654, 0.03138219192624092, -0.004208434373140335, 0.015853043645620346, 0.011552388779819012, -0.07107777893543243, 0.014863354153931141, -0.038148075342178345, -0.055782563984394073, -0.025516023859381676, 0.0171036534011364, -0.040451355278491974, -0.02270890213549137, -0.010787627659738064, 0.05689821392297745, -0.0546669103205204, -0.008263916708528996, -0.028197186067700386, -0.022151075303554535, -0.030824365094304085, 0.02328472211956978, 0.04160299524664879, -0.012785003520548344, 0.017373569309711456, 0.055782563984394073, 0.058121830224990845, -0.04423017427325249, 0.0233926884829998, 0.014917337335646152, 0.005285847466439009, -0.005146391224116087, 0.08975594490766525, 0.009123148396611214, -0.010967571288347244, -0.0043074036948382854, -0.009393063373863697, 0.01549315731972456, -0.020459605380892754, -0.04354638606309891, 0.007805060129612684, 0.025821927934885025, 0.05175182223320007, -0.05776194483041763, -0.04300655797123909, -0.011201498098671436, -0.010976568795740604, 0.009591002017259598, -0.02897094376385212, 0.03208396956324577, -0.018246296793222427, -0.0004970945883542299, -0.07485660165548325, 0.06837862730026245, 0.10307177901268005, 0.013045921921730042, -0.006585941184312105, -0.011363447643816471, -0.006612932775169611, -0.013423804193735123, -0.00951002724468708, 0.03893982619047165, 0.057114146649837494, 0.09328284114599228, -0.01787741109728813, -0.0419628843665123, -0.046461477875709534, -0.005902154836803675, -0.028557073324918747, 0.03526897355914116, 0.039767567068338394, -0.06276438385248184, 0.04037937894463539, -0.004287160001695156, -0.010463729500770569, 0.049772441387176514, -0.03402736410498619, -0.05524273216724396, -0.057438045740127563, 0.018768133595585823, -0.06510365009307861, -0.08442960679531097, 0.0012359886895865202, -0.033145640045404434, -0.000038624646549578756, 0.010724647901952267, -0.04329446703195572, 0.007004310376942158, -0.032479848712682724, 0.0007405810174532235, -0.0031917523592710495, -0.0034819114953279495, 0.00891171395778656, 0.11919473856687546, -0.005434301216155291, 0.02292483299970627, 0.02429240569472313, 0.025821927934885025, -0.03507103770971298, -0.04858481138944626, 0.000733833119738847, -0.0026339266914874315, 0.00811096467077732, -0.015016306191682816, -0.023752575740218163, -0.07471264898777008, -0.007854544557631016, 0.03190402686595917, 0.022402996197342873, 0.0007175257196649909, 0.022726895287632942, -0.02965473011136055, 0.04534582421183586, 0.042502712458372116, -0.023050794377923012, -0.04876475781202316, -0.03197600319981575, 0.06128884106874466, 0.025929894298315048, 0.04566972330212593, -0.025462040677666664, -0.014413494616746902, -0.013549764640629292, 0.000570759060792625, 0.011075537651777267, -0.038148075342178345, -0.01761649362742901, -0.026415742933750153, -0.050780124962329865, -0.01330684032291174, -0.014260542578995228, 0.025426052510738373, -0.053515270352363586, -0.004399624653160572, -0.0726252943277359, 0.05128397047519684, 0.05167984589934349, 0.033811431378126144, 0.01118350401520729, -0.010103841312229633, -0.04808096960186958, 0.0039812554605305195, 0.022780878469347954, 0.027225488796830177, -0.028215179219841957, -0.04408621788024902, 0.06477975100278854, -0.043438419699668884, -0.07320111989974976, 0.003904779441654682, -0.027225488796830177, 0.04433814063668251, 0.008677787147462368, 0.02200712077319622, 0.0021177129819989204, -0.0027666352689266205, 0.06319624185562134, 0.012713026255369186, 0.032839734107255936, 0.07089783996343613, 0.004979943390935659, 0.006091095972806215, 0.0506361722946167, -0.03944367170333862, 0.019487908110022545, -0.024742266163229942, -0.01934395357966423, 0.023806558921933174, -0.025408057495951653, 0.019811807200312614, 0.010472726076841354, -0.030788375064730644, 0.020855480805039406, 0.00025149949942715466, -0.03143617510795593, 0.04491395875811577, -0.03638462722301483, 0.005492783151566982, 0.048872724175453186, -0.02564198523759842, 0.03202998638153076, 0.010427740402519703, 0.04988040775060654, -0.06715501099824905, 0.051463913172483444, 0.012200186029076576, 0.004647047258913517, -0.023212743923068047, -0.015502153895795345, 0.026811618357896805, -0.03372145816683769, 0.03861592710018158, -0.05261555314064026, 0.051499903202056885, 0.005375819746404886, 0.07392089068889618, 0.00007176662620622665, -0.0726252943277359, -0.015547140501439571, -0.034189313650131226, -0.00774657865986228, -0.012434112839400768, 0.039839547127485275, -0.05463092401623726, -0.04297056794166565, 0.035790812224149704, -0.053083404898643494, -0.022564945742487907, -0.03337956592440605, -0.04728921875357628, 0.001481162034906447, -0.012650045566260815, -0.038148075342178345, -0.061864662915468216, 0.026559697464108467, -0.01968584582209587, -0.025803934782743454, 0.02261892892420292, 0.08615706861019135, -0.049124643206596375, -0.025246107950806618, -0.006500468123704195, 0.017508527263998985, -0.05506278946995735, -0.050456225872039795, -0.019541891291737556, 0.07953513413667679, -0.0067793806083500385, -0.017571507021784782, 0.009249108843505383, 0.008988190442323685, -0.0076656038872897625, -0.06125285103917122, 0.005821180529892445, -0.04556175693869591, 0.020459605380892754, -0.024184439331293106, -0.005128396674990654, 0.03501705452799797, 0.0453818142414093, -0.06794676184654236, 0.008529333397746086, -0.06855856627225876, -0.009384066797792912, 0.013729708269238472, 0.02565997838973999, 0.03544891998171806, -0.029744701460003853, 0.06913439184427261, 0.03836400806903839, 0.031094281002879143, 0.005362323950976133, -0.032119959592819214, -0.04988040775060654, 0.008974694646894932, 0.028449106961488724, -0.007949015125632286, 0.022510962560772896, 0.004957450553774834, 0.06168471649289131, 0.04365435242652893, -0.05153588950634003, 0.04423017427325249, 0.07172557711601257, -0.08846034854650497, -0.03199400007724762, -0.007571133319288492, -0.05531470850110054, -0.0362226776778698, -0.023716585710644722, -0.04163898527622223, 0.021467288956046104, -0.021107401698827744, 0.062476471066474915, 0.006473476532846689, -0.053443294018507004, -0.018174318596720695, 0.01148940809071064, 0.010931583121418953, -0.007791564334183931, 0.024454355239868164, 0.07291320711374283, -0.0012562322663143277, -0.00208284892141819, 0.019397936761379242, -0.006693907547742128, 0.0580858439207077, 0.02830515243113041, -0.02569596841931343, -0.030158571898937225, 0.056754257529973984, 0.07320111989974976, -0.0023707589134573936, -0.030500466004014015, -0.0018432987853884697, -0.0007023429498076439, 0.0008738518226891756, -0.00964498519897461, -0.005051920656114817, 0.05042023956775665, 0.02332071028649807, 0.012973944656550884, 0.04030739888548851, -0.022528957575559616, -0.01268603466451168, -0.06262042373418808, 0.009132144972682, -0.05632239580154419, 0.051463913172483444, 0.08946803212165833, -0.01429653074592352, 0.002247047610580921, 0.039191748946905136, 0.025857916101813316, -0.03706841170787811, -0.016140954568982124, -0.023842547088861465, -0.04023542255163193, 0.008565322495996952, 0.046857353299856186, -0.029060915112495422, 0.09709765017032623, 0.05733007937669754, 0.0714016780257225, 0.03370346501469612, -0.016446858644485474, -0.04441011697053909, -0.07233738899230957, 0.07312913984060287, 0.006999812088906765, 0.013324834406375885, -0.020891468971967697, -0.0009576381416991353, -0.04754113778471947, -0.0012224928941577673, -0.04329446703195572, 0.009447046555578709, 0.022402996197342873, -0.00865529477596283, 0.014359511435031891, -0.003828303189948201, -0.08306203782558441, 0.01484535913914442, 0.052831485867500305, -0.004012745805084705, -0.038831859827041626, -0.013882660306990147, 0.018552200868725777, -0.024706276133656502, -0.01586204208433628, -0.04174695163965225, 0.012398124672472477, 0.043438419699668884, 0.005326334852725267, -0.029132893308997154, 0.026541702449321747, 0.026487719267606735, -0.039803557097911835, 0.03703242540359497, -0.008403372950851917, 0.006671414710581303, -0.017562510445713997, 0.05822979658842087, 0.007341704796999693, 0.03337956592440605, 0.04142305254936218, -0.029258854687213898, 0.036528579890728, 0.0017409557476639748, -0.07014207541942596, 0.0015002810396254063, 0.05535069853067398, -0.04523785784840584, -0.08356587588787079, -0.02859306149184704, -0.033829424530267715, -0.032803744077682495, -0.016230925917625427, 0.04703729599714279, -0.01318087987601757, -0.0032254918478429317, 0.033127643167972565, -0.016374880447983742, 0.004777506459504366, -0.03472914546728134, -0.022870849817991257, -0.028557073324918747, 0.031148262321949005, 0.026721647009253502, -0.005011433269828558, 0.07802361249923706, 0.06100093200802803, 0.07172557711601257, 0.07557637244462967, 0.04372633248567581, 0.01761649362742901, 0.009923897683620453, 0.015403185039758682, -0.018174318596720695, 0.07917524874210358, -0.08083073049783707, 0.03868790715932846, 0.00950102973729372, -0.018462229520082474, 0.0164918452501297, -0.0036416116636246443, 0.002991564804688096, 0.055458664894104004, -0.015754075720906258, 0.021719209849834442, -0.00575370155274868, -0.003238987410441041, -0.0006337394006550312, 0.025228112936019897, -0.012569070793688297, 0.01132745947688818, -0.01698669046163559, 0.014449482783675194, 0.015151264145970345, 0.0003680411900859326, 0.012605059891939163, -0.036780502647161484, 0.06100093200802803, 0.003551639849320054, -0.03289371728897095, 0.008529333397746086, -0.01763448677957058, -0.04826091229915619, -0.02727947197854519, 0.0021199623588472605, 0.00802549161016941, -0.012937955558300018, 0.036492593586444855, -0.08090271055698395, -0.015151264145970345, 0.03573682904243469, 0.0008817243506200612, -0.023140765726566315, -0.031094281002879143, -0.011084535159170628, 0.04041536524891853, -0.0061630732379853725, 0.04757712781429291, -0.023860542103648186, -0.08442960679531097, -0.006968321744352579, -0.01797638088464737, -0.027873286977410316, -0.036780502647161484, -0.012290158309042454, -0.04955650866031647, 0.06917037814855576, -0.04433814063668251, -0.0506361722946167, 0.016437862068414688, -0.0707898736000061, 0.04232276976108551, -0.10213607549667358, 0.011471414007246494, 0.024886220693588257, 0.012874975800514221, -0.041495028883218765, -0.012560074217617512, 0.04757712781429291, -0.05333532765507698, 0.00999587494879961, 0.021791188046336174, -0.0353049635887146, 0.013441798277199268, 0.05635838210582733, -0.06881049275398254, -0.00046279284288175404, -0.0016509839333593845, 0.037140391767024994, 0.010571694932878017, -0.05754601210355759, -0.003538144053891301, 0.00932108610868454, -0.019469913095235825, -0.039839547127485275, 0.025552012026309967, -0.01803036406636238, 0.01767047680914402, -0.03688846901059151, 0.028503090143203735, -0.011570382863283157, -0.019128020852804184, 0.021143389865756035, -0.011345453560352325, -0.06222454831004143, -0.014836362563073635, 0.03922773897647858, 0.017886409536004066, 0.009582004509866238, 0.006734394934028387, 0.005618743598461151, 0.00824592262506485, -0.013531769625842571, 0.025767944753170013, -0.033523522317409515, 0.02438237890601158, 0.036456603556871414, 0.09105154126882553, -0.04433814063668251, 0.024526333436369896, -0.02269090712070465, 0.056466348469257355, -0.06420393288135529, -0.027747325599193573, -0.03391939774155617, 0.03696044534444809, 0.02664966881275177, 0.02364460937678814, -0.008916213177144527, -0.001277600647881627, -0.037500277161598206, -0.018174318596720695, 0.06427590548992157, -0.06755088269710541, -0.025156136602163315, -0.018876099959015846, 0.027909275144338608, 0.057510022073984146, 0.06837862730026245, 0.05196775496006012, 0.024418367072939873, -0.01871415041387081, 0.014017618261277676, -0.01645585522055626, -0.07276925444602966, 0.09234713017940521, -0.04901667684316635, -0.0283411405980587, -0.021197373047471046, -0.008614807389676571, 0.03893982619047165, 0.007008809130638838, -0.08003897964954376, 0.09745753556489944, 0.04574169963598251, 0.06967422366142273, 0.02202511578798294, -0.01751752384006977, 0.0035876284819096327, 0.0558905303478241, 0.042790625244379044, -0.002096344716846943, -0.011867290362715721, 0.006558949593454599, -0.020441610366106033, -0.011030551977455616, 0.003108528209850192, -0.014647421427071095, 0.04390627518296242, -0.029132893308997154, -0.039803557097911835, 0.0180483590811491, -0.020927459001541138, 0.029492780566215515, 0.0407392643392086, 0.019811807200312614, -0.009001686237752438, -0.05560261756181717, 0.00475051486864686, 0.03240786865353584, -0.03033851645886898, 0.0020918461959809065, 0.033865414559841156, -0.04966447502374649, 0.0056952196173369884, 0.06262042373418808, -0.005204873159527779, 0.032173942774534225, 0.0023235236294567585, 0.0010464853839948773, 0.03402736410498619, -0.016752762719988823, 0.0024404870346188545, 0.043150510638952255, 0.027261478826403618, 0.0013552013551816344, -0.001336082350462675, -0.03492708131670952, 0.023572631180286407, -0.01417956780642271, -0.035808805376291275, 0.00014339268091134727, -0.009037675336003304, 0.007935519330203533, 0.008727272041141987, -0.040523331612348557, -0.013288846239447594, -0.054522957652807236, 0.0028656041249632835, -0.03426128998398781, 0.00029690717929042876, -0.0008350514690391719, 0.0020626052282750607, 0.033865414559841156, 0.013126896694302559, 0.024256417527794838, 0.00045295216841623187, -0.007805060129612684, -0.018840109929442406, -0.014368508942425251, 0.036186687648296356, -0.025713961571455002, 0.033775441348552704, 0.03627666085958481, 0.0018545453203842044, 0.08032689243555069, -0.015079285949468613, -0.02193514257669449, -0.08586915582418442, -0.017850419506430626, 0.0010599811794236302, -0.024598311632871628, 0.004248921759426594, -0.002196438377723098, 0.022546952590346336, 0.006190064828842878, 0.018858104944229126, 0.027477411553263664, -0.08608508855104446, 0.017715461552143097, -0.023824552074074745, -0.019595874473452568, -0.03165210410952568, -0.004588565789163113, 0.053839169442653656, -0.03334357589483261, 0.018174318596720695, 0.02438237890601158, -0.048872724175453186, 0.033109650015830994, -0.014683409593999386, -0.0343872494995594, 0.024166446179151535, 0.023896530270576477, -0.009671976789832115, -0.0427546352148056, 0.004777506459504366, -0.04361836612224579, -0.02134132944047451, 0.027837298810482025, 0.03125622868537903, 0.028880972415208817, 0.015682097524404526, -0.001068978337571025, -0.022582940757274628, 0.04930458590388298, -0.05369521677494049, 0.0015340205281972885, 0.03129221871495247, 0.0299606341868639, -0.02393251843750477, -0.013459792360663414, -0.06391602009534836, -0.09407459199428558, 0.07230140268802643, -0.00801649410277605, -0.022241048514842987, 0.012452107854187489, -0.043510399758815765, -0.01681574434041977, -0.0067973751574754715, -0.005191377364099026, 0.030752386897802353, 0.04124310612678528, 0.0016903466312214732, -0.002899343613535166, -0.009114150889217854, -0.004395125899463892, 0.03660055994987488, -0.009779943153262138, -0.003243486164137721, 0.01449446938931942, -0.018822116777300835, 0.04059531167149544, 0.028107214719057083, -0.023536643013358116, 0.054810866713523865, -0.025102153420448303, -0.017886409536004066, -0.06953026354312897, 0.036852478981018066, 0.016923708841204643, -0.02263692393898964, 0.005870664957910776, 0.026793625205755234, 0.052183687686920166, -0.0018871601205319166, -0.0034414243418723345, 0.009096156805753708, 0.013387815095484257, -0.012533082626760006, 0.08896419405937195, -0.0029398309998214245, -0.009447046555578709, -0.00914114248007536, -0.0473971851170063, 0.009366071783006191, 0.005038424860686064, -0.010454731993377209, 0.029456792399287224, 0.008160448633134365, 0.0022762883454561234, -0.02636175975203514, -0.04099118709564209, -0.015520148910582066, -0.00445585697889328, -0.047793060541152954, -0.0701780617237091, 0.035107024013996124, 0.026217805221676826, -0.03564685583114624, 0.03370346501469612, 0.009941891767084599, 0.030518461018800735, 0.0016014993889257312, 0.03589877858757973, 0.0060641043819487095, 0.08090271055698395, 0.0013473288854584098, 0.011552388779819012, 0.03768021985888481, -0.019110025838017464, -0.02062155306339264, 0.03467516228556633, -0.05131995677947998, 0.0116963442414999, 0.012740017846226692, 0.049160633236169815, -0.019757824018597603, -0.04991639778017998, -0.026577692478895187 ]
20,494
metevolsim.metevolsim
save_shortest_paths
Save the matrix of all pairwise metabolites shortest paths (assuming an undirected graph). Parameters ---------- filename: str Name of the Copasi output (txt file). Returns ------- None
def save_shortest_paths( self, filename ): """ Save the matrix of all pairwise metabolites shortest paths (assuming an undirected graph). Parameters ---------- filename: str Name of the Copasi output (txt file). Returns ------- None """ assert filename != "" #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Extract shortest path lengths # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# sp = nx.shortest_path_length(self.species_graph) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Build the matrix of shortest paths # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# sp_dict = {} list_of_metabolites = [] header = "" for line in sp: sp_dict[line[0]] = {} list_of_metabolites.append(line[0]) header += line[0]+" " for species in line[1]: sp_dict[line[0]][species] = line[1][species] #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Write the file # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# written_reactions = [] f = open(filename, "w") f.write(header.strip(" ")+"\n") for sp1 in list_of_metabolites: for reaction in self.species_to_reaction[sp1]: if reaction not in written_reactions: written_reactions.append(reaction) line = reaction for sp2 in list_of_metabolites: line += " "+str(sp_dict[sp1][sp2]) f.write(line+"\n") f.close()
(self, filename)
[ -0.0174904465675354, 0.03814758360385895, 0.029089372605085373, 0.03037814237177372, 0.020933302119374275, -0.02699051983654499, -0.0737544521689415, 0.03741114214062691, 0.022829635068774223, -0.004851297475397587, -0.02049143798649311, 0.00778324855491519, -0.022056372836232185, 0.041572026908397675, 0.012657559476792812, -0.00036764456308446825, 0.04764765873551369, -0.00178126385435462, -0.01837417297065258, 0.06587454676628113, 0.02025209553539753, -0.05184536427259445, -0.001677701948210597, -0.001559181255288422, 0.010162869468331337, 0.004671790171414614, 0.02310580015182495, 0.00503080477938056, 0.005270147696137428, -0.03774254024028778, -0.032937273383140564, -0.04941511154174805, 0.004402529448270798, 0.02363971807062626, 0.02437615767121315, 0.01962612196803093, 0.026916876435279846, 0.011166268959641457, -0.08034558594226837, -0.016643540933728218, -0.009610540233552456, -0.019552476704120636, -0.02660388872027397, -0.04113016650080681, 0.01587027870118618, 0.004172391723841429, -0.060314420610666275, 0.061676837503910065, 0.009127250872552395, -0.030525431036949158, -0.014471042901277542, -0.03770571947097778, -0.016348963603377342, 0.010337773710489273, -0.020528260618448257, 0.012298544868826866, 0.030930472537875175, 0.04271351173520088, 0.04842091724276543, -0.042676687240600586, 0.03262428566813469, -0.006301163230091333, 0.0936751440167427, -0.006172286346554756, 0.0025476214941591024, 0.013384793885052204, -0.033692121505737305, -0.021853851154446602, -0.027082575485110283, 0.039178598672151566, 0.022571880370378494, -0.032697927206754684, 0.02089647948741913, 0.005270147696137428, 0.029476003721356392, 0.012105229310691357, -0.027082575485110283, -0.07968278974294662, 0.00518729817122221, -0.023032154887914658, -0.09058210253715515, -0.06454895436763763, 0.00612165592610836, -0.034428562968969345, -0.021688153967261314, 0.016441019251942635, 0.10899309813976288, 0.02964170277118683, -0.046322066336870193, -0.024063171818852425, -0.03161168098449707, 0.030838418751955032, 0.007645166013389826, -0.016441019251942635, 0.02724827453494072, -0.005104448646306992, -0.018282119184732437, -0.06473305821418762, 0.009481662884354591, -0.027690138667821884, -0.04072512313723564, 0.017453623935580254, -0.003944555763155222, -0.0025384160690009594, -0.0006817821995355189, -0.049930620938539505, -0.0037213226314634085, 0.050556596368551254, -0.013789836317300797, -0.03987821564078331, -0.12232265621423721, 0.03227447718381882, 0.031040938571095467, -0.03159327059984207, 0.07666338980197906, -0.04941511154174805, 0.01835576258599758, 0.008897113613784313, 0.01911061443388462, -0.029070962220430374, 0.0023934294003993273, 0.03413398563861847, -0.05166125297546387, 0.04322901740670204, -0.002160990610718727, 0.00017907570872921497, 0.04974650964140892, 0.016772417351603508, 0.024026349186897278, -0.01760091260075569, -0.044812362641096115, -0.010420623235404491, 0.024928487837314606, 0.06944627314805984, 0.01698414422571659, -0.040172792971134186, -0.05932023003697395, -0.047942232340574265, 0.03735591098666191, 0.03538593277335167, 0.004075734410434961, -0.07264979183673859, -0.04540151730179787, -0.01600836031138897, 0.021099001169204712, -0.018282119184732437, -0.004324282519519329, -0.07021953910589218, -0.014590714126825333, -0.0325322300195694, 0.024192048236727715, 0.019442012533545494, -0.09028752148151398, -0.06038806587457657, 0.021669741719961166, -0.051035281270742416, 0.0090490048751235, 0.025683339685201645, 0.017978336662054062, -0.017195869237184525, -0.03608555346727371, -0.025793805718421936, 0.014811646193265915, 0.037079744040966034, -0.05479112267494202, -0.009099634364247322, 0.006199902854859829, 0.021835440769791603, -0.026769587770104408, 0.01250106655061245, -0.0337289460003376, -0.029034139588475227, -0.0687466561794281, -0.007916728034615517, -0.03700610250234604, -0.0028767180629074574, -0.022222071886062622, -0.012335367500782013, 0.05015155300498009, 0.010172075591981411, -0.05674269050359726, -0.058436501771211624, -0.03337913379073143, 0.06267102807760239, 0.02999151311814785, 0.03464949503540993, 0.05063023790717125, -0.02964170277118683, 0.05696362257003784, 0.030967295169830322, 0.0281320009380579, 0.021577687934041023, 0.006595739163458347, 0.06889394670724869, 0.056411292403936386, -0.06852572411298752, 0.07393855601549149, -0.03862626850605011, -0.00949086807668209, 0.053796928375959396, -0.03452061861753464, 0.002602854510769248, 0.03632489591836929, -0.003603952471166849, 0.039178598672151566, 0.023676540702581406, 0.010475856252014637, 0.013808246701955795, -0.04948875680565834, 0.10140776634216309, 0.015704579651355743, -0.0475003682076931, 0.038810379803180695, -0.07909363508224487, 0.03100411780178547, -0.05696362257003784, -0.03836851567029953, 0.0387735590338707, 0.0019929902628064156, -0.030709540471434593, -0.023934295400977135, 0.034833602607250214, -0.04297126457095146, 0.056816332042217255, -0.03411557525396347, -0.0030930473003536463, 0.015962332487106323, 0.040909234434366226, 0.014986550435423851, -0.02273757942020893, 0.020804425701498985, -0.01213284581899643, 0.007345987483859062, -0.015014166943728924, 0.0040918439626693726, -0.04970968887209892, -0.020822836086153984, 0.021853851154446602, 0.010613938793540001, -0.0022587990388274193, -0.05762641876935959, -0.06602182984352112, 0.018162447959184647, -0.027782192453742027, 0.03770571947097778, -0.027653316035866737, 0.05048295110464096, -0.06554314494132996, -0.027450794354081154, 0.009021388366818428, 0.07776805013418198, -0.019791821017861366, -0.010457445867359638, -0.0024601693730801344, 0.03895766660571098, -0.06808385998010635, -0.0800510123372078, -0.019920697435736656, -0.0008681935141794384, -0.04897324740886688, -0.013090218417346478, -0.012418217025697231, 0.030599074438214302, -0.028665920719504356, -0.014784029684960842, 0.0038594049401581287, -0.03201672062277794, 0.014922112226486206, -0.043302662670612335, -0.02426569163799286, 0.04098287597298622, 0.07909363508224487, -0.07393855601549149, 0.024412980303168297, -0.03661946952342987, -0.02338196523487568, -0.021651331335306168, -0.007240124046802521, -0.03928906470537186, 0.0174996517598629, -0.043413128703832626, -0.0016811540117487311, 0.02426569163799286, -0.013025779277086258, -0.026198847219347954, 0.0070882332511246204, 0.01674479991197586, 0.0006300012464635074, 0.022332537919282913, -0.012786436825990677, 0.023418786004185677, 0.03474155068397522, -0.007511686533689499, -0.014581508934497833, 0.030838418751955032, 0.014102823100984097, -0.00306082796305418, -0.0187239833176136, 0.0005741929053328931, 0.0047868588007986546, 0.00275244377553463, -0.07014589756727219, 0.016174059361219406, -0.04308173060417175, -0.006476067937910557, 0.03113299421966076, -0.017214281484484673, 0.015465236268937588, 0.023952705785632133, 0.045917022973299026, -0.013347972184419632, -0.006945548113435507, -0.011028186418116093, 0.051440320909023285, 0.03404192999005318, 0.05261862650513649, -0.03822122886776924, 0.010816460475325584, 0.05423879250884056, 0.06580089777708054, -0.016450224444270134, 0.0199943408370018, -0.0029020332731306553, 0.028408166021108627, -0.01324671134352684, -0.029825814068317413, 0.02398952841758728, -0.03185102343559265, 0.04683757200837135, -0.018079597502946854, 0.026033148169517517, 0.018521461635828018, 0.0007537001511082053, -0.0037305280566215515, 0.00282838917337358, 0.06226598843932152, 0.022056372836232185, -0.02014162950217724, 0.031924664974212646, 0.018420200794935226, 0.07021953910589218, -0.007741823792457581, -0.01636737585067749, -0.023694951087236404, 0.019552476704120636, 0.007203302346169949, -0.026530245319008827, -0.022332537919282913, -0.07901999354362488, 0.029788991436362267, 0.030654307454824448, 0.07717889547348022, -0.016404196619987488, 0.0587678998708725, 0.02476278878748417, 0.1086985170841217, -0.009794649668037891, -0.011046597734093666, -0.003569431835785508, 0.04838409647345543, 0.017591707408428192, 0.0037466376088559628, 0.007189494092017412, -0.0350177139043808, 0.027285095304250717, -0.02802153490483761, 0.031206637620925903, 0.03796347230672836, 0.02424728125333786, -0.055048879235982895, -0.019055381417274475, -0.019221080467104912, 0.021724974736571312, -0.03446538373827934, 0.001853757188655436, 0.08888828754425049, -0.0090490048751235, 0.0002948635956272483, -0.04020961374044418, -0.07953549921512604, -0.013486054725944996, -0.0187239833176136, -0.0035095959901809692, 0.03186943382024765, 0.020693959668278694, -0.01262994296848774, 0.06222916767001152, 0.022056372836232185, -0.009421827271580696, 0.013568904250860214, -0.0025706354063004255, -0.00534839415922761, 0.0199943408370018, -0.01951565593481064, 0.07401220500469208, 0.004750037100166082, 0.07158195227384567, 0.051182568073272705, -0.04772130027413368, 0.031685322523117065, 0.019552476704120636, -0.10545818507671356, -0.026456601917743683, 0.07342305034399033, -0.0349808931350708, -0.02938394993543625, -0.011672571301460266, 0.002628169720992446, 0.028702743351459503, 0.007318370975553989, 0.026438189670443535, 0.018788421526551247, 0.06038806587457657, -0.0004988228902220726, -0.01785866543650627, 0.006784452125430107, -0.05965162813663483, -0.02999151311814785, 0.06399662047624588, 0.017711378633975983, 0.007557713892310858, 0.02349243126809597, 0.03037814237177372, -0.00214142887853086, 0.03950999677181244, -0.033692121505737305, -0.03660105913877487, 0.013808246701955795, -0.019092202186584473, 0.0663164034485817, -0.0037213226314634085, -0.03214559704065323, 0.007990372367203236, -0.020841246470808983, -0.010282541625201702, 0.018585899844765663, 0.020693959668278694, -0.04573291540145874, 0.03671152517199516, 0.04101970046758652, 0.03166691213846207, 0.004280556458979845, -0.005744230933487415, -0.040430545806884766, -0.03361847996711731, -0.016035977751016617, 0.004202309995889664, -0.005610750988125801, 0.013163861818611622, 0.030028333887457848, -0.026567066088318825, -0.022663936018943787, 0.013458438217639923, -0.04146156087517738, 0.007870701141655445, 0.03201672062277794, 0.027524439617991447, -0.01860431209206581, -0.06053535267710686, 0.015097016468644142, 0.07651609927415848, 0.014581508934497833, 0.04635888710618019, 0.024836434051394463, 0.009435635060071945, -0.01898173615336418, -0.030157210305333138, 0.03840533643960953, 0.007548508234322071, -0.05652175843715668, -0.017775816842913628, -0.022461414337158203, -0.06959356367588043, -0.060203954577445984, 0.024836434051394463, -0.012206490151584148, -0.07548508048057556, 0.02986263483762741, 0.0035234042443335056, -0.010926925577223301, -0.08402778208255768, -0.046432532370090485, -0.011092624627053738, -0.009794649668037891, 0.027800602838397026, -0.010733610950410366, 0.021927496418356895, -0.07541143894195557, 0.023179443553090096, -0.054422903805971146, 0.028813209384679794, -0.03302932530641556, -0.02225889451801777, -0.030562253668904305, 0.026401368901133537, 0.11576834321022034, -0.05070388317108154, 0.011608133092522621, -0.048678673803806305, -0.020196862518787384, -0.015078605152666569, -0.007985769771039486, -0.05490158870816231, 0.04024643823504448, -0.012399805709719658, 0.03921541944146156, -0.014139644801616669, -0.03984139487147331, -0.01374380849301815, -0.028665920719504356, -0.01506019476801157, -0.07338622957468033, -0.02139357663691044, 0.072428859770298, -0.005458860192447901, -0.01150687225162983, -0.034539029002189636, 0.017030172049999237, 0.02398952841758728, 0.017904693260788918, -0.03098570555448532, -0.017766611650586128, -0.008395413868129253, 0.019313134253025055, -0.09610539674758911, 0.012335367500782013, 0.028555454686284065, 0.002144881058484316, 0.0030194034334272146, 0.01312704011797905, 0.0022495936136692762, 0.02087806910276413, 0.0017536473460495472, 0.07213427871465683, 0.08137660473585129, 0.024910077452659607, 0.0812293142080307, -0.012197284959256649, 0.06038806587457657, -0.03464949503540993, 0.006204505451023579, -0.04190342500805855, -0.035551633685827255, -0.04540151730179787, 0.028095180168747902, 0.0025407173670828342, 0.02301374450325966, -0.026972109451889992, 0.01712222583591938, -0.011893503367900848, -0.030562253668904305, 0.028150413185358047, 0.0023002238012850285, -0.032421763986349106, 0.09949301928281784, 0.02599632553756237, 0.006296560633927584, -0.030654307454824448, 0.02297692373394966, 0.022295715287327766, -0.006443848367780447, -0.03398669883608818, 0.030396554619073868, -0.027450794354081154, -0.028960496187210083, 0.002101154997944832, 0.0033323902171105146, 0.008897113613784313, -0.035551633685827255, -0.020565083250403404, 0.04057783633470535, 0.061198148876428604, 0.014471042901277542, -0.018558284267783165, -0.013486054725944996, -0.05210311710834503, 0.03151962533593178, 0.0015695374459028244, 0.0324954092502594, -0.012906108051538467, 0.01099136471748352, 0.0712505504488945, 0.030930472537875175, 0.0624869205057621, 0.029715348035097122, 0.06587454676628113, -0.013706986792385578, 0.01887127012014389, -0.017831049859523773, -0.009085826575756073, -0.008427632972598076, -0.027211451902985573, 0.02314262092113495, -0.018944915384054184, -0.033434368669986725, -0.02886844240128994, 0.06418073177337646, -0.0003460691950749606, 0.021411988884210587, 0.01761011779308319, -0.07449088990688324, -0.03424445167183876, -0.021964317187666893, 0.014001562260091305, 0.008851086720824242, -0.019073791801929474, 0.02713780850172043, 0.02362130768597126, -0.002600553212687373, 0.029917867854237556, 0.007083630654960871, 0.033305492252111435, 0.03735591098666191, -0.06432802230119705, -0.07946185767650604, 0.016790827736258507, -0.00039065832970663905, -0.04396545886993408, -0.05453336983919144, 0.013605725951492786, -0.019534066319465637, -0.05600624904036522, 0.004736228846013546, -0.010586322285234928, -0.03185102343559265, 0.04046737030148506, -0.01181985903531313, 0.0012001667637377977, -0.0053299833089113235, -0.034428562968969345, -0.01199476420879364, -0.06642687320709229, 0.013219094835221767, 0.01343082170933485, -0.009426429867744446, -0.032421763986349106, -0.0004620009276550263, 0.00026393888401798904, -0.03925224393606186, 0.055306632071733475, -0.020325738936662674, 0.00793053675442934, -0.02798471413552761, -0.04308173060417175, -0.07029318064451218, -0.009311361238360405, 0.016726389527320862, -0.03313979133963585, -0.015124632976949215, -0.02787424810230732, -0.022774402052164078, 0.05534345284104347, -0.029917867854237556, -0.015538880601525307, 0.08211304247379303, -0.05195583030581474, 0.029917867854237556, -0.04886278137564659, 0.005072229541838169, -0.01861351728439331, 0.051293034106492996, 0.011525283567607403, 0.04683757200837135, -0.04352359473705292, 0.05177171900868416, -0.024431390687823296, 0.055564384907484055, 0.016201676800847054, -0.016919706016778946, -0.02073078043758869, 0.0013463040813803673, -0.002375018550083041, 0.00887870229780674, -0.014655152335762978, -0.013403205201029778, 0.01199476420879364, 0.023455608636140823, 0.030433375388383865, -0.0048605031333863735, -0.008091632276773453, 0.042934443801641464, 0.05136667937040329, 0.05412832647562027, -0.05195583030581474, -0.022792812436819077, 0.05434925854206085, 0.002220826456323266, 0.005836285650730133, -0.06697919964790344, -0.005270147696137428, -0.009481662884354591, -0.0005189599469304085, 0.04396545886993408, 0.024339336901903152, 0.05611671507358551, 0.021853851154446602, -0.004011295735836029, 0.03297409415245056, 0.011957941576838493, -0.05258180573582649, 0.01131355669349432, 0.03899448737502098, 0.032421763986349106, 0.02363971807062626, -0.005836285650730133, -0.03976774960756302, -0.02349243126809597, 0.031206637620925903, -0.04595384746789932, 0.042676687240600586, 0.005049215629696846, 0.003995186183601618, 0.03774254024028778, 0.021688153967261314, -0.018098009750247, -0.028776386752724648, -0.006508287042379379, -0.01898173615336418, -0.001426852191798389, -0.021522454917430878, -0.004020501393824816, -0.0096749784424901, 0.01525351032614708, 0.031943079084157944, -0.06013031303882599, -0.018788421526551247, -0.008915524929761887, -0.03547798842191696, 0.012455038726329803, -0.017149843275547028, -0.07408584654331207, 0.03037814237177372, -0.008220509625971317, 0.05328142270445824, 0.015336359851062298, 0.008202098309993744, 0.040062326937913895, 0.004163186531513929, 0.03087523952126503, 0.06889394670724869, -0.005403627175837755, 0.011230707168579102, 0.010586322285234928, 0.01506019476801157, 0.018585899844765663, 0.006761438213288784, 0.029917867854237556, 0.05427561700344086, -0.05320777744054794, 0.013228300958871841, 0.0838068500161171, -0.012022380717098713, 0.03161168098449707, -0.016146443784236908, 0.03337913379073143, -0.03124346025288105, 0.03711656853556633, -0.04113016650080681, 0.01200396940112114, -0.027947891503572464, -0.019202668219804764, -0.0500042662024498, -0.043155375868082047, 0.04234528914093971, 0.028279289603233337, 0.05685315653681755, -0.04289761930704117, 0.017168253660202026 ]
20,495
metevolsim.metevolsim
set_mutant_parameter_value
Set the mutant value of the parameter 'param_metaid'. Parameters ---------- param_metaid: str Parameter meta identifier (as defined in the SBML model). value: float Parameter value. Returns ------- None
def set_mutant_parameter_value( self, param_metaid, value ): """ Set the mutant value of the parameter 'param_metaid'. Parameters ---------- param_metaid: str Parameter meta identifier (as defined in the SBML model). value: float Parameter value. Returns ------- None """ assert param_metaid in list(self.parameters) self.parameters[param_metaid]["mutant_value"] = value self.mutant_model.getElementByMetaId(param_metaid).setValue(value)
(self, param_metaid, value)
[ 0.0717800185084343, 0.014886911027133465, 0.062238048762083054, 0.03398878872394562, -0.02396254613995552, 0.02259940654039383, -0.022545598447322845, 0.0022072535939514637, -0.00754210352897644, 0.04318997636437416, -0.04860666021704674, 0.019514407962560654, 0.01685987412929535, 0.054489679634571075, 0.0019561490043997765, 0.02713722363114357, 0.055386483669281006, 0.0517275296151638, 0.061197757720947266, 0.05696485564112663, 0.011236927472054958, 0.014689614064991474, -0.03241042047739029, 0.0327153317630291, 0.0013474448351189494, -0.08458635210990906, 0.04082242026925087, 0.004475041292607784, -0.014115661382675171, 0.003993010148406029, 0.0011535113444551826, -0.033056117594242096, -0.006461457349359989, -0.011371447704732418, 0.022617341950535774, -0.032195188105106354, -0.025989318266510963, 0.02236623875796795, -0.09470227360725403, 0.003903330070897937, -0.012241344898939133, 0.03691236302256584, 0.004658885765820742, 0.017066139727830887, -0.008631717413663864, 0.00377553584985435, 0.011730168014764786, 0.10087227076292038, -0.010133860632777214, 0.033127859234809875, 0.009281898848712444, 0.018169205635786057, 0.007649719715118408, 0.007322387304157019, -0.0035804815124720335, 0.052157994359731674, 0.012492449954152107, 0.008559973910450935, 0.07597704976797104, 0.005905440077185631, 0.047315265983343124, 0.02322716824710369, -0.019012199714779854, -0.06596874445676804, 0.015963073819875717, 0.023585889488458633, 0.007914276793599129, 0.05581694841384888, -0.04659782350063324, 0.03694823756814003, -0.050579626113176346, -0.011281766928732395, -0.009819980710744858, -0.008985954336822033, 0.05291131138801575, 0.004405539017170668, -0.03515463322401047, 0.019837256520986557, -0.03567477688193321, 0.008151928894221783, 0.0427236407995224, 0.00068437191657722, 0.04308236017823219, -0.040069106966257095, -0.05900956317782402, 0.03877771273255348, -0.008497197180986404, 0.015998944640159607, 0.049646951258182526, -0.002302538836374879, -0.017344148829579353, -0.0313701294362545, 0.011479063890874386, 0.05194276198744774, 0.007358259055763483, 0.025648532435297966, 0.04189858213067055, -0.02256353385746479, -0.07195938378572464, 0.01622314564883709, -0.009604748338460922, 0.004259808920323849, 0.043405208736658096, -0.04455311596393585, 0.06862327456474304, -0.04645433649420738, -0.02430333010852337, 0.008551005274057388, 0.034365445375442505, -0.05004154518246651, -0.043907418847084045, 0.010734718292951584, -0.06830042600631714, 0.019514407962560654, -0.03985387459397316, 0.05822037532925606, -0.008667590096592903, -0.04369218647480011, 0.027747049927711487, 0.038562480360269547, 0.03291262686252594, 0.013389252126216888, 0.01996280997991562, 0.0347062312066555, -0.024715859442949295, 0.022724958136677742, 0.04258015379309654, 0.037055853754282, 0.010743685998022556, -0.02403428964316845, -0.03004286251962185, -0.009201186709105968, 0.0004234586376696825, -0.010779558680951595, -0.014860006980597973, 0.0018406858434900641, -0.037629805505275726, -0.019873129203915596, 0.014232245273888111, 0.008062249049544334, -0.0030267061665654182, 0.03942340984940529, 0.015164919197559357, -0.05947589874267578, 0.044337883591651917, 0.012106824666261673, -0.017272403463721275, 0.04649020731449127, -0.06281200051307678, -0.020285658538341522, -0.019245367497205734, 0.010627102106809616, 0.028213387355208397, -0.01323679555207491, -0.04756636917591095, 0.007452423218637705, 0.06485670804977417, -0.012788394466042519, 0.05190689116716385, 0.02973794937133789, 0.02643771842122078, -0.06403165310621262, 0.044409628957509995, 0.10209192335605621, -0.005250774789601564, 0.01269871462136507, 0.02686818316578865, 0.024823475629091263, -0.038598351180553436, 0.03999736160039902, 0.02349620871245861, -0.0577540397644043, -0.0054839435033500195, 0.0033159248996526003, 0.05768229439854622, -0.018581734970211983, 0.001508869114331901, -0.025792021304368973, 0.03328928351402283, 0.029989054426550865, -0.0012353445636108518, 0.0025581272784620523, 0.02423158660531044, -0.03931579366326332, 0.01463580597192049, -0.01293188240379095, -0.014465413987636566, 0.02333478443324566, 0.029415100812911987, -0.0070578306913375854, 0.07339426130056381, -0.024787602946162224, -0.012151665054261684, -0.023083679378032684, -0.0473870113492012, 0.034724168479442596, 0.04803270846605301, -0.10137448459863663, 0.0033114408142864704, 0.023191295564174652, 0.031997889280319214, -0.09699808806180954, 0.019352983683347702, -0.020967228338122368, 0.004842730239033699, -0.009524035267531872, 0.03597969189286232, 0.016671545803546906, -0.012528321705758572, -0.04476834833621979, 0.020034553483128548, -0.018133332952857018, 0.06037270277738571, 0.00794566422700882, 0.01306640263646841, -0.08092740178108215, -0.010618134401738644, -0.02667088806629181, 0.0427236407995224, 0.03585413843393326, 0.04810445010662079, -0.04118113964796066, 0.06320659816265106, 0.040535442531108856, 0.031890273094177246, 0.01892251893877983, -0.014734454452991486, -0.04365631565451622, -0.08020995557308197, -0.007595911622047424, 0.025648532435297966, 0.01738898828625679, 0.030258094891905785, -0.0010302010923624039, -0.06320659816265106, -0.03949515521526337, 0.028518298640847206, -0.03488559275865555, -0.10833366215229034, 0.06281200051307678, -0.050651367753744125, -0.03350451588630676, 0.05147642642259598, 0.053449392318725586, -0.06177171319723129, 0.043907418847084045, 0.021702604368329048, 0.03255390748381615, -0.009326739236712456, 0.01822301372885704, 0.015936169773340225, 0.028697660192847252, -0.07317902892827988, 0.04656195268034935, 0.032195188105106354, 0.03154949098825455, 0.029630333185195923, 0.040104977786540985, 0.004042334388941526, 0.025756148621439934, -0.07195938378572464, -0.0911150723695755, -0.019012199714779854, 0.03877771273255348, -0.016178306192159653, -0.01895839162170887, 0.0002249010867672041, 0.05520712211728096, -0.04527055844664574, -0.03633841127157211, 0.07992298156023026, 0.017236530780792236, 0.016330761834979057, -0.021469436585903168, -0.019765513017773628, -0.04128875583410263, -0.01996280997991562, -0.006743949837982655, -0.0151021433994174, -0.03748631849884987, 0.01899426244199276, -0.051584042608737946, 0.022742895409464836, 0.040607187896966934, -0.058292120695114136, 0.028249258175492287, 0.037665676325559616, 0.06837217509746552, -0.024518562480807304, 0.02683231234550476, -0.08530379086732864, -0.012223409488797188, -0.04659782350063324, 0.030132543295621872, -0.010044180788099766, -0.0010302010923624039, -0.07170827686786652, 0.004645433742552996, 0.023209232836961746, 0.006676689721643925, 0.02744213677942753, -0.0417192205786705, -0.07762716710567474, 0.030347775667905807, -0.009533003903925419, 0.016232114285230637, 0.06392403692007065, -0.01699439436197281, 0.005129706580191851, 0.01079749409109354, 0.06360118836164474, 0.01792706921696663, -0.059834618121385574, 0.0070309266448020935, 0.07762716710567474, 0.025809956714510918, 0.019317112863063812, -0.05086660012602806, 0.04469660297036171, 0.023514144122600555, 0.035029079765081406, -0.06395991146564484, 0.026043126359581947, 0.009685460478067398, 0.014429542236030102, -0.028894955292344093, -0.012339993380010128, 0.030222222208976746, -0.0470641627907753, 0.02442888170480728, -0.0507231131196022, -0.0031074185390025377, 0.03701997920870781, 0.0035961754620075226, 0.029415100812911987, 0.0007807781221345067, -0.032356612384319305, -0.06873089075088501, 0.0751161202788353, 0.004188064485788345, 0.040571317076683044, 0.005344938952475786, 0.0020032310858368874, -0.011021695099771023, 0.02310161665081978, 0.06783409416675568, -0.0010335640981793404, 0.007012990303337574, 0.05330590158700943, 0.015424991957843304, -0.01895839162170887, 0.07027339190244675, -0.026886120438575745, -0.04279538616538048, -0.02659914270043373, 0.016940586268901825, 0.04032021015882492, -0.008990438655018806, -0.06636333465576172, -0.01829475723206997, 0.02189990133047104, -0.027208968997001648, 0.046346720308065414, 0.003300230950117111, 0.009344675578176975, -0.0018104187911376357, -0.05657026171684265, 0.0037150017451494932, 0.07217461615800858, 0.00998140498995781, 0.030365711078047752, -0.030724432319402695, 0.0026007252745330334, 0.014034949243068695, 0.01965789683163166, 0.04383567348122597, -0.05316241458058357, 0.01467167865484953, 0.010734718292951584, -0.033755622804164886, 0.004075964447110891, -0.037701550871133804, 0.053485263139009476, 0.004490735474973917, 0.01568506471812725, 0.03484972193837166, 0.07289205491542816, -0.030150478705763817, -0.060193341225385666, 0.00299531826749444, 0.023854929953813553, 0.02636597491800785, 0.015945136547088623, -0.06586112827062607, 0.02780085802078247, -0.030150478705763817, 0.03248216211795807, -0.03465242311358452, -0.004999670200049877, -0.03788090869784355, 0.0035670294892042875, -0.05969113111495972, -0.041575733572244644, 0.026150742545723915, 0.016142433509230614, -0.06898199766874313, -0.007770787924528122, 0.03181853145360947, -0.0534135177731514, -0.022240685299038887, -0.02295812778174877, -0.037163469940423965, 0.01211579330265522, -0.007232706993818283, 0.029612397775053978, 0.010896142572164536, -0.009299835190176964, -0.10266587883234024, 0.029684141278266907, 0.010393933393061161, 0.05761055275797844, -0.013290603645145893, -0.011541839689016342, 0.013514803722500801, 0.0022117376793175936, -0.01735311560332775, 0.0047395979054272175, -0.06270438432693481, -0.06083903834223747, -0.004995186347514391, -0.023585889488458633, -0.007681108079850674, 0.004833762068301439, 0.041970327496528625, 0.010501549579203129, -0.012178569100797176, -0.02523600496351719, 0.012869106605648994, 0.0031477746088057756, -0.016205210238695145, 0.024159841239452362, -0.013496868312358856, -0.005170062649995089, -0.020787866786122322, -0.005865084007382393, -0.014913815073668957, -0.02376524917781353, 0.03780916705727577, -0.03519050404429436, -0.02850036323070526, 0.009667524136602879, 0.0647490918636322, 0.006542169488966465, -0.0273703932762146, 0.04666956886649132, -0.00981101207435131, -0.05466904118657112, -0.0637446790933609, 0.04369218647480011, -0.021917836740612984, -0.01041186973452568, 0.0018619848415255547, -0.0447324775159359, -0.01126383151859045, -0.03841899335384369, 0.04810445010662079, 0.052122123539447784, -0.016662579029798508, -0.011622551828622818, 0.0007774151163175702, 0.00461404537782073, -0.02887701988220215, 0.035836201161146164, -0.009237059392035007, -0.008770721964538097, -0.010241476818919182, -0.05653439089655876, -0.03194408118724823, -0.02850036323070526, 0.00390557199716568, -0.040499571710824966, -0.007093702908605337, 0.05047200992703438, 0.06195107102394104, -0.010940982960164547, -0.013756940141320229, 0.013138147071003914, -0.03917230665683746, -0.007882888428866863, 0.005201450549066067, -0.01335337944328785, 0.020877547562122345, 0.04652608186006546, -0.02496696449816227, -0.0278726015239954, 0.04168334975838661, 0.013460995629429817, -0.0041006263345479965, 0.030527135357260704, 0.04017672315239906, -0.020285658538341522, 0.05101009085774422, -0.008295416831970215, -0.051189448684453964, 0.03567477688193321, -0.02527187578380108, -0.021577052772045135, -0.053592879325151443, -0.04110939800739288, 0.015164919197559357, 0.01772977225482464, -0.03884945809841156, 0.0014550610212609172, 0.028643852099776268, 0.014025980606675148, -0.022940192371606827, -0.001959512010216713, 0.011120342649519444, 0.0027980217710137367, -0.07992298156023026, 0.010591230355203152, -0.04164747893810272, 0.020482953637838364, -0.06094665452837944, 0.029953181743621826, -0.05746706202626228, -0.06804932653903961, -0.05822037532925606, 0.007959116250276566, 0.001705044531263411, 0.02570234052836895, 0.01426811795681715, -0.02697579935193062, 0.06367293000221252, 0.03597969189286232, -0.02457237057387829, 0.005268711131066084, 0.007604879792779684, 0.012869106605648994, -0.010331157594919205, -0.07985123991966248, 0.015676096081733704, 0.021487371996045113, 0.012420705519616604, 0.027029607445001602, -0.022850511595606804, -0.02198958210647106, 0.04354869946837425, 0.0005857237265445292, -0.022671150043606758, -0.038167886435985565, -0.04566515237092972, -0.07238984853029251, 0.07418344914913177, -0.025540916249155998, -0.005860600154846907, -0.011640488170087337, 0.008452357724308968, -0.005699175875633955, 0.037665676325559616, 0.025684405118227005, -0.0005417243810370564, 0.11385796219110489, -0.003984042443335056, 0.03147774562239647, -0.03684062138199806, -0.058866072446107864, -0.03355832397937775, -0.00012506182247307152, -0.044481370598077774, -0.0016859874594956636, 0.027478009462356567, -0.027854666113853455, 0.021917836740612984, 0.012797362171113491, 0.013407187536358833, 0.04986218363046646, 0.010474645532667637, -0.04566515237092972, 0.043871548026800156, -0.026114869862794876, 0.05222973972558975, 0.013452027924358845, 0.010591230355203152, 0.046741314232349396, 0.022079261019825935, 0.03795265406370163, 0.08759960532188416, -0.015021431259810925, 0.053557008504867554, -0.03917230665683746, 0.0017633367097005248, -0.019352983683347702, -0.04494770988821983, -0.009416419081389904, -0.010286317206919193, -0.04322585090994835, -0.033594198524951935, 0.0757618173956871, 0.02116452343761921, -0.03368387743830681, -0.011676359921693802, -0.01655496284365654, 0.030580943450331688, -0.006941246334463358, -0.026724696159362793, -0.006981602404266596, -0.015138015151023865, 0.00020990768098272383, 0.004461589269340038, 0.031926147639751434, 0.011425255797803402, -0.047279395163059235, 0.012142697349190712, -0.037199340760707855, 0.017882229760289192, -0.034293703734874725, 0.040391955524683, -0.015146983787417412, -0.026312166824936867, -0.08580600470304489, 0.008219189010560513, -0.04910887032747269, -0.04989805445075035, 0.001867589890025556, -0.03318166732788086, -0.029325420036911964, -0.0654306635260582, -0.01996280997991562, -0.02430333010852337, -0.04602387174963951, -0.04017672315239906, 0.01711994782090187, -0.02256353385746479, 0.03542367368936539, -0.037773292511701584, -0.04713590443134308, -0.021953709423542023, 0.003002044279128313, 0.014842070639133453, 0.031854402273893356, 0.032822947949171066, 0.01721859537065029, -0.019873129203915596, -0.012716650031507015, 0.050687242299318314, -0.04182684049010277, 0.013174018822610378, -0.018527926877141, 0.03727108612656593, -0.012573162093758583, 0.038167886435985565, 0.007968084886670113, -0.004244114737957716, 0.03917230665683746, -0.0837971642613411, 0.010932014323771, 0.024608243256807327, -0.009156347252428532, 0.019550280645489693, -0.038670096546411514, -0.027011672034859657, 0.021774349734187126, -0.008645170368254185, 0.02179228514432907, -0.008429937064647675, -0.025074580684304237, -0.027029607445001602, -0.029128124937415123, 0.01548776775598526, -0.008349224925041199, -0.01729034073650837, -0.044445499777793884, -0.04121701419353485, 0.008255060762166977, -0.0817883312702179, -0.010600198060274124, -0.044445499777793884, -0.03755806013941765, 0.06324246525764465, -0.020716123282909393, 0.01942472904920578, 0.0017756676534190774, 0.061233632266521454, -0.02310161665081978, 0.02659914270043373, 0.0015738873044028878, 0.026724696159362793, -0.010636069811880589, -0.010824398137629032, -0.047781601548194885, -0.018671413883566856, -0.042472537606954575, -0.037055853754282, -0.04082242026925087, 0.009909660555422306, -0.03795265406370163, 0.043441083282232285, 0.0015144741628319025, 0.03992561995983124, -0.047351136803627014, 0.025522980839014053, -0.041575733572244644, 0.027208968997001648, -0.011147246696054935, -0.02229449339210987, 0.04713590443134308, 0.008582393638789654, 0.007869436405599117, -0.06238153576850891, 0.04397916421294212, 0.029953181743621826, -0.012591098435223103, -0.007008506450802088, -0.03183646500110626, -0.00846132542937994, -0.04763811454176903, 0.03232073783874512, 0.03120870515704155, 0.00547497533261776, -0.028123706579208374, 0.0014685130445286632, 0.01985519379377365, -0.08056867867708206, -0.008084668777883053, -0.010707814246416092, 0.0407148040831089, 0.042042072862386703, 0.03117283247411251, -0.04509119689464569, -0.028590044006705284, 0.05319828540086746, -0.004253082908689976, -0.010142829269170761, 0.001373227802105248, -0.02546917274594307, -0.005613979417830706, -0.014160501770675182, -0.024859348312020302, 0.040499571710824966, 0.02613280527293682, 0.0480685792863369, -0.0066856578923761845, -0.0881018117070198, -0.0007241675048135221, 0.050113286823034286, -0.041503988206386566, 0.005797823891043663, 0.025056643411517143, 0.006205868907272816, 0.04136050119996071, -0.01772080548107624, -0.041001781821250916, 0.028016090393066406, 0.08006647229194641, -0.010474645532667637, 0.04143224656581879, 0.031083151698112488, -0.0012521595926955342, -0.027747049927711487, -0.05649851635098457, 0.013568611815571785, 0.040571317076683044, -0.046310849487781525, -0.00938054732978344, 0.06177171319723129, -0.031119024381041527, 0.01615140214562416 ]
20,496
metevolsim.metevolsim
set_species_initial_value
Set the initial concentration of the species 'species_id' in the mutant model. Parameters ---------- species_id: str Species identifier (as defined in the SBML model). value: float >= 0.0 Species abundance. Returns ------- None
def set_species_initial_value( self, species_id, value ): """ Set the initial concentration of the species 'species_id' in the mutant model. Parameters ---------- species_id: str Species identifier (as defined in the SBML model). value: float >= 0.0 Species abundance. Returns ------- None """ assert species_id in list(self.species) if value < 0.0: value = 0.0 self.species[species_id]["wild_type_value"] = value self.mutant_model.getListOfSpecies().get(species_id).setInitialConcentration(value)
(self, species_id, value)
[ 0.046358752995729446, 0.013825969770550728, 0.0637664869427681, -0.02303091064095497, -0.013696061447262764, 0.014549745246767998, 0.016015853732824326, 0.008504362776875496, 0.021806059405207634, 0.02930363267660141, -0.08974817395210266, 0.02225145883858204, 0.010244208388030529, 0.03871271386742592, 0.01991310715675354, 0.0030226910021156073, 0.03253278508782387, 0.05693701282143593, 0.05467289313673973, -0.014011552557349205, 0.026928164064884186, 0.007650678977370262, -0.0467299222946167, -0.02104516699910164, -0.0018743932014331222, -0.03453708812594414, 0.007757389452308416, 0.012517605908215046, -0.029656240716576576, -0.03795182332396507, 0.051258157938718796, -0.010207091458141804, -0.0008641231106594205, 0.005145302042365074, 0.056231796741485596, -0.03941793367266655, -0.008624992333352566, 0.042127449065446854, -0.06469440460205078, 0.027874639257788658, -0.00018746832211036235, 0.024144411087036133, -0.0195976160466671, -0.03149351850152016, -0.019634732976555824, 0.031029557809233665, 0.006059300620108843, 0.0936083123087883, -0.011812388896942139, -0.00023821380455046892, -0.04817747324705124, 0.020043015480041504, 0.004609429743140936, 0.011608246713876724, -0.005980427842587233, 0.02648276276886463, 0.020339949056506157, 0.010587537661194801, 0.06625330448150635, -0.022863885387778282, 0.029322190210223198, 0.03169766068458557, -0.02249271795153618, -0.10051201283931732, 0.00030592276016250253, -0.03297818452119827, 0.030491366982460022, 0.03253278508782387, -0.02987894043326378, 0.046284519135951996, -0.03249566629528999, -0.003674553008750081, -0.004908683244138956, 0.01119996327906847, 0.04016026481986046, 0.015162170864641666, -0.034240152686834335, -0.013751735910773277, -0.0028904627542942762, -0.013937319628894329, -0.0036768727004528046, -0.004778774920850992, 0.021880293264985085, -0.026241503655910492, -0.06822048872709274, 0.015394150279462337, 0.04895692318677902, 0.04223880171775818, 0.050367359071969986, 0.014855957590043545, 0.01496730837970972, -0.025740429759025574, 0.025666195899248123, 0.03262557461857796, 0.01838204450905323, 0.09449911117553711, 0.04413175210356712, -0.05266859382390976, 0.015431266278028488, -0.019634732976555824, 0.02071111649274826, -0.0034147361293435097, 0.06558520346879959, -0.029563449323177338, -0.031586308032274246, -0.006546457298099995, 0.02674257941544056, 0.01774178072810173, 0.014716770499944687, 0.0009081991738639772, -0.05586062744259834, -0.04168204963207245, -0.014642536640167236, 0.006230965256690979, -0.03297818452119827, -0.02778184786438942, 0.04984772205352783, 0.008360535837709904, 0.0518520250916481, -0.013426965102553368, -0.028208689764142036, -0.02833859808743, 0.010838075540959835, 0.0027419959660619497, 0.020933816209435463, 0.06725545227527618, 0.032310083508491516, 0.004769495688378811, -0.00419418653473258, -0.010040066204965115, 0.0198203157633543, -0.0198203157633543, -0.021397775039076805, 0.027392122894525528, 0.02399594523012638, -0.06810913980007172, -0.029767591506242752, -0.009158545173704624, 0.050775639712810516, 0.028227247297763824, 0.0333864688873291, 0.014410557225346565, 0.007149603683501482, -0.05660296231508255, 0.016479812562465668, 0.04008603096008301, -0.004275379702448845, 0.0013512797886505723, -0.0663275346159935, 0.007052172441035509, -0.045727770775556564, 0.03386898711323738, 0.017630431801080704, 0.029006699100136757, -0.03926946595311165, -0.020506974309682846, 0.0420532189309597, -0.05593486130237579, 0.06584502011537552, 0.0366341806948185, 0.02481251209974289, 0.009014717303216457, 0.038007497787475586, 0.016990168020129204, -0.08180519938468933, 0.006796995177865028, -0.11075622588396072, -0.025591962039470673, -0.023086585104465485, 0.0260002464056015, -0.022604068741202354, -0.019207891076803207, -0.006648528389632702, 0.0024821790866553783, 0.11892189830541611, -0.01565396599471569, 0.009418361820280552, -0.029749032109975815, 0.004978276789188385, 0.020210040733218193, -0.009441560134291649, -0.00791049562394619, -0.009181742556393147, 0.028115898370742798, -0.013835248537361622, 0.013454802334308624, -0.026779696345329285, 0.011459779925644398, 0.0782419964671135, -0.029749032109975815, 0.10132858157157898, 0.006889787036925554, -0.029600566253066063, 0.015227125026285648, 0.024998094886541367, -0.004542155656963587, 0.09145554155111313, -0.09991814941167831, -0.002830148208886385, 0.01998734101653099, -0.033293675631284714, -0.01384452823549509, 0.013055797666311264, -0.047323789447546005, 0.03668985515832901, 0.031085234135389328, 0.0031433203257620335, 0.0014081146800890565, -0.07516130805015564, -0.022696860134601593, -0.03960351645946503, 0.020506974309682846, 0.031029557809233665, -0.01003078743815422, 0.003609598847106099, -0.1674705296754837, 0.03772912174463272, -0.0685916543006897, 0.03856424614787102, 0.007144964300096035, -0.01493947021663189, -0.012703189626336098, 0.021175075322389603, 0.018641861155629158, -0.02375468611717224, 0.05998058244585991, -0.03811884671449661, 0.0017978399991989136, -0.028542740270495415, -0.006815553642809391, -0.03533509373664856, 0.0035260862205177546, -0.014308486133813858, -0.0782419964671135, -0.030806858092546463, 0.009585387073457241, 0.07668309658765793, -0.007836262695491314, -0.09835924953222275, 0.03578049689531326, -0.05708548054099083, -0.05793916434049606, 0.05363362655043602, 0.014855957590043545, -0.09071321040391922, 0.007516131270676851, -0.015551895834505558, 0.012851656414568424, -0.05114680901169777, 0.009975112043321133, 0.020970933139324188, -0.025814661756157875, 0.00495971878990531, 0.022437043488025665, 0.03435150161385536, -0.02891390584409237, -0.018094388768076897, 0.0260002464056015, 0.002934538759291172, -0.01456830371171236, -0.04665568843483925, -0.050701405853033066, 0.0076599582098424435, 0.04353788495063782, -0.08826350420713425, 0.0260002464056015, -0.0353536531329155, 0.03526086360216141, -0.00979880802333355, -0.01935635693371296, 0.10912308841943741, 0.03288539499044418, 0.008123916573822498, -0.04491120204329491, 0.0028788638301193714, -0.02896958217024803, -0.031011000275611877, -0.01159896794706583, 0.004801972769200802, 0.005098906345665455, 0.0015797794330865145, -0.05793916434049606, 0.032254409044981, 0.01545910444110632, -0.01717575080692768, -0.005354083608835936, 0.002021700143814087, 0.08663036674261093, -0.04569065198302269, -0.0014220334123820066, -0.04320383444428444, 0.015551895834505558, -0.006764518097043037, 0.025981687009334564, 0.008383734151721, -0.05196337401866913, -0.059460949152708054, -0.0007545128464698792, -0.008290941826999187, 0.012174276635050774, 0.008133196271955967, -0.0333864688873291, -0.03767344728112221, 0.02874688245356083, -0.007669237442314625, 0.016322067007422447, 0.03908388316631317, -0.006356234196573496, 0.011589688248932362, 0.05537811294198036, 0.013881644234061241, 0.04183051735162735, -0.06848030537366867, -0.03605886921286583, 0.06643888354301453, 0.02191741019487381, 0.015626128762960434, -0.057048361748456955, 0.045727770775556564, 0.019579056650400162, 0.016990168020129204, -0.04335230216383934, -0.028728323057293892, 0.0010752242524176836, -0.032551344484090805, -0.03878694772720337, 0.03405456990003586, 0.025072328746318817, -0.05522964522242546, 0.021935967728495598, -0.05541522800922394, -0.024422787129878998, 0.020339949056506157, -0.025981687009334564, 0.04750937223434448, -0.041867632418870926, 0.0016018174355849624, -0.05686277896165848, -0.005377281457185745, -0.034815460443496704, 0.029118048027157784, 0.025480613112449646, 0.004008603282272816, -0.03960351645946503, 0.06235605105757713, 0.025480613112449646, 0.032866835594177246, -0.07222909480333328, 0.02175038494169712, -0.012508327141404152, 0.000618804944679141, 0.031512074172496796, -0.037376511842012405, -0.03411024436354637, 0.038898296654224396, 0.03878694772720337, 0.005372642073780298, -0.025740429759025574, -0.03373907878994942, -0.03364628553390503, 0.04624740406870842, -0.014753886498510838, 0.03657850623130798, -0.038081731647253036, 0.015635408461093903, -0.001810598885640502, -0.04758360609412193, 0.0057809255085885525, 0.01991310715675354, 0.007172801531851292, -0.007692435290664434, -0.026278620585799217, -0.03572482243180275, -0.011840226128697395, 0.04260996729135513, 0.028765439987182617, -0.03912099823355675, -0.013547594659030437, -0.023383518680930138, -0.024626927450299263, -0.01750052161514759, -0.027818964794278145, -0.054227493703365326, -0.0008130876231007278, -0.017630431801080704, -0.01501370407640934, 0.044762738049030304, -0.0036815123166888952, -0.048066120594739914, 0.0004262620641384274, 0.09108437597751617, -0.00329178711399436, 0.045319486409425735, -0.02824580669403076, 0.06803490221500397, 0.029099490493535995, 0.03730228170752525, -0.03316376730799675, 0.05756799504160881, 0.03173477575182915, 0.025814661756157875, -0.04183051735162735, 0.007335187401622534, 0.06020328029990196, -0.013593990355730057, -0.06235605105757713, 0.0008600634755566716, -0.025629078969359398, -0.0688885897397995, 0.005548946093767881, 0.001063045347109437, 0.012666072696447372, 0.014429115690290928, 0.010290604084730148, 0.009947274811565876, -0.02737356349825859, -0.0022710778284817934, -0.0711527094244957, 0.0016250154003500938, -0.006207767408341169, 0.012434093281626701, -0.0033868986647576094, 0.007144964300096035, 0.0710042417049408, 0.03845289722084999, -0.015421987511217594, 0.06747815757989883, -0.03179045021533966, -0.027020955458283424, 0.007093928754329681, -0.007172801531851292, 0.01404866948723793, 0.012452651746571064, 0.0391952320933342, 0.006295919883996248, -0.02497953735291958, -0.012081485241651535, 0.00810999795794487, -0.033683400601148605, -0.007956892251968384, 0.008620352484285831, -0.0012538484297692776, -0.0044377651065588, -0.01686953939497471, 0.005108185578137636, -0.0198203157633543, 0.024051619693636894, 0.06439746916294098, 0.0032825078815221786, -0.0006222845986485481, -0.02761482261121273, -0.06848030537366867, 0.01693449355661869, 0.0036583144683390856, 0.018743932247161865, 0.02312370203435421, -0.018242856487631798, 0.016340626403689384, 0.03099244087934494, -0.07527266442775726, 0.014828120358288288, 0.007038253825157881, -0.010606096126139164, 0.001134379068389535, -0.02896958217024803, 0.09138130396604538, 0.01080095861107111, 0.01622927561402321, -0.0031154826283454895, -0.03514951094985008, 0.018047994002699852, 0.009061113931238651, 0.07527266442775726, -0.016646837815642357, 0.010494746267795563, -0.043797701597213745, -0.06610483676195145, -0.008541479706764221, -0.006309838499873877, -0.026278620585799217, 0.024385670199990273, -0.003574801841750741, 0.022288575768470764, -0.024942420423030853, 0.016479812562465668, -0.03321944177150726, -0.0033590609673410654, -0.05218607559800148, 0.06254163384437561, -0.011682480573654175, -0.026222946122288704, 0.001534543465822935, 0.003707030089572072, -0.02455269545316696, -0.023068027570843697, 0.010838075540959835, 0.030324341729283333, -0.016275672242045403, 0.06079714745283127, 0.03490825369954109, -0.038898296654224396, 0.011181404814124107, -0.05404191091656685, -0.014698212035000324, -0.03091820888221264, -0.0009545950451865792, -0.053113993257284164, -0.03886118158698082, -0.0004361211904324591, 0.006063940469175577, 0.04598758742213249, -0.06046310067176819, 0.010086461901664734, -0.0004680183483287692, 0.019300682470202446, -0.010698887519538403, -0.00028141995426267385, 0.008444048464298248, 0.01662828028202057, -0.025870338082313538, -0.05678854510188103, -0.06250451505184174, 0.004435445182025433, 0.032551344484090805, 0.012805260717868805, -0.06024039909243584, -0.03863848000764847, -0.02592601254582405, 0.007826982997357845, 0.01180310919880867, 0.018029434606432915, -0.02809733897447586, -0.029173724353313446, 0.11424519121646881, 0.0005729889962822199, -0.008383734151721, 0.008411571383476257, -0.0615023672580719, -0.048066120594739914, -0.04064278304576874, -0.025406379252672195, 0.014920911751687527, 0.07015055418014526, -0.013631107285618782, 0.0464329868555069, -0.04491120204329491, -0.0514066256582737, 0.02763338014483452, 0.021824616938829422, -0.0272065382450819, -0.0060500213876366615, 0.00393668981269002, -0.03316376730799675, -0.012870214879512787, 0.013556873425841331, -0.04984772205352783, 0.00875490065664053, 0.0008513642242178321, -0.02158335968852043, 0.05708548054099083, 0.058570146560668945, -0.02201020158827305, 0.14156308770179749, -0.02601880393922329, 0.0542646087706089, -0.003962207585573196, -0.051814910024404526, -0.01807583123445511, 0.017157193273305893, -0.05626891180872917, -0.02136065810918808, -0.0005228234804235399, 0.016247833147644997, 0.08232483267784119, -0.054561544209718704, 0.015839550644159317, -0.004491120111197233, 0.011283475905656815, -0.04413175210356712, 0.025796104222536087, 0.01521784532815218, -0.018122227862477303, 0.01377029437571764, -0.010457629337906837, 0.06718122214078903, 0.046358752995729446, -0.005822681821882725, 0.08774387091398239, -0.050144657492637634, 0.009455478750169277, -0.03234720230102539, 0.026130154728889465, -0.05934959650039673, -0.01918933168053627, -0.0355021208524704, 0.01646125502884388, -0.009780249558389187, -0.05044158920645714, 0.0663275346159935, 0.05307687446475029, -0.02891390584409237, -0.019968783482909203, -0.012833097949624062, 0.0444658026099205, 0.029173724353313446, -0.030324341729283333, 0.056974127888679504, 0.009204940870404243, 0.001002150820568204, -0.036263011395931244, 0.02312370203435421, 0.03643003851175308, -0.025313587859272957, -0.014206415973603725, -0.021546242758631706, 0.004518957808613777, 0.02473827823996544, -0.060017697513103485, -0.01758403517305851, -0.08759540319442749, -0.045245252549648285, -0.01582099124789238, -0.02455269545316696, -0.039158113300800323, 0.029841823503375053, 0.0057809255085885525, -0.03514951094985008, -0.00038914536708034575, -0.06669870764017105, -0.036337245255708694, 0.03743219003081322, 0.0017363654915243387, -0.06469440460205078, -0.0038763750344514847, -0.017621152102947235, 0.015756037086248398, -0.014995145611464977, 0.01805727370083332, 0.005205616820603609, 0.06372936815023422, 0.01847483590245247, 0.005493271164596081, 0.016479812562465668, 0.046841271221637726, -0.030045965686440468, -0.0008525241282768548, -0.04639587178826332, -0.010903029702603817, -0.08321563154459, 0.01272174809128046, -0.01869753561913967, -0.01337128970772028, 0.013306335546076298, 0.011311313137412071, 0.0514066256582737, -0.04305536672472954, 0.023643335327506065, -0.021304983645677567, 0.027763288468122482, 0.012795981019735336, 0.0004485900863073766, -0.0027257574256509542, 0.0026213666424155235, 0.024589812383055687, 0.07479014247655869, -0.05192625895142555, 0.01596945896744728, -0.08328986912965775, -0.014531186781823635, 0.01822429895401001, -0.010420512408018112, -0.03630013018846512, -0.024422787129878998, -0.03060271590948105, -0.04079125076532364, -0.027763288468122482, -0.028375715017318726, 0.05081275850534439, 0.03462987765669823, 0.050293125212192535, 0.04357500374317169, 0.02158335968852043, 0.006523259449750185, 0.01743556745350361, 0.021620476618409157, -0.017314938828349113, -0.01220211386680603, 0.025332145392894745, 0.026928164064884186, -0.0032221933361142874, -0.02633429691195488, -0.028709765523672104, -0.0494394414126873, 0.008239906281232834, -0.051183924078941345, 0.038267314434051514, -0.03297818452119827, 0.033200886100530624, -0.009603945538401604, 0.07078154385089874, 0.02497953735291958, 0.07345394045114517, -0.015143612399697304, 0.010698887519538403, 0.00389261357486248, -0.041607815772295, 0.028876790776848793, 0.014160019345581532, 0.034648437052965164, 0.018261414021253586, 0.03060271590948105, 0.04520813748240471, -0.05496982857584953, -0.026445645838975906, -0.062430284917354584, 0.01677674613893032, -0.020506974309682846, -0.009780249558389187, -0.0012225311947986484, 0.03501960262656212, 0.007650678977370262, -0.037710562348365784, 0.033349353820085526, -0.027355005964636803, 0.004502719268202782, 0.0032013151794672012, 0.03115946613252163, 0.037766240537166595, 0.02416297048330307, -0.018604744225740433, 0.01187734305858612, 0.04390905052423477, -0.0019068702822551131, -0.007604283280670643, 0.012164996936917305, 0.0025819302536547184, -0.0033358631189912558, 0.020005900412797928, 0.011181404814124107, -0.024218644946813583, 0.0032198734115809202, -0.018344927579164505, -0.002690960420295596, -0.06948245316743851, 0.001348959980532527, 0.03709813952445984, -0.006926903501152992, 0.013547594659030437, 0.03652282804250717, 0.05782781168818474, 0.011673200875520706, 0.005145302042365074, 0.023661894723773003, 0.005558225326240063, 0.043240953236818314, -0.020488416776061058, -0.02408873662352562, 0.025350702926516533, 0.01059681735932827, 0.022121550515294075, 0.011933018453419209, -0.039455048739910126, 0.04680415615439415, -0.006031463388353586, 0.013853807002305984, 0.05114680901169777, -0.013482640497386456, -0.004008603282272816 ]
20,497
metevolsim.metevolsim
set_wild_type_parameter_value
Set the wild-type value of the parameter 'param_metaid'. Parameters ---------- param_metaid: str Parameter meta identifier (as defined in the SBML model). value: float Parameter value. Returns ------- None
def set_wild_type_parameter_value( self, param_metaid, value ): """ Set the wild-type value of the parameter 'param_metaid'. Parameters ---------- param_metaid: str Parameter meta identifier (as defined in the SBML model). value: float Parameter value. Returns ------- None """ assert param_metaid in list(self.parameters) self.parameters[param_metaid]["wild_type_value"] = value self.wild_type_model.getElementByMetaId(param_metaid).setValue(value)
(self, param_metaid, value)
[ 0.06307609379291534, -0.011228112503886223, 0.06669463962316513, 0.0065142568200826645, -0.01315267849713564, 0.028558075428009033, 0.01270036119967699, -0.02545393630862236, -0.016363244503736496, 0.022757770493626595, -0.05303642526268959, 0.0157956313341856, 0.017844362184405327, 0.018642568960785866, 0.029604613780975342, 0.04179057478904724, 0.02376883290708065, 0.11153613775968552, 0.059493035078048706, -0.006651725620031357, 0.001240546815097332, 0.025436198338866234, -0.010066278278827667, 0.014545107260346413, 0.01450963132083416, -0.0899668037891388, 0.04838908836245537, 0.013108334504067898, -0.07485408335924149, -0.00103378901258111, -0.0013636037474498153, -0.046083156019449234, 0.01803061179816723, -0.032620061188936234, 0.005826911889016628, -0.01674460992217064, -0.028345219790935516, 0.01915697008371353, -0.0774793028831482, 0.004948883783072233, -0.03547586873173714, 0.030917221680283546, -0.036220863461494446, -0.011086209677159786, 0.0013336710399016738, 0.02293515019118786, 0.033400531858205795, 0.05637115612626076, -0.037107761949300766, 0.07293839007616043, -0.020930763334035873, 0.01550295576453209, -0.021870873868465424, 0.007764780893921852, -0.005915601272135973, 0.014110527001321316, -0.005591884255409241, -0.0030974869150668383, 0.08549685031175613, 0.009942112490534782, 0.03742704167962074, 0.032566849142313004, -0.04831813648343086, -0.06999389082193375, 0.04352889209985733, 0.009871160611510277, 0.009037477895617485, 0.01166269276291132, -0.06545297801494598, 0.04356436803936958, -0.05743543431162834, -0.059493035078048706, 0.022544914856553078, 0.05374594405293465, 0.04530268535017967, -0.013738030567765236, -0.027068089693784714, 0.01678895577788353, -0.03398588299751282, 0.0028181143570691347, 0.04824718460440636, 0.05264618992805481, 0.034198738634586334, -0.04555101692676544, -0.06580773741006851, 0.061869919300079346, -0.0327974408864975, 0.029338544234633446, 0.06690748780965805, 0.003638494061306119, -0.02352050133049488, -0.08237496763467789, 0.020593741908669472, 0.03368433937430382, -0.00725481566041708, 0.025542626157402992, 0.06712034344673157, -0.06804271787405014, -0.03453575819730759, 0.032602325081825256, 0.01198197528719902, -0.013906541280448437, 0.05168834328651428, -0.021054929122328758, 0.05832232907414436, -0.052859045565128326, 0.022757770493626595, 0.026181193068623543, -0.020185770466923714, -0.004130721557885408, -0.02327217161655426, -0.030917221680283546, -0.050695016980171204, -0.017720196396112442, -0.00478037353605032, 0.04643791541457176, 0.024779895320534706, 0.024637991562485695, 0.04455769434571266, 0.016221342608332634, -0.001998843625187874, -0.006008725613355637, 0.007764780893921852, 0.019493991509079933, 0.029923897236585617, 0.046473391354084015, 0.04274842515587807, 0.026234406977891922, -0.04161319509148598, 0.036717526614665985, -0.03150257468223572, 0.0009101778268814087, -0.043954603374004364, 0.0019533901941031218, 0.010376691818237305, -0.014394334517419338, -0.04587030038237572, -0.021817659959197044, 0.000494167790748179, -0.001033234759233892, -0.032566849142313004, 0.059741366654634476, 0.03717871382832527, -0.09741674363613129, 0.015130458399653435, 0.02227884717285633, -0.00599098764359951, 0.029941635206341743, -0.024389659985899925, 0.017303355038166046, -0.04913407936692238, 0.011884416453540325, 0.0031263111159205437, 0.0005141229485161602, -0.049843598157167435, -0.01986648701131344, 0.09401105344295502, -0.010084016248583794, 0.024726681411266327, 0.042358189821243286, 0.03187507018446922, -0.050695016980171204, 0.013871065340936184, 0.012425423599779606, -0.043351512402296066, 0.014545107260346413, -0.024921799078583717, 0.036575622856616974, 0.015121589414775372, 0.029728779569268227, 0.02634083293378353, -0.060841117054224014, 0.0028558075428009033, 0.021977301687002182, 0.0763440728187561, 0.009472057223320007, -0.014562845230102539, -0.007472105324268341, 0.035138849169015884, 0.019387563690543175, 0.05803852528333664, -0.013773506507277489, 0.0027737696655094624, -0.01087335404008627, -0.0035764111671596766, 0.0035187629982829094, -0.008177188225090504, 0.010580678470432758, -0.01297529973089695, 0.04775052145123482, 0.0851420909166336, 0.007006484549492598, -0.017019549384713173, -0.028682241216301918, -0.022261109203100204, -0.018199121579527855, 0.07237077504396439, -0.06105397269129753, -0.0011180442525073886, 0.07797596603631973, 0.013454223982989788, -0.041471291333436966, 0.03348921984434128, -0.022456225007772446, 0.0247089434415102, -0.015024031512439251, 0.03462444990873337, -0.025134654715657234, -0.023112529888749123, -0.06300514936447144, -0.01460718922317028, -0.013427617028355598, 0.04324508458375931, -0.01846519112586975, 0.0037981353234499693, -0.08684492856264114, -0.07932404428720474, -0.013578389771282673, 0.03371981531381607, 0.013338927179574966, 0.020221246406435966, 0.015706941485404968, -0.004665076732635498, 0.02580869570374489, 0.05225595831871033, 0.029604613780975342, -0.00010621974797686562, -0.04618958383798599, -0.03506789728999138, -0.01663818396627903, -0.023059315979480743, 0.026624640449881554, -0.008744802325963974, -0.004328056238591671, 0.007463236339390278, -0.008456560783088207, 0.06116040050983429, -0.02307705394923687, -0.09039251506328583, 0.011822333559393883, -0.017454128712415695, -0.037462517619132996, -0.01678895577788353, 0.02609250321984291, -0.10323478281497955, -0.00684684282168746, -0.02990615926682949, 0.05402975156903267, 0.0011751381680369377, 0.007729305420070887, 0.024496087804436684, -0.002789290389046073, -0.008749236352741718, -0.0005992096266709268, 0.02896604873239994, 0.029923897236585617, -0.03540491685271263, -0.0005360182258300483, 0.010137230157852173, 0.0016318900743499398, -0.07492503523826599, -0.033506959676742554, 0.017844362184405327, 0.05580354481935501, -0.009516402147710323, 0.0078046913258731365, -0.01862483285367489, 0.04650886729359627, 0.0004376281285658479, -0.04643791541457176, 0.06016707792878151, 0.027901772409677505, -0.013507437892258167, -0.019103756174445152, -0.021959563717246056, -0.017658114433288574, -0.0006391200004145503, -0.008749236352741718, -0.015919797122478485, -0.026802020147442818, 0.034979209303855896, -0.07613121718168259, 0.0569387711584568, 0.05200762674212456, -0.021462902426719666, 0.053213804960250854, 0.02525882050395012, 0.09954529255628586, -0.04200343042612076, 0.023981688544154167, -0.05665496364235878, 0.035582296550273895, -0.020026128739118576, 0.047715045511722565, -0.01605283096432686, 0.02921437844634056, -0.06375014036893845, -0.03487278148531914, 0.02313026785850525, 0.00883792620152235, -0.0015487434575334191, -0.005290339235216379, 0.018695782870054245, 0.04051344469189644, 0.00025179554359056056, 0.03212340176105499, 0.021037191152572632, -0.013418748043477535, 0.005551973823457956, 0.02025672234594822, 0.022509438917040825, 0.0362563394010067, -0.09670722484588623, 0.0036806215066462755, 0.09117298573255539, -0.004281494300812483, -0.0031795247923582792, -0.0594220831990242, -0.00110141490586102, 0.035688724368810654, 0.047608617693185806, -0.06265038996934891, 0.00733020156621933, -0.010979781858623028, 0.010119492188096046, -0.05353308841586113, -0.02481537126004696, 0.021125881001353264, -0.04952431470155716, -0.018092693760991096, 0.005574146285653114, -0.00169951596762985, 0.028930572792887688, 0.007010919041931629, 0.033152200281620026, -0.04150676727294922, -0.01431451365351677, -0.02852259948849678, 0.02744058519601822, 0.03185733035206795, 0.04452221840620041, 0.04700552672147751, 0.01797739788889885, -0.03178637847304344, 0.06502726674079895, 0.04902765154838562, -0.009024174883961678, -0.03524527698755264, 0.05782566964626312, 0.03274422883987427, -0.0030509247444570065, -0.01803061179816723, 0.00030736514599993825, -0.02614571712911129, 0.03175090253353119, -0.028008200228214264, 0.05637115612626076, -0.0021895263344049454, -0.09990005195140839, -0.0450543537735939, 0.09833911061286926, 0.0071483878418803215, 0.061089448630809784, 0.01388880331069231, 0.015857713297009468, 0.03517432510852814, -0.031662214547395706, 0.009126167744398117, 0.05094334855675697, -0.001870243577286601, 0.0061284564435482025, -0.031520310789346695, -0.024868585169315338, -0.02183539792895317, 0.03462444990873337, 0.028788669034838676, -0.005126263480633497, -0.012957561761140823, 0.0004891789867542684, 0.013143809512257576, 0.0015265709953382611, -0.008682719431817532, 0.036025747656822205, -0.014101658016443253, 0.013436486013233662, -0.004274842329323292, 0.05779019370675087, -0.030917221680283546, -0.060486357659101486, -0.014944210648536682, 0.0019090452697128057, 0.048850271850824356, 0.020221246406435966, 0.002410141984000802, 0.01639872044324875, -0.018048349767923355, 0.013338927179574966, 0.0078046913258731365, 0.023236695677042007, 0.0033369490411132574, 0.006398960016667843, -0.08400686085224152, -0.044344838708639145, 0.07946594804525375, 0.03499694541096687, -0.0681491494178772, -0.031130075454711914, 0.04200343042612076, -0.05832232907414436, -0.005729353055357933, 0.002616345416754484, -0.09727483987808228, -0.009285809472203255, 0.018358763307332993, 0.05381689593195915, 0.005849084351211786, 0.026819758117198944, -0.057364482432603836, -0.005281470250338316, 0.02415906824171543, 0.04477054998278618, -0.04012320935726166, 0.008531946688890457, 0.05665496364235878, 0.011361147277057171, 0.013099465519189835, 0.07183863967657089, -0.018589356914162636, -0.06211824715137482, 0.0010470924898982048, -0.02009708061814308, 0.004931145813316107, -0.0006873449892736971, -0.0014024055562913418, -0.015165934339165688, -0.020292198285460472, -0.030083538964390755, -0.019103756174445152, -0.0071040429174900055, -0.010687106288969517, -0.015689203515648842, -0.010926567949354649, -0.013055120594799519, -0.02000839076936245, -0.011396623216569424, -0.026731068268418312, 0.03613217547535896, 0.06116040050983429, -0.024992750957608223, -0.019777797162532806, -0.05516497790813446, 0.01369368564337492, 0.04579934850335121, -0.039945829659700394, 0.0681491494178772, -0.01260280329734087, -0.07219339907169342, -0.013551782816648483, 0.04991455003619194, -0.05016288161277771, 0.005982118658721447, 0.0014323382638394833, -0.05115620419383049, -0.060096126049757004, -0.040336064994335175, 0.065736785531044, 0.012194829992949963, -0.032903868705034256, 0.030420558527112007, -0.011627216823399067, -0.013214761391282082, 0.03480182960629463, 0.05590997263789177, -0.010013064369559288, 0.02545393630862236, -0.010979781858623028, -0.05101430043578148, 0.010704844258725643, -0.04274842515587807, 0.003951124846935272, -0.00248331087641418, -0.010926567949354649, 0.016283424571156502, 0.013525175862014294, -0.009037477895617485, -0.009330153465270996, 0.02222563326358795, -0.01557390671223402, -0.027476061135530472, -0.011086209677159786, 0.0035231972578912973, 0.023733356967568398, 0.03134293109178543, -0.02525882050395012, -0.016106044873595238, 0.034730877727270126, 0.016221342608332634, 0.01995517686009407, 0.03313446417450905, 0.049595266580581665, -0.025968337431550026, -0.015041769482195377, -0.08521304279565811, -0.023094791918992996, 0.03418100252747536, -0.04079725220799446, -0.002470007399097085, -0.011050733737647533, -0.03272648900747299, 0.004869063384830952, 0.0046296012587845325, -0.04193247854709625, -0.00797320157289505, -0.013525175862014294, 0.007321332581341267, -0.017454128712415695, 0.03281518071889877, -0.003740487154573202, -0.03707228600978851, -0.04292580485343933, -0.02208372950553894, -0.04643791541457176, 0.03817203640937805, -0.03700133413076401, 0.05101430043578148, -0.03510337322950363, -0.07591836154460907, -0.041329387575387955, 0.03348921984434128, 0.015272362157702446, 0.06016707792878151, 0.03430516645312309, -0.019174708053469658, 0.03476635366678238, 0.056725915521383286, 0.0017527297604829073, 0.01664705201983452, 0.007671657018363476, 0.0387396514415741, -0.033347319811582565, -0.05857066065073013, -0.01326797530055046, 0.015334445051848888, 0.011875547468662262, 0.05654853582382202, -0.01431451365351677, -0.024797633290290833, -0.004842456430196762, 0.013179285451769829, -0.01867804490029812, -0.017294486984610558, -0.05615830421447754, -0.027547013014554977, 0.03717871382832527, -0.02456703968346119, -0.0046606422401964664, 0.04657981917262077, 0.019352087751030922, 0.009667174890637398, 0.051333583891391754, 0.024637991562485695, 0.015520693734288216, 0.14289680123329163, 0.006354615092277527, -0.013436486013233662, -0.04604768007993698, -0.06708487123250961, -0.03045603446662426, 0.010687106288969517, -0.039839401841163635, 0.025241082534193993, 0.0013270193012431264, 0.023892998695373535, 0.013791244477033615, -0.00851864367723465, 0.018500667065382004, 0.013613864779472351, 0.03164447471499443, -0.07577645778656006, -0.013099465519189835, -0.04352889209985733, 0.013613864779472351, 0.005716049578040838, 0.012434292584657669, 0.008434387855231762, 0.013055120594799519, 0.02015029452741146, 0.09174060076475143, -0.031573522835969925, 0.04916955530643463, -0.010057409293949604, 0.027351895347237587, -0.00059754669200629, -0.02155159041285515, -0.017418652772903442, -0.02981746941804886, -0.05076596885919571, -0.06218919903039932, 0.05562616512179375, 0.011511920019984245, -0.012638279236853123, -0.03299256041646004, -0.011254719458520412, 0.03272648900747299, 0.026216669008135796, -0.030136751011013985, 0.004984359722584486, 0.02818557806313038, -0.0004040923377033323, -0.05420713126659393, 0.02752927504479885, 0.07155483216047287, -0.00918825063854456, 0.021817659959197044, -0.04040701687335968, 0.035724200308322906, -0.017640376463532448, 0.00883792620152235, -0.008979829959571362, -0.06165706366300583, -0.0381365604698658, 0.0012261347146704793, -0.005259297788143158, -0.05417165532708168, 0.01871352083981037, -0.05168834328651428, -0.04161319509148598, -0.03774632513523102, -0.019281135872006416, -0.048460040241479874, -0.01050085760653019, -0.004359097685664892, -0.04441579058766365, -0.006030898075550795, -0.0412939116358757, -0.006727111991494894, -0.05289452150464058, -0.035032421350479126, 0.0008575182873755693, 0.04537363722920418, 0.06030897796154022, 0.02570226788520813, 0.025081440806388855, -0.009516402147710323, 0.023289909586310387, 0.02822105400264263, -0.04193247854709625, -0.027671178802847862, -0.0488147959113121, 0.019831011071801186, -0.022207895293831825, 0.012141617015004158, -0.0005318609182722867, 0.023112529888749123, 0.08031737059354782, -0.02600381337106228, -0.020682431757450104, 0.04402555525302887, -0.009015305899083614, -0.007312463596463203, -0.020664693787693977, -0.04987907409667969, -0.0035852801520377398, -0.02501048892736435, -0.009746995754539967, -0.027759868651628494, -0.02268681861460209, -0.05903184786438942, -0.02431870996952057, -0.004101897589862347, -0.010288001969456673, -0.04675719887018204, -0.04143581539392471, -0.035724200308322906, -0.025312034413218498, -0.08989585191011429, -0.04015868529677391, -0.00342342141084373, -0.022846460342407227, 0.036327291280031204, -0.0406198725104332, 0.006833539344370365, 0.0025542627554386854, 0.050340261310338974, 0.0019079366466030478, 0.007321332581341267, -0.02976425550878048, 0.006993181072175503, -0.01876673474907875, 0.029090214520692825, -0.06726224720478058, -0.03923631086945534, -0.018411977216601372, -0.024034902453422546, -0.05853518471121788, -0.006101849488914013, 0.015157065354287624, 0.02564905397593975, 0.01326797530055046, 0.04093915596604347, -0.056832343339920044, 0.0327974408864975, -0.039945829659700394, 0.018163645640015602, 0.03371981531381607, -0.022296585142612457, 0.058960895985364914, 0.015627121552824974, 0.02550715021789074, -0.021959563717246056, -0.01275357510894537, 0.006762587931007147, -0.033950407058000565, -0.02813236601650715, -0.08670302480459213, 0.0017882055835798383, -0.03327636793255806, 0.03480182960629463, 0.03849131986498833, 0.007095173932611942, 0.019919700920581818, -0.02020350843667984, 0.040974631905555725, -0.03228304162621498, -0.01517480332404375, 0.03114781342446804, 0.024052640423178673, 0.04714743047952652, 0.022473962977528572, -0.04090368002653122, 0.012425423599779606, 0.05392332375049591, 0.0005870147724635899, 0.005733787547796965, 0.0013636037474498153, -0.011032995767891407, 0.01082014013081789, -0.028540337458252907, 0.004168414976447821, 0.008784712292253971, -0.01926339790225029, 0.05491664633154869, -0.03618538752198219, -0.08159450441598892, -0.008802450262010098, 0.05789662152528763, -0.03375529125332832, -0.0023391901049762964, 0.02965782769024372, 0.054242607206106186, 0.012585065327584743, -0.03966202214360237, 0.0007566338172182441, -0.01012836117297411, 0.06924889981746674, 0.026660116389393806, 0.012939823791384697, 0.048601943999528885, -0.00024375802604481578, 0.0021651366259902716, -0.034500282257795334, 0.0067980638705194, 0.006971008609980345, -0.03717871382832527, -0.0015443089650943875, 0.04590577632188797, -0.0321943536400795, -0.008350132964551449 ]
20,498
metevolsim.metevolsim
update_initial_concentrations
Update initial concentrations in the mutant model. Parameters ---------- None Returns ------- None
def update_initial_concentrations( self ): """ Update initial concentrations in the mutant model. Parameters ---------- None Returns ------- None """ for species_item in self.species.items(): species_id = species_item[0] if not self.species[species_id]["constant"]: self.set_species_initial_value(species_id, self.species[species_id]["mutant_value"])
(self)
[ 0.05292576178908348, -0.011156448163092136, 0.04606301710009575, -0.004212861880660057, -0.009818034246563911, -0.01565675437450409, -0.0023826472461223602, -0.04706907272338867, 0.05835127830505371, 0.06499844044446945, -0.0766758844256401, 0.015683703124523163, 0.027486901730298996, 0.04013447090983391, -0.005694998893886805, -0.030002042651176453, -0.007051378488540649, -0.0017111944034695625, 0.032571081072092056, -0.05673440173268318, 0.01489323005080223, -0.01870187185704708, -0.04742838069796562, 0.03826608136296272, -0.015764547511935234, -0.026929978281259537, -0.01806410402059555, -0.00041572816553525627, 0.03801456466317177, -0.03406219929456711, 0.037008509039878845, 0.04520068317651749, -0.002479210728779435, -0.010213270783424377, 0.02130684070289135, -0.09032950550317764, 0.054866012185811996, 0.030523037537932396, -0.037511538714170456, 0.05694998800754547, 0.01721075363457203, 0.0011475333012640476, 0.024217218160629272, -0.017938347533345222, -0.010455802083015442, 0.0517759807407856, -0.011785234324634075, 0.1102350503206253, 0.02207934856414795, -0.017731746658682823, -0.033128004521131516, -0.0019806737545877695, 0.006669615861028433, 0.02639102004468441, 0.0033752298913896084, 0.010581559501588345, 0.03902062028646469, 0.022690167650580406, 0.04124831780791283, -0.04832664504647255, 0.035229943692684174, -0.005591698456555605, -0.0247022807598114, -0.054866012185811996, -0.0014226268976926804, -0.06065083667635918, 0.02978646010160446, 0.05540497228503227, 0.02349860593676567, 0.005843212362378836, -0.03593059256672859, -0.0037816946860402822, -0.01715685799717903, -0.014390201307833195, -0.005075195804238319, -0.019312692806124687, 0.012952977791428566, -0.023480640724301338, 0.025492753833532333, 0.003139435313642025, -0.03999074921011925, -0.023660294711589813, -0.005043756682425737, 0.003590813372284174, -0.048362575471401215, -0.006081252358853817, 0.027971964329481125, -0.004585641901940107, 0.024181287735700607, -0.013545832596719265, -0.00002835148188751191, 0.03826608136296272, 0.024307044222950935, 0.029660703614354134, 0.04861408844590187, 0.12065492570400238, -0.02152242325246334, -0.06111793592572212, -0.015297449193894863, -0.017129909247159958, 0.015647772699594498, -0.0049314736388623714, 0.04520068317651749, -0.04027819260954857, -0.007091800216585398, -0.01791139878332615, 0.009139844216406345, -0.015548963099718094, 0.01933065801858902, -0.002676828997209668, -0.056554749608039856, 0.0018414427759125829, -0.030289487913250923, -0.004264512099325657, -0.03266090899705887, -0.02491786517202854, -0.00004761505260830745, -0.007428649812936783, 0.03289445489645004, 0.03090030886232853, -0.021612251177430153, -0.013851243071258068, 0.012216401286423206, 0.004385777749121189, 0.03470895066857338, 0.06683089584112167, 0.036721065640449524, 0.033613067120313644, 0.022259000688791275, -0.027433006092905998, -0.006045321933925152, -0.03521198034286499, -0.0136895552277565, 0.0023601907305419445, -0.0136895552277565, -0.050769925117492676, -0.014929160475730896, -0.07610099017620087, 0.04911711812019348, 0.05483008176088333, 0.014938143081963062, 0.04699721187353134, -0.016051990911364555, 0.03165484964847565, -0.017327528446912766, 0.024163322523236275, -0.03357713669538498, 0.01954624243080616, -0.06970534473657608, -0.026912013068795204, -0.015432189218699932, 0.04196693003177643, 0.026283226907253265, -0.017731746658682823, -0.0495123527944088, 0.0014181354781612754, 0.019923511892557144, -0.05526125058531761, 0.025223275646567345, 0.005138074513524771, -0.009050017222762108, -0.017408370971679688, 0.04387125000357628, 0.05213528871536255, -0.06277073919773102, 0.022169174626469612, -0.04254182055592537, -0.07875985652208328, -0.038912829011678696, 0.014965090900659561, -0.0031618920620530844, -0.021773938089609146, -0.036523446440696716, -0.028888195753097534, 0.09155114740133286, 0.011300170794129372, 0.01241401955485344, -0.07725077122449875, 0.019366588443517685, -0.002423069206997752, -0.03147519752383232, -0.029804425314068794, -0.0038355905562639236, 0.018522219732403755, -0.025223275646567345, 0.010931882075965405, -0.018576115369796753, -0.003563865553587675, 0.06923824548721313, -0.04875781387090683, 0.06794475018978119, -0.009620415978133678, -0.04480544850230217, 0.04135610908269882, 0.03479877859354019, 0.014794420450925827, 0.06898673623800278, -0.06711834669113159, -0.004412725567817688, -0.006081252358853817, -0.06776509433984756, -0.06338156014680862, 0.007114257197827101, -0.004432936664670706, 0.035463493317365646, 0.026912013068795204, -0.005425519309937954, 0.04775175452232361, -0.014210549183189869, -0.02087567374110222, -0.013429058715701103, 0.04803920164704323, 0.030433211475610733, -0.012548758648335934, -0.0059195649810135365, -0.10513290762901306, 0.06740579009056091, -0.0645313411951065, -0.021917659789323807, -0.029265467077493668, -0.040673427283763885, -0.02292371727526188, 0.01566573791205883, 0.016393331810832024, -0.04983573034405708, 0.030289487913250923, -0.05378809571266174, 0.035391632467508316, -0.02781027741730213, 0.02448669821023941, -0.0037098336033523083, 0.013015856966376305, -0.012360122986137867, -0.054362982511520386, -0.02441483736038208, -0.011964886449277401, 0.028115687891840935, 0.007280435878783464, -0.054434847086668015, 0.042793333530426025, -0.06622008234262466, -0.048650018870830536, 0.01968996413052082, 0.014677646569907665, -0.04861408844590187, 0.014336305670440197, 0.04412276670336723, -0.014228514395654202, -0.05059027299284935, 0.013114665634930134, 0.013698537833988667, 0.0045654308050870895, -0.00987192988395691, 0.026157470420002937, 0.022097313776612282, -0.08853297680616379, -0.0022827154025435448, 0.08752691745758057, 0.017695816233754158, -0.030954204499721527, -0.027361145243048668, -0.013932086527347565, 0.01664484664797783, 0.05360844358801842, -0.07875985652208328, 0.01735447533428669, -0.012494863010942936, 0.07139408588409424, -0.01153371948748827, -0.006391153670847416, 0.07753821462392807, 0.03677495941519737, -0.010770194232463837, -0.013402110897004604, 0.01918693631887436, 0.013707520440220833, 0.0011346207465976477, -0.00029783090576529503, -0.040242262184619904, 0.0007792446995154023, 0.03260701149702072, -0.044985100626945496, 0.020408576354384422, 0.010779177770018578, -0.03670309856534004, -0.02391180768609047, -0.008829942904412746, 0.0071412050165236, -0.00997972209006548, 0.006849268916994333, -0.005430010613054037, 0.0009937053546309471, 0.02709166519343853, 0.021612251177430153, 0.040960874408483505, -0.07854427397251129, -0.03152909502387047, 0.03449336811900139, -0.012710446491837502, -0.007720585912466049, -0.002802586182951927, -0.012728411704301834, -0.06431575864553452, -0.01678856834769249, 0.023265058174729347, -0.001093075959943235, 0.05820755660533905, 0.004161211661994457, 0.01685144752264023, 0.03436760976910591, 0.016043009236454964, 0.02878040261566639, -0.012503845617175102, 0.005070704501122236, 0.0029912216123193502, -0.03902062028646469, 0.02448669821023941, -0.024935830384492874, 0.07430446147918701, 0.042146582156419754, 0.03826608136296272, -0.03237346187233925, -0.03761932998895645, 0.048721879720687866, -0.057956043630838394, -0.04397904500365257, 0.06334563344717026, 0.03442150726914406, -0.048362575471401215, 0.005650085397064686, -0.07222048938274384, -0.024468732997775078, 0.008555972017347813, -0.03605634719133377, 0.03400830551981926, -0.028978021815419197, -0.019079143181443214, -0.07566982507705688, 0.033900514245033264, -0.04566778242588043, 0.04340415447950363, -0.00807989202439785, -0.016752637922763824, 0.013887173496186733, 0.0036267440300434828, 0.02610357478260994, 0.0632019117474556, -0.030666759237647057, -0.01722871884703636, -0.03506825864315033, -0.03823014721274376, 0.04706907272338867, -0.008928751572966576, 0.026283226907253265, 0.04365566745400429, 0.0676213726401329, -0.016204696148633957, -0.08925158530473709, -0.01555794570595026, -0.010904934257268906, 0.044266488403081894, 0.020336713641881943, 0.02667846344411373, -0.023318953812122345, 0.009880912490189075, -0.023660294711589813, -0.04268554225564003, 0.01819884404540062, 0.003244981402531266, -0.03156502544879913, 0.006328275427222252, 0.005825247149914503, -0.003332562278956175, 0.006804355885833502, 0.0020098674576729536, 0.02398367039859295, -0.06931011378765106, 0.01961810328066349, -0.02822347916662693, -0.021576320752501488, -0.004837155807763338, -0.06223178282380104, -0.07232827693223953, 0.014587819576263428, -0.021486492827534676, -0.03646954894065857, 0.05159632861614227, -0.017650902271270752, -0.03111589141190052, 0.01792936585843563, 0.06726206839084625, -0.0388050377368927, 0.009898877702653408, -0.02639102004468441, 0.022205105051398277, 0.05324913561344147, 0.03625396639108658, -0.02829534001648426, -0.01594419963657856, 0.04002667963504791, 0.027433006092905998, -0.06460320204496384, 0.015764547511935234, 0.013141613453626633, -0.04854222759604454, -0.07193304598331451, -0.005632120184600353, 0.026768289506435394, -0.03097216971218586, 0.015144743956625462, -0.038122355937957764, 0.055764276534318924, 0.04965607821941376, -0.0023601907305419445, 0.001973936799913645, -0.07746635377407074, 0.006332766730338335, -0.06571704894304276, 0.009656346403062344, 0.05001538246870041, 0.026983873918652534, 0.009889895096421242, 0.03307411074638367, 0.05935733765363693, 0.01245893258601427, -0.005317727569490671, 0.03873317688703537, -0.021109221503138542, -0.042865194380283356, 0.0372600220143795, -0.035589251667261124, 0.010626472532749176, -0.0073972102254629135, 0.014947125688195229, -0.002251276047900319, -0.013204492628574371, 0.02518734522163868, 0.011812182143330574, -0.03955958038568497, 0.004491324070841074, 0.008214631117880344, 0.012863151729106903, -0.0024500172585248947, -0.038481663912534714, -0.01748921535909176, 0.04042191430926323, 0.01954624243080616, -0.009530588984489441, 0.00048001023242250085, 0.027882138267159462, -0.037152230739593506, -0.017965296283364296, -0.02082177810370922, -0.0038108883891254663, 0.05357251316308975, 0.04387125000357628, -0.010860021226108074, -0.009081456810235977, 0.006894181948155165, -0.03995481878519058, -0.004264512099325657, -0.01827968843281269, -0.00033684930531308055, 0.032499220222234726, 0.02419925294816494, 0.009377884678542614, 0.003316842718049884, 0.025510719045996666, -0.048578158020973206, 0.0016932290745899081, 0.01666281186044216, -0.010267166420817375, 0.061549101024866104, -0.019636068493127823, -0.028385166078805923, -0.05996815487742424, -0.054722290486097336, -0.014237497001886368, -0.010267166420817375, -0.04085308313369751, -0.019168971106410027, 0.029463084414601326, 0.008973665535449982, -0.014578836970031261, 0.0060049002058804035, -0.059644781053066254, -0.02455855906009674, -0.08608969300985336, 0.05357251316308975, -0.05960885062813759, -0.050949577242136, -0.008088874630630016, 0.06122572720050812, 0.009692276827991009, -0.031061995774507523, 0.016060974448919296, -0.02800789661705494, -0.02137870155274868, 0.07031616568565369, 0.04545219615101814, 0.00807540025562048, 0.05623137578368187, -0.008102348074316978, -0.004134263843297958, -0.03769119083881378, 0.002587002469226718, -0.06521402299404144, -0.04552406072616577, 0.009076965972781181, 0.024989726021885872, 0.06873521953821182, -0.0768914669752121, 0.022833891212940216, 0.005317727569490671, 0.02202545292675495, -0.030505072325468063, -0.01048274990171194, 0.022169174626469612, 0.04875781387090683, 0.0059195649810135365, -0.03754746913909912, -0.07372957468032837, -0.021001430228352547, 0.028798367828130722, -0.007567880675196648, 0.0074241585098207, -0.0035975503269582987, -0.08680830895900726, -0.01721075363457203, -0.032427359372377396, -0.029085813090205193, -0.045056961476802826, -0.029606807976961136, 0.09291651099920273, -0.022348826751112938, -0.03593059256672859, 0.06765729933977127, -0.0861615538597107, -0.0471409372985363, 0.02581612952053547, -0.03733188286423683, 0.0024410344194620848, 0.08005335927009583, -0.02080381289124489, 0.03866131603717804, -0.017300579696893692, -0.04527254402637482, -0.03138536959886551, -0.046242669224739075, 0.004994352348148823, -0.06352528184652328, 0.012566723860800266, -0.054362982511520386, 0.005551276262849569, 0.02935529313981533, -0.03794270381331444, 0.017480231821537018, -0.009755155071616173, 0.015854373574256897, 0.07732263207435608, 0.04387125000357628, -0.06780102849006653, 0.0919104516506195, -0.011839129962027073, 0.056339167058467865, 0.025169378146529198, -0.038481663912534714, 0.031708747148513794, -0.01933065801858902, 0.001481014071032405, 0.01863001100718975, 0.02716352604329586, 0.01722871884703636, 0.05116516351699829, -0.04236216843128204, -0.034601159393787384, 0.02639102004468441, -0.02272609807550907, -0.03600245341658592, -0.030810480937361717, 0.030954204499721527, 0.001293501234613359, 0.0314931645989418, 0.0019413747359067202, 0.10010262578725815, 0.056914057582616806, -0.03607431426644325, 0.08910786360502243, -0.019528275355696678, 0.009827016852796078, -0.05953698977828026, 0.031133856624364853, -0.05536904186010361, -0.02060619369149208, -0.013150596059858799, 0.028528889641165733, -0.006552841514348984, -0.023893842473626137, 0.03833794221282005, 0.05500973388552666, -0.05842314288020134, -0.015629807487130165, -0.012117591686546803, 0.031996190547943115, -0.026480846107006073, -0.04670976847410202, 0.03837387263774872, -0.001561857876367867, 0.017543110996484756, 0.0011598843848332763, 0.02948104962706566, 0.011488806456327438, 0.00008231754327425733, 0.009494658559560776, -0.009270092472434044, -0.031870435923337936, 0.003788431640714407, -0.04994352161884308, 0.03718816116452217, -0.00850656721740961, -0.050841785967350006, 0.018647976219654083, -0.05242273211479187, -0.013563797809183598, -0.019851651042699814, 0.013563797809183598, -0.008115822449326515, -0.03955958038568497, -0.038769107311964035, -0.032571081072092056, 0.04085308313369751, -0.011515754275023937, -0.021773938089609146, -0.005569241475313902, 0.015854373574256897, 0.0373678132891655, -0.015998095273971558, -0.0002822516253218055, -0.00470690755173564, 0.04200286045670509, 0.0396314412355423, -0.013653624802827835, 0.04832664504647255, 0.05138074606657028, -0.04063749685883522, 0.016051990911364555, -0.046601977199316025, -0.03995481878519058, -0.03282259404659271, 0.01735447533428669, -0.05001538246870041, 0.022833891212940216, -0.012566723860800266, 0.030990134924650192, 0.01819884404540062, -0.09507234394550323, -0.01870187185704708, -0.06798067688941956, 0.04132017865777016, -0.006040830630809069, -0.008115822449326515, 0.03490656986832619, 0.028888195753097534, -0.019025247544050217, 0.10477360337972641, -0.034403540194034576, 0.0049314736388623714, -0.03977516293525696, 0.019025247544050217, 0.029283432289958, 0.013734468258917332, -0.01897135190665722, 0.020300783216953278, -0.0011396734043955803, 0.00619353586807847, 0.015126778744161129, 0.011138482950627804, 0.06578890979290009, 0.0807001069188118, 0.06101014465093613, 0.05497380346059799, 0.017183804884552956, 0.025780199095606804, 0.02461245469748974, 0.00749601935967803, -0.020480437204241753, -0.015890303999185562, -0.002739707473665476, 0.01778564229607582, 0.013734468258917332, -0.01341109350323677, -0.02540292777121067, -0.01891745626926422, -0.010213270783424377, -0.015153726562857628, 0.02152242325246334, -0.042577750980854034, 0.0017055802745744586, -0.032768700271844864, 0.0647469237446785, 0.06471099704504013, 0.0533209964632988, -0.0426136814057827, -0.010716298595070839, -0.017893433570861816, 0.02067805454134941, 0.018387479707598686, -0.006566315423697233, -0.022474585101008415, 0.015899285674095154, 0.04365566745400429, 0.09722817689180374, -0.0354095958173275, -0.029804425314068794, -0.008578428998589516, 0.0426136814057827, -0.018252739682793617, -0.011416945606470108, 0.003950119484215975, -0.006018374115228653, 0.017462266609072685, -0.03945178911089897, 0.003936645574867725, 0.02137870155274868, 0.021558355540037155, 0.009359918534755707, 0.037511538714170456, 0.0019234094070270658, -0.009755155071616173, 0.0013350460212677717, 0.014659681357443333, 0.019366588443517685, -0.01968996413052082, 0.01146185863763094, 0.037224091589450836, -0.008425723761320114, 0.009094931185245514, 0.01200081780552864, -0.06018374115228653, 0.0036581833846867085, -0.0037974142469465733, -0.04063749685883522, 0.015234570950269699, -0.0005633804248645902, -0.011596598662436008, 0.018378498032689095, -0.0030900307465344667, -0.01588132046163082, 0.03666716814041138, 0.018387479707598686, 0.025474788621068, 0.056195445358753204, 0.01643824577331543, -0.01706703007221222, 0.031708747148513794, 0.007343314588069916, 0.0010133549803867936, -0.002022218657657504, -0.012791290879249573, 0.01537829264998436, 0.029822390526533127, -0.05483008176088333, 0.08429316431283951, 0.04232623800635338, 0.012009800411760807, 0.06726206839084625, -0.005470432341098785, -0.028169583529233932 ]
20,499
metevolsim.metevolsim
write_list_of_variables
null
def write_list_of_variables( self ): #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Write the list of species # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# f = open("output/list_of_species.txt", "w") f.write("id metaid name compartment kegg_id\n") for species_id in self.species.keys(): f.write(species_id+" "+self.species[species_id]["metaid"]+" "+self.species[species_id]["name"]+" "+self.species[species_id]["compartment"]+" "+self.species[species_id]["kegg_id"]+"\n") f.close() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Write the list of parameters # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# f = open("output/list_of_parameters.txt", "w") f.write("id metaid\n") for parameter_metaid in self.parameters.keys(): f.write(self.parameters[parameter_metaid]["id"]+" "+parameter_metaid+"\n") f.close() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Write the list of reactions # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# f = open("output/list_of_reactions.txt", "w") f.write("id metaid name compartment\n") for reaction_id in self.reactions.keys(): f.write(reaction_id+" "+self.reactions[reaction_id]["metaid"]+" "+self.reactions[reaction_id]["name"]+" "+self.reactions[reaction_id]["compartment"]+"\n") f.close()
(self)
[ 0.004393166396766901, 0.0000402797304559499, -0.02984795719385147, -0.05585988610982895, 0.054763879626989365, -0.007064686622470617, -0.0693407878279686, -0.0290076844394207, -0.014823511242866516, 0.03032289445400238, -0.0537044033408165, -0.009023801423609257, -0.011234084144234657, 0.03759308159351349, 0.05074518173933029, 0.0022844921331852674, 0.005749476607888937, 0.012457960285246372, -0.007735991384834051, -0.004180814605206251, -0.00607371237128973, 0.020184818655252457, -0.012686295434832573, -0.04888196662068367, 0.04625154659152031, -0.0018038469133898616, 0.04004083573818207, -0.009274969808757305, 0.005699242930859327, 0.03653360903263092, -0.0634588748216629, -0.03627787157893181, 0.008083061315119267, -0.014302907511591911, -0.02497072145342827, 0.009434804320335388, -0.01611132174730301, 0.03315424919128418, -0.023600710555911064, 0.07018106430768967, 0.07094826549291611, -0.020860690623521805, -0.023692045360803604, -0.00541610736399889, -0.052791062742471695, 0.022066298872232437, -0.03744694963097572, 0.055604152381420135, 0.06130339577794075, -0.04077150672674179, -0.020002150908112526, -0.0480416938662529, -0.03180250525474548, -0.002751437481492758, 0.012083491310477257, -0.022358568385243416, 0.032186109572649, 0.02016655169427395, 0.03993123397231102, -0.023692045360803604, 0.003135040169581771, 0.019618548452854156, -0.004484500270336866, -0.05640789121389389, 0.02005695179104805, 0.011097083799540997, -0.055896420031785965, -0.0044822171330451965, -0.017444798722863197, 0.04058884084224701, 0.07083866745233536, -0.06590662896633148, 0.021609628573060036, 0.030907433480024338, 0.043073125183582306, 0.015389782376587391, -0.02073282189667225, -0.05717509612441063, -0.008037393912672997, -0.044790204614400864, -0.04197711497545242, 0.00032166700111702085, -0.041209910064935684, -0.0008733815629966557, 0.027254071086645126, 0.015334982424974442, -0.0027240372728556395, 0.020495355129241943, 0.01919841207563877, -0.034688662737607956, -0.03258797898888588, 0.04453446716070175, -0.02363724447786808, 0.0113893523812294, -0.01780099980533123, -0.01601085439324379, -0.0051375385373830795, -0.06477408856153488, -0.0008636773563921452, 0.015371515415608883, -0.041684847325086594, 0.008736099116504192, 0.010375544428825378, 0.01526191458106041, -0.03485306352376938, -0.06842745095491409, -0.012019556947052479, 0.04574007913470268, 0.0006187880062498152, -0.0004872099088970572, -0.07555150240659714, 0.05330253392457962, 0.05896524339914322, 0.0005154663813300431, 0.041867516934871674, -0.03532800078392029, -0.02864234894514084, 0.03788535296916962, -0.004292699042707682, -0.046653419733047485, -0.003530059941112995, -0.0011793505400419235, -0.005754043348133564, 0.021627895534038544, -0.019326278939843178, 0.04069843888282776, -0.019326278939843178, 0.004626068286597729, 0.027546340599656105, -0.05520228296518326, -0.03425025939941406, 0.0008750940905883908, 0.01582818664610386, 0.030395962297916412, 0.038652557879686356, -0.04113684222102165, -0.03406758978962898, -0.058819111436605453, 0.06382421404123306, -0.047493692487478256, -0.007050986401736736, -0.04230592027306557, -0.022559503093361855, 0.003002605866640806, -0.02025788649916649, -0.0029318220913410187, 0.027381939813494682, -0.03194864094257355, -0.05743083357810974, -0.07430935651063919, -0.008420996367931366, 0.01054907962679863, -0.11011229455471039, -0.09871380776166916, -0.011809488758444786, 0.0024865686427801847, -0.013499168679118156, -0.012037823908030987, -0.002179458038881421, -0.018495138734579086, -0.025847528129816055, -0.01809326931834221, 0.003404475748538971, 0.08176221698522568, -0.00008619647996965796, 0.013170366175472736, 0.007845592685043812, -0.024714985862374306, 0.06265513598918915, 0.0036556441336870193, 0.002388384658843279, -0.05998818576335907, -0.03905442729592323, 0.026121530681848526, -0.042342450469732285, -0.02599366195499897, 0.011681620962917805, -0.068902388215065, 0.023600710555911064, 0.061559129506349564, -0.040260035544633865, -0.09089561551809311, -0.04913770407438278, 0.019362812861800194, 0.0014853195752948523, -0.0180750023573637, 0.029263420030474663, 0.0004760785959661007, 0.0568828284740448, 0.04427873343229294, 0.041282977908849716, -0.01285069715231657, -0.0732133537530899, 0.02411218173801899, 0.01237575989216566, -0.018595606088638306, 0.05735776573419571, -0.05491001531481743, 0.02750980667769909, -0.011699887923896313, 0.0020127734169363976, 0.012859830632805824, -0.01022027712315321, -0.03278891369700432, 0.014156773686408997, 0.06561435759067535, -0.013161232694983482, -0.04745715856552124, -0.02318057417869568, -0.013827971182763577, 0.03381185606122017, 0.010192876681685448, 0.009352603927254677, -0.03777575120329857, 0.07986246794462204, -0.04135604575276375, -0.03569333627820015, -0.0069961859844625, -0.018202871084213257, -0.0041260141879320145, -0.0023952347692102194, -0.02107989229261875, -0.04654381796717644, 0.061084192246198654, -0.0369354784488678, 0.014531242661178112, -0.0066947839222848415, 0.0024272017180919647, -0.002324450761079788, 0.0053384737111628056, 0.026103263720870018, 0.04606888070702553, -0.014704777859151363, 0.037520017474889755, -0.043365392833948135, 0.02402084693312645, -0.050343312323093414, 0.008019126951694489, -0.05366786941885948, 0.008156128227710724, -0.061339929699897766, -0.009101435542106628, 0.04106377437710762, -0.03795842081308365, 0.0014202439924702048, -0.013818837702274323, 0.01921667717397213, 0.025829261168837547, -0.02118949219584465, -0.01120668463408947, 0.05849030613899231, -0.001811838592402637, -0.004660318605601788, 0.010147210210561752, -0.010530812665820122, -0.035474132746458054, -0.03720948100090027, 0.010265943594276905, -0.004189948085695505, -0.07076559960842133, 0.03182077407836914, 0.005347606725990772, -0.005279106553643942, -0.01313383225351572, -0.017664000391960144, -0.012357492931187153, -0.0051740724593400955, 0.009763606823980808, -0.041867516934871674, -0.050818249583244324, 0.07730511575937271, 0.08234675228595734, -0.04639768227934837, -0.025646593421697617, -0.061084192246198654, -0.023892980068922043, 0.04994144290685654, -0.01186428964138031, -0.07091173529624939, 0.004941170569509268, 0.045813143253326416, 0.01242142729461193, 0.015663783997297287, -0.0066673834808170795, 0.050525981932878494, -0.02080588974058628, -0.031601570546627045, 0.04332885891199112, -0.014019772410392761, -0.043000057339668274, 0.003550610039383173, -0.011809488758444786, 0.025080321356654167, 0.022376835346221924, 0.03465212881565094, 0.015864718705415726, -0.0022433919366449118, 0.020093483850359917, 0.018294204026460648, -0.02599366195499897, 0.02475151978433132, 0.007092086598277092, 0.11778435111045837, -0.02418524958193302, -0.07080212980508804, -0.015398915857076645, 0.04632461443543434, -0.031327567994594574, 0.017262129113078117, -0.002703486941754818, 0.03107183426618576, 0.001986515009775758, 0.06422608345746994, 0.08015473932027817, 0.0026235696859657764, 0.003153307130560279, -0.04369419440627098, -0.004772202577441931, 0.0011702171759679914, 0.048808902502059937, 0.02719927206635475, -0.019289745017886162, 0.08052007108926773, -0.010028475895524025, 0.08994574099779129, -0.03052382916212082, 0.0043178158812224865, 0.0008539730915799737, 0.042707789689302444, -0.00781819224357605, -0.06963305920362473, -0.032259177416563034, 0.0027149037923663855, 0.01863214001059532, 0.06945039331912994, 0.0190340094268322, -0.03850642219185829, -0.002033323748037219, 0.0580153688788414, -0.029537422582507133, -0.014001505449414253, -0.018887875601649284, -0.04595927894115448, 0.025646593421697617, 0.014458175748586655, 0.025372590869665146, 0.013827971182763577, 0.0018243971280753613, -0.00437718303874135, 0.05132972076535225, 0.03247837722301483, 0.056554026901721954, 0.03295331448316574, 0.07467469573020935, 0.026980070397257805, -0.009781873784959316, -0.03364745154976845, -0.027546340599656105, -0.005370440427213907, 0.037355612963438034, -0.00344785931520164, -0.0013985522091388702, 0.04066190496087074, 0.05301026627421379, 0.025555258616805077, -0.051658522337675095, 0.020184818655252457, 0.011416752822697163, 0.06948692351579666, -0.04347499459981918, -0.03618653863668442, -0.007676624692976475, 0.02626766450703144, -0.04117337614297867, 0.01186428964138031, 0.012722829356789589, 0.024349650368094444, 0.015124914236366749, 0.02343630976974964, -0.03666147589683533, -0.0324053093791008, -0.02928168699145317, 0.03605867177248001, -0.029975825920701027, -0.017928868532180786, -0.02816741168498993, 0.009681406430900097, -0.0011508086463436484, -0.03520013019442558, 0.05140278860926628, 0.03406758978962898, 0.06492022424936295, -0.032533179968595505, 0.0032811746932566166, 0.03012195974588394, -0.005548541899770498, -0.004180814605206251, -0.019161878153681755, -0.03172943741083145, 0.05096438527107239, 0.008832000195980072, -0.08461184054613113, -0.06824477761983871, 0.05406973883509636, -0.009453071281313896, -0.04278085380792618, 0.013015097938477993, 0.004418283235281706, -0.004603234585374594, -0.023892980068922043, 0.019837750121951103, 0.02939128875732422, 0.031108368188142776, -0.006708483677357435, 0.0358029380440712, 0.07284801453351974, -0.036405742168426514, 0.01770966686308384, 0.06024391949176788, 0.02128082700073719, -0.01323429960757494, -0.017362598329782486, 0.04625154659152031, 0.0806662067770958, -0.029793158173561096, -0.014028905890882015, -0.03306291624903679, 0.04482673853635788, -0.02343630976974964, 0.01809326931834221, -0.020221352577209473, -0.010914415121078491, -0.047128353267908096, -0.007329555228352547, 0.06371461600065231, -0.0128050297498703, 0.016704993322491646, -0.03392145410180092, 0.02109815925359726, 0.008740665391087532, 0.06404341757297516, -0.007178854197263718, 0.023765113204717636, 0.034323323518037796, -0.010055875405669212, 0.04811476171016693, -0.03194864094257355, 0.013974105007946491, 0.01308816485106945, 0.016257455572485924, 0.020604955032467842, 0.014558643102645874, 0.02984795719385147, -0.053996674716472626, 0.05743083357810974, 0.01097834948450327, -0.012412293814122677, -0.05582335218787193, 0.014467309229075909, -0.05717509612441063, 0.055604152381420135, -0.029884491115808487, 0.064372219145298, 0.025573525577783585, -0.022340301424264908, -0.08037393540143967, -0.07427282631397247, 0.005968678276985884, 0.0222124345600605, 0.0044822171330451965, -0.03843335434794426, 0.03344651684165001, -0.024130448698997498, -0.050818249583244324, -0.01874174177646637, 0.014786978252232075, 0.000736380519811064, -0.01237575989216566, -0.04084457457065582, -0.058161504566669464, -0.018814807757735252, -0.04036963731050491, -0.021774031221866608, -0.0037994952872395515, 0.014156773686408997, 0.004315532278269529, 0.010750014334917068, -0.04504593834280968, -0.025737926363945007, -0.019618548452854156, 0.011425886303186417, -0.0543985441327095, -0.015289315022528172, -0.0580153688788414, -0.014385107904672623, 0.0745650976896286, -0.007886692881584167, 0.042598187923431396, -0.03927363082766533, 0.018138935789465904, -0.01799280196428299, -0.008740665391087532, -0.011909956112504005, 0.01126148458570242, -0.009982808493077755, -0.002794821048155427, 0.02166442945599556, -0.027528073638677597, -0.032551445066928864, -0.025482192635536194, 0.014229840599000454, -0.07701284438371658, 0.011170150712132454, 0.0011582295410335064, -0.04099071025848389, -0.016823725774884224, -0.07438242435455322, 0.0706925317645073, -0.008845699951052666, 0.060499656945466995, -0.034798260778188705, -0.02939128875732422, -0.036223072558641434, 0.02250470221042633, -0.021883631125092506, 0.059549782425165176, -0.032259177416563034, 0.016978994011878967, -0.01676892675459385, 0.06696610152721405, -0.033464785665273666, -0.03099876642227173, -0.02590232901275158, -0.008037393912672997, 0.041027240455150604, -0.020385753363370895, 0.08139687776565552, -0.042050182819366455, 0.014796111732721329, 0.013855370692908764, 0.021792298182845116, 0.0021634746808558702, -0.020385753363370895, -0.08505024015903473, 0.010969216004014015, -0.04614194855093956, -0.0066947839222848415, -0.049101170152425766, 0.021134693175554276, -0.010311610996723175, 0.03514533117413521, -0.05549455061554909, -0.03222264349460602, -0.004950304049998522, -0.005991511978209019, -0.03709987923502922, 0.055311884731054306, -0.005804277025163174, 0.016367057338356972, 0.007877559401094913, 0.017828401178121567, 0.005498308222740889, -0.018431205302476883, -0.004025546833872795, 0.01097834948450327, 0.03220437467098236, -0.0013140682131052017, -0.04099071025848389, -0.06864664703607559, -0.017344331368803978, 0.030743030831217766, 0.03777575120329857, 0.024404451251029968, -0.033282116055488586, -0.03598560392856598, -0.0591479130089283, 0.0033245582599192858, 0.0589287094771862, 0.01214742474257946, -0.03118143416941166, -0.03211304172873497, 0.043840330094099045, -0.02204803191125393, -0.03428679332137108, 0.07029066234827042, 0.0632396787405014, 0.01723472960293293, 0.010813947767019272, 0.04994144290685654, 0.01393757201731205, -0.027455007657408714, 0.045922745019197464, 0.025683127343654633, -0.07533229887485504, -0.008900499902665615, 0.028861550614237785, 0.01432117447257042, -0.0018004218582063913, -0.011553754098713398, -0.006484715733677149, -0.04069843888282776, -0.01181862223893404, -0.016367057338356972, 0.01191908959299326, -0.004959437530487776, -0.05114705115556717, 0.05227959528565407, -0.009434804320335388, -0.024166982620954514, 0.04230592027306557, 0.007192553952336311, 0.009407403878867626, 0.03934669494628906, -0.08380809426307678, -0.04753022640943527, 0.008370762690901756, 0.054106272757053375, 0.026998337358236313, 0.005388707388192415, -0.054471611976623535, 0.0041442811489105225, -0.01318863220512867, -0.03832375630736351, 0.01847687177360058, -0.025975394994020462, 0.04051577299833298, -0.03938322886824608, -0.05962285026907921, 0.013115565292537212, -0.02824047952890396, 0.003749261610209942, -0.01826680451631546, 0.034999195486307144, 0.02343630976974964, -0.03534626588225365, 0.06269167363643646, 0.011471552774310112, -0.0602804534137249, -0.013718370348215103, -0.00640251487493515, 0.027528073638677597, 0.055056147277355194, 0.04603234678506851, 0.00492290360853076, 0.0011314002331346273, 0.03373878821730614, -0.0035232098307460546, -0.04117337614297867, 0.015252781100571156, -0.03647880628705025, -0.044132597744464874, 0.059367112815380096, -0.05827110633254051, 0.03560199961066246, 0.03633267432451248, -0.041392579674720764, 0.01732606440782547, -0.027235805988311768, 0.033939722925424576, -0.008749798871576786, -0.010457745753228664, 0.028934618458151817, 0.04088110849261284, -0.09973675012588501, 0.006850051693618298, -0.013398701325058937, -0.006128512788563967, 0.008315962739288807, 0.018960943445563316, 0.03227744251489639, 0.05922098085284233, -0.012202225625514984, 0.05600602179765701, 0.02089722454547882, 0.011800355277955532, 0.00007592140173073858, 0.006256380584090948, 0.05874604359269142, 0.06123032793402672, -0.02327190898358822, 0.01847687177360058, 0.008786332793533802, 0.05469081178307533, -0.08117768168449402, 0.011124484241008759, 0.021116426214575768, -0.01621178910136223, 0.024349650368094444, -0.03425025939941406, 0.05308333411812782, -0.06090152636170387, -0.02411218173801899, 0.00400042999535799, 0.01106054987758398, 0.0327523797750473, 0.012339225970208645, 0.06451835483312607, -0.03927363082766533, -0.0010326452320441604, -0.005489174742251635, -0.057028964161872864, -0.015271048061549664, 0.026578200981020927, 0.07171547412872314, -0.024660184979438782, -0.03890829160809517, 0.027948210015892982, 0.002523102331906557, -0.021134693175554276, -0.009535271674394608, 0.0223220344632864, 0.06608929485082626, 0.041282977908849716, -0.010896149091422558, -0.03401279076933861, -0.0032811746932566166, 0.048553165048360825, 0.021244293078780174, 0.028404880315065384, -0.02268736995756626, 0.05140278860926628, 0.05129318684339523, 0.06601622700691223, -0.0001661137503106147, 0.024349650368094444, -0.01864127442240715, -0.044205665588378906, -0.011142750270664692, 0.02268736995756626, 0.0014019772643223405, -0.013197765685617924, 0.014905712567269802, -0.046105414628982544, -0.01976468227803707, -0.006128512788563967, -0.013453501276671886, 0.02654166705906391, 0.0034090422559529543, -0.05944018065929413, 0.05107398331165314, 0.0051695057190954685, 0.017965402454137802, 0.01656799204647541, -0.001699954504147172, -0.006758717354387045, 0.011179284192621708, 0.09864073991775513, -0.0032629079651087523, -0.04566701129078865, 0.019180145114660263, 0.04380379617214203, 0.04208671674132347, -0.041392579674720764, -0.03481652960181236, 0.026724334806203842, 0.00442741671577096, 0.08958040922880173, -0.02062322199344635, 0.02268736995756626, -0.013334766961634159, -0.009982808493077755, 0.008923334069550037, 0.015453716740012169, 0.0802278071641922, 0.04278085380792618, 0.03699027746915817, -0.025116855278611183, -0.03741041570901871 ]
20,500
metevolsim.metevolsim
write_mutant_SBML_file
Write the mutant model in a SBML file. Parameters ---------- None Returns ------- None
def write_mutant_SBML_file( self ): """ Write the mutant model in a SBML file. Parameters ---------- None Returns ------- None """ libsbml.writeSBMLToFile(self.mutant_document, "output/mutant.xml")
(self)
[ 0.023240532726049423, 0.016739869490265846, 0.08416556566953659, 0.030928734689950943, 0.020372852683067322, -0.05337757617235184, -0.06928177177906036, 0.019070960581302643, -0.03933825343847275, 0.029574062675237656, -0.04113275185227394, 0.014188864268362522, -0.026512857526540756, 0.08831754326820374, 0.014250440523028374, 0.061540793627500534, 0.03627704828977585, -0.05094972252845764, 0.021428439766168594, 0.08852866291999817, -0.033145468682050705, -0.0018538767471909523, 0.017250070348381996, 0.06150560453534126, -0.0030282186344265938, -0.009086854755878448, -0.006751365959644318, -0.0026983474381268024, 0.04081607609987259, -0.05200531333684921, -0.013476342894136906, -0.07276521623134613, 0.04285687953233719, -0.024049818515777588, 0.029204607009887695, -0.02149881236255169, 0.022132165729999542, 0.042716134339571, -0.03267045319080353, -0.025685979053378105, 0.04961264505982399, 0.02153399959206581, 0.04331430047750473, 0.04141424223780632, -0.01184018049389124, 0.0316852405667305, -0.004596206825226545, 0.060977812856435776, -0.03279360756278038, 0.013801815919578075, 0.008418316021561623, 0.048240382224321365, -0.04218834266066551, 0.02941572479903698, -0.028377728536725044, -0.03302231803536415, 0.0013073899317532778, 0.03103429265320301, 0.04553103819489479, 0.016607921570539474, 0.03509830683469772, 0.024911880493164062, 0.057459183037281036, -0.04623476415872574, 0.03362048417329788, 0.025510048493742943, -0.03247693181037903, 0.04802926257252693, -0.043701350688934326, 0.0674520879983902, -0.023416465148329735, -0.03256489709019661, 0.021973827853798866, 0.03891601786017418, 0.031526900827884674, -0.01301892101764679, -0.017153307795524597, 0.009781784377992153, -0.034447360783815384, 0.010643847286701202, -0.012939752079546452, -0.019299671053886414, 0.013010124675929546, -0.019792279228568077, -0.03346214443445206, 0.023328499868512154, 0.06671317666769028, -0.02927497960627079, -0.03560850769281387, -0.030682429671287537, -0.030260194092988968, 0.04141424223780632, 0.014443964697420597, 0.01659032702445984, 0.02297663688659668, -0.01653754897415638, -0.04053458571434021, -0.01322124246507883, -0.050140440464019775, 0.014303220435976982, -0.07656533271074295, 0.02844810113310814, -0.030541684478521347, -0.02459520474076271, 0.026794347912073135, -0.004640189930796623, -0.005876107607036829, 0.010397544130682945, 0.0009709212463349104, -0.03179079666733742, -0.054362792521715164, 0.036241862922906876, 0.01741720549762249, 0.009174820967018604, -0.02153399959206581, -0.0159393809735775, 0.0008285267977043986, -0.031667646020650864, 0.009078058414161205, 0.02797308750450611, 0.04190685227513313, -0.01283419318497181, -0.04496805742383003, 0.05330720543861389, -0.009922528639435768, 0.020460817962884903, 0.029151827096939087, 0.04254020377993584, 0.0603092722594738, -0.008809763006865978, -0.07656533271074295, -0.02950369007885456, 0.02343405783176422, 0.014593507163226604, 0.004904086701571941, 0.004246543161571026, -0.030541684478521347, -0.053940556943416595, 0.009790580719709396, 0.08142103254795074, -0.010089663788676262, -0.05140714347362518, 0.033514924347400665, -0.020408038049936295, -0.012526312842965126, 0.005779345519840717, -0.07040773332118988, 0.01945800893008709, -0.02807864546775818, -0.024067411199212074, 0.0020056175999343395, -0.0036065930034965277, -0.02464798465371132, -0.08895090222358704, -0.04433470591902733, 0.028043460100889206, 0.02413778379559517, 0.03483441099524498, 0.03729745000600815, -0.007806954439729452, -0.02742769941687584, -0.002610381692647934, 0.00014981655112933367, 0.07424303889274597, -0.008484289981424809, -0.019669126719236374, 0.06238526105880737, 0.023522023111581802, -0.035045526921749115, -0.027304548770189285, -0.031667646020650864, -0.0060828267596662045, -0.05147751793265343, 0.011708232574164867, 0.007855335250496864, -0.013810612261295319, 0.038704901933670044, 0.009042872115969658, 0.06435569375753403, 0.009051668457686901, -0.0036219870671629906, 0.032353777438402176, 0.022360876202583313, 0.012016111984848976, 0.03520386666059494, -0.01611531339585781, -0.06389827281236649, 0.03743819519877434, 0.01945800893008709, -0.02000339701771736, 0.08613599836826324, -0.004255339968949556, 0.01579863578081131, -0.011576283723115921, -0.012236026115715504, 0.012060095556080341, 0.03318065404891968, -0.060098156332969666, -0.01982746459543705, -0.032037101686000824, 0.039021577686071396, -0.058620329946279526, 0.0174699854105711, 0.027251768857240677, 0.02644248493015766, -0.010925337672233582, 0.023363685235381126, 0.021234916523098946, -0.0447569377720356, 0.0007883924408815801, 0.018842250108718872, 0.02876477874815464, 0.023152567446231842, -0.004776536487042904, 0.05693139135837555, -0.07832464575767517, -0.01612410880625248, 0.04042902961373329, -0.05851477384567261, 0.007503472734242678, -0.004017832688987255, -0.0365937240421772, 0.03562610223889351, 0.03358529880642891, -0.03627704828977585, 0.018244082108139992, 0.04085126146674156, -0.04813482239842415, -0.040604960173368454, 0.00020589467021636665, 0.0566147118806839, -0.0044004833325743675, 0.07417266070842743, 0.015094910748302937, -0.09542517364025116, -0.0182968620210886, -0.03705114498734474, 0.011681842617690563, -0.010441526770591736, 0.032213032245635986, -0.03701595962047577, -0.05668508633971214, 0.02329331263899803, 0.030471311882138252, 0.045601408928632736, 0.03562610223889351, 0.07262446731328964, -0.07677644491195679, -0.025369303300976753, -0.004934874828904867, 0.000964873586781323, 0.0193172637373209, -0.07241334766149521, 0.03157968074083328, 0.07054847478866577, -0.04095682129263878, -0.04700886085629463, -0.0017802055226638913, -0.019282078370451927, -0.048838548362255096, 0.00001314330984314438, -0.04556622356176376, 0.000691080407705158, -0.016106516122817993, -0.00704165268689394, -0.01422405056655407, -0.007323143072426319, 0.03676965460181236, -0.017980186268687248, -0.01540279109030962, 0.08782494068145752, 0.041203126311302185, -0.02751566469669342, -0.016326431185007095, -0.00949149765074253, -0.0596759207546711, 0.004767740145325661, 0.032512117177248, -0.0031623663380742073, 0.0005651795072481036, 0.0323185920715332, 0.0028456898871809244, 0.05833883956074715, 0.11125899851322174, -0.010230408981442451, 0.0012579092290252447, -0.027269361540675163, -0.036065928637981415, 0.016150498762726784, -0.04433470591902733, -0.011822587810456753, -0.010758203454315662, -0.03260008245706558, -0.006078428588807583, 0.005849718116223812, -0.03588999807834625, -0.00012150259863119572, -0.014637489803135395, 0.042082782834768295, -0.04507361724972725, -0.018824655562639236, -0.017733881250023842, 0.02357480302453041, 0.017250070348381996, -0.013625884428620338, -0.03849378228187561, 0.018613537773489952, -0.02385629341006279, 0.0012634071754291654, 0.033233433961868286, -0.03919750824570656, -0.015297232195734978, 0.007635421119630337, 0.03775487095117569, 0.016423193737864494, 0.04190685227513313, -0.0071296184323728085, -0.015306028537452221, 0.07304670661687851, 0.03933825343847275, -0.027339734137058258, -0.04771258682012558, 0.07125220447778702, 0.006597426254302263, -0.021252509206533432, -0.06090743839740753, 0.024436866864562035, 0.011470724828541279, -0.0182968620210886, -0.006667798850685358, -0.06351122260093689, -0.027902714908123016, 0.05119602754712105, -0.0042641363106667995, -0.0038375030271708965, 0.02719898894429207, 0.0036307836417108774, -0.05059786140918732, 0.056262850761413574, -0.04873298853635788, 0.03024260140955448, -0.0011963333236053586, 0.015429181046783924, 0.02246643602848053, 0.024612797424197197, 0.061083368957042694, -0.06456681340932846, -0.023733140900731087, -0.03381400927901268, 0.013678663410246372, -0.012499923817813396, 0.10140684247016907, -0.03358529880642891, 0.011338776908814907, -0.023416465148329735, 0.028043460100889206, -0.002696148119866848, -0.013828204944729805, -0.02510540559887886, 0.0066590020433068275, -0.03599555790424347, 0.024436866864562035, 0.007024060003459454, -0.0643908828496933, 0.012130467221140862, -0.050738606601953506, -0.015552332624793053, 0.005774946883320808, 0.06829655915498734, -0.010116053745150566, 0.06727615743875504, -0.032512117177248, -0.00551105011254549, 0.0223784688860178, 0.02802586741745472, 0.055383194237947464, -0.05573505535721779, 0.012631871737539768, -0.0022024407517164946, -0.06713540852069855, -0.03418346494436264, -0.014602303504943848, 0.010731813497841358, 0.016889411956071854, 0.041625361889600754, -0.005418686196208, 0.033426959067583084, -0.005682582966983318, -0.06900028139352798, 0.0365937240421772, 0.06495386362075806, 0.0038067148998379707, -0.0012996930163353682, -0.06333529204130173, -0.012913362123072147, 0.01053828839212656, 0.009693818166851997, 0.018402419984340668, 0.009922528639435768, 0.022959042340517044, 0.0056693884544074535, -0.01843760721385479, -0.10921819508075714, -0.00559461722150445, -0.07093552500009537, -0.005150390788912773, -0.020689528435468674, 0.009975308552384377, -0.005585820879787207, -0.002006717026233673, 0.012104078195989132, 0.013995340093970299, -0.005880505777895451, -0.010151240043342113, 0.03757894039154053, 0.0010517396731302142, -0.01593058556318283, -0.07047810405492783, 0.014778234995901585, 0.010810982435941696, 0.018631132319569588, 0.05851477384567261, 0.0785357654094696, 0.00850188359618187, 0.0034922375343739986, -0.024331307038664818, -0.03951418399810791, -0.007890521548688412, -0.040745705366134644, 0.07811352610588074, 0.0069712805561721325, -0.0024608399253338575, -0.03919750824570656, 0.022871077060699463, 0.02223772555589676, -0.04595327377319336, -0.02589709684252739, -0.03441217541694641, -0.033884380012750626, 0.011910553090274334, 0.054960958659648895, 0.0066634006798267365, -0.017452390864491463, 0.018138524144887924, 0.02547486126422882, -0.006650205701589584, -0.05299052596092224, -0.01977468468248844, 0.06073150783777237, 0.03237137198448181, 0.023891478776931763, 0.034077905118465424, 0.04391247034072876, -0.014092102646827698, 0.00015146590885706246, -0.012464737519621849, 0.016475971788167953, -0.1165369376540184, 0.04862742871046066, -0.016256058588624, -0.012077688239514828, -0.03969011455774307, 0.04257538914680481, 0.04517917335033417, 0.006909704301506281, -0.05974629148840904, 0.011541097424924374, -0.00862063653767109, -0.01081977877765894, 0.014162475243210793, -0.024841509759426117, -0.03729745000600815, 0.017637118697166443, -0.012200839817523956, -0.01162906363606453, -0.01250872015953064, -0.09732522815465927, -0.04363097995519638, -0.0031535697635263205, 0.0021507609635591507, -0.021041391417384148, 0.02297663688659668, -0.04053458571434021, 0.0813506618142128, -0.012667058035731316, -0.015860212966799736, 0.004684172570705414, -0.07684682309627533, 0.025791538879275322, -0.04943671450018883, 0.0061795893125236034, -0.005898098926991224, 0.0453902930021286, -0.07804315537214279, -0.022871077060699463, 0.04591808468103409, -0.046445880085229874, 0.03645297884941101, -0.02478872984647751, 0.007490277756005526, -0.012728634290397167, -0.01000169850885868, -0.053342390805482864, -0.04187166690826416, 0.01977468468248844, 0.057599928230047226, -0.030770396813750267, -0.08838792145252228, 0.0007081237272359431, -0.01065264455974102, 0.005555032752454281, -0.03252970799803734, -0.013045310974121094, 0.054820213466882706, 0.004961264319717884, -0.009781784377992153, 0.015068521723151207, 0.03757894039154053, 0.030277788639068604, -0.02728695422410965, -0.009253989905118942, -0.04243464395403862, -0.041343871504068375, -0.00760903162881732, 0.011972129344940186, -0.031667646020650864, -0.04095682129263878, 0.001898959162645042, 0.006122411694377661, 0.007688200566917658, 0.0024850305635482073, 0.00016974627214949578, -0.01806815154850483, -0.022431248798966408, 0.004539029207080603, -0.008396324701607227, 0.0629834309220314, 0.0034152676817029715, 0.045003242790699005, -0.0257563516497612, -0.03136856108903885, -0.04299762472510338, -0.012658261694014072, -0.0024146579671651125, -0.01681903935968876, 0.009324362501502037, -0.03705114498734474, -0.053799811750650406, -0.015561128966510296, 0.021921047940850258, -0.026899905875325203, 0.012605482712388039, -0.03940862417221069, 0.021833082661032677, 0.05432760715484619, -0.024102596566081047, 0.00998410489410162, 0.051020096987485886, 0.013837002217769623, 0.043384674936532974, -0.03358529880642891, -0.048803359270095825, 0.030137043446302414, 0.005845319479703903, 0.042962439358234406, 0.05161826312541962, 0.002671957714483142, -0.07410228997468948, -0.028131425380706787, -0.005036035552620888, 0.03662890940904617, 0.05767030268907547, 0.029591655358672142, -0.0005536340177059174, -0.01255270279943943, -0.02732214145362377, 0.047184791415929794, 0.05911293998360634, 0.008981295861303806, 0.04725516587495804, -0.027181396260857582, 0.07185036689043045, -0.004382890183478594, 0.03874008730053902, 0.05886663496494293, -0.00611361488699913, -0.008493086323142052, -0.004420275799930096, -0.04619957506656647, 0.05080897733569145, -0.013995340093970299, -0.014294423162937164, 0.021692337468266487, -0.06442606449127197, -0.0028214992489665747, -0.018103336915373802, 0.018683910369873047, -0.05752955749630928, 0.047044046223163605, 0.04535510763525963, -0.012781413272023201, -0.0005605063633993268, -0.0035758051089942455, 0.025087812915444374, -0.027955494821071625, 0.004508241079747677, 0.009711411781609058, -0.02927497960627079, -0.007692599203437567, 0.06326492130756378, -0.0314917154610157, 0.024243341758847237, -0.01866631768643856, 0.01250872015953064, -0.04341986030340195, -0.03390197455883026, 0.006861323490738869, 0.03038334660232067, -0.04359579086303711, 0.019141333177685738, -0.0339195691049099, -0.01926448382437229, -0.009438717737793922, -0.007688200566917658, -0.03662890940904617, 0.007169203367084265, -0.022079385817050934, 0.003802316728979349, 0.03543257713317871, -0.031614866107702255, -0.04841631278395653, -0.07670607417821884, 0.04700886085629463, -0.06027408689260483, 0.05270903557538986, -0.015042131766676903, -0.034113090485334396, 0.0012601084308698773, 0.02742769941687584, 0.047923702746629715, -0.02024970017373562, 0.019106145948171616, 0.0504923015832901, -0.05503132939338684, -0.061822280287742615, 0.06389827281236649, -0.015693077817559242, 0.005686981603503227, -0.035274237394332886, -0.025633199140429497, -0.03669928386807442, 0.03954936936497688, 0.020267292857170105, -0.01765471324324608, 0.043243929743766785, -0.05094972252845764, 0.0001628739555599168, 0.008264375850558281, -0.017531560733914375, -0.011567487381398678, -0.02204420045018196, -0.018560759723186493, 0.060203712433576584, 0.0019286476308479905, 0.04166054725646973, 0.036241862922906876, -0.005044831894338131, 0.03803636133670807, -0.04531991854310036, -0.010379950515925884, 0.009130838327109814, 0.052462734282016754, 0.027216581627726555, -0.03420105576515198, -0.029398132115602493, -0.04218834266066551, 0.03427143022418022, -0.03228340670466423, -0.011576283723115921, 0.014637489803135395, -0.0015382998390123248, 0.04623476415872574, 0.020232107490301132, -0.03497515618801117, 0.011198031716048717, 0.026002656668424606, -0.02644248493015766, 0.046305134892463684, -0.017038952559232712, -0.031210225075483322, -0.038423411548137665, -0.010582271963357925, -0.05844439938664436, -0.028641626238822937, 0.06699466705322266, 0.048240382224321365, 0.0392678827047348, 0.07424303889274597, -0.00009559395402902737, -0.013625884428620338, 0.012974938377737999, -0.00007105978147592396, -0.015455570071935654, 0.043103184551000595, -0.01373144332319498, -0.012755024246871471, 0.007595836650580168, 0.03066483698785305, -0.016467176377773285, -0.028430508449673653, 0.047923702746629715, 0.03775487095117569, 0.008625035174190998, 0.02983796037733555, 0.026970278471708298, -0.07508751004934311, -0.05119602754712105, 0.05228680372238159, -0.002511420287191868, -0.05485539883375168, -0.026794347912073135, -0.01063505094498396, -0.01667829416692257, -0.061857469379901886, -0.010010494850575924, -0.046903301030397415, -0.021287694573402405, -0.00394746009260416, 0.002971041016280651, -0.03179079666733742, -0.02482391521334648, 0.002493827138096094, -0.01292215846478939, 0.04479212686419487, 0.031386155635118484, 0.02149881236255169, -0.04225871339440346, 0.018543165177106857, -0.022132165729999542, 0.007503472734242678, 0.0464106947183609, 0.035274237394332886, 0.009860953316092491, -0.041062381118535995, -0.016704682260751724, 0.025580421090126038, -0.020267292857170105, 0.0072659654542803764, -0.021674744784832, 0.0052251615561544895, 0.06900028139352798, -0.0009626744431443512, -0.024630391970276833, 0.05429241806268692, 0.0793098583817482, -0.027533259242773056, 0.11548134684562683, -0.04211796820163727, -0.01002808753401041, -0.05594617500901222, 0.03165005147457123, -0.021745117381215096, 0.04461619257926941, -0.019721906632184982, -0.017170900478959084, 0.06555202603340149, -0.0646371841430664, -0.006412698421627283 ]
20,501
metevolsim.metevolsim
write_reaction_to_species_map
Write the reaction-to-species map. For each reaction, the list of metabolites is written, line by line. The file also indicates if the metabolite is a substrate or a product of the reaction. Parameters ---------- filename: str Name of the output (txt file). Returns ------- None
def write_reaction_to_species_map( self, filename ): """ Write the reaction-to-species map. For each reaction, the list of metabolites is written, line by line. The file also indicates if the metabolite is a substrate or a product of the reaction. Parameters ---------- filename: str Name of the output (txt file). Returns ------- None """ assert filename != "" f = open(filename, "w") for reaction in self.mutant_model.getListOfReactions(): reaction_id = reaction.getId() nb_reactants = reaction.getNumReactants() nb_products = reaction.getNumProducts() for i in range(nb_reactants): f.write(reaction_id+" substrate "+reaction.getReactant(i).getSpecies()+"\n") for i in range(nb_products): f.write(reaction_id+" product "+reaction.getProduct(i).getSpecies()+"\n") f.close()
(self, filename)
[ 0.02707519195973873, 0.002781032584607601, 0.011022414080798626, 0.008692172355949879, 0.0621027946472168, -0.04298001527786255, -0.09705642610788345, 0.0043160333298146725, 0.04050182178616524, 0.004732147790491581, -0.01960362121462822, 0.031513746827840805, -0.01874365098774433, 0.09099039435386658, 0.051339298486709595, -0.0233394056558609, -0.004422373604029417, 0.024042177945375443, -0.024190129712224007, 0.04638290777802467, 0.026927238330245018, -0.006195484194904566, 0.027260130271315575, -0.04442254826426506, 0.024190129712224007, 0.023413382470607758, -0.02559567242860794, 0.020879706367850304, 0.014332836493849754, -0.015100336633622646, -0.043090980499982834, -0.0849243700504303, 0.01934470608830452, 0.023487357422709465, -0.012548167258501053, -0.019030308350920677, -0.018466241657733917, 0.0582190565764904, -0.02147151343524456, 0.033418625593185425, 0.06961134821176529, 0.035989291965961456, 0.0297568179666996, -0.0002363762177992612, -0.028739649802446365, 0.005053480621427298, -0.027740973979234695, 0.0359153151512146, 0.03571188077330589, -0.04035387188196182, -0.026446396484971046, -0.028166336938738823, -0.01908579096198082, 0.01718091033399105, -0.007938542403280735, -0.0037103553768247366, 0.010587804950773716, 0.03835652023553848, 0.02785193920135498, -0.013805758208036423, 0.0066300928592681885, -0.007466945797204971, 0.03327067568898201, -0.042573150247335434, 0.03672904893755913, -0.023302419111132622, -0.022007839754223824, -0.009838799014687538, -0.022285249084234238, 0.04649387300014496, 0.05267086252570152, -0.04316495731472969, 0.03517555445432663, -0.006163119804114103, 0.009709341451525688, 0.06099315732717514, 0.012844070792198181, -0.04272110015153885, 0.04420061782002449, -0.016320940107107162, -0.04701170325279236, -0.03299326449632645, 0.022581152617931366, 0.008780018426477909, -0.02030639350414276, 0.019270731136202812, 0.09757425636053085, -0.017467567697167397, -0.10378823429346085, -0.043793752789497375, -0.018808379769325256, 0.03449127823114395, -0.004683601204305887, -0.03730236366391182, -0.023524345830082893, -0.00270474492572248, -0.013713288120925426, -0.024781936779618263, -0.01887311041355133, -0.01474895142018795, -0.011789914220571518, 0.037320856004953384, 0.024837419390678406, -0.007388346362859011, -0.009746328927576542, -0.008964958600699902, -0.003229511668905616, 0.05733134597539902, -0.02147151343524456, 0.012871812097728252, -0.11259137094020844, 0.06084520369768143, 0.06876062601804733, -0.032900795340538025, 0.034731701016426086, -0.045606162399053574, 0.012834824621677399, 0.01805012673139572, 0.02359832264482975, -0.015248289331793785, 0.02637241967022419, 0.0005611767992377281, 0.0018135661957785487, 0.04967483878135681, -0.022747598588466644, 0.005723887588828802, 0.009094416163861752, 0.03785718232393265, 0.05470520257949829, -0.010245666839182377, -0.07404990494251251, 0.0008848215220496058, 0.03258639946579933, 0.006842773873358965, 0.044866401702165604, -0.014665728434920311, -0.04915700852870941, -0.0692414715886116, 0.055333998054265976, 0.04449652135372162, 0.015988048166036606, -0.05492712929844856, -0.02402368374168873, 0.011789914220571518, -0.030958928167819977, -0.07982002943754196, -0.021138623356819153, 0.003772772615775466, -0.015988048166036606, -0.06395219266414642, 0.004780694376677275, 0.02966434881091118, -0.07216352224349976, -0.04867616295814514, 0.003985453397035599, 0.010347383096814156, 0.03110687993466854, 0.026557359844446182, 0.020287899300456047, -0.020805731415748596, -0.01092994399368763, 0.003157847560942173, 0.0069213733077049255, 0.06617146730422974, -0.04475544020533562, -0.03484266251325607, 0.023875731974840164, 0.022007839754223824, 0.03972507640719414, -0.012270757928490639, -0.018244314938783646, -0.026316937059164047, -0.02272910438477993, -0.0062833307310938835, 0.01743982546031475, 0.011604974046349525, -0.004297539126127958, -0.041833389550447464, 0.022229768335819244, 0.0610671304166317, -0.017245639115571976, -0.08795738220214844, -0.04113061726093292, 0.06421110779047012, -0.0012494997354224324, -0.039318207651376724, 0.03323368728160858, 0.007041584234684706, 0.044866401702165604, 0.02875814400613308, 0.11370100826025009, -0.012381721287965775, -0.052079055458307266, 0.034602243453264236, 0.024615490809082985, -0.05455724895000458, 0.036766037344932556, -0.05163520202040672, -0.03406591713428497, -0.012982776388525963, -0.08196533471345901, 0.013888981193304062, -0.008641313761472702, 0.03465772420167923, 0.03299326449632645, 0.02740808203816414, 0.06247267499566078, -0.017365850508213043, -0.020916694775223732, 0.0055528185330331326, 0.023524345830082893, -0.02563266083598137, 0.027426576241850853, -0.03132880851626396, 0.06765098869800568, -0.0671701431274414, -0.028906095772981644, 0.04963785037398338, -0.040797725319862366, 0.004066364374011755, -0.07438279688358307, 0.03452826663851738, -0.013888981193304062, 0.07264436781406403, -0.027260130271315575, 0.021785911172628403, 0.002515181666240096, 0.03924423083662987, 0.015377746894955635, 0.03258639946579933, -0.003372840117663145, 0.0016725496388971806, 0.015340758487582207, -0.023801755160093307, -0.03536049649119377, -0.027685493230819702, -0.01969609223306179, 0.01691274717450142, 0.018752899020910263, 0.06502484530210495, -0.014693469740450382, -0.010661780834197998, 0.03545296564698219, -0.025706635788083076, 0.009959009476006031, -0.02798139676451683, 0.06591255217790604, -0.012030336074531078, -0.0497858002781868, 0.013019763864576817, 0.09838798642158508, -0.0023764767684042454, -0.028610192239284515, 0.041574474424123764, 0.019714586436748505, -0.07371701300144196, -0.04150049760937691, -0.02446753904223442, -0.01288105919957161, -0.04494037851691246, 0.020713260397315025, 0.01392596960067749, 0.056887492537498474, -0.03782019391655922, -0.019973501563072205, -0.02914651669561863, -0.06369327753782272, 0.055370986461639404, -0.015146572142839432, -0.033733025193214417, 0.036026280373334885, 0.06539472192525864, -0.052855804562568665, 0.0011425813427194953, -0.0605493001639843, -0.020620791241526604, 0.02511482872068882, -0.0075871567241847515, -0.03759826719760895, 0.021804405376315117, -0.04190736636519432, 0.016857264563441277, 0.02350585162639618, 0.013676300644874573, 0.00795703660696745, -0.010273407213389874, 0.020935188978910446, 0.047344595193862915, 0.044311583042144775, -0.037283871322870255, 0.005904204212129116, 0.016709312796592712, -0.03434332460165024, -0.0038190074265003204, -0.002538299188017845, -0.06672628968954086, 0.014129403047263622, -0.03868941217660904, 0.031513746827840805, -0.02394970878958702, -0.008650560863316059, -0.028573203831911087, 0.07471568882465363, -0.02234073169529438, -0.06901954114437103, 0.02446753904223442, 0.025299768894910812, 0.012298498302698135, -0.014166390523314476, 0.05858893692493439, 0.01290880050510168, 0.010939191095530987, -0.05037761107087135, 0.02824031189084053, 0.03785718232393265, 0.043830741196870804, -0.03700646013021469, 0.01743982546031475, 0.038282543420791626, 0.030089709907770157, 0.0010917229810729623, 0.011216600425541401, 0.04793640226125717, 0.024375069886446, 0.0633973702788353, -0.08344484865665436, 0.014073921367526054, -0.02272910438477993, 0.061400022357702255, -0.04449652135372162, -0.055112067610025406, -0.028776638209819794, 0.0023013451136648655, -0.007337487768381834, -0.010338136926293373, 0.01349136047065258, -0.0009206535760313272, -0.03458374738693237, 0.029220493510365486, 0.020195430144667625, -0.010948438197374344, -0.025780612602829933, -0.05089544132351875, -0.015470216982066631, -0.00380051345564425, 0.06894557178020477, -0.018808379769325256, -0.02988627552986145, -0.05026664584875107, 0.009894280694425106, 0.04741857200860977, 0.05751628801226616, 0.020713260397315025, 0.03145826607942581, -0.011604974046349525, 0.023006515577435493, -0.029312962666153908, -0.04649387300014496, -0.05000773072242737, 0.06709617376327515, -0.01830904372036457, -0.04445953667163849, 0.01599729433655739, -0.02585458755493164, -0.015183559618890285, -0.055370986461639404, 0.004910152405500412, 0.03129182010889053, 0.04264712333679199, -0.05526002123951912, -0.010319642722606659, 0.037413328886032104, -0.010014492087066174, 0.008405514992773533, 0.010412112809717655, 0.030200673267245293, -0.000043525877117644995, 0.0011240873718634248, -0.020583802834153175, -0.023431876674294472, -0.004799188580363989, 0.012853317894041538, 0.002979842945933342, 0.02827730029821396, -0.008340786211192608, -0.03574886918067932, 0.06032737344503403, 0.0011148403864353895, -0.038541462272405624, 0.029738323763012886, 0.026908745989203453, 0.04645688459277153, 0.011882384307682514, -0.0294979028403759, 0.008063376881182194, -0.0025198052171617746, -0.010310395620763302, -0.007841449230909348, -0.04468146339058876, 0.0595136359333992, 0.005594430025666952, -0.0161729883402586, -0.03323368728160858, 0.0159140732139349, -0.024874407798051834, 0.005626794416457415, -0.033122722059488297, -0.01973308064043522, 0.021767418831586838, -0.013102986849844456, -0.0044570500031113625, 0.02637241967022419, 0.02537374384701252, -0.04638290777802467, -0.03532350808382034, -0.00416345801204443, -0.029072541743516922, -0.06021640822291374, 0.010439853183925152, 0.029941758140921593, 0.0006998816388659179, 0.009885033592581749, 0.0014020750531926751, 0.05855194851756096, 0.011845395900309086, -0.06850171089172363, -0.010412112809717655, 0.029645854607224464, -0.031643204391002655, 0.0818173810839653, -0.04146350920200348, -0.05329965800046921, 0.020065970718860626, -0.012122806161642075, 0.09239593893289566, -0.053817491978406906, 0.0014610246289521456, -0.03378850594162941, -0.02350585162639618, 0.009894280694425106, 0.050340622663497925, 0.006925996392965317, 0.011771420016884804, -0.058921828866004944, 0.017236392945051193, 0.0292389877140522, -0.02025091089308262, -0.005525077227503061, 0.0787103921175003, 0.026649829000234604, -0.005876462906599045, -0.007476192433387041, 0.017449073493480682, -0.02879513055086136, 0.07438279688358307, 0.03517555445432663, 0.008622819557785988, -0.033122722059488297, 0.009256238117814064, 0.003786643035709858, 0.018762145191431046, -0.039022304117679596, 0.039281219244003296, 0.05026664584875107, -0.003777395933866501, -0.03621121868491173, -0.061141107231378555, 0.0301451925188303, 0.00380051345564425, -0.01360232476145029, -0.0014413747703656554, 0.021323561668395996, 0.013694793917238712, -0.056850504130125046, -0.04212929308414459, 0.03123633749783039, -0.045125316828489304, 0.040020979940891266, 0.021360550075769424, -0.0018678922206163406, -0.015433228574693203, -0.029516397044062614, -0.0186049472540617, -0.03839350864291191, 0.026261456310749054, 0.0005837163189426064, 0.04830628260970116, -0.05599978193640709, 0.028924589976668358, -0.017763471230864525, -0.004482479300349951, -0.04050182178616524, 0.0017939163371920586, -0.019751572981476784, 0.02163795940577984, 0.056850504130125046, -0.025669649243354797, 0.01830904372036457, -0.04375676438212395, -0.0016829523956403136, -0.01674630120396614, -0.012548167258501053, -0.039281219244003296, -0.00792004819959402, -0.012788589112460613, 0.04690074175596237, -0.020491333678364754, -0.038504473865032196, 0.011151871643960476, -0.014591752551496029, -0.0018967891810461879, -0.0764911100268364, 0.009690847247838974, 0.013084492646157742, -0.007416087202727795, -0.0166630782186985, -0.024301093071699142, 0.02524428628385067, -0.04830628260970116, 0.03794965147972107, -0.027482058852910995, -0.04479242488741875, -0.02195235714316368, 0.05296676605939865, -0.02659434825181961, -0.022137297317385674, 0.043830741196870804, 0.019159765914082527, 0.011022414080798626, 0.009811057709157467, -0.02759302221238613, -0.012723860330879688, -0.04915700852870941, -0.042277246713638306, 0.014730457216501236, -0.024319587275385857, 0.07723087072372437, -0.019363200291991234, 0.03748730197548866, 0.024523021653294563, 0.00706932507455349, -0.04275808855891228, -0.008308421820402145, -0.0954289510846138, 0.00007318126881727949, -0.027685493230819702, 0.014665728434920311, -0.1007552221417427, 0.05304074287414551, -0.046087004244327545, 0.007272758986800909, 0.04438555985689163, -0.02701970934867859, -0.02160097286105156, 0.040797725319862366, 0.011077895760536194, 0.03752429038286209, -0.033381640911102295, -0.017707988619804382, 0.026316937059164047, 0.007785966619849205, 0.02707519195973873, 0.04997074231505394, -0.007822955027222633, 0.059883516281843185, 0.03334465250372887, -0.03075549378991127, 0.025836093351244926, -0.05522303283214569, -0.01290880050510168, 0.05422435700893402, 0.04035387188196182, 0.03143977001309395, 0.012659131549298763, -0.05670255050063133, -0.028055371716618538, 0.07197858393192291, -0.03380700200796127, 0.059365686029195786, -0.009422684088349342, -0.04135254770517349, 0.04553218558430672, -0.006569987628608942, 0.000040238861402031034, 0.07541846483945847, 0.06913051009178162, -0.005363255273550749, 0.04275808855891228, 0.02759302221238613, 0.008669054135680199, -0.01917826011776924, 0.00039126334013417363, 0.0228215754032135, -0.05078447610139847, -0.008756901137530804, -0.029072541743516922, 0.061917856335639954, 0.011919371783733368, -0.02689025178551674, 0.04878712818026543, -0.03308573365211487, -0.037283871322870255, -0.04605001583695412, -0.0038351896218955517, -0.011124130338430405, -0.07482665777206421, 0.03356657922267914, -0.003936906810849905, -0.029386939480900764, 0.058625925332307816, -0.055112067610025406, 0.01599729433655739, 0.046123992651700974, -0.05566688999533653, 0.0033242935314774513, -0.0461609810590744, 0.04016892984509468, -0.002959037199616432, -0.010532323271036148, -0.038282543420791626, -0.018318289890885353, -0.040538810193538666, -0.020639285445213318, -0.0037172904703766108, 0.00412184651941061, 0.008460997603833675, -0.03622971102595329, -0.006292577832937241, 0.023875731974840164, -0.059661589562892914, -0.038541462272405624, -0.04175941273570061, 0.006338812876492739, -0.044052667915821075, -0.00634343596175313, 0.0297568179666996, -0.027666999027132988, -0.007707367185503244, -0.0671701431274414, 0.035674892365932465, 0.007157171610742807, -0.003409828059375286, 0.007813707925379276, -0.045310258865356445, -0.04830628260970116, 0.06276857852935791, 0.05067351460456848, -0.04364579916000366, -0.007822955027222633, -0.030182180926203728, -0.008437879383563995, 0.033418625593185425, -0.01071726344525814, 0.027426576241850853, 0.0787103921175003, -0.02589157596230507, -0.0094319311901927, -0.03362205997109413, -0.025188805535435677, 0.023431876674294472, 0.03247543424367905, 0.0036941731814295053, 0.030940433964133263, -0.06890857964754105, 0.03426935151219368, -0.05570387840270996, 0.017800457775592804, -0.0033543461468070745, -0.011530998162925243, 0.042610134929418564, 0.04220326989889145, 0.004817682784050703, 0.03661808744072914, -0.03820857033133507, 0.01470271684229374, 0.009242367930710316, 0.002549857832491398, 0.08048581331968307, 0.04494037851691246, -0.017680248245596886, -0.013768770731985569, 0.044089656323194504, 0.04468146339058876, -0.01895633339881897, 0.025614166632294655, 0.009080545976758003, -0.031902119517326355, 0.04786242917180061, -0.054631225764751434, 0.014665728434920311, 0.02198934555053711, -0.01960362121462822, -0.0495268851518631, -0.00018811848713085055, 0.0007790590170770884, 0.09372750669717789, 0.022451695054769516, -0.011604974046349525, -0.0053262668661773205, 0.004817682784050703, -0.01687575876712799, 0.05037761107087135, 0.06839074939489365, 0.03397344797849655, -0.03972507640719414, -0.034380313009023666, -0.0343618206679821, 0.014453047886490822, 0.010356630198657513, -0.014711963012814522, 0.014129403047263622, 0.07612123340368271, 0.03635917231440544, 0.0310513973236084, -0.029054047539830208, -0.034509770572185516, 0.008077247068285942, 0.05426134541630745, 0.024652479216456413, -0.06284255534410477, 0.004662795457988977, 0.025780612602829933, 0.017106933519244194, 0.023912720382213593, -0.03336314484477043, -0.053817491978406906, -0.043793752789497375, 0.008571960963308811, -0.011688197031617165, -0.01498937327414751, -0.046826764941215515, -0.023265430703759193, -0.06487689167261124, 0.012529673054814339, -0.005594430025666952, -0.015035607852041721, -0.0322904959321022, -0.026390913873910904, 0.01036587730050087, 0.004725212696939707, -0.017800457775592804, -0.03404742106795311, 0.008497985079884529, -0.004845423623919487, 0.028869107365608215, 0.021101634949445724, 0.04819532111287117, 0.05167218670248985, -0.05096941813826561, 0.04268411174416542, 0.06746605038642883, -0.0006831214996054769, -0.01887311041355133, 0.005511207040399313, 0.05074748769402504, -0.03123633749783039, 0.06454399973154068, -0.03408440947532654, 0.024652479216456413, -0.009422684088349342, 0.013741029426455498, -0.02433808147907257, -0.02402368374168873, -0.01080048643052578, 0.007365228608250618, 0.04605001583695412, 0.00011753792932722718, -0.04449652135372162 ]
20,502
metevolsim.metevolsim
write_wild_type_SBML_file
Write the wild-type model in a SBML file. Parameters ---------- None Returns ------- None
def write_wild_type_SBML_file( self ): """ Write the wild-type model in a SBML file. Parameters ---------- None Returns ------- None """ libsbml.writeSBMLToFile(self.wild_type_document, "output/wild_type.xml")
(self)
[ 0.020546795800328255, -0.027715876698493958, 0.08575457334518433, -0.010110463947057724, 0.017957007512450218, -0.04898301139473915, -0.03773201256990433, -0.009930379688739777, -0.046376071870326996, 0.011894159018993378, -0.05790148675441742, 0.01370358094573021, 0.009475880302488804, 0.03351288661360741, 0.033118415623903275, 0.0615374818444252, 0.008292467333376408, 0.019449137151241302, 0.029705382883548737, 0.046821996569633484, -0.033667244017124176, 0.02246769703924656, 0.005539745092391968, 0.019809305667877197, 0.027853084728121758, -0.03344428166747093, 0.0036617200821638107, 0.008180986158549786, -0.06438453495502472, -0.058518920093774796, -0.03491926193237305, -0.08349064737558365, 0.04987485706806183, -0.05337364599108696, 0.004394921939820051, -0.008524004369974136, 0.0016078981570899487, 0.05292772129178047, -0.02440575137734413, -0.024783071130514145, 0.029310911893844604, 0.027046991512179375, -0.016859348863363266, -0.007546402048319578, -0.019106118008494377, 0.02440575137734413, 0.02442290261387825, 0.03219226747751236, -0.05375096574425697, 0.06270374357700348, -0.034661997109651566, 0.042294155806303024, -0.06242932751774788, 0.019980814307928085, -0.03219226747751236, -0.061228763312101364, -0.006843214854598045, 0.013077571988105774, 0.05028647929430008, 0.02119852975010872, 0.01722809299826622, 0.0341474711894989, 0.02754436805844307, -0.04699350520968437, 0.06359559297561646, 0.050629500299692154, -0.03231232240796089, -0.01093370746821165, -0.05186436325311661, 0.06328687071800232, 0.0031686313450336456, -0.08102092146873474, 0.05073240399360657, 0.09055683016777039, 0.03872676566243172, -0.047782447189092636, -0.02303367853164673, 0.0015371507033705711, -0.040030233561992645, -0.0007878701435402036, -0.007996614091098309, 0.042019739747047424, -0.020992718636989594, -0.03718318045139313, -0.03910408541560173, 0.04788535088300705, 0.04980625584721565, 0.013669278472661972, -0.00698899757117033, -0.010685019195079803, -0.04819406941533089, -0.02586357854306698, 0.025383353233337402, 0.008536867797374725, -0.008416811004281044, 0.011259575374424458, 0.0034044564235955477, -0.0534079484641552, -0.035502392798662186, 0.005784146022051573, -0.04195113480091095, -0.0023175172973424196, 0.0028320446144789457, 0.0025018895976245403, 0.01298324204981327, 0.010144765488803387, 0.019380532205104828, 0.025366201996803284, -0.0745035707950592, 0.0043563321232795715, -0.02457726001739502, -0.021987471729516983, 0.024182789027690887, -0.03009985387325287, 0.016421999782323837, -0.022982224822044373, 0.033598642796278, 0.06805482506752014, 0.025589164346456528, 0.005355373024940491, 0.01819711923599243, -0.039893027395009995, -0.040030233561992645, 0.021661603823304176, 0.014981323853135109, 0.040716271847486496, 0.036085523664951324, 0.014458220452070236, -0.018454384058713913, 0.029739685356616974, -0.08650921285152435, 0.01031627506017685, -0.035502392798662186, 0.008446825668215752, 0.013875089585781097, -0.012794582173228264, -0.04448947310447693, -0.06791762262582779, -0.009561634622514248, 0.05999389663338661, -0.011079490184783936, -0.0024997456930577755, 0.04085347801446915, -0.03893257677555084, -0.03262103721499443, 0.0166621133685112, -0.0547800213098526, 0.008704088628292084, 0.00025659374659880996, 0.0056340754963457584, -0.0315919853746891, -0.008026627823710442, -0.043014492839574814, -0.03162628412246704, -0.053305041044950485, -0.0016604228876531124, 0.0531335324048996, 0.04462667927145958, -0.011045188643038273, 0.0173481497913599, 0.00026396330213174224, 0.001342058996669948, -0.023668261244893074, -0.010779350064694881, -0.051315534859895706, -0.014303862117230892, -0.025314750149846077, 0.012846034951508045, 0.03738899156451225, 0.0028277570381760597, -0.018179969862103462, -0.028144650161266327, -0.05056089535355568, 0.04459237679839134, 0.014818389900028706, 0.0485713891685009, 0.01654205657541752, 0.015350067988038063, 0.05265330523252487, -0.0016346964985132217, 0.05748986452817917, -0.011791253462433815, -0.018385780975222588, 0.022124679759144783, -0.011954187415540218, -0.010153341107070446, -0.04984055832028389, -0.0019166147103533149, 0.015401520766317844, 0.03958430886268616, 0.09638813883066177, 0.02627520076930523, 0.0060156830586493015, -0.03234662488102913, 0.016559207811951637, -0.04225985333323479, 0.015478700399398804, -0.0006024258909747005, -0.02018662542104721, 0.02243339642882347, 0.014844115823507309, 0.014809814281761646, 0.017459630966186523, 0.005706966854631901, 0.03646284341812134, -0.013720731250941753, 0.03769771009683609, -0.029002195224165916, -0.07189663499593735, -0.0272528026252985, 0.007636444643139839, 0.0008420026861131191, 0.0015821718843653798, -0.007602142635732889, 0.045106902718544006, -0.06963270902633667, -0.10599265247583389, 0.0375262014567852, -0.032106511294841766, -0.029876893386244774, -0.03301550820469856, 0.012734553776681423, -0.034267526119947433, 0.029979798942804337, -0.015221436507999897, 0.038898274302482605, 0.05803869292140007, -0.0245601087808609, 0.006778898648917675, -0.0015789560275152326, -0.0211813785135746, 0.02864202670753002, 0.02867632918059826, -0.0022574891336262226, -0.005985668860375881, 0.00869122613221407, -0.019003212451934814, 0.022707810625433922, -0.0014964172150939703, -0.023822620511054993, 0.0012498728465288877, -0.06026831269264221, -0.055843375623226166, -0.02315373346209526, -0.016773594543337822, -0.03999593108892441, 0.02046104148030281, -0.01763113960623741, -0.012108545750379562, 0.0015328630106523633, 0.013111873529851437, -0.011422509327530861, 0.008524004369974136, -0.00903853215277195, 0.053888171911239624, -0.046821996569633484, -0.11271581053733826, -0.06325256824493408, -0.0044120727106928825, -0.04167672246694565, -0.004210549406707287, 0.02811034768819809, 0.01228863000869751, 0.03841804713010788, -0.01764829084277153, 0.014140929095447063, -0.03390735760331154, 0.022244736552238464, 0.04586154595017433, -0.0434604175388813, 0.03913838788866997, 0.055020131170749664, -0.060782838612794876, -0.017957007512450218, -0.002029167488217354, -0.031111758202314377, 0.03174634277820587, 0.015332917682826519, 0.010007558390498161, 0.002392552560195327, 0.026789728552103043, -0.03328992426395416, 0.08136393874883652, 0.07793375104665756, 0.04517550766468048, 0.015178559347987175, -0.031986456364393234, 0.012528742663562298, 0.004352044314146042, -0.02709844522178173, -0.005453990772366524, 0.05731835588812828, 0.025383353233337402, 0.04634176939725876, 0.006573088001459837, 0.011851281858980656, -0.008378221653401852, -0.04572433605790138, 0.05179576203227043, -0.041745323687791824, -0.048502784222364426, 0.03543378785252571, 0.14015726745128632, 0.007143355906009674, -0.021095624193549156, 0.011988488957285881, -0.031248966231942177, -0.02696123719215393, -0.007117629516869783, 0.050629500299692154, -0.033941660076379776, 0.009707417339086533, -0.005072382744401693, 0.05704393982887268, 0.03828084096312523, 0.018317176029086113, -0.014861267060041428, -0.029122252017259598, 0.03421607241034508, 0.03701167181134224, -0.0083996606990695, -0.045244112610816956, 0.034096017479896545, -0.019431985914707184, -0.011662621982395649, -0.07978605479001999, -0.02371971495449543, -0.010427756235003471, -0.008180986158549786, -0.055568963289260864, 0.019294777885079384, -0.02359965816140175, 0.031111758202314377, 0.009724568575620651, 0.019552042707800865, -0.005269618239253759, 0.00635441392660141, -0.033684395253658295, 0.008536867797374725, -0.028161801397800446, 0.022210434079170227, 0.02953387424349785, 0.008815569803118706, -0.0028813534881919622, 0.05025218054652214, 0.04812546446919441, -0.08006046712398529, -0.06383570283651352, 0.0037496185395866632, 0.036908768117427826, 0.011808404698967934, 0.0015843156725168228, -0.0013838644372299314, 0.013952268287539482, 0.040887780487537384, -0.0093815503641963, 0.017699742689728737, 0.009836049750447273, -0.08520574122667313, -0.00791943445801735, 0.054882925003767014, 0.05604918673634529, -0.0119370361790061, -0.01992936246097088, 0.04586154595017433, -0.0030035539530217648, 0.005389675032347441, 0.005912777502089739, 0.04507260397076607, 0.004367051646113396, 0.016344821080565453, -0.05433409661054611, -0.0550544336438179, 0.011559716425836086, 0.04647897928953171, 0.035948317497968674, 0.00994752999395132, -0.011353905312716961, -0.016482029110193253, -0.021953171119093895, -0.04267147555947304, 0.01707373559474945, -0.007220535073429346, -0.0075978548265993595, 0.02088981308043003, -0.019534891471266747, 0.03473060205578804, -0.004497827030718327, -0.07553262263536453, 0.0014546118909493089, 0.051178328692913055, 0.04133370518684387, -0.0036617200821638107, 0.03491926193237305, -0.014886993914842606, 0.018179969862103462, -0.02654961496591568, 0.025880729779601097, 0.019586343318223953, 0.05567186698317528, -0.0003197037731297314, -0.07306289672851562, -0.07333730906248093, 0.04411214962601662, -0.04387203976511955, -0.02301652729511261, -0.05731835588812828, 0.034096017479896545, -0.009458729065954685, 0.008626909926533699, 0.04771384224295616, -0.06102295219898224, -0.03121466375887394, 0.00565122626721859, 0.057524167001247406, 0.007897996343672276, 0.04706211015582085, 0.0004571790632326156, -0.04057906195521355, -0.0029370940756052732, 0.018454384058713913, 0.01165404636412859, 0.10510080307722092, 0.06946120411157608, 0.005050944164395332, 0.004570718854665756, 0.02584642730653286, 0.030494324862957, -0.028590574860572815, 0.09288935363292694, -0.024199940264225006, 0.009707417339086533, -0.05011497065424919, -0.013712155632674694, 0.01919187232851982, -0.07114199548959732, -0.011542565189301968, -0.06671705842018127, -0.03515937551856041, 0.041299402713775635, 0.010907981544733047, 0.025589164346456528, -0.02883068658411503, 0.006401578895747662, 0.023273790255188942, -0.014509673230350018, 0.003891113679856062, 0.02272496186196804, 0.045141205191612244, 0.008065217174589634, -0.040030233561992645, -0.005501155741512775, 0.07704190909862518, -0.02147294394671917, 0.04706211015582085, -0.05141844227910042, -0.005248179659247398, -0.07306289672851562, 0.04915452003479004, -0.060988649725914, -0.020649701356887817, -0.02243339642882347, 0.015701662749052048, -0.01609613373875618, 0.02457726001739502, -0.03906978294253349, -0.030048402026295662, -0.01738245226442814, 0.03673725947737694, -0.008056641556322575, -0.029019346460700035, 0.04164241999387741, 0.07793375104665756, -0.0415395125746727, 0.028161801397800446, -0.0021149220410734415, -0.08836150914430618, 0.0021685187239199877, -0.01362640131264925, -0.027904536575078964, 0.0338730551302433, -0.0008725527441129088, -0.07100478559732437, 0.03500501438975334, -0.011799829080700874, 0.0008564738091081381, 0.014672607183456421, -0.05635790526866913, 0.02627520076930523, -0.06952980905771255, 0.019037514925003052, 0.013317684642970562, 0.024354297667741776, -0.0849999338388443, -0.013866513967514038, 0.03280969709157944, -0.02020377665758133, 0.06452173739671707, -0.006217206362634897, 0.0073020015843212605, -0.005183863919228315, -0.06483045220375061, -0.1087367981672287, -0.023325243964791298, -0.008952776901423931, 0.03515937551856041, -0.013454892672598362, -0.03292975574731827, 0.009784596972167492, -0.027767330408096313, -0.023376695811748505, -0.028727781027555466, 0.0023989840410649776, 0.025177542120218277, -0.0039832997135818005, -0.0028277570381760597, 0.03793782368302345, 0.006555936764925718, 0.0041590966284275055, 0.024748768657445908, -0.041711024940013885, -0.0841766893863678, -0.006157178431749344, 0.01397799514234066, 0.03924129158258438, -0.014492522925138474, -0.06304676085710526, 0.023822620511054993, 0.026652520522475243, 0.013523495756089687, 0.053716663271188736, 0.03756050392985344, 0.0035416637547314167, -0.04881150275468826, -0.0058956267312169075, 0.0020870519801974297, 0.05066379904747009, 0.033667244017124176, 0.05913635343313217, -0.019397683441638947, -0.021249983459711075, -0.07704190909862518, -0.0031900701578706503, -0.017253819853067398, 0.008283891715109348, 0.0186258926987648, -0.020581096410751343, -0.08321623504161835, 0.03246667981147766, -0.0017311704577878118, -0.018608741462230682, -0.0092443423345685, -0.009072833694517612, -0.003020704723894596, 0.0590677484869957, 0.001359210000373423, 0.05807299539446831, 0.03769771009683609, 0.024491505697369576, 0.035811107605695724, -0.034507639706134796, -0.014586852863430977, 0.08342204988002777, 0.004189110826700926, -0.011954187415540218, 0.03745759651064873, -0.016876500099897385, -0.038898274302482605, -0.04023604467511177, 0.013137600384652615, 0.05580907315015793, 0.032964058220386505, 0.09035101532936096, -0.018248572945594788, -0.012245752848684788, -0.013583524152636528, 0.024920279160141945, 0.07793375104665756, -0.019414834678173065, -0.019431985914707184, -0.03090594708919525, 0.02598363533616066, -0.01553872786462307, 0.028436215594410896, 0.012039941735565662, -0.020409587770700455, -0.01192846056073904, 0.0000862905362737365, -0.023393847048282623, 0.03773201256990433, 0.02428569458425045, 0.03274109587073326, 0.04706211015582085, -0.05409398302435875, 0.00416124053299427, -0.015092804096639156, 0.018162818625569344, -0.0650019645690918, 0.030957400798797607, 0.03299836069345474, 0.006131452042609453, 0.0055654714815318584, -0.024457203224301338, 0.027561519294977188, 0.01608755812048912, 0.006397291086614132, 0.0313175693154335, 0.016267642378807068, -0.01059926487505436, 0.00046843435848131776, -0.009089984931051731, 0.05941076576709747, -0.00021599432511720806, 0.014166655018925667, -0.04013314098119736, 0.004956614226102829, 0.03433613106608391, 0.00009808179311221465, -0.022073226049542427, -0.022090377286076546, -0.02020377665758133, 0.0006313680205494165, 0.02510893903672695, -0.024525808170437813, -0.013815061189234257, -0.005526882130652666, -0.06143457442522049, 0.033272773027420044, 0.03543378785252571, -0.017305271700024605, -0.02723565138876438, -0.02907080017030239, -0.02697838842868805, -0.05728405341506004, -0.027441462501883507, 0.0356052964925766, -0.05213877931237221, -0.020100871101021767, 0.008468263782560825, 0.07306289672851562, 0.004262002184987068, 0.004592157434672117, 0.06599672138690948, -0.02188456617295742, -0.01805991306900978, 0.0415395125746727, -0.02004941925406456, -0.01695367880165577, -0.07875699549913406, -0.04363192617893219, -0.04493539407849312, 0.01878025196492672, 0.025091787800192833, 0.012751705013215542, 0.10372872650623322, 0.02526329644024372, -0.03639423847198486, -0.0083996606990695, 0.019003212451934814, -0.022673508152365685, 0.010847953148186207, -0.043117400258779526, 0.013660702854394913, -0.02737285941839218, -0.008849871344864368, -0.005098109133541584, -0.0025018895976245403, -0.02286216802895069, -0.05546605587005615, -0.027630122378468513, -0.024542957544326782, 0.02883068658411503, 0.01852298714220524, -0.03491926193237305, -0.06404151022434235, -0.06287524849176407, -0.015427247621119022, 0.05748986452817917, -0.0003540055768098682, -0.00861404649913311, -0.028076047077775, 0.034267526119947433, 0.030322816222906113, -0.04308309778571129, 0.019860759377479553, 0.01763113960623741, -0.03979011997580528, 0.024542957544326782, -0.033118415623903275, -0.008815569803118706, -0.07436636090278625, -0.014758361503481865, -0.008416811004281044, -0.00015824398724362254, 0.04376913234591484, 0.012142847292125225, 0.07834537327289581, 0.05210447683930397, -0.0010569250443950295, 0.0005633003311231732, 0.010805075988173485, 0.017613988369703293, -0.022484848275780678, 0.013892240822315216, 0.0367029570043087, 0.004913737066090107, 0.011516839265823364, 0.028144650161266327, 0.016310518607497215, 0.02444005198776722, 0.0024225665256381035, 0.019963664934039116, -0.01608755812048912, 0.004930887836962938, -0.04901731386780739, -0.07278847694396973, -0.030117005109786987, 0.07292568683624268, 0.027887387201189995, -0.04771384224295616, 0.011551140807569027, -0.018745949491858482, 0.02073545567691326, -0.0238740723580122, -0.020358135923743248, 0.02414848655462265, -0.02174736000597477, 0.0031900701578706503, 0.029173705726861954, -0.033272773027420044, 0.018608741462230682, -0.0008141324506141245, -0.02485167421400547, 0.046959202736616135, 0.014192381873726845, 0.0437348298728466, -0.013206204399466515, 0.022399093955755234, 0.019963664934039116, -0.03092309832572937, -0.005415400955826044, 0.073954738676548, -0.0008425386622548103, -0.024954579770565033, -0.03464484587311745, 0.041436608880758286, 0.004364907741546631, -0.004823694471269846, -0.013291958719491959, 0.06493335962295532, 0.04846848547458649, -0.02229618839919567, 0.007606430444866419, 0.013309109024703503, 0.06513917446136475, 0.04322030395269394, 0.08342204988002777, -0.040441855788230896, -0.01101088710129261, -0.04630746692419052, 0.041745323687791824, -0.03064868412911892, 0.020375285297632217, 0.009655964560806751, -0.017716893926262856, 0.04929172620177269, -0.05526024475693703, -0.036908768117427826 ]
20,503
metevolsim.metevolsim
SensitivityAnalysis
The SensitivityAnalysis class runs a sensitivity analysis by exploring a range of values for each kinetic parameter and tracking the change for all fluxes and species. Attributes ---------- > sbml_filename : str Path of the SBML model file. The SBML model is automatically loaded. > copasi_path : str Location of Copasi executable. > model : Model SBML model (automatically loaded). > factor_range : float > 0.0 Half-range of the log10-scaling factor (total range=2*factor_range) > factor_step : float > 0.0 Exploration step of the log10-scaling factor. x' = x*10^(factor) > param_index : int Current parameter index. > param_metaid : str Current parameter meta identifier. > param_id : str Current parameter identifier. > param_wild_type : float Current parameter wild-type value. > param_val : float Current parameter mutant value. > sigma : float > 0.0 Kinetic parameters mutation size. > nb_iterations : int > 0 Number of iterations of the multivariate random analysis. > iteration : int > 0 Current iteration of the multivariate random analysis. > OAT_output_file : file Output file for the One-at-a-time analysis. > random_output_file : file Output file for the multivariate random analysis. Methods ------- > __init__(sbml_filename, copasi_path) SensitivityAnalysis class constructor. > initialize_OAT_output_file() Initialize the One-At-a-Time sensitivity analysis output file (write the header). > initialize_random_output_file() Initialize the random sensitivity analysis output file (write the header). > write_OAT_output_file() Write the current One-At-a-Time sensitivity analysis state in the output file. > write_random_output_file() Write the current random sensitivity analysis state in the output file. > initialize_OAT_analysis(factor_range, factor_step) Initialize the One-At-a-Time sensitivity analysis algorithm. > initialize_random_analysis(sigma, nb_iterations) Initialize the random sensitivity analysis algorithm. > reload_wild_type_state() Reload the wild-type state into the mutant model. > next_parameter() Run a full parameter exploration for the next kinetic parameter. > next_iteration() Run the random parametric exploration for the next iteration. > run_OAT_analysis(factor_range, factor_step) Run the complete One-At-a-Time sensitivity analysis. > run_random_analysis(sigma, nb_iterations) Run the complete random sensitivity analysis.
class SensitivityAnalysis: """ The SensitivityAnalysis class runs a sensitivity analysis by exploring a range of values for each kinetic parameter and tracking the change for all fluxes and species. Attributes ---------- > sbml_filename : str Path of the SBML model file. The SBML model is automatically loaded. > copasi_path : str Location of Copasi executable. > model : Model SBML model (automatically loaded). > factor_range : float > 0.0 Half-range of the log10-scaling factor (total range=2*factor_range) > factor_step : float > 0.0 Exploration step of the log10-scaling factor. x' = x*10^(factor) > param_index : int Current parameter index. > param_metaid : str Current parameter meta identifier. > param_id : str Current parameter identifier. > param_wild_type : float Current parameter wild-type value. > param_val : float Current parameter mutant value. > sigma : float > 0.0 Kinetic parameters mutation size. > nb_iterations : int > 0 Number of iterations of the multivariate random analysis. > iteration : int > 0 Current iteration of the multivariate random analysis. > OAT_output_file : file Output file for the One-at-a-time analysis. > random_output_file : file Output file for the multivariate random analysis. Methods ------- > __init__(sbml_filename, copasi_path) SensitivityAnalysis class constructor. > initialize_OAT_output_file() Initialize the One-At-a-Time sensitivity analysis output file (write the header). > initialize_random_output_file() Initialize the random sensitivity analysis output file (write the header). > write_OAT_output_file() Write the current One-At-a-Time sensitivity analysis state in the output file. > write_random_output_file() Write the current random sensitivity analysis state in the output file. > initialize_OAT_analysis(factor_range, factor_step) Initialize the One-At-a-Time sensitivity analysis algorithm. > initialize_random_analysis(sigma, nb_iterations) Initialize the random sensitivity analysis algorithm. > reload_wild_type_state() Reload the wild-type state into the mutant model. > next_parameter() Run a full parameter exploration for the next kinetic parameter. > next_iteration() Run the random parametric exploration for the next iteration. > run_OAT_analysis(factor_range, factor_step) Run the complete One-At-a-Time sensitivity analysis. > run_random_analysis(sigma, nb_iterations) Run the complete random sensitivity analysis. """ ### Constructor ### def __init__( self, sbml_filename, copasi_path ): """ SensitivityAnalysis class constructor. Parameters ---------- sbml_filename : str Path of the SBML model file. The SBML model is automatically loaded. copasi_path : str Location of Copasi executable. Returns ------- None """ assert os.path.isfile(sbml_filename), "The SBML file \""+sbml_filename+"\" does not exist. Exit." assert os.path.isfile(copasi_path), "The executable \""+copasi_path+"\" does not exist. Exit." #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Main sensitivity analysis parameters # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.sbml_filename = sbml_filename self.copasi_path = copasi_path #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) SBML model # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.model = Model(sbml_filename, [], copasi_path) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) One-at-a-time analysis # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.factor_range = 0.0 self.factor_step = 0.0 self.param_index = 0 self.param_metaid = "wild_type" self.param_id = "wild_type" self.param_wild_type = 0.0 self.param_val = 0.0 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 4) Multivariate random analysis # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.sigma = 0.0 self.nb_iterations = 0.0 self.iteration = 0 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 5) Output files # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.OAT_output_file = open("output/OAT_sensitivity_analysis.txt", "w") self.OAT_output_file.close() self.random_output_file = open("output/random_sensitivity_analysis.txt", "w") self.random_output_file.close() ### Initialize the OAT output file ### def initialize_OAT_output_file( self ): """ Initialize the OAT output file (write the header). Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Write the header # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# header = "param_metaid param_id param_wild_type param_val param_dln" for species_id in self.model.species: if not self.model.species[species_id]["constant"]: header += " "+species_id for reaction_id in self.model.reactions: header += " "+reaction_id #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Write the wild-type steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# first_line = "wild_type wild_type 0.0 0.0 0.0" for species_id in self.model.species: if not self.model.species[species_id]["constant"]: first_line += " "+str(self.model.species[species_id]["wild_type_value"]) for reaction_id in self.model.reactions: first_line += " "+str(self.model.reactions[reaction_id]["wild_type_value"]) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Save in output file # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.OAT_output_file = open("output/OAT_sensitivity_analysis.txt", "a") self.OAT_output_file.write(header+"\n"+first_line+"\n") self.OAT_output_file.close() ### Initialize the multivariate random output file ### def initialize_random_output_file( self ): """ Initialize the multivariate random output file (write the header). Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Write the header # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# header = "iteration" for species_id in self.model.species: if not self.model.species[species_id]["constant"]: header += " "+species_id for reaction_id in self.model.reactions: header += " "+reaction_id #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Write the wild-type steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# first_line = "wild_type" for species_id in self.model.species: if not self.model.species[species_id]["constant"]: first_line += " "+str(self.model.species[species_id]["wild_type_value"]) for reaction_id in self.model.reactions: first_line += " "+str(self.model.reactions[reaction_id]["wild_type_value"]) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Save in output file # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.output_file = open("output/random_sensitivity_analysis.txt", "a") self.output_file.write(header+"\n"+first_line+"\n") self.output_file.close() ### Write the sensitivity analysis state in the OAT output file ### def write_OAT_output_file( self ): """ Wr
(sbml_filename, copasi_path)
[ 0.02685815468430519, -0.054552361369132996, 0.009515311568975449, 0.04577381908893585, 0.049577854573726654, -0.07085536420345306, -0.08180764317512512, -0.016741931438446045, 0.00838664174079895, -0.010508122853934765, -0.07457579672336578, 0.023493047803640366, 0.012122747488319874, 0.04364188760519028, -0.04203249141573906, 0.0525040365755558, 0.020274249836802483, 0.011380751617252827, 0.0007792261312715709, 0.0007785729831084609, -0.019427746534347534, 0.016135795041918755, -0.07399056106805801, 0.016804635524749756, 0.021131202578544617, -0.021549228578805923, 0.00035434216260910034, -0.014714506454765797, 0.008935300633311272, -0.04865819960832596, -0.03304493799805641, -0.055095795542001724, -0.00871061161160469, -0.027088068425655365, 0.0026335623115301132, -0.057520344853401184, 0.04201158881187439, 0.03294042870402336, -0.011725622229278088, 0.0318535640835762, -0.0009888921631500125, -0.03546948730945587, 0.031435538083314896, -0.027840515598654747, -0.07382334768772125, 0.04995407909154892, -0.05689330771565437, 0.10124584287405014, 0.007419957313686609, -0.03149824216961861, -0.020838584750890732, -0.03526047244668007, 0.0017269689124077559, 0.04949425160884857, -0.01697184517979622, 0.006714538671076298, 0.01555055845528841, 0.03114291839301586, 0.092467300593853, -0.0697684958577156, 0.02855115942656994, 0.04025588184595108, 0.042304206639528275, -0.012540772557258606, 0.022197168320417404, 0.02021154575049877, -0.03814484924077988, 0.044728755950927734, 0.02926180325448513, 0.039921458810567856, 0.016564270481467247, -0.06174240633845329, 0.049619656056165695, 0.047863949090242386, 0.03831206262111664, -0.016825536265969276, -0.05124995857477188, -0.0010607403237372637, -0.012530322186648846, -0.04677708446979523, -0.008036545477807522, 0.03469613939523697, 0.02859296277165413, -0.048490989953279495, -0.04280583932995796, -0.025123348459601402, 0.03214618191123009, 0.0015884978929534554, 0.060530129820108414, 0.018905214965343475, -0.06500300765037537, 0.04447793960571289, 0.025729484856128693, 0.020869936794042587, 0.03289862722158432, 0.02307502180337906, -0.011986888945102692, -0.10015897452831268, 0.01370079442858696, -0.04928523674607277, -0.032606009393930435, 0.03289862722158432, 0.02855115942656994, 0.04920163378119469, -0.04330746829509735, -0.0335465669631958, -0.04222060367465019, 0.06345631182193756, 0.026690945029258728, 0.0068190451711416245, -0.09840326756238937, 0.044143520295619965, -0.02205085940659046, -0.053298283368349075, -0.021653734147548676, -0.05371630936861038, -0.025833992287516594, 0.033233046531677246, -0.0534236915409565, -0.0009581934427842498, 0.008313487283885479, -0.00024346735153812915, -0.06746935844421387, 0.07248567044734955, 0.02200905606150627, 0.011056781746447086, 0.013805300928652287, 0.011056781746447086, -0.00480468338355422, -0.06387433409690857, -0.04265952855348587, -0.016679227352142334, 0.025980301201343536, 0.03526047244668007, 0.011401652358472347, -0.032083477824926376, -0.03785223141312599, -0.02980523742735386, -0.021173004060983658, 0.047195106744766235, 0.061157166957855225, -0.002309592440724373, 0.006144978571683168, -0.05543021485209465, 0.024579914286732674, 0.008094023913145065, -0.010607403703033924, -0.06654970347881317, -0.03889729827642441, -0.026607340201735497, -0.03944072872400284, 0.0015806598821654916, -0.056349873542785645, -0.02990974299609661, -0.009766126982867718, -0.029470816254615784, 0.044854164123535156, -0.057645753026008606, -0.005154780112206936, -0.018748454749584198, -0.03755961358547211, -0.041656266897916794, 0.03670266270637512, 0.00564334774389863, -0.023931974545121193, 0.022928712889552116, -0.049076225608587265, 0.00442584790289402, 0.0022704023867845535, -0.027631502598524094, -0.02752699702978134, -0.037413306534290314, -0.06838901340961456, 0.006589130964130163, -0.0498286709189415, 0.06809639930725098, 0.02062957175076008, -0.004370981827378273, 0.053340088576078415, -0.0030359120573848486, -0.011516610160470009, -0.026063906028866768, -0.08636412024497986, 0.03707888349890709, -0.029031889513134956, -0.003592408960685134, 0.041802577674388885, -0.02125661075115204, 0.05062292143702507, 0.027610601857304573, 0.041656266897916794, -0.02443360537290573, 0.009421255439519882, 0.014244227670133114, 0.03833296149969101, -0.012885644100606441, 0.04309845715761185, -0.021120751276612282, 0.04619184508919716, 0.02687905728816986, -0.0015871915966272354, -0.01096272561699152, -0.0039033156353980303, -0.012060043402016163, -0.026565536856651306, 0.009170440025627613, 0.0213193129748106, 0.020316051319241524, -0.08226747065782547, 0.021465621888637543, -0.00526973744854331, -0.040548499673604965, 0.04065300524234772, -0.015383347868919373, 0.07060454785823822, -0.06763656437397003, 0.04523038864135742, 0.009687746874988079, -0.026335623115301132, 0.005873261950910091, 0.00009781149856280535, 0.0012259911745786667, -0.07453399151563644, 0.02932450734078884, -0.008579978719353676, 0.053298283368349075, 0.020660923793911934, 0.02740158885717392, 0.024768026545643806, -0.0365772545337677, 0.009097285568714142, 0.01776609569787979, 0.007028058171272278, 0.004446749109774828, -0.0032083478290587664, -0.010837317444384098, -0.01642841286957264, 0.04560660943388939, -0.10057699680328369, -0.04761313274502754, -0.048909012228250504, -0.023911073803901672, 0.006249485071748495, 0.004885675851255655, -0.04635905846953392, -0.04372549429535866, 0.052002403885126114, 0.025248756632208824, -0.03709978610277176, -0.0310802161693573, 0.09271811693906784, -0.016909141093492508, -0.027276180684566498, 0.012425815686583519, 0.0058784871362149715, -0.05534661188721657, -0.03110111691057682, 0.0206504724919796, 0.04794755578041077, -0.047195106744766235, 0.013167811557650566, 0.02859296277165413, 0.0022534201852977276, 0.04941064491868019, -0.06048832833766937, 0.020765429362654686, -0.02428729645907879, -0.004791620187461376, 0.01047677081078291, -0.02095354162156582, 0.06353991478681564, 0.08678214997053146, -0.10091141611337662, 0.00411232840269804, -0.052796654403209686, 0.022552490234375, 0.026022102683782578, -0.03893909975886345, -0.054510559886693954, 0.04874180257320404, 0.03720429167151451, 0.003250150242820382, 0.038123950362205505, 0.0475713312625885, 0.012007789686322212, -0.022845108062028885, -0.037977639585733414, -0.019061975181102753, 0.041781675070524216, -0.015048927627503872, 0.001359890098683536, 0.03294042870402336, 0.05480317771434784, 0.0031404185574501753, 0.05300566554069519, -0.0066152578219771385, -0.05049751326441765, -0.0206504724919796, 0.030160559341311455, -0.06161699816584587, 0.01792285405099392, -0.01735851913690567, 0.08469201624393463, -0.04368369281291962, -0.040402188897132874, -0.007754378020763397, 0.04278493672609329, -0.026335623115301132, 0.022845108062028885, 0.02497703954577446, 0.01586407795548439, 0.02993064373731613, 0.05986128747463226, 0.048449184745550156, -0.014954871498048306, -0.03291952982544899, 0.019375493749976158, -0.019856223836541176, 0.060613736510276794, 0.09213288128376007, -0.01824682392179966, -0.029449915513396263, 0.015372897498309612, -0.04401811212301254, 0.047738540917634964, -0.0888722762465477, 0.023994678631424904, -0.00411232840269804, -0.022427082061767578, -0.04410171881318092, -0.04326566681265831, -0.02315862663090229, -0.00927494652569294, 0.015142982825636864, 0.007665547542273998, 0.005209646187722683, -0.043474677950143814, -0.019270988181233406, 0.06471038609743118, -0.023472147062420845, 0.015665516257286072, 0.017233112826943398, -0.05079013109207153, 0.022385278716683388, 0.04610824212431908, -0.027192575857043266, 0.010847768746316433, -0.03795674070715904, -0.017776545137166977, -0.004499002359807491, 0.009687746874988079, 0.0792158842086792, 0.014484592713415623, 0.05923425033688545, 0.04677708446979523, 0.04865819960832596, -0.014139721170067787, -0.025854893028736115, -0.011474806815385818, -0.012739335186779499, 0.025833992287516594, 0.00896142702549696, -0.03967064619064331, -0.008297811262309551, 0.015613262541592121, -0.03452892601490021, -0.02443360537290573, -0.0008967958856374025, 0.03732969984412193, -0.03588751330971718, -0.01554010808467865, -0.04334926977753639, 0.0032344742212444544, -0.041656266897916794, 0.02253158763051033, 0.03705798462033272, -0.0044702631421387196, 0.0085277259349823, -0.02200905606150627, -0.007817082107067108, 0.03649364784359932, 0.020943090319633484, -0.03822845593094826, 0.04102922976016998, -0.01434873417019844, -0.06299648433923721, 0.03279412165284157, -0.018581245094537735, -0.009321974590420723, 0.007905912585556507, 0.03206257522106171, -0.005382081493735313, -0.005455235950648785, -0.0035009656567126513, 0.06425055861473083, -0.00448071351274848, -0.006813819985836744, 0.060655537992715836, -0.03409000113606453, 0.002994109410792589, -0.022740600630640984, -0.07302910089492798, -0.025353262200951576, 0.02366025745868683, -0.02107894979417324, -0.0583563968539238, 0.035114165395498276, 0.027673305943608284, -0.035051461309194565, 0.03492605313658714, -0.01766158826649189, 0.01651201769709587, -0.015320643782615662, 0.013282768428325653, -0.0010424517095088959, 0.010555150918662548, 0.007958165369927883, 0.019365042448043823, 0.0016041739145293832, 0.0174421239644289, 0.023911073803901672, 0.04920163378119469, 0.06282927095890045, 0.07052094489336014, 0.03388098627328873, 0.022866008803248405, -0.015372897498309612, 0.017128605395555496, -0.028781073167920113, 0.017285365611314774, -0.036807168275117874, 0.01895746774971485, -0.0632890984416008, -0.002570858458057046, -0.016073090955615044, 0.0026335623115301132, -0.03492605313658714, -0.057645753026008606, 0.01887386292219162, 0.004248186945915222, 0.008381416089832783, 0.0224479828029871, 0.02792412042617798, 0.01865440048277378, -0.03346296399831772, 0.00008540135604562238, -0.013418626971542835, -0.0015179560286924243, -0.009907210245728493, -0.006505525670945644, 0.00871061161160469, 0.03179085999727249, -0.011349399574100971, 0.0016120118089020252, -0.0185707937926054, 0.009311524219810963, -0.0028164484538137913, -0.04136364907026291, 0.015278841368854046, -0.016240300610661507, -0.01184058003127575, 0.01757798343896866, 0.0006975805154070258, -0.00579488230869174, 0.03879278898239136, 0.0038249357603490353, 0.03415270522236824, -0.008883047848939896, -0.027840515598654747, -0.013491781428456306, -0.017807897180318832, -0.008402317762374878, 0.00872106198221445, -0.035657595843076706, 0.008856920525431633, -0.019511353224515915, -0.031435538083314896, -0.00527496263384819, -0.03235519304871559, -0.010419292375445366, 0.022845108062028885, -0.05162618309259415, -0.049619656056165695, 0.024809828028082848, -0.0007224007858894765, 0.0015271003358066082, 0.05551382154226303, -0.07687493413686752, -0.0023840530775487423, -0.08105519413948059, -0.029638025909662247, -0.01280203927308321, 0.024663519114255905, 0.015080279670655727, -0.04790575057268143, 0.06797099113464355, -0.010847768746316433, -0.0011730848345905542, -0.028425751253962517, -0.04527219012379646, 0.014724957756698132, 0.011401652358472347, -0.07461760193109512, -0.030850300565361977, 0.02980523742735386, 0.021005794405937195, -0.06600626558065414, -0.05133356526494026, -0.0236811600625515, -0.022656995803117752, 0.004154130816459656, -0.05162618309259415, 0.03841656818985939, -0.035678498446941376, 0.012572124600410461, -0.00975045096129179, -0.0026361749041825533, 0.009196566417813301, -0.01524748932570219, 0.029972447082400322, -0.04247141629457474, -0.05885802581906319, -0.015958134084939957, 0.008088798262178898, 0.00638011796399951, 0.005402983166277409, -0.018602145835757256, 0.010696234181523323, 0.034466225653886795, 0.010372264310717583, -0.010283433832228184, -0.03900180384516716, 0.0007126032724045217, 0.056935109198093414, 0.05915064364671707, 0.007372929248958826, 0.05480317771434784, -0.05676789954304695, 0.03956613689661026, 0.022385278716683388, -0.04268043115735054, -0.020357854664325714, -0.02794502303004265, -0.04401811212301254, 0.04451974481344223, -0.011150836944580078, 0.006934002507477999, -0.012561674229800701, -0.047863949090242386, 0.007048959378153086, 0.02993064373731613, -0.0004350080562289804, 0.036284636706113815, 0.00474459258839488, 0.106847383081913, -0.0015101180179044604, 0.0363682396709919, 0.007947714999318123, 0.026481932029128075, 0.029972447082400322, -0.016303004696965218, -0.01824682392179966, 0.012227253057062626, -0.04272223263978958, 0.0014134496450424194, 0.031310129910707474, -0.0010666188318282366, 0.030871203169226646, -0.036807168275117874, -0.0291781984269619, 0.0525040365755558, 0.03477974236011505, -0.014380086213350296, 0.014432338997721672, -0.10601133108139038, 0.009635494090616703, 0.015435601584613323, 0.04815656691789627, -0.04192798212170601, 0.024078283458948135, 0.05421794205904007, 0.030265064910054207, -0.0044702631421387196, -0.02990974299609661, 0.03785223141312599, 0.03101751208305359, 0.01339772529900074, 0.04380910098552704, -0.008057446219027042, 0.0007263197330757976, -0.031289227306842804, 0.029010986909270287, -0.026607340201735497, -0.06471038609743118, -0.048490989953279495, 0.047863949090242386, 0.050957340747117996, -0.043474677950143814, 0.060028500854969025, 0.02562497928738594, -0.0673021450638771, -0.03785223141312599, -0.01926053687930107, -0.01280203927308321, 0.014704056084156036, 0.003981695510447025, 0.021528325974941254, 0.004057462327182293, -0.010032618418335915, 0.04836558178067207, 0.042429614812135696, 0.05296386405825615, 0.010753712616860867, -0.06170060113072395, -0.027756910771131516, -0.00716914189979434, 0.013335022144019604, -0.008935300633311272, 0.045355796813964844, -0.006233809050172567, 0.0299515463411808, 0.012415365315973759, -0.02566678263247013, 0.011109034530818462, -0.049577854573726654, -0.020242897793650627, -0.00821420643478632, -0.08653133362531662, 0.016804635524749756, -0.04464515298604965, 0.019626310095191002, -0.025227854028344154, -0.0007041121134534478, -0.011506158858537674, 0.02246888540685177, 0.04652626812458038, 0.013909807428717613, 0.005071174819022417, -0.014369635842740536, 0.061282575130462646, 0.03218798339366913, -0.033818282186985016, 0.01590587943792343, 0.01939639449119568, 0.0010842543561011553, 0.007059410214424133, -0.01401431392878294, 0.017285365611314774, 0.009619818069040775, 0.014171073213219643, -0.02735978551208973, 0.032668713480234146, -0.058816224336624146, -0.028404850512742996, 0.017191309481859207, -0.060070302337408066, -0.017525730654597282, 0.0213193129748106, 0.036221932619810104, 0.019574055448174477, -0.050915539264678955, 0.01897837035357952, 0.04144725576043129, -0.027819614857435226, 0.03967064619064331, -0.03039047308266163, 0.02857206016778946, 0.018110966309905052, 0.02982613816857338, 0.07741837203502655, 0.00902413111180067, -0.012227253057062626, 0.03643094375729561, 0.03172815591096878, 0.007435633335262537, -0.035594891756772995, 0.05747854337096214, 0.023555751889944077, 0.028258541598916054, -0.013993412256240845, 0.03730880096554756, 0.09781802445650101, 0.02865566499531269, -0.09004274755716324, 0.06734395027160645, 0.028760172426700592, -0.0154878543689847, 0.001891566556878388, -0.016867339611053467, -0.021779142320156097, -0.08481742441654205, -0.001457864884287119, 0.0021763467229902744, -0.022677898406982422, 0.029031889513134956, -0.011171738617122173, -0.030181460082530975, -0.02443360537290573, -0.015696866437792778, -0.021465621888637543, 0.03835386410355568, 0.01185103040188551, -0.014798112213611603, 0.06019571051001549, -0.022071760147809982, 0.022824207320809364, -0.04138455167412758, 0.003942505456507206, 0.017692940309643745, -0.030808499082922935, 0.029157297685742378, 0.058732617646455765, 0.01129714585840702, -0.0024454507511109114, 0.002116255462169647, 0.04652626812458038, -0.029470816254615784, 0.0407366119325161, -0.018299078568816185, -0.006359216757118702, -0.013366373255848885, -0.012279506772756577, 0.0801355391740799, -0.022092660889029503, -0.028822876513004303, 0.017201760783791542, -0.00774392718449235, -0.029721630737185478, 0.034424420446157455, 0.0016681840643286705, -0.021214807406067848, 0.02140291966497898, -0.04995407909154892, 0.010361813940107822, -0.0089509766548872, -0.043600086122751236, -0.00040594220627099276, -0.01828862726688385, 0.006317414343357086, 0.02926180325448513, -0.004883063491433859, -0.02196725457906723, -0.036869872361421585, -0.01766158826649189, -0.022552490234375, 0.040527597069740295, 0.013146909885108471, 0.023555751889944077, -0.0004624410066753626, -0.008167178370058537, 0.055764637887477875, -0.025729484856128693, 0.04199068620800972, 0.015017575584352016, 0.0693504735827446, 0.021737338975071907, 0.07591348141431808, 0.0003146623494103551, 0.02687905728816986, -0.043600086122751236, 0.02073407731950283, -0.04761313274502754, 0.06174240633845329, 0.06700953096151352, 0.03668176010251045, 0.06387433409690857, -0.06809639930725098, -0.012404914014041424 ]
20,504
metevolsim.metevolsim
__init__
SensitivityAnalysis class constructor. Parameters ---------- sbml_filename : str Path of the SBML model file. The SBML model is automatically loaded. copasi_path : str Location of Copasi executable. Returns ------- None
def __init__( self, sbml_filename, copasi_path ): """ SensitivityAnalysis class constructor. Parameters ---------- sbml_filename : str Path of the SBML model file. The SBML model is automatically loaded. copasi_path : str Location of Copasi executable. Returns ------- None """ assert os.path.isfile(sbml_filename), "The SBML file \""+sbml_filename+"\" does not exist. Exit." assert os.path.isfile(copasi_path), "The executable \""+copasi_path+"\" does not exist. Exit." #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Main sensitivity analysis parameters # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.sbml_filename = sbml_filename self.copasi_path = copasi_path #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) SBML model # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.model = Model(sbml_filename, [], copasi_path) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) One-at-a-time analysis # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.factor_range = 0.0 self.factor_step = 0.0 self.param_index = 0 self.param_metaid = "wild_type" self.param_id = "wild_type" self.param_wild_type = 0.0 self.param_val = 0.0 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 4) Multivariate random analysis # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.sigma = 0.0 self.nb_iterations = 0.0 self.iteration = 0 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 5) Output files # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.OAT_output_file = open("output/OAT_sensitivity_analysis.txt", "w") self.OAT_output_file.close() self.random_output_file = open("output/random_sensitivity_analysis.txt", "w") self.random_output_file.close()
(self, sbml_filename, copasi_path)
[ 0.026580557227134705, -0.030404556542634964, 0.030704479664564133, 0.05094918981194496, 0.012849768623709679, -0.04018950089812279, -0.0671449601650238, 0.0002892310731112957, 0.0017304073553532362, 0.02513718418776989, -0.058484721928834915, 0.0522613488137722, -0.017789103090763092, 0.04086432605981827, -0.05631028860807419, 0.027255380526185036, 0.037246521562337875, 0.0032475891057401896, -0.012502984143793583, -0.0030039027333259583, -0.03602808713912964, 0.025249654427170753, -0.07393068820238113, 0.05893460288643837, 0.02583075314760208, 0.0060593546368181705, 0.00039423294947482646, -0.011828159913420677, 0.03600934147834778, -0.03477216511964798, -0.0437510721385479, -0.021425653249025345, -0.016898710280656815, 0.003842746140435338, 0.024312399327754974, -0.05289868265390396, 0.045550599694252014, -0.007540217600762844, -0.06223374232649803, 0.019569886848330498, 0.021406907588243484, -0.026299379765987396, 0.043001268059015274, -0.0011920713586732745, -0.0708564892411232, 0.02031969279050827, -0.0710439383983612, 0.07224363088607788, 0.0011756694875657558, -0.01642071083188057, -0.025980712845921516, -0.006467060651630163, 0.01320592500269413, 0.021425653249025345, -0.03773389384150505, 0.035297028720378876, -0.001798358396627009, 0.05807232856750488, 0.07344331592321396, -0.05166150629520416, 0.03317883238196373, 0.02738659642636776, 0.05567295476794243, -0.013918238691985607, 0.02326267398893833, 0.03734024614095688, -0.046262916177511215, 0.0333850271999836, 0.02324392832815647, 0.039402205497026443, 0.01966361328959465, -0.05998433008790016, 0.02090078964829445, 0.06662009656429291, 0.07479295879602432, -0.008561826311051846, -0.07183123379945755, -0.006199942901730537, -0.010291061364114285, -0.00980368908494711, -0.0003939400485251099, 0.00023270287783816457, 0.008543080650269985, -0.05499813333153725, -0.05601036921143532, -0.03351624310016632, 0.0374714620411396, -0.027555301785469055, 0.07902935147285461, 0.026186909526586533, -0.060059309005737305, 0.039177265018224716, 0.01936369203031063, 0.01835145615041256, 0.04191404953598976, 0.04150165989995003, 0.0071512567810714245, -0.08652739971876144, 0.01801404356956482, -0.04371358081698418, -0.046862758696079254, 0.044350914657115936, 0.012699807062745094, 0.014040082693099976, -0.047162678092718124, -0.02067584916949272, -0.01576463133096695, 0.028248870745301247, 0.007844825275242329, -0.0032124421559274197, -0.07539280503988266, 0.06328346580266953, -0.027142910286784172, -0.01741420105099678, -0.06478307396173477, -0.07246857136487961, -0.02090078964829445, 0.005764119327068329, -0.03837122768163681, 0.003788853995501995, -0.022344162687659264, 0.013899493962526321, -0.06257115304470062, 0.0745680183172226, 0.027161654084920883, 0.021331926807761192, 0.024893496185541153, 0.00012784746650140733, -0.0015242112567648292, -0.05488566309213638, -0.0032593049108982086, -0.065720334649086, 0.01775161363184452, 0.013627690263092518, 0.010066120885312557, -0.04854981601238251, -0.030760714784264565, -0.02511843852698803, -0.02740534022450447, 0.06410825252532959, 0.043976012617349625, -0.0033272558357566595, 0.026599301025271416, -0.04854981601238251, -0.007666747085750103, 0.0354282446205616, -0.008065080270171165, -0.05728503689169884, -0.04937460273504257, -0.009231963194906712, -0.01000988483428955, 0.0015909905778244138, -0.053311072289943695, -0.03925224766135216, -0.028230125084519386, -0.039477188140153885, 0.058522213250398636, -0.05113664269447327, 0.002999216550961137, -0.03057326376438141, -0.051399074494838715, 0.0022986182011663914, 0.011500121094286442, -0.015108552761375904, -0.015633415430784225, 0.008814884349703789, -0.05529805272817612, 0.006242119241505861, -0.012662317603826523, -0.014714905992150307, -0.05259875953197479, -0.03346000984311104, -0.09410041570663452, 0.015202278271317482, -0.043676089495420456, 0.03242902830243111, 0.01928871124982834, 0.021088240668177605, 0.0800790786743164, 0.008772708475589752, -0.013936984352767467, 0.007540217600762844, -0.06796974688768387, 0.02997341938316822, -0.0177609845995903, 0.010909650474786758, 0.012559219263494015, -0.000029966537113068625, 0.029710989445447922, 0.004822177812457085, 0.04926213249564171, -0.016345730051398277, 0.025587065145373344, 0.012465493753552437, 0.03385365754365921, 0.0036178049631416798, 0.035315774381160736, -0.020413417369127274, 0.007868257351219654, 0.04052691161632538, 0.030460793524980545, -0.01290600374341011, 0.008580571040511131, -0.017161142081022263, -0.022494124248623848, 0.009222590364515781, -0.00821504183113575, 0.047162678092718124, -0.08292833715677261, 0.02744283154606819, 0.022006751969456673, -0.042101502418518066, 0.058822132647037506, -0.008336884900927544, 0.07340582460165024, -0.027930203825235367, 0.03289765492081642, 0.004501167684793472, -0.005839099641889334, 0.0008482159464620054, 0.018576396629214287, 0.005295491777360439, -0.055597975850105286, 0.029504792764782906, -0.022962750867009163, 0.029804714024066925, 0.046225424855947495, 0.02155686914920807, -0.0037396480329334736, -0.02481851726770401, 0.007240296341478825, -0.023018985986709595, 0.03570942208170891, -0.016336357221007347, 0.0015019513666629791, -0.008130688220262527, -0.026486830785870552, 0.06508299708366394, -0.11029618978500366, -0.061821348965168, -0.02742408588528633, 0.005412648431956768, -0.010675336234271526, -0.0016999465879052877, -0.023037731647491455, -0.054923150688409805, 0.046187933534383774, -0.008027590811252594, -0.03853993117809296, -0.039402205497026443, 0.10534747689962387, -0.016514435410499573, -0.04033946245908737, 0.019869809970259666, 0.018304593861103058, -0.045588091015815735, -0.016027063131332397, 0.007357452996075153, 0.060059309005737305, -0.0418015792965889, -0.011565729044377804, 0.027630282565951347, 0.018520161509513855, 0.040077030658721924, -0.059721898287534714, 0.012306160293519497, -0.039177265018224716, 0.010094238445162773, 0.03212910518050194, -0.019832318648695946, 0.058484721928834915, 0.061708878725767136, -0.06894449144601822, 0.023937497287988663, -0.04832487553358078, 0.0061718253418803215, -0.00963498279452324, -0.027611536905169487, -0.045625582337379456, 0.044950757175683975, 0.07385570555925369, 0.006841962691396475, 0.04468832537531853, 0.055597975850105286, 0.008749277330935001, -0.026805497705936432, -0.039177265018224716, -0.043226208537817, 0.029167380183935165, -0.023056477308273315, -0.015970828011631966, 0.0495995432138443, 0.03775263950228691, -0.02965475246310234, 0.03615930303931236, -0.004231707192957401, -0.019701102748513222, -0.007535531651228666, 0.028173889964818954, -0.030442047864198685, 0.012812278233468533, -0.04667530581355095, 0.052336327731609344, -0.012952866032719612, -0.05034934729337692, -0.01094713993370533, 0.01468678843230009, -0.014583690091967583, 0.0111158462241292, 0.0321478508412838, 0.009916159324347973, 0.05518558248877525, 0.086452417075634, 0.06114652752876282, -0.032953891903162, 0.009663100354373455, 0.01934494636952877, -0.012718552723526955, 0.050724249333143234, 0.06294605880975723, -0.029223615303635597, -0.005684452597051859, 0.014780513942241669, -0.038802362978458405, 0.05409836769104004, -0.039439696818590164, 0.007474610116332769, -0.015670906752347946, -0.02226918190717697, -0.032016634941101074, -0.04794997349381447, 0.017142396420240402, 0.01274667028337717, -0.0021662309300154448, -0.00918510090559721, 0.01674875058233738, -0.04671279713511467, -0.004248109180480242, 0.05631028860807419, -0.031473029404878616, 0.044950757175683975, 0.003941157832741737, -0.039402205497026443, 0.01081592496484518, 0.03649671748280525, -0.013477729633450508, -0.031716715544462204, -0.04082683473825455, -0.0451756976544857, -0.03248526528477669, -0.018304593861103058, 0.04637538641691208, 0.004953393712639809, 0.05436079949140549, 0.022494124248623848, 0.06290856748819351, 0.003336628433316946, -0.010047375224530697, 0.004744854290038347, -0.04708769917488098, 0.042663853615522385, 0.0015945053892210126, -0.06440817564725876, -0.007802649401128292, 0.028867458924651146, -0.051549032330513, -0.016317611560225487, -0.001519524957984686, 0.03537201136350632, -0.011987493373453617, -0.0016917455941438675, -0.03510957956314087, -0.005178334657102823, -0.04772503301501274, 0.021725574508309364, 0.04052691161632538, -0.013758906163275242, 0.010347297415137291, -0.017854711040854454, -0.024912241846323013, -0.006593590136617422, 0.009400669485330582, -0.0244436152279377, 0.02260659448802471, -0.003317883238196373, -0.06924441456794739, 0.00532829575240612, 0.012456120923161507, 0.03310385346412659, 0.03342251852154732, 0.04603797197341919, -0.02026345580816269, -0.011978120543062687, -0.03422855958342552, 0.06894449144601822, -0.01870761252939701, 0.019813574850559235, 0.08240347355604172, -0.03256024420261383, 0.023956241086125374, -0.03569067642092705, -0.06485805660486221, -0.043976012617349625, 0.03584063798189163, -0.018623260781168938, -0.044988248497247696, 0.016945572569966316, 0.022662829607725143, -0.013093454763293266, 0.01561467070132494, 0.034322284162044525, -0.0088570611551404, -0.012484238483011723, -0.016608161851763725, -0.036609187722206116, 0.019776083528995514, 0.030985655263066292, -0.007310590241104364, -0.022756556048989296, 0.010459767654538155, 0.0444633848965168, 0.07614260911941528, 0.05822229012846947, 0.031473029404878616, 0.026524320244789124, 0.05079922825098038, -0.020507143810391426, 0.011172081343829632, -0.012952866032719612, -0.0030039027333259583, -0.06440817564725876, 0.033047616481781006, -0.05218636617064476, 0.005164275877177715, -0.0222316924482584, 0.004803432617336512, -0.05649774149060249, -0.013871376402676105, -0.0002754651359282434, -0.000060811751609435305, -0.00937723834067583, -0.0031210596207529306, 0.01274667028337717, 0.02513718418776989, -0.04480079561471939, -0.009400669485330582, -0.0050424328073859215, -0.01936369203031063, -0.03484714776277542, -0.009691217914223671, -0.008889865130186081, 0.04213899374008179, 0.005529805552214384, -0.010694080963730812, 0.018229613080620766, 0.005192393437027931, 0.00026213855016976595, -0.05424832925200462, 0.028230125084519386, 0.023731300607323647, -0.014743023552000523, -0.008435296826064587, 0.01578337699174881, -0.0042199911549687386, 0.0177609845995903, 0.010206708684563637, 0.0522613488137722, 0.031416792422533035, -0.02774275280535221, -0.04225146397948265, -0.016345730051398277, -0.0030460793059319258, 0.02965475246310234, -0.03164173290133476, -0.008313452824950218, -0.0166925135999918, -0.03617804870009422, -0.02350636012852192, -0.00016226229490712285, 0.015877101570367813, 0.021406907588243484, -0.034997109323740005, -0.05578542873263359, 0.07700488716363907, -0.02253161370754242, -0.017292357981204987, 0.041726600378751755, -0.0908762589097023, -0.014471219852566719, -0.07171876728534698, 0.006584217306226492, 0.005342354532331228, 0.012484238483011723, 0.042326442897319794, -0.02607443928718567, 0.052298836410045624, -0.0014984366716817021, 0.008777394890785217, -0.034341029822826385, -0.04063938558101654, 0.005661020986735821, 0.0005058249225839972, -0.06898198276758194, -0.03640298917889595, 0.03578440099954605, 0.06062166392803192, -0.062308721244335175, -0.046600326895713806, -0.027855223044753075, -0.008182237856090069, -0.012240552343428135, -0.061371468007564545, 0.0010620272951200604, -0.007544904015958309, 0.02419992908835411, -0.015239768661558628, -0.0044496189802885056, 0.0011229488300159574, -0.01904502511024475, 0.054660722613334656, -0.0007029413827694952, -0.0836031585931778, -0.006912256591022015, -0.016505062580108643, -0.007619884330779314, 0.003856804920360446, -0.02157561294734478, 0.010703453794121742, 0.04543812945485115, 0.03458471596240997, 0.006513923406600952, -0.045550599694252014, -0.009747453965246677, 0.06088409572839737, 0.05897209420800209, 0.044350914657115936, 0.04791248217225075, -0.05259875953197479, 0.0469377376139164, -0.00022728437033947557, -0.04378855973482132, -0.008894551545381546, -0.018192121759057045, -0.008932041935622692, 0.06673257052898407, -0.01867949590086937, -0.017517298460006714, 0.0030531086958944798, -0.051549032330513, 0.02678675204515457, 0.02255035936832428, 0.010694080963730812, -0.0023911723401397467, 0.015558435581624508, 0.11636959761381149, 0.017901573330163956, 0.01738608255982399, -0.01675812155008316, 0.02637436054646969, 0.024762282148003578, -0.025680791586637497, -0.04116424545645714, 0.051698993891477585, -0.034022361040115356, -0.0366654209792614, 0.023281417787075043, 0.0037138736806809902, 0.009288198314607143, -0.031454283744096756, -0.03505334258079529, 0.05762244760990143, 0.018576396629214287, -0.016195768490433693, 0.03282267600297928, -0.10347297042608261, 0.01672063209116459, 0.01081592496484518, 0.05143656209111214, -0.04701272025704384, 0.0522613488137722, 0.05286119133234024, 0.032691460102796555, -0.01383388601243496, 0.0009015222894959152, 0.016027063131332397, 0.011921885423362255, -0.014902357012033463, 0.021969260647892952, -0.024912241846323013, 0.006574844941496849, -0.02157561294734478, 0.02251286804676056, -0.05079922825098038, -0.04217648133635521, -0.056535232812166214, 0.006354589946568012, 0.04746260121464729, -0.07258103787899017, 0.022756556048989296, 0.0035357950255274773, -0.08322826027870178, -0.03186667710542679, -0.00293829501606524, 0.004224677570164204, 0.02641185000538826, 0.011293924413621426, -0.005857844837009907, 0.028605027124285698, -0.02416243776679039, 0.05893460288643837, 0.04288879781961441, 0.027892714366316795, 0.028211379423737526, -0.03580314666032791, -0.03167922422289848, -0.002746157580986619, -0.01646757312119007, -0.015605298802256584, 0.04982448369264603, 0.025662045925855637, 0.020788319408893585, -0.00805570837110281, -0.02710541896522045, 0.011846905574202538, -0.06032174080610275, 0.013543336652219296, -0.0045292857103049755, -0.06755734980106354, 0.021050751209259033, -0.020694594830274582, 0.04101428762078285, -0.02288777008652687, 0.03928973525762558, -0.03156675398349762, 0.05057428777217865, 0.031697969883680344, 0.022100476548075676, 0.04540063813328743, 0.017142396420240402, 0.06159640848636627, 0.028773734346032143, -0.045925501734018326, 0.022625340148806572, -0.012165571562945843, 0.003158549778163433, 0.008130688220262527, -0.019382435828447342, 0.01382451318204403, 0.020207220688462257, 0.022062987089157104, -0.02322518266737461, 0.016664396971464157, -0.062046293169260025, -0.003205412533134222, 0.011143963783979416, -0.06954433023929596, -0.017011180520057678, 0.0049112169072031975, 0.017648514360189438, -0.006743550766259432, -0.07295594364404678, 0.015267886221408844, 0.030760714784264565, -0.03128557652235031, 0.07048159092664719, -0.009925532154738903, 0.03381616622209549, 0.03868989273905754, 0.0006472918321378529, 0.056572720408439636, 0.004981511272490025, 0.0022517554461956024, -0.0010473825968801975, 0.03325381129980087, -0.029111145064234734, -0.0306482445448637, 0.04090181365609169, -0.017948435619473457, 0.02318769320845604, 0.0005468298331834376, 0.025943223387002945, 0.07186872512102127, 0.03355373442173004, -0.09155108034610748, 0.04806244373321533, 0.0245373398065567, -0.0073340218514204025, -0.006649825256317854, -0.014077572152018547, -0.007633943110704422, -0.09784943610429764, 0.03196040168404579, 0.020807065069675446, -0.051399074494838715, 0.04022699221968651, -0.02125694788992405, -0.026955459266901016, -0.04791248217225075, -0.022625340148806572, -0.02573702670633793, 0.04573805257678032, 0.0061718253418803215, -0.035896871238946915, 0.0510241724550724, -0.03353498876094818, 0.029785968363285065, -0.05376095697283745, 0.029842203482985497, -0.0026360300835222006, -0.03261648118495941, 0.03509083390235901, 0.038502443581819534, 0.017967181280255318, 0.005436080042272806, 0.006162452511489391, 0.045288167893886566, -0.036890361458063126, 0.04615044593811035, -0.023356398567557335, -0.011031493544578552, 0.0027367849834263325, -0.02481851726770401, 0.061333976686000824, -0.030067145824432373, -0.021725574508309364, -0.0008769193664193153, -0.012371768243610859, -0.03096690960228443, 0.059159547090530396, 0.010928395204246044, -0.0261306744068861, -0.00036640820326283574, -0.06268362700939178, 0.005379844456911087, -0.018276475369930267, -0.04408848285675049, -0.00595625676214695, -0.020169731229543686, 0.02322518266737461, 0.009616238065063953, 0.022119222208857536, -0.028754988685250282, -0.014761769212782383, -0.0021556869614869356, -0.04809993505477905, 0.04502573609352112, 0.0022775300312787294, 0.019457416608929634, 0.009480335749685764, -0.0023712555412203074, 0.062008801847696304, -0.0043980698101222515, 0.05608534812927246, 0.02539961412549019, 0.04772503301501274, -0.0216131042689085, 0.09297571331262589, -0.017236122861504555, 0.015099180862307549, -0.034922126680612564, 0.030779458582401276, -0.060396723449230194, 0.05582291632890701, 0.04412597417831421, 0.051399074494838715, 0.050724249333143234, -0.032953891903162, -0.004337148275226355 ]
20,505
metevolsim.metevolsim
initialize_OAT_analysis
Initialize the OAT sensitivity analysis algorithm. Parameters ---------- factor_range : float > 0.0 Half-range of the log10-scaling factor (total range=2*factor_range) factor_step : float > 0.0 Exploration step of the log10-scaling factor. x' = x*10^(factor) Returns ------- None
def initialize_OAT_analysis( self, factor_range, factor_step ): """ Initialize the OAT sensitivity analysis algorithm. Parameters ---------- factor_range : float > 0.0 Half-range of the log10-scaling factor (total range=2*factor_range) factor_step : float > 0.0 Exploration step of the log10-scaling factor. x' = x*10^(factor) Returns ------- None """ assert factor_range > 0.0, "The factor range 'factor_range' must be a positive nonzero value. Exit." assert factor_step > 0.0, "The factor step 'factor_step' must be a positive nonzero value. Exit." self.factor_range = factor_range self.factor_step = factor_step self.model.compute_wild_type_steady_state() self.model.compute_mutant_steady_state() self.initialize_OAT_output_file() self.param_index = 0
(self, factor_range, factor_step)
[ -0.02611515112221241, -0.039541780948638916, 0.05219515413045883, 0.015807926654815674, 0.0025899866595864296, -0.014112022705376148, -0.0641104057431221, -0.052722375839948654, -0.0531793050467968, -0.008835391141474247, 0.007939111441373825, 0.04221304878592491, 0.008356496691703796, 0.03040323778986931, -0.050121404230594635, 0.03968237340450287, 0.007855634205043316, -0.007842453196644783, -0.0030864558648318052, 0.03586879000067711, 0.002365916734561324, 0.013901133090257645, -0.09665769338607788, 0.018892183899879456, -0.007504151668399572, 0.021458007395267487, -0.03704625740647316, -0.004105755127966404, -0.031563129276037216, -0.07075342535972595, -0.027784692123532295, -0.038768522441387177, 0.012451267801225185, -0.029788142070174217, 0.008782668970525265, -0.08259838819503784, 0.07451429218053818, 0.016300002112984657, -0.004542911425232887, 0.05634264647960663, 0.043091755360364914, -0.08316075801849365, -0.025605501607060432, 0.00606307340785861, -0.08660528808832169, 0.005970809143036604, -0.04200216010212898, 0.061755478382110596, 0.020895635709166527, -0.02892700955271721, -0.053987711668014526, -0.043478384613990784, 0.010491752997040749, 0.018857035785913467, -0.008896901272237301, 0.06695741415023804, 0.009771213866770267, 0.009569111280143261, 0.048785772174596786, -0.0004731283988803625, -0.022705769166350365, 0.055288199335336685, 0.05894361808896065, -0.016115473583340645, 0.01483256183564663, 0.01043024379760027, -0.045130353420972824, 0.04650113731622696, 0.048434291034936905, 0.03435741364955902, 0.0176532082259655, -0.02434016391634941, 0.01982361264526844, 0.01947213150560856, 0.06288021802902222, 0.0005596260307356715, -0.022231267765164375, 0.05781887099146843, -0.01587822288274765, -0.017275365069508553, -0.008967197500169277, 0.04730954393744469, -0.029331214725971222, 0.019770890474319458, 0.000025503077267785557, -0.02381294034421444, -0.02351417951285839, -0.025447333231568336, 0.06938264518976212, 0.00912975799292326, -0.036940813064575195, 0.021739192306995392, 0.020192669704556465, -0.025306740775704384, 0.025992130860686302, 0.04488431662321091, -0.0416506789624691, -0.03848733380436897, -0.016300002112984657, -0.031246794387698174, -0.008659650571644306, 0.0012993868440389633, -0.028048304840922356, 0.06829304993152618, -0.03187946230173111, -0.02550005540251732, -0.023109974339604378, 0.019577575847506523, 0.03274059668183327, 0.009718491695821285, -0.07549843937158585, 0.042142752557992935, -0.016888733953237534, -0.0031853101681917906, -0.07173758000135422, 0.01687994785606861, 0.02381294034421444, 0.027468357235193253, -0.06266932934522629, -0.027925284579396248, 0.005162399262189865, 0.010245715267956257, -0.06583267450332642, 0.04467342793941498, 0.05915450677275658, 0.028136175125837326, 0.04945359006524086, 0.004134313203394413, -0.038065556436777115, -0.06801186501979828, 0.026870837435126305, -0.009797574952244759, 0.006572722923010588, -0.01709083653986454, -0.014560163021087646, -0.03319752216339111, -0.0003525808861013502, -0.047485288232564926, -0.05149218812584877, 0.03284604102373123, -0.00436936691403389, 0.006599084008485079, -0.01929638907313347, -0.04910210520029068, 0.021932508796453476, 0.05599116533994675, -0.024181997403502464, -0.024884961545467377, 0.02706415392458439, -0.022565176710486412, -0.03265272453427315, 0.01360237319022417, -0.016229704022407532, -0.03223094716668129, 0.0004470418207347393, -0.028751268982887268, 0.020790189504623413, -0.05043774098157883, -0.003723517758771777, -0.018540702760219574, -0.03553488105535507, -0.015474017709493637, -0.00787320826202631, -0.0033171160612255335, -0.014621672220528126, 0.008492696098983288, -0.06625445187091827, -0.0016596564091742039, 0.008694798685610294, -0.048258546739816666, -0.02966512367129326, -0.04463827982544899, -0.039541780948638916, -0.019665446132421494, 0.012987278401851654, 0.011959192343056202, 0.01082566101104021, -0.014208680018782616, 0.03746803477406502, 0.015394933521747589, -0.035763345658779144, 0.043794721364974976, -0.08203601837158203, 0.022283991798758507, -0.05767827853560448, -0.05792431905865669, 0.03374231979250908, -0.02263547293841839, 0.0006057581631466746, 0.017802588641643524, 0.0025899866595864296, -0.016300002112984657, -0.004718652460724115, 0.006577116437256336, 0.03305692970752716, 0.006471671629697084, 0.022108249366283417, 0.015017090365290642, 0.019753316417336464, 0.03565790131688118, 0.004136509727686644, 0.015640972182154655, 0.015816712751984596, -0.012723666615784168, -0.021018654108047485, 0.03152798116207123, 0.04333779215812683, 0.038276445120573044, -0.045868467539548874, 0.014032939448952675, 0.01704690232872963, -0.04671202600002289, -0.009920593351125717, 0.019542427733540535, -0.009138545021414757, -0.0006376112578436732, 0.06597326695919037, 0.014340486377477646, -0.02038598619401455, 0.01982361264526844, 0.01843525841832161, -0.020245391875505447, -0.04238878935575485, -0.039366040378808975, 0.032459408044815063, 0.05609660968184471, 0.034111376851797104, -0.011739515699446201, -0.009920593351125717, -0.028399785980582237, -0.028680972754955292, 0.01149347797036171, 0.019929058849811554, 0.014024152420461178, 0.05114070326089859, 0.053073856979608536, 0.004415499046444893, -0.013286039233207703, -0.07117521017789841, -0.06590297073125839, -0.024410460144281387, -0.019032778218388557, 0.014665607362985611, 0.0009649293497204781, -0.052335746586322784, -0.021317414939403534, -0.010843235068023205, 0.025183722376823425, -0.03054383024573326, -0.05831094831228256, 0.0005074528744444251, -0.013839623890817165, -0.03386534005403519, 0.008123639039695263, 0.004723045974969864, -0.030350513756275177, 0.041193749755620956, 0.03551730886101723, 0.04035019129514694, -0.032125502824783325, 0.03275816887617111, 0.04534124210476875, -0.027187172323465347, 0.021545877680182457, -0.046747174113988876, -0.010280863381922245, -0.002513099927455187, -0.0243753120303154, 0.03516582399606705, 0.008620108477771282, 0.04006900638341904, 0.0647079274058342, -0.034199248999357224, -0.007152669131755829, 0.009674555622041225, 0.03743288666009903, 0.06273962557315826, -0.07124550640583038, -0.002603167435154319, 0.0511055551469326, 0.014516227878630161, -0.016546038910746574, 0.003635647241026163, 0.08231720328330994, -0.048996660858392715, -0.06059558317065239, -0.005544636398553848, -0.014085661619901657, 0.04038533940911293, -0.04390016570687294, -0.018575850874185562, 0.0702965036034584, 0.048434291034936905, 0.04295116290450096, 0.0487506240606308, 0.047520436346530914, -0.005737951956689358, 0.019665446132421494, 0.023391161113977432, -0.03943633660674095, 0.02637876197695732, -0.032600004225969315, -0.005452372599393129, -0.03820614889264107, 0.012952130287885666, -0.00837407074868679, 0.000359720375854522, 0.013532076962292194, 0.0626341849565506, 0.00392562011256814, 0.0022231268230825663, 0.03516582399606705, 0.0756390392780304, 0.007367952261120081, -0.03778436779975891, -0.007816092111170292, 0.028048304840922356, -0.01730172708630562, 0.05961143225431442, 0.08175483345985413, -0.013277251273393631, 0.03803040832281113, -0.007258113939315081, -0.05395256355404854, 0.0008814522298052907, -0.07676377892494202, 0.05240604281425476, -0.0005019609816372395, -0.02165132202208042, -0.04386501759290695, -0.09637650102376938, 0.012293100357055664, 0.018487980589270592, 0.01778501458466053, -0.0676603838801384, -0.004670323804020882, -0.044708576053380966, -0.03354900702834129, 0.0018672507721930742, 0.020526578649878502, -0.0083477096632123, -0.0035587605088949203, -0.052687227725982666, 0.02815374918282032, 0.057115908712148666, -0.03310965374112129, 0.013277251273393631, -0.06635989993810654, -0.008057736791670322, -0.0599629171192646, -0.0511055551469326, 0.04741499200463295, 0.020509004592895508, 0.0200872253626585, 0.03469132259488106, 0.06811731308698654, 0.010157844051718712, -0.03683536499738693, -0.012706092558801174, -0.016343936324119568, 0.031176498159766197, -0.012618222273886204, -0.054760973900556564, -0.01316301990300417, 0.0052985986694693565, -0.02360204979777336, -0.004028868395835161, 0.007578841410577297, 0.03349628299474716, -0.006858302280306816, -0.0010709232883527875, -0.05634264647960663, -0.026255743578076363, 0.03855763003230095, -0.013655095361173153, 0.05971687659621239, -0.013338761404156685, -0.027169598266482353, -0.041439786553382874, 0.011335310526192188, 0.04038533940911293, 0.025904260575771332, -0.03217822313308716, 0.03405865654349327, -0.03683536499738693, -0.06555148959159851, -0.042669977992773056, 0.013496927917003632, 0.04818825051188469, 0.025746094062924385, 0.051808521151542664, 0.00511846411973238, -0.0007166948053054512, 0.0196478720754385, 0.05043774098157883, 0.0077282218262553215, -0.0010906941024586558, 0.015930945053696632, -0.022846363484859467, -0.016036389395594597, -0.010676281526684761, -0.06477822363376617, 0.041580379009246826, 0.006300324108451605, 0.013848410919308662, -0.024498330429196358, 0.025306740775704384, -0.033812616020441055, -0.015851860865950584, -0.004507763311266899, -0.0073723457753658295, 0.0011269408278167248, 0.023180270567536354, 0.028136175125837326, 0.005166792776435614, 0.002113288501277566, -0.0058346097357571125, 0.003767453134059906, -0.014894071035087109, 0.007495364639908075, 0.05356593430042267, 0.013277251273393631, 0.0006332176853902638, 0.08512905985116959, 0.05535849556326866, 0.04702835902571678, -0.0020144341979175806, -0.023971106857061386, 0.00495590316131711, 0.016897521913051605, -0.04133434221148491, 0.05240604281425476, -0.04632539302110672, -0.021194394677877426, -0.011133208870887756, 0.020596874877810478, -0.052722375839948654, -0.043724425137043, 0.013365122489631176, -0.005531455855816603, 0.044603131711483, 0.001013807370327413, 0.06681682169437408, 0.029120326042175293, -0.014648033306002617, 0.007157062646001577, -0.0044748117215931416, -0.051984261721372604, -0.03578091785311699, 0.005408436991274357, 0.013013639487326145, -0.01631757616996765, -0.0599629171192646, 0.026097577065229416, -0.010219354182481766, 0.022442158311605453, -0.018751591444015503, -0.023654771968722343, 0.00620366632938385, 0.023654771968722343, 0.013874772004783154, 0.007890782319009304, -0.027661673724651337, -0.0073899198323488235, 0.030877739191055298, 0.017758654430508614, 0.03669477254152298, 0.027573803439736366, -0.01246884185820818, -0.028645824640989304, -0.019893910735845566, 0.012539138086140156, 0.015763990581035614, -0.020667171105742455, 0.00012178319593658671, -0.0017046901630237699, 0.008782668970525265, 0.025746094062924385, -0.0017925607971847057, -0.023742644116282463, -0.03557002916932106, -0.04593876376748085, 0.0056456876918673515, 0.044216498732566833, -0.030526256188750267, 0.048082806169986725, -0.016194555908441544, -0.0502268485724926, -0.033338114619255066, -0.05391741544008255, -0.02797800675034523, -0.015403720550239086, -0.030684422701597214, 0.007064798381179571, 0.03101833164691925, 0.03704625740647316, 0.020719893276691437, 0.00943730492144823, -0.05644809082150459, 0.0021561256144195795, -0.013083936646580696, 0.006963747087866068, -0.05961143225431442, -0.029999032616615295, 0.012170081958174706, 0.05767827853560448, -0.0655866339802742, -0.07584992796182632, -0.042705126106739044, 0.02564064972102642, 0.046044208109378815, -0.030948035418987274, -0.009525176137685776, -0.032301243394613266, 0.03335569053888321, 0.01834738627076149, 0.008281806483864784, -0.02064959704875946, -0.04129919409751892, 0.02003450319170952, -0.06224755197763443, -0.03778436779975891, 0.013514501973986626, 0.007280081510543823, 0.025306740775704384, -0.03114135004580021, 0.0024735580664128065, 0.0070428308099508286, -0.03908485546708107, -0.009490028023719788, 0.014068087562918663, -0.05637779459357262, 0.01332118734717369, 0.08041919767856598, 0.029296066612005234, 0.04298631101846695, -0.016862373799085617, -0.06309110671281815, 0.0570104643702507, 0.04277542233467102, -0.05367137864232063, -0.03173886984586716, -0.017855310812592506, -0.05054318532347679, 0.02957725338637829, -0.03365445137023926, -0.022969381883740425, -0.0007161456160247326, 0.005320566240698099, 0.006730889901518822, 0.03409380465745926, -0.002868975978344679, 0.06495396792888641, 0.03655418008565903, 0.03432226553559303, 0.0034950540866702795, 0.019858762621879578, -0.006295930594205856, 0.02212582342326641, -0.013628734275698662, -0.015983667224645615, -0.020421134307980537, -0.040666524320840836, 0.005193153861910105, -0.0277671180665493, -0.01808377541601658, 0.009560324251651764, 0.024533478543162346, -0.030877739191055298, 0.02945423498749733, 0.06393466889858246, 0.026097577065229416, -0.0647079274058342, 0.014525014907121658, -0.08934685587882996, -0.026554502546787262, 0.029419085010886192, 0.0003394002851564437, -0.02272334322333336, 0.022020379081368446, 0.03187946230173111, -0.008330135606229305, -0.05535849556326866, -0.033601727336645126, 0.04541153833270073, 0.07068312913179398, 0.0054304045625030994, 0.02762652561068535, -0.008026981726288795, -0.05739709362387657, -0.02342630922794342, 0.007921537384390831, -0.03504280745983124, -0.0576079823076725, -0.07050739228725433, 0.03757347911596298, 0.017082050442695618, -0.07838059961795807, 0.06456733494997025, 0.011344097554683685, -0.07690437138080597, 0.025623075664043427, -0.06488367170095444, -0.028083452954888344, 0.01591337099671364, 0.03405865654349327, -0.003099636407569051, 0.05792431905865669, -0.0031940971966832876, 0.04562243074178696, 0.07999742031097412, 0.036202698945999146, 0.05201940983533859, -0.009085822850465775, -0.01956000179052353, -0.0010374225676059723, 0.04207245633006096, -0.04836399480700493, 0.08442609757184982, 0.06664108484983444, -0.005100890062749386, -0.017512615770101547, -0.042353641241788864, 0.04330264404416084, -0.05057833343744278, -0.032564856112003326, 0.03718684986233711, -0.061755478382110596, 0.0019144812831655145, -0.014252616092562675, 0.049172401428222656, 0.014797413721680641, -0.028962159529328346, -0.009384582750499249, 0.0009484535548835993, 0.011344097554683685, -0.014498653821647167, 0.02003450319170952, 0.022916659712791443, 0.006867089308798313, -0.008163181133568287, 0.014955581165850163, 0.059189654886722565, -0.01947213150560856, 0.0661841556429863, -0.045095205307006836, -0.03718684986233711, 0.05043774098157883, -0.021053802222013474, 0.04488431662321091, 0.006546361837536097, -0.031071053817868233, -0.022143397480249405, 0.025447333231568336, -0.008233477361500263, -0.0010368734365329146, -0.004859245847910643, 0.021071376278996468, 0.08997952193021774, 0.0010011759586632252, -0.08063008636236191, 0.03523612022399902, 0.04154523089528084, 0.03648388385772705, 0.05855698511004448, -0.012240378186106682, 0.001997958403080702, -0.013171806931495667, -0.01926124095916748, 0.0975012481212616, 0.006937386002391577, 0.007596415933221579, 0.0771152600646019, 0.08730825781822205, 0.055288199335336685, -0.03214307501912117, 0.078591488301754, 0.049523886293172836, 0.02850523218512535, -0.007829273119568825, -0.03022749535739422, 0.043724425137043, 0.01726657897233963, -0.08590232580900192, 0.058064911514520645, 0.027222320437431335, -0.054550085216760635, 0.018118923529982567, -0.007780943997204304, 0.011141995899379253, -0.06843364238739014, -0.017837736755609512, -0.049348145723342896, 0.004745014011859894, 0.004911968018859625, -0.008251051418483257, -0.080348901450634, -0.014094448648393154, 0.03975267335772514, -0.029085177928209305, 0.10143785178661346, 0.022319139912724495, -0.03317994996905327, 0.027749544009566307, -0.02797800675034523, -0.02611515112221241, -0.0466768778860569, 0.009226416237652302, -0.009700917638838291, -0.0013641915284097195, 0.016774503514170647, 0.02850523218512535, -0.01961272396147251, -0.01249520294368267, 0.03405865654349327, 0.0700153186917305, -0.033425986766815186, 0.060490138828754425, -0.022828789427876472, -0.00906824879348278, -0.0003281418757978827, -0.037151701748371124, 0.09827450662851334, -0.0049734776839613914, 0.02694113366305828, 0.02507827617228031, 0.0031611458398401737, -0.010570836253464222, 0.010192993097007275, -0.01496436819434166, -0.009463666938245296, -0.010149057023227215, -0.0502268485724926, -0.006243207957595587, 0.003976145759224892, -0.0407719723880291, -0.056940168142318726, 0.003435741411522031, 0.03353143110871315, 0.005307385697960854, -0.01073779072612524, -0.03456830605864525, -0.017196280881762505, 0.016633909195661545, 0.03718684986233711, -0.02064959704875946, 0.011458329856395721, -0.035675473511219025, -0.0413694903254509, 0.027556229382753372, -0.018487980589270592, -0.01722264289855957, 0.08098156750202179, 0.03606210649013519, 0.04688776656985283, -0.01249520294368267, 0.035376712679862976, 0.010280863381922245, 0.024269867688417435, -0.036026958376169205, -0.015017090365290642, -0.04502490907907486, 0.06920690834522247, 0.029788142070174217, 0.010641132481396198, 0.033373262733221054, 0.017600486055016518, -0.03665962442755699 ]
20,506
metevolsim.metevolsim
initialize_OAT_output_file
Initialize the OAT output file (write the header). Parameters ---------- None Returns ------- None
def initialize_OAT_output_file( self ): """ Initialize the OAT output file (write the header). Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Write the header # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# header = "param_metaid param_id param_wild_type param_val param_dln" for species_id in self.model.species: if not self.model.species[species_id]["constant"]: header += " "+species_id for reaction_id in self.model.reactions: header += " "+reaction_id #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Write the wild-type steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# first_line = "wild_type wild_type 0.0 0.0 0.0" for species_id in self.model.species: if not self.model.species[species_id]["constant"]: first_line += " "+str(self.model.species[species_id]["wild_type_value"]) for reaction_id in self.model.reactions: first_line += " "+str(self.model.reactions[reaction_id]["wild_type_value"]) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Save in output file # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.OAT_output_file = open("output/OAT_sensitivity_analysis.txt", "a") self.OAT_output_file.write(header+"\n"+first_line+"\n") self.OAT_output_file.close()
(self)
[ -0.027922088280320168, -0.042183369398117065, 0.013895366340875626, -0.030999522656202316, 0.05880901962518692, -0.06770355254411697, -0.07442136853933334, 0.040869828313589096, -0.03587838262319565, -0.04049453139305115, -0.03197529539465904, 0.014908668585121632, -0.009199464693665504, 0.03721068426966667, 0.008983668871223927, 0.05982232093811035, 0.006426958832889795, -0.0030141030438244343, 0.0024112823884934187, 0.01392351370304823, 0.02570783533155918, -0.0021110449451953173, -0.09052160382270813, -0.025501422584056854, 0.023418525233864784, -0.018558429554104805, -0.05092778429389, -0.021279333159327507, -0.0009411742212250829, -0.05689500644803047, 0.0025426363572478294, -0.08211495727300644, -0.0001819310273276642, -0.00012974129640497267, -0.004451959393918514, -0.03865557909011841, 0.04890118166804314, 0.041170068085193634, -0.0007511801668442786, 0.05362992361187935, 0.05179096758365631, -0.0725824162364006, 0.003593467641621828, -0.017882896587252617, -0.09510023146867752, 0.032613299787044525, -0.04691210761666298, 0.07033063471317291, 0.017395010218024254, -0.026646077632904053, -0.030530400574207306, -0.012347267009317875, -0.010677196085453033, 0.038542989641427994, -0.022442752495408058, -0.033382657915353775, 0.0235311146825552, 0.005831175018101931, 0.03906840458512306, -0.02863515168428421, -0.012647504918277264, 0.05340474471449852, 0.055056050419807434, 0.002713865600526333, 0.030736813321709633, 0.013792159967124462, -0.04368455708026886, 0.03308241814374924, 0.030042514204978943, 0.052128735929727554, 0.04593633860349655, -0.04282137379050255, 0.03687291964888573, 0.04638669267296791, 0.04049453139305115, -0.0148617560043931, -0.03501519933342934, -0.0162128247320652, -0.0026388061232864857, -0.03798004239797592, -0.051603320986032486, 0.04023182392120361, -0.0032134794164448977, 0.006971139460802078, -0.00493984529748559, -0.029273156076669693, 0.05287932977080345, -0.00836912076920271, 0.01879299059510231, 0.026664843782782555, -0.0401567667722702, 0.027377907186746597, 0.004874167963862419, -0.0004890587297268212, 0.028804035857319832, -0.0011294090654700994, -0.01265688706189394, -0.04353443905711174, -0.0012877373956143856, -0.05126555263996124, -0.07265747338533401, -0.007815557532012463, -0.013060331344604492, 0.03255700320005417, -0.029535863548517227, -0.045335862785577774, 0.00104438082780689, 0.07858716696500778, 0.014073632657527924, -0.0039124698378145695, -0.08264037221670151, -0.02563277631998062, 0.01539655402302742, -0.043797146528959274, 0.04469785839319229, -0.06575201451778412, 0.03235059231519699, 0.056444648653268814, -0.017122920602560043, -0.03216294199228287, 0.0343208983540535, -0.021035389974713326, -0.0563320592045784, 0.022348929196596146, 0.04586127772927284, 0.009907837957143784, 0.020040852949023247, -0.010498929768800735, 0.015058787539601326, -0.05295439064502716, -0.02531377412378788, 0.03666650503873825, 0.017742158845067024, -0.01604394055902958, -0.0027748511638492346, -0.045260801911354065, -0.03280094638466835, -0.038467928767204285, -0.02020973712205887, 0.05194108933210373, 0.0493890680372715, -0.03079310804605484, -0.006910153664648533, -0.055844176560640335, 0.019740615040063858, 0.05055248737335205, -0.01555605512112379, -0.043947264552116394, 0.004679482895880938, -0.02362493798136711, -0.009410569444298744, -0.005310450680553913, -0.09675153344869614, -0.03246317803859711, 0.004963301122188568, -0.04282137379050255, 0.002357333432883024, -0.0212230384349823, 0.0013393406989052892, -0.02375629171729088, -0.002498069778084755, 0.0012666269904002547, 0.04139524698257446, 0.02764061465859413, -0.04049453139305115, 0.03981899842619896, -0.047024697065353394, -0.0030047206673771143, 0.04180807247757912, -0.09697671234607697, -0.028841564431786537, -0.03398313373327255, -0.042483605444431305, -0.003391745500266552, -0.011155699379742146, 0.034621138125658035, 0.0008596644038334489, -0.05111543461680412, 0.0005092895589768887, 0.007055581081658602, -0.003593467641621828, -0.015884440392255783, -0.06759096682071686, 0.05531875789165497, -0.015856292098760605, -0.02377505786716938, 0.05415533855557442, -0.029592158272862434, 0.040944889187812805, 0.05055248737335205, 0.05847125127911568, 0.023512348532676697, -0.02887909486889839, 0.0347524918615818, 0.04439761862158775, -0.046424224972724915, 0.0501396618783474, -0.018858667463064194, 0.013820307329297066, 0.011643585748970509, -0.03373919054865837, 0.00428307568654418, -0.012985272333025932, -0.008139250800013542, 0.025351304560899734, 0.022555341944098473, 0.04447267949581146, -0.014355105347931385, -0.10590878129005432, 0.03240688517689705, 0.020003322511911392, -0.03726698085665703, 0.03358906880021095, -0.017939191311597824, 0.009964131750166416, -0.015584202483296394, 0.012018882669508457, 0.054080281406641006, -0.071794293820858, -0.004193942528218031, -0.029667217284440994, 0.029198097065091133, -0.04454774037003517, 0.022592872381210327, 0.006272148806601763, 0.0493890680372715, 0.012488003820180893, 0.0016712439246475697, -0.0028663298580795527, -0.005591923370957375, -0.011709262616932392, 0.042258426547050476, -0.009729571640491486, 0.008594298735260963, -0.005812410265207291, 0.019271494820713997, -0.005493408069014549, -0.008092339150607586, -0.12182136625051498, -0.04308408126235008, -0.04447267949581146, -0.025426363572478294, 0.014402017928659916, -0.045110683888196945, -0.02555771730840206, -0.0432341992855072, 0.02501353621482849, -0.00979524850845337, -0.0463116355240345, -0.044022321701049805, 0.052841801196336746, 0.021204274147748947, -0.0018307450227439404, -0.005437113344669342, 0.023137051612138748, -0.0624869279563427, -0.035540614277124405, -0.01633479632437229, 0.016597503796219826, -0.026833726093173027, 0.019928263500332832, 0.02347481995820999, 0.012112706899642944, -0.014608430676162243, -0.03332636132836342, -0.013820307329297066, -0.024338003247976303, -0.01064904872328043, -0.0013405134668573737, -0.025670306757092476, 0.06980521976947784, 0.08241519331932068, -0.09052160382270813, -0.04060712084174156, -0.023643702268600464, 0.010236222296953201, 0.06597719341516495, -0.05085272714495659, -0.014871139079332352, 0.06338763982057571, 0.02645842917263508, -0.014186222106218338, 0.0324256494641304, 0.05982232093811035, 0.0024675768800079823, -0.02707766927778721, -0.05092778429389, 0.029742278158664703, 0.0173574797809124, -0.04083229973912239, 0.015490378253161907, 0.06691543012857437, 0.05261662229895592, 0.043947264552116394, 0.027133964002132416, 0.012253442779183388, -0.011784321628510952, -0.00030932671506889164, 0.04308408126235008, -0.06740331649780273, -0.021054154261946678, -0.01752636395394802, 0.0633125826716423, -0.07074346393346786, -0.027265317738056183, -0.0021778945811092854, 0.007843704894185066, -0.012985272333025932, 0.033213771879673004, 0.0200783833861351, 0.025445127859711647, 0.021729689091444016, 0.06601472198963165, 0.025276243686676025, -0.005240082740783691, 0.016578739508986473, 0.0015246435068547726, -0.0036872918717563152, 0.07903752475976944, 0.05843372270464897, -0.01837078109383583, -0.003049287013709545, 0.02152327634394169, -0.03841163590550423, 0.029198097065091133, -0.10253110527992249, 0.056069351732730865, 0.005319833289831877, -0.02375629171729088, -0.03351401165127754, -0.07978811860084534, -0.03899334371089935, -0.01921520009636879, 0.03274465352296829, 0.005080581642687321, -0.0031220009550452232, -0.04293396323919296, -0.07475914061069489, 0.035690732300281525, 0.005540320184081793, -0.004360480699688196, -0.013060331344604492, -0.04150783270597458, 0.014599048532545567, 0.022799285128712654, -0.02253657765686512, 0.0043698628433048725, -0.04736246541142464, -0.007337053772062063, -0.00743087800219655, 0.009293288923799992, 0.07888740301132202, 0.04139524698257446, 0.06860426813364029, 0.04998954385519028, 0.03143111243844032, -0.027452966198325157, -0.005315142218023539, 0.0019034588476642966, 0.015753086656332016, 0.010461400263011456, 0.00522600905969739, -0.00979524850845337, -0.006877315230667591, -0.00979524850845337, -0.05028977990150452, 0.00040109854307956994, 0.04736246541142464, 0.0030774343758821487, -0.0362912081182003, -0.04053206369280815, -0.01695403642952442, 0.015978263691067696, -0.016344178467988968, 0.040944889187812805, 0.0424460768699646, -0.019233964383602142, -0.010254987515509129, -0.025801660493016243, -0.04751258343458176, 0.0023514695931226015, 0.02916056662797928, -0.010405105538666248, 0.010602137073874474, -0.04878859221935272, -0.07198194414377213, 0.03064299002289772, 0.018530283123254776, -0.02424417808651924, 0.00949501059949398, 0.05603182315826416, 0.023437289521098137, -0.0028381827287375927, 0.021129213273525238, 0.06901709735393524, 0.029610922560095787, -0.01188752893358469, 0.022874344140291214, -0.035765793174505234, 0.018361398950219154, 0.011052493005990982, -0.08511733263731003, -0.012412943877279758, 0.037848688662052155, -0.04300902038812637, -0.05513111129403114, 0.026571018621325493, 0.008364428766071796, -0.0058077191933989525, -0.020472444593906403, -0.019552966579794884, 0.03193776309490204, 0.031449876725673676, 0.011577908881008625, 0.024281708523631096, 0.03803633898496628, 0.0027607777155935764, 0.0366477407515049, -0.0035442097578197718, 0.02223633974790573, 0.009626365266740322, 0.04908883199095726, 0.05010213330388069, 0.10005414485931396, 0.05610688403248787, -0.00030141029856167734, -0.0022341893054544926, 0.01466472540050745, -0.0059156171046197414, 0.02831614948809147, -0.038467928767204285, 0.013895366340875626, -0.05655723810195923, -0.005953146610409021, 0.023643702268600464, 0.00987969059497118, 0.005835866555571556, -0.06834156066179276, -0.002582511631771922, 0.0532546266913414, 0.0381864570081234, -0.00020260167366359383, 0.026589782908558846, 0.044097382575273514, -0.022592872381210327, 0.02377505786716938, -0.008791329339146614, -0.00015686237020418048, 0.03910593315958977, 0.023118287324905396, 0.03143111243844032, 0.010883609764277935, -0.011596673168241978, -0.021260568872094154, -0.02191733755171299, -0.009860925376415253, 0.04878859221935272, -0.01388598419725895, -0.002189622726291418, -0.0140830148011446, -0.023981470614671707, 0.03495890274643898, 0.037173155695199966, -0.0021520929876714945, 0.035765793174505234, -0.03582208603620529, -0.005906234495341778, -0.005169714335352182, -0.03606602922081947, -0.00787185225635767, -0.0393686406314373, 0.00663337204605341, -0.002102835336700082, -0.02075391635298729, 0.034395959228277206, -0.01686021126806736, -0.020735152065753937, 0.004519981797784567, -0.026608549058437347, -0.03340142220258713, -0.028691446408629417, -0.0470997579395771, -0.039256054908037186, -0.0025097979232668877, 0.015678027644753456, 0.05974726378917694, 0.019871968775987625, -0.0694299191236496, -0.012666269205510616, -0.0656394213438034, -0.015424701385200024, 0.001813153037801385, -0.05595676228404045, -0.050665076822042465, -0.006910153664648533, 0.0972018912434578, -0.0017275384161621332, 0.014814844354987144, -0.06342516839504242, -0.019421612843871117, 0.029273156076669693, -0.016803918406367302, -0.0624869279563427, -0.05291685834527016, -0.05569405481219292, 0.017657717689871788, -0.057683128863573074, -0.08857006579637527, -0.008059500716626644, 0.020735152065753937, 0.022198809310793877, -0.03719191998243332, -0.007674821186810732, 0.01142778992652893, -0.0008901573019102216, 0.035315435379743576, 0.005286994855850935, 0.009161935187876225, -0.01139026042073965, 0.03426460549235344, -0.0640256479382515, -0.027340376749634743, -0.006295605096966028, -0.014805461280047894, -0.023437289521098137, 0.01705724373459816, 0.002594239544123411, 0.03734203800559044, 0.006534856744110584, -0.008050117641687393, -0.029817337170243263, -0.039481230080127716, -0.022949403151869774, 0.04030688479542732, 0.03711685910820961, -0.012666269205510616, 0.029685983434319496, -0.024281708523631096, 0.02253657765686512, 0.0049867574125528336, -0.03039904683828354, -0.036009736359119415, -0.024957241490483284, -0.08504227548837662, 0.030849402770400047, -0.018605342134833336, 0.008955521509051323, -0.015584202483296394, -0.017516981810331345, 0.001755685661919415, 0.006248692981898785, -0.012825770303606987, 0.05847125127911568, 0.014993109740316868, 0.04098241776227951, 0.012478620745241642, 0.045035626739263535, -0.003138420172035694, 0.03614109009504318, 0.037398334592580795, 0.000759389775339514, 0.018652254715561867, -0.024525649845600128, 0.0010907065588980913, 0.0308681670576334, 0.047587644308805466, -0.0007582169491797686, 0.04023182392120361, -0.06304987519979477, 0.02338099479675293, 0.06755343824625015, 0.015387171879410744, -0.04683705046772957, -0.021260568872094154, -0.0749092549085617, -0.024713298305869102, 0.01960926130414009, 0.07918763905763626, -0.0013862528139725327, 0.014927432872354984, -0.000015860325220273808, 0.010048573836684227, -0.005493408069014549, -0.04237101599574089, 0.06578954309225082, 0.029817337170243263, 0.0339643657207489, 0.04991448298096657, 0.01708539016544819, -0.03479002043604851, -0.04177054390311241, -0.016475532203912735, 0.015950117260217667, -0.055206168442964554, -0.03064299002289772, 0.05802089720964432, 0.05231638252735138, -0.04405985400080681, 0.021316861733794212, 0.0366852693259716, -0.05115296319127083, 0.009030581451952457, -0.03828028216958046, 0.017864130437374115, 0.020491208881139755, -0.02687125653028488, 0.01404548529535532, 0.03289477154612541, -0.02377505786716938, 0.03490260988473892, 0.04683705046772957, 0.05179096758365631, 0.024281708523631096, -0.05828360468149185, -0.029066743329167366, -0.029929926618933678, 0.04120759665966034, -0.03411448746919632, 0.03116840496659279, 0.011906293220818043, 0.02553895302116871, 0.009870307520031929, -0.032369356602430344, 0.05002707242965698, -0.05820854380726814, -0.0012830462073907256, -0.02439429610967636, -0.07543466985225677, 0.043947264552116394, -0.03921852260828018, 0.02895415388047695, -0.02625201642513275, -0.016803918406367302, -0.01057398971170187, -0.007107184734195471, 0.03555937856435776, -0.017188597470521927, -0.018924344331026077, 0.0012548989616334438, 0.011493466794490814, 0.016822682693600655, -0.002624732442200184, 0.048976242542266846, -0.00888984464108944, -0.0020641328301280737, -0.01018930971622467, -0.04173301160335541, -0.008214310742914677, -0.024657005444169044, -0.020397385582327843, -0.016109617426991463, -0.0019843822810798883, 0.006422267761081457, 0.00561537966132164, 0.03193776309490204, -0.05847125127911568, 0.00602351501584053, -0.0010496584000065923, 0.05310450866818428, 0.020416149869561195, -0.02360617369413376, -0.009021198377013206, 0.04856341704726219, -0.020190970972180367, 0.06601472198963165, -0.037923749536275864, 0.005821792874485254, -0.014289428479969501, -0.01253491546958685, 0.030004985630512238, 0.0023514695931226015, 0.02424417808651924, 0.06049785763025284, 0.057157713919878006, 0.03647885471582413, -0.044960565865039825, 0.05449310690164566, 0.061323508620262146, 0.07108122855424881, -0.009199464693665504, 0.0343208983540535, 0.0579083077609539, 0.05100284516811371, -0.11919428408145905, 0.04120759665966034, 0.015724938362836838, -0.01392351370304823, 0.03497766703367233, -0.02206745557487011, -0.04368455708026886, -0.06612730771303177, -0.02293063886463642, -0.036535151302814484, 0.004306531511247158, 0.02523871511220932, 0.008172089233994484, -0.003863212186843157, -0.002824109047651291, -0.02368123270571232, 0.01489928551018238, 0.05340474471449852, 0.03227553144097328, 0.0026951006148010492, 0.047437526285648346, -0.04154536500573158, 0.007468407973647118, -0.01663503423333168, -0.005892160814255476, -0.032613299787044525, -0.013520070351660252, 0.014514606446027756, 0.06507647782564163, 0.00033014395739883184, -0.0347149595618248, -0.006361281964927912, 0.03358906880021095, -0.04139524698257446, 0.03873063623905182, -0.019703086465597153, -0.029911160469055176, -0.02308075688779354, -0.0028921314515173435, 0.0570826530456543, 0.017319951206445694, 0.004953918978571892, -0.00009133201092481613, -0.044022321701049805, 0.004679482895880938, 0.01611900143325329, -0.023099523037672043, -0.01532149501144886, 0.002465231344103813, -0.04454774037003517, 0.03364536538720131, 0.027978381142020226, -0.01523705292493105, -0.01631603203713894, -0.0002501001872587949, 0.04173301160335541, 0.015190141275525093, -0.028447503224015236, 0.009504393674433231, -0.0076513648964464664, 0.015415319241583347, -0.012394179590046406, 0.028972918167710304, 0.05528122931718826, -0.019121374934911728, -0.03540926054120064, 0.06965509802103043, 0.01847398839890957, -0.029348215088248253, 0.0725824162364006, 0.01077102031558752, 0.08309073001146317, 0.007135331630706787, 0.04770023375749588, 0.017582658678293228, 0.023812586441636086, -0.017488833516836166, 0.001686490373685956, -0.05528122931718826, 0.0424460768699646, 0.04661187157034874, 0.041657954454422, 0.0794878751039505, -0.04113253578543663, -0.05648218095302582 ]
20,507
metevolsim.metevolsim
initialize_random_analysis
Initialize the multivariate random sensitivity analysis algorithm. Parameters ---------- sigma : float > 0.0 Kinetic parameters mutation size. nb_iterations : int > 0 Number of iterations of the multivariate random analysis. Returns ------- None
def initialize_random_analysis( self, sigma, nb_iterations ): """ Initialize the multivariate random sensitivity analysis algorithm. Parameters ---------- sigma : float > 0.0 Kinetic parameters mutation size. nb_iterations : int > 0 Number of iterations of the multivariate random analysis. Returns ------- None """ assert sigma > 0.0, "The mutation size sigma must be positive. Exit." assert nb_iterations > 0, "The number of iterations must be positive. Exit." self.sigma = sigma self.nb_iterations = nb_iterations self.model.compute_wild_type_steady_state() self.model.compute_mutant_steady_state() self.initialize_random_output_file() self.iterations = 0
(self, sigma, nb_iterations)
[ -0.008001772686839104, -0.013402418233454227, 0.012035724706947803, 0.034334879368543625, -0.011295064352452755, 0.022907555103302002, -0.07582947611808777, -0.04105372354388237, 0.02438887394964695, 0.06799963861703873, -0.027898192405700684, 0.07364276051521301, -0.03262430801987648, 0.03064921498298645, -0.07942696660757065, 0.010554404929280281, 0.03999563679099083, 0.062285974621772766, -0.03205999732017517, 0.015086538158357143, -0.08626925200223923, 0.033276792615652084, -0.05875902250409126, 0.045779839158058167, 0.02022707089781761, 0.03131933510303497, -0.03512844443321228, -0.047790203243494034, 0.053503863513469696, 0.019504046067595482, -0.062285974621772766, -0.039713483303785324, 0.036821380257606506, 0.040242522954940796, 0.047754932194948196, -0.06972784548997879, 0.04373420774936676, 0.035604581236839294, -0.07843941450119019, 0.0252706129103899, 0.024865012615919113, -0.061227891594171524, 0.07142078131437302, -0.017793474718928337, -0.02564094215631485, -0.0067320698872208595, 0.04676738753914833, 0.0778045654296875, -0.020332880318164825, -0.038761205971241, -0.04091264680027962, -0.004545359872281551, 0.03780892863869667, -0.0034718436654657125, -0.05519680306315422, 0.04391055554151535, 0.03752677142620087, 0.0057180714793503284, 0.04927152395248413, -0.03211290016770363, 0.015254068188369274, 0.018031543120741844, 0.012979184277355671, -0.01702636107802391, -0.03643341735005379, 0.0008663076441735029, -0.05096445977687836, 0.05770093947649002, 0.017652396112680435, 0.056007999926805496, 0.014945460483431816, 0.0007919109775684774, 0.030173076316714287, 0.054385602474212646, 0.038443777710199356, 0.05004745349287987, -0.09367585182189941, -0.05625488609075546, -0.03474047780036926, 0.01003417931497097, 0.022713571786880493, 0.010448595508933067, -0.002812744351103902, -0.027157532051205635, -0.021549677476286888, -0.00730519974604249, -0.004106694832444191, -0.010686664842069149, 0.11194546520709991, -0.05382129177451134, -0.03567512333393097, 0.008804154582321644, 0.06888137757778168, 0.00036233922583051026, 0.010721934959292412, 0.061404239386320114, 0.01830488257110119, -0.04137114807963371, 0.07286683470010757, -0.08746841549873352, 0.012079811654984951, -0.02384219691157341, 0.07152659446001053, 0.02347186766564846, -0.034176167100667953, 0.011471412144601345, -0.008830606937408447, -0.01628570258617401, 0.008239842019975185, 0.023736389353871346, -0.030173076316714287, 0.0931115373969078, -0.023048631846904755, 0.03823216259479523, -0.05269266664981842, -0.02315444126725197, 0.012864558026194572, 0.0009236205951310694, 0.005497636739164591, 0.012520680204033852, -0.035586949437856674, 0.01523643359541893, -0.011506681330502033, 0.0487777478992939, 0.007468321360647678, 0.007803381886333227, 0.025676211342215538, -0.01737023890018463, -0.00248870556242764, -0.024477047845721245, 0.021726025268435478, -0.042041271924972534, 0.027104627341032028, 0.0005654145497828722, -0.019786201417446136, -0.043310973793268204, 0.016947004944086075, -0.06514281034469604, 0.017819926142692566, 0.013834469951689243, 0.007613807916641235, 0.019786201417446136, -0.0037914735730737448, -0.00843382440507412, -0.011083447374403477, 0.05015325918793678, 0.045638762414455414, -0.05646650493144989, -0.018710481002926826, -0.08380038291215897, -0.004144168924540281, -0.013737479224801064, -0.003037587506696582, 0.016964640468358994, -0.038796473294496536, 0.01574784144759178, 0.07533569633960724, -0.04592091962695122, -0.030243614688515663, -0.010863012634217739, -0.022695938125252724, -0.01336714904755354, -0.02616998553276062, 0.024247797206044197, -0.025958368554711342, -0.009893100708723068, -0.0067320698872208595, 0.008760067634284496, -0.045638762414455414, -0.019221888855099678, -0.05597273260354996, 0.00048826244892552495, -0.05921752750873566, -0.03819689154624939, -0.012353150174021721, 0.034299612045288086, 0.017864013090729713, -0.03213053569197655, 0.04013671725988388, -0.0002693434071261436, -0.024847378954291344, -0.043487321585416794, -0.038443777710199356, -0.03188364952802658, -0.03347077593207359, 0.034352514892816544, 0.007962094619870186, -0.00805467739701271, 0.02941478230059147, 0.0037231389433145523, 0.02959112823009491, -0.008297154679894447, 0.0026165577583014965, 0.010995273478329182, 0.03410562872886658, 0.038267429918050766, 0.028568312525749207, 0.012150350026786327, 0.0000015585409300911124, 0.01722916215658188, 0.026963550597429276, 0.015739023685455322, -0.026134716346859932, -0.04440432786941528, 0.025852559134364128, 0.013658122159540653, -0.002225286327302456, 0.02259012870490551, -0.0079753203317523, 0.020138897001743317, -0.02812744304537773, -0.06443741917610168, 0.09261776506900787, 0.019080812111496925, 0.02687537670135498, -0.07117389887571335, 0.06916353106498718, 0.0008183631580322981, 0.02616998553276062, 0.0016223980346694589, 0.02650504559278488, -0.03475811332464218, -0.01844595931470394, 0.025923099368810654, -0.03636287897825241, 0.06126315891742706, 0.0155097721144557, 0.011524315923452377, -0.03795000538229942, -0.031266432255506516, 0.009381692856550217, 0.027016453444957733, 0.04962421953678131, -0.057983092963695526, -0.05681920051574707, -0.016708936542272568, 0.029361877590417862, -0.0007318425923585892, -0.05699554830789566, -0.026064176112413406, -0.03438778594136238, -0.03285355865955353, 0.0018670803401619196, 0.02708699367940426, -0.08013235777616501, 0.024706300348043442, 0.012591219507157803, 0.024847378954291344, 0.0014306199736893177, -0.0016532588051632047, 0.0035159303806722164, -0.041864924132823944, -0.05473829805850983, 0.04595618695020676, 0.030331788584589958, -0.011868194676935673, 0.04750804603099823, 0.050259068608284, 0.05509099364280701, -0.03890228271484375, 0.020385783165693283, -0.005003863479942083, -0.033417873084545135, 0.08168421685695648, -0.061051543802022934, 0.017837561666965485, -0.015112990513443947, 0.03946659713983536, 0.025499865412712097, -0.024512317031621933, 0.05145823210477829, 0.05071757361292839, -0.020756114274263382, -0.041688576340675354, -0.0027333879843354225, 0.006022270768880844, 0.00582828838378191, 0.0124501409009099, -0.06764694303274155, 0.04433378949761391, 0.06835233420133591, -0.013058540411293507, 0.0075829471461474895, 0.07392492145299911, -0.04398109391331673, 0.014689755626022816, -0.03692718967795372, 0.0014107809402048588, 0.04747277870774269, -0.03974875062704086, -0.005845923442393541, -0.021267522126436234, 0.01597709394991398, 0.016276884824037552, 0.028391964733600616, -0.03706826642155647, -0.04465121403336525, 0.00877329334616661, 0.015395146794617176, 0.02920316345989704, 0.022872285917401314, -0.027827652171254158, 0.008702754974365234, -0.0019530497957020998, 0.04440432786941528, 0.008169302716851234, 0.03823216259479523, -0.03713880851864815, 0.029502956196665764, 0.021778929978609085, -0.016206344589591026, 0.06094573438167572, 0.03974875062704086, 0.031090084463357925, -0.004968593828380108, -0.036645032465457916, 0.01740550994873047, -0.06814071536064148, 0.006745296064764261, 0.05336278676986694, -0.014222434721887112, -0.011594855226576328, -0.035957276821136475, -0.06821125745773315, 0.017625942826271057, -0.06457849591970444, -0.0061853923834860325, -0.0159506406635046, -0.07053904235363007, 0.0013137897476553917, -0.06196855008602142, -0.02043868787586689, 0.04842505231499672, 0.0009677075431682169, -0.047966551035642624, -0.012820471078157425, -0.02867412194609642, -0.019133714959025383, 0.04574457183480263, -0.07237306237220764, -0.006207435857504606, -0.021937642246484756, -0.043275702744722366, 0.03258903697133064, 0.02564094215631485, -0.012652941048145294, 0.011277429759502411, -0.05699554830789566, -0.004518907517194748, -0.05487937480211258, 0.022131625562906265, 0.08408254384994507, -0.0067320698872208595, 0.06754113733768463, 0.05607854202389717, 0.06842287629842758, -0.01740550994873047, 0.020138897001743317, -0.027333879843354225, -0.018904464319348335, 0.026275794953107834, 0.04782547056674957, -0.016259249299764633, -0.02096773125231266, 0.08944350481033325, -0.040983185172080994, -0.0495184101164341, 0.036539226770401, 0.03921970725059509, -0.03373529762029648, 0.021091174334287643, -0.1252773404121399, -0.03496973216533661, 0.040947914123535156, 0.02135569602251053, -0.0037010954692959785, -0.06912826001644135, 0.008927597664296627, 0.0071156262420117855, -0.014381147921085358, 0.0010834356071427464, 0.007829833775758743, 0.0005535661475732923, -0.029467685148119926, 0.002898713806644082, -0.03350604698061943, -0.007604990620166063, 0.02310153655707836, 0.03911390155553818, 0.017996273934841156, 0.024300700053572655, -0.02327788434922695, 0.03287119418382645, -0.02759840153157711, 0.05540841817855835, 0.04218234866857529, -0.005387419369071722, 0.007142078131437302, -0.04824870452284813, 0.05329224839806557, -0.04355785995721817, -0.0142577039077878, -0.053151171654462814, 0.027192801237106323, 0.004362399224191904, -0.07071539014577866, 0.009178892709314823, 0.005753340665251017, -0.018031543120741844, 0.014081357046961784, 0.007732842583209276, -0.0009880977449938655, -0.03563985228538513, -0.012794018723070621, 0.02581728994846344, 0.03331206366419792, 0.025164803490042686, -0.049377329647541046, 0.023930370807647705, 0.010713117197155952, 0.048319246619939804, 0.013772748410701752, 0.050117991864681244, 0.03407035768032074, 0.05509099364280701, 0.05301009118556976, -0.06045196205377579, 0.004867194220423698, -0.04637942090630531, -0.01280283648520708, -0.03671557083725929, 0.010095900855958462, -0.007627034094184637, 0.05865321680903435, -0.008270703256130219, 0.007825424894690514, -0.07992073893547058, -0.0036063087172806263, -0.012679393403232098, -0.03138987347483635, 0.012935097329318523, 0.03410562872886658, -0.00331313069909811, -0.04768439382314682, -0.02973220683634281, -0.011303882114589214, 0.05145823210477829, 0.02061503566801548, -0.012097446247935295, -0.0290268175303936, 0.018049178645014763, 0.038761205971241, 0.0164620503783226, -0.032730117440223694, 0.051176074892282486, 0.04271139204502106, -0.018781021237373352, -0.005841514561325312, 0.00713326083496213, -0.013314244337379932, -0.01633860543370247, -0.006604217924177647, -0.052269432693719864, 0.0030309746507555246, 0.029256068170070648, -0.024071449413895607, 0.01828724704682827, 0.0033924870658665895, -0.002894305158406496, -0.032553769648075104, 0.0011616898700594902, 0.0290268175303936, 0.03706826642155647, 0.003923734184354544, -0.041335880756378174, -0.08760949224233627, -0.05322171002626419, -0.03548114001750946, -0.0329241007566452, -0.0007549882284365594, 0.007499182131141424, 0.007640260271728039, 0.014575130306184292, 0.06239178404211998, -0.016223980113863945, -0.041512228548526764, 0.03267721086740494, -0.05078811198472977, 0.031830742955207825, -0.04521552845835686, -0.016567857936024666, -0.02973220683634281, 0.06591873615980148, 0.05964076146483421, 0.0025945142842829227, 0.027139896526932716, 0.04260558262467384, 0.022695938125252724, 0.010986455716192722, -0.009646214544773102, -0.012723480351269245, -0.01354349683970213, -0.03410562872886658, -0.03389400988817215, 0.016779474914073944, 0.014857286587357521, -0.013234888203442097, -0.07858049869537354, -0.034669939428567886, 0.008067903108894825, 0.03287119418382645, -0.046873193234205246, 0.024794474244117737, -0.02937951125204563, 0.06147477775812149, -0.0037936780136078596, -0.024159623309969902, -0.007997363805770874, 0.0015320198144763708, 0.04609726369380951, 0.026046542450785637, -0.05544368922710419, -0.048037089407444, 0.003421143628656864, 0.03819689154624939, -0.020720845088362694, 0.013975548557937145, 0.022449050098657608, 0.036997728049755096, 0.027157532051205635, -0.020667940378189087, -0.035410601645708084, -0.03530479222536087, 0.07099755108356476, 0.023877466097474098, -0.03745623305439949, 0.011894646100699902, -0.04570930078625679, 0.023789292201399803, -0.028956277295947075, -0.03869066759943962, -0.011330333538353443, -0.003941369242966175, -0.0530453622341156, 0.034123264253139496, 0.029326608404517174, -0.027016453444957733, -0.008914371952414513, 0.03553404286503792, -0.010245796293020248, 0.038091082125902176, 0.02278411202132702, -0.04500390961766243, -0.016171075403690338, 0.07949750125408173, -0.04190019145607948, -0.007097991183400154, -0.026610855013132095, 0.022166894748806953, 0.045250795781612396, 0.002473275177180767, -0.02706935815513134, 0.004814289975911379, 0.008671893738210201, -0.024335971102118492, 0.0003292740439064801, -0.022995728999376297, -0.00008741606143303216, -0.03571039065718651, -0.016770657151937485, 0.025499865412712097, -0.0003317539521958679, -0.006141305435448885, 0.012053359299898148, -0.0652838870882988, 0.015536224469542503, 0.016426779329776764, 0.015377511270344257, -0.013746296055614948, 0.03302990645170212, 0.041476957499980927, -0.02421252615749836, 0.008596946485340595, 0.027668939903378487, -0.030790293589234352, 0.033946916460990906, -0.03205999732017517, 0.003220548154786229, -0.020138897001743317, 0.025923099368810654, -0.03392928093671799, 0.025517499074339867, -0.056572314351797104, -0.08330661058425903, -0.049200981855392456, 0.031830742955207825, 0.03170730173587799, -0.048848289996385574, 0.018516499549150467, -0.05301009118556976, -0.09685010462999344, 0.007931233383715153, -0.051916737109422684, 0.003736365120857954, 0.016365058720111847, -0.0043557859025895596, -0.005651941057294607, 0.021073538810014725, 0.02260776422917843, 0.04567402973771095, -0.004380033817142248, 0.009037815034389496, 0.018728116527199745, -0.010272248648107052, 0.024618126451969147, -0.0012256158515810966, 0.0073316521011292934, -0.025764385238289833, 0.05946441367268562, -0.028409600257873535, -0.058194711804389954, 0.02153204381465912, -0.019045541062951088, 0.00009823113214224577, -0.054597221314907074, -0.07272575795650482, -0.011824107728898525, -0.07413653284311295, -0.01262648869305849, -0.008976093493402004, -0.0010718628764152527, -0.042570311576128006, 0.002806131262332201, -0.04010144621133804, 0.05569057539105415, -0.0073404693976044655, -0.012838105671107769, 0.05558476597070694, 0.011753568425774574, 0.05794782564043999, 0.03103717975318432, 0.0038024953100830317, 0.030613945797085762, -0.02597600221633911, 0.007785746827721596, -0.01236196793615818, -0.003934755921363831, 0.07716971635818481, 0.004668802954256535, 0.021655486896634102, -0.00645432248711586, -0.0036239433102309704, -0.016744205728173256, 0.02438887394964695, -0.041512228548526764, -0.0972733423113823, 0.02327788434922695, 0.01809326559305191, 0.07470084726810455, -0.03567512333393097, -0.019627489149570465, 0.019786201417446136, 0.0009605434024706483, -0.007772521115839481, 0.07618216425180435, -0.027474958449602127, -0.006383783649653196, -0.01685883104801178, -0.031619127839803696, 0.05032960698008537, 0.011965185403823853, -0.01902790740132332, 0.034669939428567886, 0.015915371477603912, -0.00933760590851307, 0.02027997560799122, 0.017493683844804764, -0.013596400618553162, 0.008217798545956612, 0.042958278208971024, 0.002123886486515403, 0.03780892863869667, -0.002224184339866042, -0.03780892863869667, 0.016947004944086075, 0.0006552416016347706, 0.003112535225227475, -0.010898282751441002, 0.004823107272386551, 0.00470407260581851, -0.051176074892282486, -0.021038269624114037, 0.03086083196103573, 0.00030144420452415943, -0.019239524379372597, 0.04602672532200813, -0.03749150037765503, -0.01652377098798752, -0.01648850180208683, -0.043487321585416794, 0.08358876407146454, 0.05770093947649002, -0.04101845249533653, 0.02978511154651642, -0.05212835222482681, 0.019962549209594727, -0.060310881584882736, 0.029696937650442123, 0.03837323933839798, -0.0297674760222435, -0.0029846832621842623, -0.006842287257313728, 0.019098445773124695, 0.005572584457695484, 0.0021327040158212185, 0.04838978499174118, 0.02315444126725197, 0.05590219423174858, 0.00640582712367177, -0.0011385442921891809, 0.0023233797401189804, -0.05844159796833992, -0.0012454550014808774, -0.010695482604205608, -0.05258685722947121, -0.01774938777089119, 0.0010696584358811378, -0.0030728571582585573, 0.10185837745666504, -0.012652941048145294, -0.0263816025108099, -0.02867412194609642, -0.008812971413135529, -0.004867194220423698, -0.05865321680903435, -0.008402964100241661, 0.010113535448908806, 0.03401745483279228, 0.013032088056206703, -0.00038052507443353534, -0.003641578136011958, 0.019415872171521187, -0.007168530486524105, -0.005484410561621189, 0.03149568289518356, 0.008067903108894825, -0.014804381877183914, 0.01989201083779335, 0.03121352754533291, 0.0009693607571534812, 0.029273703694343567, -0.002457844791933894, 0.04673211649060249, 0.017264431342482567, 0.005347741302102804, 0.01934533379971981, 0.073078453540802, -0.03639814630150795, 0.005224297754466534, -0.0470142737030983, 0.013517044484615326, -0.0807672068476677, 0.04842505231499672, 0.00713326083496213, -0.004598264116793871, 0.06076938658952713, 0.02525297738611698, -0.022113990038633347 ]
20,508
metevolsim.metevolsim
initialize_random_output_file
Initialize the multivariate random output file (write the header). Parameters ---------- None Returns ------- None
def initialize_random_output_file( self ): """ Initialize the multivariate random output file (write the header). Parameters ---------- None Returns ------- None """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Write the header # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# header = "iteration" for species_id in self.model.species: if not self.model.species[species_id]["constant"]: header += " "+species_id for reaction_id in self.model.reactions: header += " "+reaction_id #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Write the wild-type steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# first_line = "wild_type" for species_id in self.model.species: if not self.model.species[species_id]["constant"]: first_line += " "+str(self.model.species[species_id]["wild_type_value"]) for reaction_id in self.model.reactions: first_line += " "+str(self.model.reactions[reaction_id]["wild_type_value"]) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Save in output file # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.output_file = open("output/random_sensitivity_analysis.txt", "a") self.output_file.write(header+"\n"+first_line+"\n") self.output_file.close()
(self)
[ -0.02719735912978649, -0.008397277444601059, 0.01267233956605196, -0.0018897347617894411, 0.06869741529226303, -0.030143123120069504, -0.08448226004838943, 0.02903151325881481, -0.006600176449865103, 0.00560899218544364, -0.01788763701915741, 0.06736348569393158, -0.018137749284505844, 0.06291705369949341, -0.0110790329053998, 0.04802149534225464, 0.04279693588614464, 0.04390854388475418, -0.04124068096280098, 0.017276251688599586, -0.02271387167274952, 0.0261228047311306, -0.05546927452087402, 0.007466305047273636, 0.040351394563913345, -0.027623476460576057, -0.05650677531957626, -0.0392768420279026, 0.036405183374881744, -0.027049144729971886, -0.06999429315328598, -0.07455188781023026, 0.003809575689956546, 0.04257461428642273, -0.007873894646763802, -0.03994380682706833, 0.036720141768455505, 0.04075898602604866, -0.05120810866355896, 0.047095153480768204, 0.06632598489522934, -0.05961928144097328, 0.030346916988492012, -0.005437619052827358, -0.07484831660985947, 0.0392027348279953, 0.004946658853441477, 0.03371879830956459, -0.02163931541144848, -0.05272730439901352, -0.03384848311543465, -0.009133717976510525, 0.0013663523131981492, 0.03735005110502243, -0.03597906976938248, -0.010226800106465816, 0.022658290341496468, -0.019749581813812256, 0.035664111375808716, -0.024418337270617485, -0.01752636395394802, 0.024455390870571136, 0.03420049324631691, 0.015266092494130135, 0.016285067424178123, 0.004997607320547104, -0.05832240357995033, 0.05298668146133423, 0.003603464923799038, 0.0652514323592186, 0.042982202023267746, -0.03155115991830826, 0.05046703666448593, 0.06221303343772888, 0.02797548472881317, 0.034052278846502304, -0.08203671872615814, -0.04205586388707161, 0.003777153789997101, -0.008735391311347485, -0.03979559242725372, 0.0392397865653038, 0.031699374318122864, -0.022398915141820908, -0.04068487882614136, -0.06410276889801025, 0.028346022590994835, -0.005599728785455227, 0.05506168305873871, 0.004001791123300791, -0.04720631614327431, 0.04124068096280098, 0.017341095954179764, 0.011153141036629677, 0.028401602059602737, -0.0024478549603372812, -0.004789180587977171, -0.031514108180999756, 0.01318182609975338, -0.06977197527885437, -0.06969786435365677, -0.002101635094732046, 0.05513579025864601, 0.027604948729276657, -0.05017060413956642, -0.04157416522502899, 0.003200506791472435, 0.051578644663095474, -0.016581496223807335, -0.000617174431681633, -0.07484831660985947, 0.032014328986406326, 0.014256381429731846, -0.017572680488228798, 0.02638217993080616, -0.07959118485450745, -0.0032699822913855314, 0.040388450026512146, -0.003080082358792424, -0.005206034053117037, 0.017239198088645935, -0.025196464732289314, -0.045872386544942856, 0.05910052731633186, -0.0067669181153178215, -0.027530841529369354, 0.006095320917665958, -0.013487518765032291, 0.0023853268940001726, -0.027512315660715103, -0.02977258712053299, -0.006757654715329409, 0.01904556155204773, -0.009569098241627216, -0.005646045785397291, -0.04020318016409874, -0.025807848200201988, -0.04576122388243675, 0.030698927119374275, 0.04613175988197327, 0.06110142543911934, -0.016664866358041763, -0.010050795041024685, -0.006109216250479221, 0.030383970588445663, 0.05506168305873871, 0.02115761861205101, -0.048725515604019165, -0.0183044895529747, -0.04720631614327431, -0.021268779411911964, -0.02034243941307068, -0.07162465155124664, -0.013200352899730206, 0.01659075915813446, -0.0365719273686409, 0.025937536731362343, -0.02321409434080124, -0.02219511941075325, -0.03584938123822212, 0.004784549120813608, -0.023121461272239685, 0.036219917237758636, 0.055728647857904434, -0.02275092527270317, 0.051875073462724686, -0.04939248040318489, -0.016655603423714638, 0.0037401001900434494, -0.04776212200522423, -0.02504824846982956, -0.023584630340337753, -0.05532106012105942, -0.027530841529369354, -0.025474365800619125, 0.022028379142284393, 0.004654861520975828, -0.05039292946457863, 0.0061972183175385, 0.04779917374253273, 0.0019395255949348211, -0.06999429315328598, -0.05513579025864601, 0.048169709742069244, -0.011245775036513805, 0.012348120100796223, 0.047428637742996216, -0.02271387167274952, 0.04509425908327103, 0.030624819919466972, 0.06906795501708984, 0.020509179681539536, -0.024862980470061302, 0.016961295157670975, 0.06473267823457718, -0.048169709742069244, 0.042463451623916626, -0.045575957745313644, 0.06128669157624245, -0.030421024188399315, -0.025011194869875908, 0.004464961588382721, -0.012088744901120663, -0.025733741000294685, 0.012978031300008297, 0.029605844989418983, 0.02430717647075653, 0.004872551653534174, -0.09848853200674057, 0.05910052731633186, -0.01565515622496605, -0.035367682576179504, 0.06977197527885437, -0.005053187720477581, 0.029587317258119583, -0.05954517424106598, 0.002672492526471615, 0.023732846602797508, -0.05676615238189697, -0.008661284111440182, -0.005919316317886114, -0.0060860575176775455, -0.0110882967710495, 0.05884115397930145, -0.02738262712955475, 0.040870144963264465, 0.014960400760173798, 0.003517778357490897, -0.04224113002419472, 0.006674284115433693, 0.01778573915362358, 0.024992669001221657, 0.024992669001221657, -0.02851276285946369, -0.08663137257099152, 0.01876766048371792, -0.004840129520744085, 0.014719551429152489, -0.06128669157624245, 0.015377253293991089, -0.0810733288526535, -0.010087848640978336, 0.019397571682929993, -0.02923530898988247, -0.0110790329053998, -0.013997006230056286, 0.02638217993080616, 0.025807848200201988, -0.044242024421691895, 0.0018920506117865443, 0.04527952894568443, 0.011310618370771408, -0.0418335422873497, 0.02037949301302433, 0.0835929736495018, -0.0496518537402153, -0.028142226859927177, -0.025455839931964874, 0.03449692204594612, -0.030383970588445663, 0.008531596511602402, 0.019212303683161736, 0.017239198088645935, 0.02430717647075653, -0.07003134489059448, -0.025678161531686783, -0.06947554647922516, 0.02375137247145176, -0.000764230964705348, -0.029828166589140892, 0.07959118485450745, 0.09974835067987442, -0.09441263228654861, -0.040610771626234055, -0.01007858570665121, -0.008216640911996365, 0.05035587400197983, -0.02667860873043537, -0.04209291562438011, 0.06221303343772888, 0.053171947598457336, -0.012839080765843391, 0.03342236950993538, 0.06929027289152145, 0.026771243661642075, 0.02141699381172657, -0.07618224620819092, 0.000985973747447133, 0.03332973271608353, -0.04642818868160248, -0.011403252370655537, 0.005766469985246658, 0.033829957246780396, 0.04546479508280754, 0.0021653210278600454, -0.044242024421691895, -0.035923488438129425, -0.04049960896372795, 0.039536215364933014, -0.020249804481863976, -0.018989982083439827, -0.03605317696928978, 0.07092063128948212, -0.042204078286886215, -0.02799401246011257, -0.006539964582771063, 0.00013395753921940923, -0.024251597002148628, 0.00771178537979722, 0.019564313814044, 0.010523228906095028, 0.04212997108697891, 0.03677571937441826, 0.03742415830492973, 0.023825479671359062, 0.0015979375457391143, -0.023102933540940285, -0.0013512993464246392, 0.04753980040550232, 0.04053666442632675, -0.05176391080021858, -0.012459280900657177, 0.02538173273205757, -0.02714177966117859, 0.031717900186777115, -0.09189298748970032, 0.022510075941681862, -0.0234919972717762, -0.036460764706134796, 0.0035247260238975286, -0.0626206248998642, -0.01987926848232746, -0.0015099351294338703, 0.039869699627161026, 0.01780426688492298, -0.0009558676974847913, -0.0313103124499321, -0.0313844196498394, 0.08840994536876678, -0.0469469390809536, -0.00731345871463418, -0.03625696897506714, -0.03875809162855148, 0.015858950093388557, 0.017452256754040718, 0.001182821113616228, -0.001381405396386981, -0.023677265271544456, -0.008726128377020359, -0.008151797577738762, 0.03534915670752525, 0.06584428995847702, 0.025400258600711823, 0.08003582805395126, 0.05168980360031128, 0.04776212200522423, -0.04935542494058609, -0.006155533250421286, -0.0036080966237932444, 0.028901826590299606, 0.03447839617729187, 0.01686866208910942, 0.0025474366266280413, -0.004261166788637638, 0.022621236741542816, -0.05269025266170502, -0.011190194636583328, 0.05065230280160904, 0.01818406581878662, -0.029364995658397675, -0.041648272424936295, -0.06302821636199951, 0.017554154619574547, -0.011329145170748234, 0.03738710656762123, 0.0045274896547198296, -0.059434011578559875, 0.017720894888043404, 0.028586870059370995, -0.07103179395198822, -0.0035779904574155807, 0.008929923176765442, -0.004247271455824375, -0.002443223260343075, -0.04049960896372795, -0.05380186066031456, 0.046094708144664764, 0.026215437799692154, -0.03140294551849365, 0.01812848448753357, 0.03990675136446953, 0.029939327389001846, 0.019953375682234764, -0.023362308740615845, 0.07707154005765915, 0.03344089537858963, -0.017442993819713593, 0.03245897218585014, -0.06199071183800697, 0.04516836628317833, -0.02058328688144684, -0.05383891612291336, -0.09559834748506546, 0.03601612150669098, -0.030476605519652367, -0.06754875183105469, 0.021102039143443108, 0.018202591687440872, 0.007725680246949196, -0.03423754870891571, 0.010124902240931988, 0.03327415511012077, -0.005405197385698557, -0.025956062600016594, 0.04031434282660484, 0.04857730120420456, -0.022361861541867256, -0.008193482644855976, 0.02636365219950676, 0.039573270827531815, 0.029383523389697075, 0.06636303663253784, 0.07214340567588806, 0.08922512829303741, 0.04653935134410858, -0.004196322988718748, -0.03768353536725044, 0.04368622228503227, 0.004381590988487005, 0.02376990020275116, -0.05580275505781174, -0.009203193709254265, -0.05872999131679535, 0.042463451623916626, 0.032551608979701996, -0.008513069711625576, -0.02504824846982956, -0.0036706244572997093, -0.02897593379020691, 0.0169890858232975, 0.02015717141330242, 0.008772444911301136, -0.0001978605578187853, -0.006090689450502396, -0.03875809162855148, 0.017656050622463226, -0.002295008860528469, 0.02582637593150139, -0.016794554889202118, 0.011986847035586834, 0.0391656793653965, 0.04316747188568115, -0.006808603182435036, -0.02037949301302433, 0.034330181777477264, 0.014154484495520592, 0.02688240446150303, -0.006317642983049154, 0.032255180180072784, -0.04887373000383377, -0.003320930991321802, 0.05976749584078789, 0.0036822038237005472, 0.010940082371234894, 0.04494604468345642, -0.06299115717411041, 0.008943818509578705, -0.007470936980098486, -0.030087541788816452, -0.007072610314935446, -0.015599575825035572, 0.027493787929415703, 0.0015122509794309735, -0.017776476219296455, -0.008258325979113579, -0.03271834924817085, -0.03872103616595268, 0.0017507836455479264, -0.033311206847429276, -0.026530394330620766, -0.00994889810681343, -0.024084854871034622, -0.045020151883363724, -0.005558043718338013, -0.00032392970751971006, 0.012459280900657177, 0.024158962070941925, -0.036664560437202454, 0.031458526849746704, -0.05795186758041382, -0.011514413170516491, -0.011014189571142197, -0.028531290590763092, -0.02947615645825863, -0.03779469430446625, 0.05609918385744095, 0.003911473322659731, 0.02532615140080452, -0.022102486342191696, -0.00991184450685978, 0.03709067776799202, -0.009596887975931168, -0.0547652542591095, -0.05665498971939087, -0.02847570925951004, 0.014849239960312843, -0.013626470230519772, -0.07525590807199478, -0.02145404741168022, 0.00909203290939331, 0.04461256414651871, -0.04146300256252289, -0.004089793656021357, -0.009847000241279602, 0.02532615140080452, 0.02506677620112896, -0.02560405433177948, 0.0008794445893727243, 0.008031372912228107, 0.06992018967866898, -0.0391656793653965, -0.011838632635772228, -0.05895231291651726, 0.008916027843952179, -0.021231725811958313, 0.002686387626454234, -0.0031472421251237392, 0.01449722982943058, 0.037183310836553574, 0.033829957246780396, -0.05194918066263199, -0.03647929057478905, -0.015015981160104275, 0.05580275505781174, 0.008100848644971848, -0.03281098231673241, 0.032218124717473984, -0.029105620458722115, 0.005011502653360367, -0.05409828945994377, -0.03105093538761139, -0.008675179444253445, -0.006076794117689133, -0.08737244457006454, 0.04757685214281082, -0.006692810915410519, 0.011366198770701885, -0.016414755955338478, 0.017554154619574547, 0.008943818509578705, 0.009615414775907993, -0.02299177274107933, -0.013598679564893246, -0.04831792414188385, 0.04598354548215866, -0.011634837836027145, 0.016461072489619255, -0.004502015188336372, 0.00968952290713787, 0.03805407136678696, -0.001064133713953197, 0.023065879940986633, 0.033774375915527344, 0.0010780288139358163, 0.030884195119142532, 0.026845350861549377, -0.02504824846982956, 0.027753163129091263, -0.07736796885728836, -0.03179200738668442, 0.039054520428180695, 0.04146300256252289, -0.011801579035818577, 0.009569098241627216, -0.05906347557902336, -0.005618255585432053, 0.05013355240225792, 0.04646524414420128, 0.0378502756357193, 0.029735533520579338, -0.0004084582906216383, 0.02745673432946205, 0.048466138541698456, -0.03449692204594612, 0.022176593542099, 0.026178384199738503, 0.020824136212468147, 0.02925383485853672, -0.012199905700981617, 0.032255180180072784, -0.042685773223638535, 0.0005184612236917019, -0.013441202230751514, -0.07021661847829819, -0.017239198088645935, 0.017683841288089752, 0.05191212520003319, -0.025678161531686783, 0.007697890046983957, 0.015247565694153309, -0.05987865477800369, 0.012348120100796223, -0.0625094622373581, 0.021287307143211365, 0.006845656782388687, -0.06087910383939743, 0.026826823130249977, -0.004698862787336111, -0.04238934442400932, 0.059952761977910995, -0.01878618635237217, 0.04368622228503227, 0.009569098241627216, -0.06384339183568954, 0.012653812766075134, -0.029179727658629417, 0.009782156907022, -0.04020318016409874, 0.025214990600943565, -0.008221272379159927, -0.01854533888399601, 0.0047220210544764996, -0.03686835616827011, 0.029124148190021515, -0.04064782336354256, -0.008508438244462013, -0.02456655167043209, -0.06969786435365677, 0.023621683940291405, -0.02767905592918396, -0.012450017035007477, -0.03084714151918888, 0.0029341836925596, -0.02793843112885952, 0.018415650352835655, 0.03379290550947189, -0.008943818509578705, 0.001413827296346426, 0.019490206614136696, 0.025270571932196617, 0.02091677114367485, 0.016914978623390198, 0.029309416189789772, -0.0313473641872406, -0.009045715443789959, -0.005581201985478401, -0.029420576989650726, 0.007067978847771883, 0.020509179681539536, -0.03318151831626892, -0.028586870059370995, 0.04724336788058281, 0.0020668974611908197, 0.02897593379020691, 0.031236205250024796, -0.10508407652378082, -0.0015967795625329018, -0.0031518738251179457, 0.04487193748354912, 0.000961078330874443, -0.011245775036513805, 0.02301030047237873, 0.036979515105485916, -0.048169709742069244, 0.056580882519483566, -0.026011643931269646, 0.011949793435633183, -0.008086953312158585, -0.043463900685310364, 0.006748391315340996, 0.005988792050629854, -0.01059733610600233, 0.03470071777701378, 0.008369486778974533, -0.02275092527270317, -0.024362757802009583, 0.029865220189094543, 0.018591655418276787, 0.03964737802743912, 0.016840871423482895, 0.06199071183800697, 0.05539516732096672, -0.0004860393237322569, -0.07121706753969193, 0.05798891931772232, 0.023955168202519417, -0.029920801520347595, 0.015590311959385872, -0.0418705940246582, -0.034144915640354156, -0.06495500355958939, -0.009406988508999348, -0.012338856235146523, -0.012968768365681171, 0.031458526849746704, 0.019453153014183044, 0.0022000588942319155, -0.019416099414229393, -0.05076346546411514, -0.004724336788058281, 0.03440428897738457, 0.029994908720254898, -0.006609439849853516, 0.058100081980228424, -0.049503639340400696, 0.016081271693110466, -0.017063193023204803, 0.0163313839584589, 0.0020414229948073626, -0.05146748200058937, 0.012255486100912094, 0.0653625950217247, 0.007128190714865923, 0.003862840123474598, -0.042167022824287415, 0.031236205250024796, -0.007785892579704523, 0.0313473641872406, -0.007860000245273113, -0.040092021226882935, 0.007081873714923859, -0.0011805052636191249, 0.011190194636583328, 0.01029164344072342, -0.03384848311543465, -0.022528603672981262, -0.042426399886608124, 0.0011017663637176156, 0.07184697687625885, -0.015173458494246006, -0.030902720987796783, -0.018137749284505844, -0.04105541482567787, 0.038498714566230774, 0.004166216589510441, -0.006979976315051317, -0.004075898788869381, 0.01982368901371956, 0.027049144729971886, 0.0019522628281265497, -0.04261166602373123, 0.006502910982817411, 0.03323709964752197, 0.012616759166121483, 0.004923500120639801, 0.034348707646131516, 0.05906347557902336, 0.018054377287626266, -0.006076794117689133, 0.02536320500075817, 0.04027728736400604, -0.02721588686108589, 0.03453397750854492, 0.036979515105485916, 0.04761390760540962, 0.00025807268684729934, 0.09478316456079483, -0.026548920199275017, 0.03601612150669098, -0.022584183141589165, 0.0008875500643625855, -0.05276435986161232, 0.0628800019621849, 0.05402418226003647, 0.029698479920625687, 0.09722870588302612, -0.0039902119897305965, -0.027623476460576057 ]
20,509
metevolsim.metevolsim
next_iteration
Run the next multivariate random iteration Parameters ---------- None Returns ------- bool Returns True if the last iteration has been done. Returns False else.
def next_iteration( self ): """ Run the next multivariate random iteration Parameters ---------- None Returns ------- bool Returns True if the last iteration has been done. Returns False else. """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Mutate each parameter at random with mutation size "sigma" # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# print("> Current iteration: "+str(self.iteration+1)+"/"+str(self.nb_iterations)) param_metaid = self.model.get_random_parameter() self.model.random_parameter_mutation(param_metaid, self.sigma) self.model.compute_mutant_steady_state() self.write_random_output_file() self.reload_wild_type_state() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Increment the current iteration # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.iteration += 1 if self.iteration == self.nb_iterations: return True return False
(self)
[ 0.04257313907146454, -0.008220922201871872, -0.060780998319387436, 0.07226479053497314, 0.009089762344956398, 0.005949662532657385, -0.053452521562576294, -0.08136871457099915, 0.018595056608319283, 0.056663453578948975, -0.020455505698919296, 0.02481859177350998, 0.011568788439035416, 0.08862163871526718, -0.041628748178482056, -0.0062754773534834385, 0.028860585764050484, 0.06198981776833534, -0.021947644650936127, 0.013523677363991737, -0.04944830760359764, 0.07558904588222504, -0.038191165775060654, 0.043781962245702744, 0.04125099256634712, 0.026348505169153214, 0.0375489816069603, -0.00552468653768301, 0.04793728142976761, 0.04283757135272026, -0.05957217514514923, -0.04771062731742859, 0.031712643802165985, 0.023779762908816338, 0.02948388271033764, -0.036396823823451996, -0.015856321901082993, 0.030787141993641853, -0.0877905786037445, -0.01143657322973013, 0.02073882333934307, -0.05080822855234146, 0.02298647351562977, 0.01845339685678482, -0.03244927152991295, -0.012881491333246231, 0.021645437926054, 0.08756392449140549, -0.045028556138277054, -0.03244927152991295, 0.018425066024065018, -0.027727315202355385, 0.03441360220313072, 0.0077392831444740295, 0.014713609591126442, 0.037190113216638565, 0.012720945291221142, -0.03350698947906494, 0.006384082138538361, -0.029974965378642082, 0.008263420313596725, -0.054170262068510056, 0.013693667948246002, 0.03966441750526428, 0.02379865013062954, -0.032751474529504776, -0.04990161210298538, 0.0013552008895203471, 0.0031920410692691803, 0.0421576090157032, -0.025101909413933754, 0.018982255831360817, 0.026046300306916237, 0.015299132093787193, -0.04820170998573303, -0.001927737845107913, -0.06769394129514694, -0.04045770317316055, -0.01412808708846569, -0.010057763196527958, -0.004027827177196741, 0.02071993611752987, 0.005850501358509064, -0.06444523483514786, -0.06187649071216583, 0.009812220931053162, -0.021777654066681862, -0.0142319705337286, 0.02049328200519085, -0.03335588425397873, -0.00820675678551197, 0.018028421327471733, 0.04336642846465111, 0.005907164886593819, 0.04057103022933006, 0.05262145772576332, -0.0012147227535024285, -0.04453747346997261, -0.0019017671002075076, -0.09149258583784103, -0.017263464629650116, 0.014080868102610111, 0.07298252731561661, -0.013193140737712383, 0.01155934389680624, -0.018972812220454216, -0.05972328037023544, 0.003990051336586475, -0.01683848910033703, -0.0330159030854702, -0.030428273603320122, 0.06856277585029602, -0.03324255719780922, 0.02219318598508835, -0.030239395797252655, -0.039475537836551666, 0.008858386427164078, 0.019076695665717125, -0.0023975723888725042, 0.01731068454682827, 0.03601906821131706, 0.0040726857259869576, -0.01138935424387455, 0.03853114694356918, -0.01007665041834116, -0.007555127143859863, 0.06316085904836655, 0.021116580814123154, -0.06089432165026665, -0.03439471498131752, -0.03575463965535164, 0.002615962643176317, 0.03345032408833504, 0.018377846106886864, -0.028955023735761642, -0.0033998070284724236, -0.053679175674915314, -0.0444241464138031, -0.04752174764871597, 0.016574060544371605, 0.00746541004627943, 0.041968729346990585, -0.0028473385609686375, 0.034356940537691116, 0.0159413181245327, 0.019180579110980034, -0.010577177628874779, -0.0018321182578802109, 0.021702101454138756, -0.07592902332544327, -0.004504744429141283, 0.011748222634196281, 0.03460248187184334, 0.02459193766117096, -0.04793728142976761, 0.010832163505256176, 0.02266538143157959, -0.002239386783912778, -0.04684178903698921, -0.03664236515760422, -0.035811301320791245, -0.04544408991932869, -0.0051422081887722015, 0.038550034165382385, 0.0015771327307447791, 0.026858476921916008, -0.03692568466067314, 0.027765091508626938, -0.04238426312804222, 0.008962268941104412, 0.02608407661318779, 0.022854259237647057, 0.03550909832119942, -0.031013796105980873, -0.05398138239979744, 0.08000879734754562, 0.013514233753085136, -0.03516911715269089, 0.06531406939029694, -0.007536238990724087, -0.0523948073387146, -0.07570236921310425, -0.014902488328516483, -0.03688790649175644, -0.013419793918728828, 0.015610781498253345, 0.014704165980219841, -0.004804588388651609, 0.05375472828745842, 0.00944863073527813, 0.010624397546052933, 0.00956667959690094, 0.005312198773026466, 0.009623343124985695, -0.004247398115694523, 0.004594461526721716, 0.03050382435321808, 0.016715718433260918, 0.09315471351146698, 0.03737898916006088, -0.011077704839408398, -0.04087323695421219, 0.00392630510032177, -0.013448125682771206, -0.019416676834225655, 0.00007348541112150997, -0.015658000484108925, 0.029238341376185417, 0.02404419146478176, 0.01994553580880165, -0.051299311220645905, -0.0478617288172245, 0.09715893119573593, 0.10546956956386566, 0.03212817758321762, -0.031712643802165985, 0.028275063261389732, -0.04064658284187317, 0.010747168213129044, 0.001650323043577373, 0.03452692925930023, -0.05840113013982773, 0.004356002900749445, 0.015903541818261147, 0.014109199866652489, -0.008494796231389046, 0.013665336184203625, 0.012881491333246231, -0.0580989271402359, -0.0008806444820947945, -0.004485856741666794, -0.004705427680164576, 0.04585961997509003, -0.016016868874430656, -0.04978828504681587, 0.004027827177196741, -0.0029535824432969093, 0.013589784502983093, -0.013315911404788494, 0.037530094385147095, -0.046539582312107086, -0.023288678377866745, -0.01775454916059971, -0.02561188116669655, -0.05250813066959381, -0.017820656299591064, 0.024195294827222824, 0.04147764667868614, -0.007951770909130573, 0.005321642383933067, 0.0028638653457164764, 0.004405583254992962, -0.057683393359184265, 0.019681105390191078, 0.03690679371356964, -0.014798604883253574, 0.009349470026791096, 0.02938944473862648, 0.0876394733786583, 0.0041624028235673904, 0.030579376965761185, -0.011408241465687752, -0.030314946547150612, 0.07895107567310333, -0.08325749635696411, 0.0063321408815681934, -0.030126068741083145, 0.04370640963315964, 0.037190113216638565, -0.0010913617443293333, 0.14520953595638275, 0.03509356454014778, -0.07332250475883484, -0.010038875043392181, 0.004389056470245123, 0.0024955528788268566, 0.02141878567636013, 0.030371610075235367, -0.08378636091947556, -0.0557946115732193, 0.05080822855234146, -0.02585742250084877, -0.03258148580789566, 0.0037893683183938265, -0.05296143889427185, 0.019322236999869347, -0.019218353554606438, 0.01674404926598072, 0.09436353296041489, -0.011634895578026772, -0.0012265276163816452, -0.0398532934486866, 0.043328654021024704, -0.0005353515734896064, 0.020984364673495293, -0.0443863719701767, -0.049146100878715515, -0.008683674037456512, -0.004292256664484739, 0.002946499502286315, 0.03600018098950386, -0.05877888947725296, -0.037756748497486115, -0.024006415158510208, 0.010954934172332287, 0.05065712705254555, 0.03086269460618496, 0.005614403635263443, -0.003843670943751931, 0.014571950770914555, -0.0030314947944134474, 0.05741896480321884, 0.008296473883092403, 0.031391553580760956, 0.005307476501911879, -0.061914265155792236, 0.0024200016632676125, -0.04612404853105545, -0.01384477037936449, 0.041968729346990585, -0.024913031607866287, 0.02094659022986889, 0.021947644650936127, -0.00944863073527813, -0.004518910311162472, -0.03543354570865631, -0.004613349214196205, -0.016139639541506767, -0.08280418813228607, -0.006351028569042683, -0.021362122148275375, -0.02255205437541008, 0.003574519418179989, 0.08061320334672928, 0.0002752013970166445, -0.011634895578026772, -0.03350698947906494, -0.022967586293816566, 0.09519460052251816, -0.0409865640103817, 0.01630018651485443, -0.030371610075235367, -0.016130195930600166, -0.032619260251522064, 0.04397083818912506, 0.02379865013062954, 0.035830188542604446, 0.015761883929371834, 0.04091101139783859, -0.005416081752628088, -0.022495390847325325, 0.08839498460292816, 0.01707458682358265, 0.03246815875172615, 0.006346306763589382, 0.029295004904270172, -0.02835061401128769, 0.015072477981448174, -0.020021086558699608, 0.02986164018511772, 0.002410557586699724, 0.016205746680498123, -0.009868884459137917, 0.03156154230237007, 0.04941052943468094, -0.047332871705293655, -0.060176584869623184, 0.037643421441316605, 0.019105026498436928, -0.044348593801259995, -0.017839543521404266, -0.041968729346990585, 0.029918303713202477, -0.009972767904400826, -0.0001082360467989929, 0.005916608963161707, -0.06289643049240112, 0.009510016068816185, 0.03163709491491318, -0.04850391671061516, 0.060289911925792694, -0.04506633058190346, 0.024421947076916695, 0.021456560119986534, 0.012560398317873478, -0.03549020737409592, 0.049826063215732574, -0.03864447399973869, -0.008508961647748947, 0.0016715718666091561, -0.008768669329583645, -0.009141704067587852, 0.017971757799386978, -0.0017317767487838864, 0.020757710561156273, 0.02574409544467926, 0.01605464518070221, -0.009014210663735867, -0.11181587725877762, 0.03562242537736893, -0.02746288664638996, 0.008301195688545704, -0.09171923995018005, 0.04177985340356827, 0.012598174624145031, -0.08627954870462418, -0.005699398927390575, 0.020701047033071518, -0.02311868779361248, 0.03324255719780922, -0.01485526841133833, -0.02425195835530758, -0.017272908240556717, 0.012116534635424614, 0.019199466332793236, 0.05322587117552757, -0.02629184164106846, -0.025574104860424995, 0.02370421029627323, 0.07879997789859772, 0.06844945251941681, 0.04393306374549866, 0.024516386911273003, 0.04831503704190254, -0.031183786690235138, -0.0032557875383645296, -0.0009219615603797138, 0.004370168782770634, -0.05020381882786751, 0.02561188116669655, -0.06935606896877289, -0.0591944195330143, -0.0011084787547588348, 0.06588070839643478, 0.026726260781288147, -0.03201485052704811, -0.08643065392971039, -0.021437672898173332, -0.02971053682267666, -0.008730893954634666, 0.0007962395320646465, 0.012966486625373363, -0.028331726789474487, -0.04143987223505974, -0.022570941597223282, 0.014770273119211197, 0.048692792654037476, -0.0020304403733462095, -0.04680401086807251, 0.02196653187274933, 0.0041624028235673904, 0.06399192661046982, -0.021456560119986534, -0.03601906821131706, 0.07902662456035614, -0.004235593136399984, -0.027613990008831024, -0.007432356011122465, 0.04650180786848068, -0.024761928245425224, -0.003463553497567773, 0.015289688482880592, -0.0318826362490654, 0.031391553580760956, 0.03545243293046951, -0.08333305269479752, 0.011464904993772507, 0.04635070264339447, -0.016205746680498123, 0.007710951380431652, -0.03794562444090843, 0.003671319456771016, 0.021569887176156044, -0.013646448031067848, -0.011748222634196281, -0.044801902025938034, -0.05288589000701904, 0.010784943588078022, -0.00957140140235424, -0.02699069119989872, -0.03405473381280899, -0.020077750086784363, 0.03350698947906494, 0.043555308133363724, -0.016914039850234985, -0.007876220159232616, 0.037076786160469055, 0.013854213990271091, 0.026631822809576988, -0.023043137043714523, -0.0036264609079807997, -0.05945884808897972, 0.041515421122312546, 0.07211368530988693, -0.03146710246801376, -0.033091455698013306, 0.005699398927390575, 0.04461302608251572, 0.05537908151745796, -0.024573050439357758, 0.051072657108306885, 0.032845914363861084, 0.02825617417693138, -0.03917333483695984, 0.0066626775078475475, 0.03050382435321808, 0.00972722563892603, -0.04661513492465019, -0.03611350804567337, 0.0006663858075626194, 0.05500132590532303, -0.06591848284006119, -0.008107596077024937, -0.01604520156979561, 0.075135737657547, -0.02311868779361248, 0.0319204106926918, 0.003170792246237397, 0.04706843942403793, 0.0125226229429245, 0.024403059855103493, -0.07245367020368576, -0.04752174764871597, 0.03277036175131798, -0.03658570349216461, 0.06010103598237038, -0.02005886286497116, 0.005378305912017822, -0.013589784502983093, 0.025932973250746727, -0.025592992082238197, 0.02563076838850975, 0.008952825330197811, 0.03677457943558693, -0.007016824092715979, -0.08355970680713654, 0.044801902025938034, -0.031485993415117264, 0.019161690026521683, -0.011464904993772507, -0.028293950483202934, -0.019397787749767303, -0.008098151534795761, -0.04302644729614258, -0.014061979949474335, 0.0159318745136261, 0.018510060384869576, -0.028312837705016136, 0.005982716102153063, 0.0021945282351225615, -0.004032548982650042, 0.03099490888416767, -0.05046824738383293, 0.0005923101562075317, 0.026575159281492233, 0.016904596239328384, 0.0064407456666231155, 0.03129711374640465, 0.011965432204306126, 0.026801813393831253, -0.016545727849006653, -0.013901433907449245, 0.06130985543131828, -0.04404639080166817, 0.01755622588098049, -0.005826891865581274, -0.03233594447374344, -0.034356940537691116, -0.024403059855103493, 0.03977774456143379, 0.03237371891736984, 0.02583853341639042, -0.017036810517311096, -0.02857726812362671, 0.009443908929824829, -0.035811301320791245, 0.01287204772233963, -0.010822718963027, -0.0021614746656268835, 0.004629876464605331, 0.01573355123400688, -0.023874200880527496, 0.07917772978544235, -0.01531802024692297, -0.008792279288172722, 0.027916194871068, -0.06614513695240021, 0.029125014320015907, 0.006384082138538361, 0.021890981122851372, -0.03779452294111252, 0.0672406330704689, -0.060516566038131714, -0.08371080458164215, -0.01201265212148428, 0.02413863129913807, 0.05333919823169708, -0.032845914363861084, 0.0023975723888725042, -0.011266582645475864, -0.08114206045866013, 0.021437672898173332, -0.013967541046440601, 0.012258193455636501, -0.05182817205786705, -0.027821755036711693, -0.03711456060409546, 0.028331726789474487, 0.036604590713977814, 0.0037681194953620434, 0.0004046124522574246, 0.0029583044815808535, -0.01201265212148428, -0.04132654517889023, -0.026858476921916008, 0.015006370842456818, -0.04313977435231209, 0.010237197391688824, 0.06799614429473877, -0.01983220875263214, -0.03335588425397873, 0.021381009370088577, -0.04563296586275101, -0.00734736118465662, -0.038550034165382385, -0.05477467179298401, 0.03652903810143471, -0.05258368328213692, 0.009524181485176086, -0.044726353138685226, -0.03675569221377373, -0.020644385367631912, 0.0009585567167960107, -0.05315031856298447, 0.02357199601829052, -0.016895152628421783, -0.01162545196712017, 0.028048409149050713, -0.04404639080166817, -0.012796496041119099, 0.01638518087565899, 0.05194149911403656, -0.0008393274038098752, -0.016659054905176163, -0.0006988492677919567, -0.025574104860424995, 0.004424471408128738, 0.019416676834225655, 0.06731618195772171, 0.016007425263524055, 0.00014210131485015154, 0.06996047496795654, 0.02357199601829052, -0.005302754696458578, 0.013278136029839516, -0.12511290609836578, -0.0038672806695103645, 0.03505579009652138, 0.04313977435231209, -0.044688574969768524, -0.012598174624145031, 0.012456515803933144, -0.030201619490981102, -0.060516566038131714, 0.04245981201529503, 0.016375737264752388, -0.020342178642749786, -0.008324805647134781, -0.040835462510585785, -0.004641680978238583, -0.03256259858608246, -0.006511575076729059, 0.007710951380431652, 0.0030480215791612864, -0.0000097943666332867, 0.010983265936374664, -0.024289732798933983, -0.03154265508055687, -0.011446017771959305, 0.034432489424943924, 0.000006073060376365902, 0.0021555721759796143, -0.03909778222441673, 0.021607663482427597, 0.02325090393424034, 0.003952275961637497, 0.020984364673495293, 0.004752647131681442, -0.015214136801660061, -0.00501471571624279, -0.05772117152810097, -0.03282702714204788, 0.037964511662721634, -0.012267637066543102, -0.01581854745745659, -0.004868335090577602, 0.002929972717538476, 0.02597074955701828, -0.01640406996011734, -0.05250813066959381, 0.035716861486434937, 0.027274008840322495, -0.002856782404705882, 0.021607663482427597, -0.01322147250175476, 0.04808838292956352, -0.04113766551017761, 0.01832118257880211, 0.02972942404448986, -0.040382154285907745, -0.01076605636626482, 0.028426164761185646, -0.035697974264621735, 0.019284460693597794, -0.044348593801259995, 0.03431916609406471, 0.01178599800914526, 0.006530462764203548, 0.009547791443765163, -0.023534219712018967, -0.022136522457003593, 0.000347949011484161, -0.023760873824357986, 0.027500662952661514, -0.0706782117486, 0.0074937413446605206, -0.003173153381794691, 0.019312793388962746, 0.060629893094301224, 0.010246641002595425, -0.014401961117982864, 0.017678996548056602, -0.01333479955792427, 0.018245631828904152, -0.0375678688287735, -0.04079768434166908, 0.03348809853196144, 0.03256259858608246, -0.027085131034255028, -0.012692613527178764, -0.015742996707558632, 0.02461082674562931, 0.03579241409897804, -0.014090311713516712, -0.008117039687931538, 0.04597294703125954, -0.008848942816257477, -0.007871498353779316, 0.03560353443026543, -0.0773644968867302, 0.07188703119754791, -0.02003997378051281, 0.025479665026068687, 0.008863108232617378, 0.05458579212427139, 0.04132654517889023, 0.05911886692047119, -0.026046300306916237, 0.018283408135175705, -0.03314812108874321, -0.02948388271033764, -0.04125099256634712, 0.1047896146774292, 0.03705789893865585, -0.02734955959022045, 0.038077838718891144, 0.021890981122851372, -0.003062187461182475 ]
20,510
metevolsim.metevolsim
next_parameter
Run a full parameter exploration for the next kinetic parameter. Parameters ---------- None Returns ------- bool Returns True if the last parameter has been explored. Returns False else.
def next_parameter( self ): """ Run a full parameter exploration for the next kinetic parameter. Parameters ---------- None Returns ------- bool Returns True if the last parameter has been explored. Returns False else. """ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Get the next parameter # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.param_metaid = list(self.model.parameters)[self.param_index] self.param_id = self.model.parameters[self.param_metaid]["id"] self.param_wild_type = self.model.parameters[self.param_metaid]["wild_type_value"] self.param_val = 0.0 print("> Current parameter: "+str(self.param_id)) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Explore the upper range # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# factor = 0.0 while factor <= self.factor_range+self.factor_step/2.0: # +step/2 for precision errors self.param_val = self.param_wild_type*10**factor self.model.set_mutant_parameter_value(self.param_metaid, self.param_val) self.model.compute_mutant_steady_state() self.write_OAT_output_file() factor += self.factor_step self.reload_wild_type_state() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Explore the lower range # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# factor = -self.factor_step while factor >= -self.factor_range-self.factor_step/2.0: # -step/2 for precision errors self.param_val = self.param_wild_type*10**factor self.model.set_mutant_parameter_value(self.param_metaid, self.param_val) self.model.compute_mutant_steady_state() self.write_OAT_output_file() factor -= self.factor_step self.reload_wild_type_state() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 4) Increment the parameter index # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.param_index += 1 if self.param_index == len(self.model.parameters): return True return False
(self)
[ 0.05888627842068672, -0.0554560087621212, -0.012530009262263775, 0.07965846359729767, 0.012796808034181595, 0.002132007386535406, -0.051034774631261826, -0.098563052713871, -0.009228375740349293, -0.0011106686433777213, -0.023116199299693108, -0.003122973721474409, 0.010386091656982899, 0.05240688472986221, -0.02869991399347782, 0.040896426886320114, 0.023649796843528748, 0.015750650316476822, 0.0046499199233949184, 0.0015531494282186031, -0.006169719621539116, 0.021915605291724205, -0.025784187018871307, 0.05259745195508003, -0.001111264107748866, -0.005131110083311796, 0.04127756506204605, 0.0030229242984205484, -0.03700878843665123, -0.020772183313965797, -0.06151615083217621, -0.06540378928184509, 0.03293057903647423, -0.017999382689595222, 0.01147234346717596, -0.030129194259643555, 0.02656552568078041, 0.06269768625497818, -0.0637267678976059, -0.03668481856584549, -0.026508353650569916, -0.04619428515434265, 0.007313142064958811, -0.0013959287898615003, -0.05435070022940636, 0.009533287957310677, -0.0024059524293988943, 0.08385100960731506, -0.009561873972415924, -0.020200470462441444, 0.027689890936017036, -0.04703279584646225, 0.00888534914702177, 0.012015469372272491, -0.022906571626663208, -0.009366539306938648, 0.02526964619755745, -0.0015102711040526628, 0.06837669014930725, -0.04848112910985947, 0.03197772800922394, 0.011567628011107445, 0.0283568874001503, -0.018313823267817497, 0.005874335300177336, 0.00005638950824504718, -0.052864253520965576, -0.005026296712458134, 0.0038638166151940823, 0.0759613960981369, 0.003913841210305691, -0.008813885040581226, 0.04893850162625313, 0.010471847839653492, -0.0067461952567100525, -0.03708501532673836, -0.03409305959939957, -0.0031729985494166613, -0.0018556801369413733, -0.036113105714321136, -0.008185002021491528, 0.043450068682432175, 0.021191436797380447, -0.03891449421644211, -0.04158248007297516, 0.02368791028857231, -0.021820319816470146, 0.00037727001472376287, 0.07569459825754166, 0.013492390513420105, -0.0035279360599815845, 0.023592626675963402, 0.022582601755857468, 0.029938623309135437, 0.07001559436321259, 0.0332736074924469, -0.012568123638629913, -0.05175894498825073, -0.02303997054696083, -0.07413192093372345, -0.024335850030183792, 0.057742856442928314, 0.01647481881082058, 0.027994804084300995, 0.021058037877082825, -0.04470783472061157, -0.021362951025366783, 0.04104888066649437, 0.009218847379088402, 0.0008730510016903281, -0.08629031479358673, 0.011986883357167244, -0.04764262214303017, -0.015807822346687317, -0.04329761490225792, 0.015064597129821777, -0.014530999585986137, 0.04337384179234505, -0.02921445481479168, -0.016046034172177315, 0.03744709864258766, 0.014530999585986137, -0.053283508867025375, 0.032911524176597595, 0.02858557179570198, 0.02262071706354618, 0.0800396054983139, 0.04135379567742348, -0.0550367571413517, -0.06658532470464706, -0.032454151660203934, 0.008747185580432415, -0.021839376538991928, 0.022906571626663208, -0.0024964732583612204, -0.016808316111564636, -0.061821065843105316, -0.035789135843515396, -0.054007675498723984, 0.03756144270300865, 0.026946665719151497, 0.05778096988797188, 0.0003579151816666126, 0.002551262266933918, 0.01082440372556448, 0.005993441678583622, 0.007041579578071833, 0.012911150231957436, 0.02890954166650772, 0.006398404017090797, -0.03672293201088905, 0.016665387898683548, -0.013597204349935055, -0.02751837857067585, 0.013368519023060799, -0.02016235701739788, 0.03399777412414551, -0.027003837749361992, -0.028509344905614853, -0.0361512191593647, -0.04821433126926422, -0.027118179947137833, 0.0036899209953844547, 0.008327930234372616, -0.005950563121587038, 0.035255540162324905, -0.09528524428606033, 0.030319763347506523, -0.00350411469116807, -0.005402673035860062, 0.03529365360736847, -0.0285665150731802, 0.013273234479129314, -0.0014864497352391481, -0.04764262214303017, 0.07546591013669968, 0.006103019695729017, -0.027061007916927338, 0.02334488369524479, -0.03373097628355026, 0.0008867482538335025, -0.038361839950084686, -0.03710407391190529, -0.045584458857774734, -0.005840985104441643, 0.001528137014247477, 0.03325454890727997, -0.00009558301098877564, -0.01136752963066101, 0.01705605909228325, -0.01733238622546196, 0.004430763889104128, 0.0312345027923584, 0.003971012309193611, -0.024488307535648346, -0.00850420817732811, 0.06772875040769577, 0.046003714203834534, 0.07401757687330246, 0.05442693084478378, -0.012320381589233875, -0.03925751894712448, 0.015388566069304943, -0.002625108463689685, -0.0422685332596302, -0.00255840877071023, 0.00232019554823637, 0.035998765379190445, 0.041773051023483276, 0.024907562881708145, -0.0484430156648159, -0.034397970885038376, 0.05884816497564316, 0.029843337833881378, 0.023802252486348152, -0.05133968964219093, 0.013206534087657928, 0.0009582121856510639, -0.02101992443203926, 0.0019926526583731174, 0.014635813422501087, -0.026832323521375656, 0.001066003693267703, -0.01396881602704525, 0.06883405894041061, -0.01556960865855217, 0.011386586353182793, -0.006064905785024166, -0.024145280942320824, -0.019990842789411545, 0.006217361893504858, -0.0353698804974556, -0.0193047896027565, -0.007012993562966585, 0.022658830508589745, 0.04912906885147095, -0.026794210076332092, -0.020734068006277084, -0.0707397609949112, -0.019533473998308182, -0.051873285323381424, -0.0064698681235313416, -0.020448213443160057, 0.007841975428164005, -0.05469372868537903, -0.0287761427462101, 0.05366464704275131, 0.03254943713545799, -0.012587180361151695, -0.015264695510268211, 0.021782206371426582, -0.006288825999945402, -0.04874793067574501, 0.03533176705241203, -0.01962875947356224, -0.03350229188799858, -0.017351442947983742, 0.03910506144165993, 0.05457938462495804, -0.0024964732583612204, -0.011186487041413784, 0.024278679862618446, -0.0025941405910998583, 0.08537557721138, -0.014893082901835442, 0.009985893033444881, 0.00932842493057251, 0.0017925535794347525, 0.03960054740309715, 0.004476024303585291, 0.09398936480283737, 0.08125925064086914, -0.07729538530111313, -0.018180424347519875, 0.001965258037671447, 0.017303800210356712, 0.055303554981946945, -0.021305780857801437, -0.06704269349575043, -0.0057647572830319405, 0.04127756506204605, -0.03287340700626373, -0.007856268435716629, 0.04958644136786461, -0.07123524695634842, 0.011281772516667843, 0.004237811081111431, -0.005188281182199717, 0.0644509345293045, -0.011157901957631111, -0.0010981623781844974, 0.025364931672811508, 0.08042074739933014, 0.02111520990729332, 0.08697637170553207, -0.0011928521562367678, -0.037809185683727264, -0.013454276137053967, 0.008961576968431473, -0.0011874922784045339, 0.062011636793613434, -0.059572331607341766, 0.014216558076441288, -0.0283568874001503, 0.019914615899324417, 0.023478282615542412, 0.01851392164826393, -0.019990842789411545, 0.03880015015602112, -0.011272244155406952, -0.011567628011107445, 0.03516025468707085, 0.047947533428668976, 0.012587180361151695, -0.0023249599616974592, -0.08743374049663544, 0.03721841424703598, -0.05065363273024559, 0.04726148024201393, 0.07714293152093887, 0.00844703707844019, 0.025098131969571114, -0.0006604458321817219, -0.030376935377717018, 0.0023809398990124464, -0.05991536006331444, 0.004209225531667471, 0.031501300632953644, -0.03441702947020531, -0.04554634541273117, -0.0833936408162117, -0.01781834103167057, -0.005092996172606945, 0.04691845178604126, -0.04245910421013832, -0.048671700060367584, -0.012406138703227043, -0.003392154583707452, 0.04981512576341629, 0.00928078219294548, 0.05644697695970535, -0.014473828487098217, -0.045698802918195724, -0.030338820070028305, 0.06784309446811676, -0.0025488801766186953, 0.07256924360990524, 0.006951058283448219, 0.032149240374565125, 0.005569422151893377, -0.0369897298514843, 0.047604504972696304, 0.038018811494112015, 0.014492885209619999, 0.022315803915262222, 0.032587554305791855, -0.00029776638257317245, -0.02740403637290001, -0.0076942830346524715, -0.007027286570519209, 0.06479396671056747, -0.002834735903888941, -0.0431070439517498, 0.034836284816265106, 0.024393022060394287, -0.025193417444825172, -0.034169286489486694, -0.007194035686552525, 0.0633075162768364, -0.04024848714470863, -0.038438066840171814, -0.0616304948925972, 0.0026751330588012934, -0.006374582648277283, -0.008775770664215088, 0.03331172093749046, -0.0365704745054245, -0.009633338078856468, 0.021629750728607178, -0.02515530399978161, 0.07782898843288422, -0.026279669255018234, 0.003911459352821112, 0.04531766101717949, 0.00980485137552023, -0.05941987782716751, 0.017618240788578987, -0.04051528498530388, 0.014912140555679798, -0.016903601586818695, 0.031939614564180374, 0.016112733632326126, 0.017322856932878494, 0.046994682401418686, 0.018342409282922745, 0.034702885895967484, 0.03853335231542587, 0.018742607906460762, -0.09726717323064804, 0.023001857101917267, -0.047947533428668976, -0.032053954899311066, -0.06231654807925224, 0.02728969231247902, 0.03462665528059006, -0.07981091737747192, 0.025898529216647148, 0.057742856442928314, -0.04181116446852684, 0.04127756506204605, -0.04977700859308243, -0.02656552568078041, 0.005817164201289415, 0.033235494047403336, 0.017160871997475624, -0.00980485137552023, -0.03948620334267616, 0.025136247277259827, 0.00530738802626729, 0.028814256191253662, 0.04642296954989433, -0.006536567583680153, 0.02195371873676777, 0.07417003065347672, -0.0035112611949443817, 0.012663408182561398, -0.0006532994448207319, 0.012291796505451202, -0.04870981723070145, 0.05225442722439766, -0.08080188184976578, -0.03361663222312927, 0.014302315190434456, -0.023306770250201225, -0.015703007578849792, -0.022887514904141426, -0.03479817137122154, -0.032816238701343536, 0.023497341200709343, -0.004097265191376209, 0.046346742659807205, 0.02656552568078041, 0.001703223679214716, 0.016932187601923943, -0.0147787407040596, -0.017141815274953842, 0.02496473304927349, -0.01110073085874319, -0.05130157247185707, -0.002355927601456642, 0.0068891230039298534, 0.03474099934101105, 0.008861527778208256, -0.041773051023483276, 0.05248311161994934, -0.00690341554582119, -0.09177874773740768, 0.0013518594205379486, 0.0443648099899292, -0.0022987565025687218, 0.04714713618159294, 0.025650786235928535, -0.03306397795677185, 0.01531233824789524, 0.002141535747796297, -0.012177454307675362, 0.03805692493915558, 0.028299717232584953, -0.016141319647431374, -0.004704708699136972, -0.02174409292638302, -0.008199295029044151, -0.009680980816483498, -0.03895260766148567, -0.007870560511946678, 0.005402673035860062, -0.0075132413767278194, 0.03761861473321915, 0.02464076317846775, -0.028433116152882576, -0.030986759811639786, -0.06803366541862488, 0.02081029675900936, 0.030948646366596222, -0.03222546726465225, 0.036322735249996185, -0.02601287141442299, 0.0071130432188510895, -0.04924341291189194, -0.038647692650556564, -0.04135379567742348, -0.056370750069618225, 0.017951739951968193, 0.06586115807294846, -0.054960526525974274, -0.012701522558927536, 0.030910532921552658, -0.01348286122083664, 0.027689890936017036, -0.006093491334468126, 0.020924638956785202, 0.020410098135471344, -0.014207029715180397, -0.04958644136786461, 0.0279376320540905, 0.016236605122685432, -0.03681821748614311, -0.003761384868994355, -0.04585125669836998, 0.02645118348300457, 0.05031060799956322, -0.03990545868873596, 0.05019626393914223, 0.0035207897890359163, 0.024926619604229927, -0.012148868292570114, 0.052635569125413895, 0.03596065193414688, 0.023726025596261024, -0.019009405747056007, -0.01689407415688038, -0.04444103688001633, 0.03626556321978569, -0.03298775106668472, 0.013254176825284958, 0.036532361060380936, -0.04958644136786461, -0.031082045286893845, -0.01596027798950672, 0.024278679862618446, 0.01784692518413067, -0.005974384490400553, 0.03963866084814072, 0.05046306550502777, 0.005836220923811197, -0.03346417844295502, 0.028947656974196434, -0.03933374956250191, -0.03401683270931244, 0.022887514904141426, -0.014369014650583267, -0.026394011452794075, 0.00011486338189570233, -0.022658830508589745, 0.016503402963280678, 0.019762158393859863, 0.01904751919209957, -0.02816631831228733, -0.026050984859466553, -0.010967331007122993, 0.02721346542239189, 0.016855958849191666, -0.0038090276066213846, 0.021705977618694305, 0.06883405894041061, 0.0567137748003006, 0.0277280043810606, 0.02208711951971054, 0.030415048822760582, 0.0033492762595415115, -0.013597204349935055, -0.01551243755966425, 0.034054946154356, -0.0644509345293045, -0.03668481856584549, -0.032263584434986115, -0.025345874950289726, -0.01784692518413067, -0.02027669921517372, 0.03009107895195484, 0.040705855935811996, 0.0460418276488781, -0.032454151660203934, -0.033845316618680954, -0.03512214124202728, -0.042192306369543076, 0.0297671090811491, -0.0016805934719741344, -0.054236359894275665, 0.002341634826734662, 0.023706968873739243, -0.012892093509435654, 0.020772183313965797, -0.05961044877767563, 0.01770399697124958, 0.09833437204360962, -0.04287835955619812, 0.02749931998550892, -0.015007425099611282, -0.018428165465593338, -0.021572578698396683, 0.062125977128744125, -0.053054820746183395, -0.09345576167106628, -0.0332736074924469, 0.05858136713504791, -0.00004473939770832658, -0.013635317794978619, 0.042382873594760895, 0.03283529356122017, -0.08217399567365646, -0.029728995636105537, 0.005445551592856646, -0.012167925015091896, -0.03435985743999481, -0.0176563560962677, -0.005874335300177336, 0.03773295506834984, 0.012091697193682194, -0.007794332690536976, 0.060525186359882355, -0.001001090626232326, -0.015264695510268211, -0.022468259558081627, -0.09879174083471298, 0.02570795826613903, -0.017360970377922058, 0.013025492429733276, 0.07298849523067474, 0.03315926343202591, -0.023706968873739243, 0.04223041981458664, -0.008380336686968803, -0.0010046637617051601, -0.03441702947020531, -0.0657087042927742, 0.041544366627931595, -0.09932533651590347, 0.011281772516667843, -0.02656552568078041, 0.004159200936555862, -0.0036256033927202225, -0.027384977787733078, -0.03731369972229004, -0.03767578303813934, -0.009523759596049786, 0.019914615899324417, -0.022792229428887367, -0.06589927524328232, 0.006002970039844513, -0.020753124728798866, 0.06307882815599442, -0.03260660916566849, -0.004090119153261185, 0.03647518903017044, 0.013149362988770008, -0.016951244324445724, 0.02004801481962204, 0.05374087765812874, 0.025460217148065567, -0.00520257418975234, 0.04497463256120682, -0.008709071204066277, -0.018199481070041656, 0.03979111835360527, -0.06708081066608429, -0.01700841635465622, 0.052521225064992905, 0.051873285323381424, -0.01673208922147751, -0.04851924628019333, -0.004102029837667942, 0.006098255515098572, -0.05290236696600914, 0.0030872419010847807, -0.00882817804813385, -0.020715011283755302, -0.011491400189697742, -0.018504394218325615, 0.04459349438548088, -0.04870981723070145, -0.07950600236654282, 0.013130306266248226, 0.04817621782422066, 0.03744709864258766, -0.029061999171972275, -0.00873765628784895, 0.02132483758032322, -0.02547927387058735, -0.008204059675335884, 0.0029181104619055986, 0.030376935377717018, -0.013721074908971786, 0.013501918874680996, 0.06540378928184509, 0.013501918874680996, -0.018647322431206703, 0.013435219414532185, 0.008537557907402515, 0.02326865680515766, -0.0912451446056366, -0.05259745195508003, -0.0011279390892013907, 0.017999382689595222, -0.02974805235862732, -0.05854325369000435, -0.04051528498530388, 0.0075132413767278194, 0.01798032596707344, -0.04710902273654938, 0.03192055597901344, 0.0016281865537166595, -0.03293057903647423, 0.038990721106529236, -0.021915605291724205, 0.050920434296131134, -0.013082663528621197, -0.022125232964754105, 0.01050043385475874, -0.04764262214303017, -0.022220518440008163, 0.03474099934101105, -0.012072640471160412, -0.04062962532043457, -0.034188345074653625, 0.06723326444625854, -0.011834426783025265, 0.001998608000576496, -0.019009405747056007, -0.00005527288521989249, -0.019895559176802635, 0.005888627842068672, 0.04855735972523689, -0.0050882319919764996, -0.037161245942115784, 0.043678753077983856, -0.0015829260228201747, -0.028718972578644753, 0.02675609663128853, -0.025002846494317055, -0.03213018178939819, 0.0336928628385067, -0.03357851877808571, 0.018085138872265816, 0.0063555254600942135, -0.042192306369543076, 0.02730875089764595, 0.00012535964197013527, -0.020962752401828766, -0.006022027228027582, 0.012415667064487934, 0.0628882572054863, -0.03577008098363876, -0.03637990355491638, -0.024335850030183792, 0.05271179601550102, 0.01157715730369091, -0.021991834044456482, 0.021896548569202423, -0.059457991272211075, 0.07051108032464981, -0.006365054287016392, 0.09055909514427185, 0.00823740940541029, 0.07950600236654282, 0.018151838332414627, 0.024164337664842606, 0.02582230046391487, 0.011834426783025265, -0.051797058433294296, -0.06174483522772789, -0.0287761427462101, 0.0817166268825531, 0.05366464704275131, -0.029919566586613655, 0.057323601096868515, -0.017942210659384727, -0.00920931901782751 ]
20,511
metevolsim.metevolsim
reload_wild_type_state
Reload the wild-type state into the mutant model. Parameters ---------- None Returns ------- None
def reload_wild_type_state( self ): """ Reload the wild-type state into the mutant model. Parameters ---------- None Returns ------- None """ for species_id in self.model.species: self.model.species[species_id]["initial_value"] = self.model.species[species_id]["wild_type_value"] self.model.species[species_id]["mutant_value"] = self.model.species[species_id]["wild_type_value"] #if not self.model.species[species_id]["constant"]: # self.model.set_species_initial_value(species_id, self.model.species[species_id]["mutant_value"]) for parameter_metaid in self.model.parameters: self.model.set_mutant_parameter_value(parameter_metaid, self.model.get_wild_type_parameter_value(parameter_metaid)) for reaction_id in self.model.reactions: self.model.reactions[reaction_id]["mutant_value"] = self.model.reactions[reaction_id]["wild_type_value"]
(self)
[ 0.03489324077963829, -0.036618832498788834, 0.02984362095594406, 0.010226390324532986, -0.007311051245778799, -0.0117430929094553, -0.03767234832048416, -0.029498502612113953, 0.0044479346834123135, -0.010453441180288792, -0.07418219745159149, 0.022632472217082977, -0.013396025635302067, 0.08987598121166229, -0.0087959673255682, -0.01691986247897148, -0.012605887837707996, 0.06233920156955719, 0.005453771911561489, -0.07370992749929428, -0.00021357012155931443, 0.017174160107970238, 0.0015496250707656145, 0.04032430797815323, -0.008491718210279942, -0.04395712912082672, -0.015902671962976456, -0.00039535306859761477, -0.0031900706235319376, 0.024902984499931335, 0.04050594940781593, -0.022160205990076065, 0.00006616416794713587, 0.011615944094955921, -0.013950031250715256, -0.09372676908969879, -0.027264319360256195, 0.07628922909498215, -0.04537392780184746, 0.013268876820802689, -0.011488795280456543, -0.04780792072415352, 0.02043461613357067, -0.021252000704407692, -0.030806317925453186, 0.0029017154593020678, -0.0074926926754415035, 0.0548192635178566, 0.017455702647566795, -0.02390396036207676, -0.028426820412278175, 0.02317739464342594, -0.012687626294791698, 0.057398565113544464, 0.0030379462987184525, -0.004538755398243666, -0.0048225694335997105, 0.062193889170885086, 0.09743224829435349, -0.03022506833076477, 0.02782740630209446, -0.0017108314204961061, -0.043157909065485, -0.02584751881659031, 0.047190338373184204, -0.046863384544849396, -0.011061938479542732, 0.01839115470647812, -0.027391467243433, 0.018690861761569977, -0.05267589911818504, -0.029571158811450005, 0.04780792072415352, 0.04366650432348251, 0.026138143613934517, -0.018273087218403816, -0.009454415179789066, -0.03091530315577984, 0.021815087646245956, -0.006334730889648199, 0.022850440815091133, 0.017383046448230743, -0.022087549790740013, 0.007992205210030079, -0.09982991218566895, -0.006929605267941952, 0.050350893288850784, -0.010762231424450874, 0.023250052705407143, -0.08391815423965454, -0.02150629833340645, 0.011879323050379753, 0.006634438410401344, 0.021760595962405205, 0.02824518084526062, 0.048788782209157944, -0.0006482314202003181, -0.0510774590075016, -0.033094994723796844, -0.08493534475564957, -0.022923098877072334, -0.009517990052700043, -0.026410605758428574, -0.02506646141409874, 0.0030038885306566954, -0.014649349264800549, 0.014222492463886738, -0.015167025849223137, -0.058997005224227905, -0.02633794955909252, -0.09917600452899933, -0.004577354062348604, -0.032023314386606216, 0.009854026138782501, -0.001447451999410987, -0.036618832498788834, 0.0037372643128037453, 0.02706451341509819, 0.01916312798857689, -0.011579615995287895, -0.0066435206681489944, 0.02744595892727375, -0.019435590133070946, 0.030751826241612434, 0.05994154140353203, 0.12446043640375137, 0.028771938756108284, -0.001069411518983543, 0.0022012621629983187, -0.0005225017666816711, -0.09953928738832474, 0.010662328451871872, -0.0667349174618721, 0.05369308963418007, 0.002835870487615466, -0.02394028753042221, -0.037018440663814545, -0.08006736636161804, 0.05601809546351433, 0.042540330439805984, -0.01036262046545744, 0.05438332259654999, 0.05965091288089752, -0.004046054091304541, 0.03442097455263138, 0.018581876531243324, -0.0078151049092412, 0.0470813550055027, -0.04831651225686073, -0.005026915576308966, 0.014195246621966362, 0.01800970733165741, 0.01840931922197342, 0.016202379018068314, -0.054673951119184494, 0.059360288083553314, -0.01878168247640133, -0.0312785841524601, -0.016293199732899666, -0.014867317862808704, -0.03160553798079491, -0.026864707469940186, -0.0254842359572649, -0.0001255167881026864, -0.06346537917852402, 0.025611385703086853, 0.00861886702477932, -0.0469723716378212, -0.0033035962842404842, 0.04286728426814079, -0.051113784313201904, -0.017092421650886536, -0.03670965135097504, 0.0017937051597982645, 0.03209596872329712, 0.08493534475564957, -0.023595169186592102, -0.05340246111154556, 0.01612064056098461, -0.006157631054520607, 0.0037486166693270206, -0.060595449060201645, -0.053148165345191956, -0.007306510582566261, 0.010026585310697556, 0.006357436068356037, -0.021760595962405205, -0.015366830863058567, 0.05758020654320717, 0.07607126235961914, 0.05580012500286102, -0.003909823019057512, -0.02310473844408989, -0.0004816325381398201, 0.008596161380410194, -0.02045278064906597, 0.014849154278635979, -0.033113159239292145, -0.007810564246028662, 0.03574695438146591, -0.022886769846081734, -0.056272391229867935, 0.002577032195404172, -0.019017815589904785, -0.014049933291971684, 0.001994645455852151, 0.02274145744740963, 0.032332103699445724, 0.0030402166303247213, -0.043339550495147705, -0.03342194855213165, 0.0254842359572649, 0.05616340786218643, 0.023722318932414055, 0.015830015763640404, -0.13899171352386475, -0.0016960731009021401, 0.004945177119225264, 0.029117057099938393, -0.02710084244608879, -0.003750887233763933, 0.02274145744740963, -0.07796032726764679, 0.016629235818982124, -0.039852041751146317, 0.02902623638510704, -0.07287438213825226, 0.006552699953317642, -0.038180943578481674, 0.01802787184715271, 0.0027336974162608385, -0.020180318504571915, 0.025629550218582153, -0.04105087369680405, 0.0313149131834507, 0.0471540130674839, 0.02710084244608879, 0.027391467243433, -0.019362933933734894, 0.04163212329149246, -0.04511963203549385, -0.03616473078727722, 0.004772617947310209, -0.04028797894716263, -0.03207780420780182, -0.02386763133108616, 0.07178453356027603, 0.002661040984094143, -0.061394669115543365, -0.03843524307012558, 0.007015884853899479, 0.00880050752311945, 0.002318193670362234, 0.05282121151685715, 0.04664541780948639, -0.08195643126964569, -0.02079789713025093, 0.022123876959085464, 0.022614307701587677, -0.06524545699357986, -0.0020570845808833838, -0.014622102491557598, 0.013750226236879826, 0.04457470774650574, -0.09467130154371262, -0.013050908222794533, -0.007724284660071135, 0.08391815423965454, 0.006044105160981417, -0.04511963203549385, 0.08130252361297607, 0.028935415670275688, -0.07211148738861084, 0.01679271273314953, -0.014231574721634388, -0.006139467004686594, 0.024921149015426636, -0.005926038604229689, -0.030406707897782326, -0.03463894501328468, -0.005385656375437975, -0.048788782209157944, 0.0783962681889534, 0.03160553798079491, -0.03333112969994545, -0.016011657193303108, -0.01925394870340824, 0.024140093475580215, -0.007288346532732248, 0.028426820412278175, 0.02782740630209446, 0.017364881932735443, 0.03418484330177307, 0.04170478135347366, 0.031532883644104004, -0.044066112488508224, -0.06415560841560364, 0.05322082340717316, 0.012260769493877888, 0.028408657759428024, 0.002942584687843919, -0.010626000352203846, 0.04573721066117287, 0.0157301127910614, 0.02513911947607994, -0.021052194759249687, 0.03287702798843384, -0.026065487414598465, 0.021469969302415848, 0.020271139219403267, 0.04355751723051071, 0.025284431874752045, -0.03563797101378441, 0.04068759083747864, 0.05641770362854004, -0.059396617114543915, -0.02588384598493576, -0.033530935645103455, 0.04773526266217232, 0.047589950263500214, -0.0037667809519916773, -0.0013339263387024403, -0.006670766975730658, 0.06411928683519363, -0.03594676032662392, -0.07955877482891083, 0.02426724135875702, 0.009790451265871525, -0.027137169614434242, -0.017174160107970238, -0.0746181383728981, -0.029680144041776657, 0.046827059239149094, -0.005054161883890629, 0.006825161632150412, -0.034330155700445175, -0.009690549224615097, -0.02984362095594406, 0.033185817301273346, 0.0005202312604524195, 0.036328207701444626, 0.023032082244753838, -0.018963323906064034, -0.030661005526781082, 0.06829702854156494, 0.009163790382444859, 0.02593833953142166, -0.003269538516178727, 0.03242292255163193, 0.01236067246645689, -0.035165704786777496, -0.010862133465707302, 0.008001287467777729, 0.03654617443680763, 0.024049272760748863, -0.0044297706335783005, -0.0014190705260261893, -0.024848492816090584, -0.04363017529249191, -0.04432041198015213, 0.05376574397087097, -0.002554327016696334, -0.02435806207358837, -0.005962366703897715, 0.06386498361825943, -0.02621079981327057, -0.05925130471587181, -0.00865973625332117, 0.004516050219535828, -0.05332980677485466, -0.006452797446399927, -0.018218595534563065, -0.04631846398115158, 0.03890750929713249, 0.03778133541345596, 0.015811851248145103, -0.03487507626414299, 0.001799381454475224, 0.0012158596655353904, -0.001095522427931428, 0.03253190964460373, -0.008982148952782154, -0.01256955973803997, 0.017037928104400635, 0.02005317062139511, -0.04007001221179962, 0.0744001641869545, 0.019308442249894142, -0.026392441242933273, -0.010308128781616688, 0.03373073786497116, -0.003991561476141214, 0.012987333349883556, 0.013214385136961937, 0.002177421934902668, 0.04105087369680405, 0.006947769317775965, 0.005331164225935936, -0.028172524645924568, 0.011234497651457787, 0.024503374472260475, -0.042540330439805984, -0.013386944308876991, 0.0294621754437685, -0.032786205410957336, -0.015820933505892754, -0.0013827423099428415, 0.07970408350229263, -0.06324740499258041, -0.044502053409814835, 0.000836684019304812, 0.014131671749055386, 0.01491272822022438, 0.0028154358733445406, 0.047190338373184204, -0.060958728194236755, 0.07309234887361526, -0.014622102491557598, 0.010008420795202255, 0.10375335812568665, 0.05202199146151543, 0.034657109528779984, 0.02900807186961174, 0.07272906601428986, -0.0008230609237216413, 0.026901036500930786, 0.019853364676237106, 0.03482058644294739, -0.06433725357055664, 0.07774236053228378, -0.04849815368652344, 0.026737559586763382, 0.007778777275234461, -0.004302621819078922, 0.022850440815091133, -0.048825107514858246, 0.017791738733649254, -0.023268215358257294, -0.05681731551885605, 0.04428408294916153, 0.02272329293191433, 0.04457470774650574, 0.0015780064277350903, -0.026174472644925117, 0.012188113294541836, -0.023667825385928154, -0.00259065511636436, 0.07280172407627106, -0.006448256783187389, 0.016175134107470512, -0.055436842143535614, -0.005194933619350195, 0.032731711864471436, -0.007769695017486811, 0.04748096689581871, 0.042540330439805984, -0.010843969881534576, 0.02938951924443245, 0.03378523141145706, -0.06241185963153839, -0.009077510796487331, -0.009745040908455849, -0.04050594940781593, 0.03098795935511589, 0.015076205134391785, 0.017800820991396904, -0.042504001408815384, -0.0352201946079731, -0.03331296518445015, 0.005508264061063528, -0.008192010223865509, 0.0024453424848616123, 0.05801614373922348, -0.04348486289381981, -0.038980163633823395, -0.030352216213941574, -0.04675440117716789, -0.018309416249394417, -0.009290938265621662, -0.09292755275964737, 0.003921175841242075, -0.022251026704907417, -0.009154708124697208, 0.0255205649882555, -0.021342821419239044, -0.03832625597715378, 0.030443036928772926, 0.00432532699778676, 0.03420300781726837, -0.04086923226714134, -0.05071417614817619, -0.008192010223865509, 0.044865336269140244, 0.013586749322712421, -0.02544790878891945, 0.02234184741973877, -0.07512672990560532, -0.008845917880535126, 0.05758020654320717, 0.021415477618575096, 0.04181376472115517, -0.01099836453795433, -0.04283095523715019, 0.029135221615433693, -0.012079128064215183, 0.023050246760249138, -0.010544261895120144, -0.0255387295037508, -0.0032241283915936947, 0.0010949547868221998, -0.0011874781921505928, -0.040542278438806534, 0.07614392042160034, -0.0010115135228261352, -0.009745040908455849, -0.028735611587762833, 0.024067437276244164, 0.03251374512910843, 0.032277610152959824, 0.027954554185271263, -0.02005317062139511, -0.04889776557683945, 0.0066253566183149815, -0.01411350816488266, 0.0014417757047340274, -0.00606226921081543, -0.009300020523369312, -0.018236760050058365, 0.024049272760748863, -0.03096979483962059, 0.024939313530921936, -0.01723773404955864, -0.006030482240021229, 0.03560164198279381, 0.037018440663814545, -0.05300285294651985, 0.05601809546351433, -0.07759704440832138, -0.037000276148319244, -0.003017511684447527, -0.03749070689082146, -0.02699185721576214, 0.004107357934117317, 0.003228669287636876, 0.012714872136712074, -0.023431692272424698, -0.023231888189911842, -0.053547777235507965, -0.01605706661939621, -0.0032718090806156397, -0.0783962681889534, -0.0147401699796319, -0.04145048186182976, -0.023994779214262962, -0.00459778867661953, -0.03636453300714493, 0.022033056244254112, 0.014876400120556355, 0.04043329507112503, 0.04907940700650215, 0.017737247049808502, -0.033985037356615067, 0.09859474748373032, -0.0045115090906620026, 0.0001728427887428552, 0.03749070689082146, -0.05180402100086212, 0.024775836616754532, -0.024594195187091827, 0.019072307273745537, 0.045700881630182266, 0.015612046234309673, 0.05678098648786545, 0.03763602301478386, 0.014567610807716846, -0.01648392342031002, 0.039452433586120605, -0.01804603636264801, -0.001495132688432932, -0.03723641112446785, 0.02779107727110386, 0.02152446284890175, -0.0011097132228314877, -0.013613995164632797, 0.0294803399592638, 0.039452433586120605, -0.0037304526194930077, 0.13470499217510223, 0.0313694067299366, -0.002231914084404707, -0.00918649509549141, 0.08348222076892853, 0.015757359564304352, -0.033985037356615067, 0.03796297684311867, 0.019744379445910454, -0.015593882650136948, -0.035093046724796295, 0.003809920512139797, 0.04464736580848694, -0.019490081816911697, -0.03167819604277611, 0.032350268214941025, -0.042540330439805984, -0.024594195187091827, -0.07370992749929428, 0.052312616258859634, 0.0353655070066452, 0.02114301547408104, -0.03451179713010788, 0.020707078278064728, -0.010244553908705711, 0.010807640850543976, 0.007397330831736326, 0.0014065827708691359, -0.037381723523139954, -0.03265905752778053, -0.003934798762202263, 0.011534205637872219, -0.03807196021080017, -0.09561584144830704, 0.003989290911704302, -0.03369441255927086, -0.018654534593224525, -0.03358542546629906, -0.012460574507713318, -0.0471540130674839, 0.003993832040578127, -0.026792051270604134, -0.0668802261352539, 0.0024703179951757193, -0.04283095523715019, -0.017818985506892204, -0.028063539415597916, 0.007983122952282429, -0.010825805366039276, 0.019671723246574402, -0.0016461218474432826, -0.0390891507267952, 0.06622631847858429, 0.038289930671453476, -0.00941808708012104, 0.04264931380748749, 0.018581876531243324, -0.05594543740153313, 0.021451804786920547, -0.023704154416918755, -0.03670965135097504, -0.030806317925453186, 0.014168000780045986, -0.027990883216261864, 0.032313939183950424, -0.0022920826449990273, 0.017800820991396904, 0.028063539415597916, 0.0031423899345099926, 0.009963010437786579, -0.056345049291849136, 0.04780792072415352, -0.017128748819231987, -0.042140718549489975, 0.04421142861247063, 0.020071333274245262, 0.0023272756952792406, 0.08348222076892853, 0.006793374661356211, -0.025284431874752045, 0.017074257135391235, 0.040251653641462326, 0.01730130799114704, -0.024812165647745132, -0.04126884043216705, 0.0017131019849330187, 0.039016492664813995, -0.05245792865753174, -0.026410605758428574, 0.010862133465707302, 0.036655161529779434, 0.032350268214941025, 0.03445730358362198, 0.01958090253174305, 0.019471919164061546, 0.026792051270604134, 0.03560164198279381, 0.04148681089282036, 0.05852473899722099, -0.015557554550468922, 0.010834887623786926, 0.03058834932744503, -0.02357700653374195, -0.050314564257860184, -0.024957478046417236, -0.02279594913125038, -0.007905925624072552, -0.047989558428525925, -0.03182350844144821, -0.031133271753787994, -0.05521887168288231, -0.04203173518180847, 0.024158256128430367, 0.03578328341245651, 0.025629550218582153, -0.01874535344541073, -0.009318185038864613, 0.04428408294916153, 0.009863108396530151, -0.028426820412278175, 0.025774862617254257, -0.028735611587762833, 0.0026928281877189875, 0.05761653557419777, 0.05808880180120468, -0.013005497865378857, 0.011661354452371597, 0.0066843898966908455, -0.02268696390092373, -0.0031378488056361675, -0.013105399906635284, -0.01603890210390091, 0.0013929596170783043, 0.018999651074409485, -0.03778133541345596, 0.029716473072767258, 0.009041182696819305, 0.02624712884426117, 0.03289518877863884, -0.0026110897306352854, 0.013241630978882313, 0.020216647535562515, -0.04479267820715904, 0.014040851965546608, 0.014404133893549442, -0.008936738595366478, -0.0016461218474432826, 0.02466685138642788, -0.04537392780184746, 0.04951534420251846, 0.03952508792281151, -0.017927968874573708, 0.030860811471939087, -0.0176736731082201, 0.003816732205450535, -0.023068411275744438, 0.005499182268977165, -0.04497431963682175, 0.051150113344192505, 0.0314420610666275, -0.028444984927773476, 0.0074926926754415035, 0.0013577666832134128, 0.05162237957119942, 0.010952954180538654, 0.036201056092977524, -0.022232862189412117, 0.0784689262509346, 0.04519229009747505, -0.0025157283525913954, -0.003769051283597946, -0.035510823130607605, 0.004541025962680578, 0.009835861623287201, -0.06858765333890915, 0.019072307273745537, 0.03247741609811783, -0.015285092405974865, 0.04740830883383751, -0.01724681630730629, -0.03883485123515129 ]
20,512
metevolsim.metevolsim
run_OAT_analysis
Run the OAT sensitivity analysis algorithm. Parameters ---------- factor_range : float > 0.0 Half-range of the log10-scaling factor (total range=2*factor_range) factor_step : float > 0.0 Exploration step of the log10-scaling factor. x' = x*10^(factor) Returns ------- None
def run_OAT_analysis( self, factor_range, factor_step ): """ Run the OAT sensitivity analysis algorithm. Parameters ---------- factor_range : float > 0.0 Half-range of the log10-scaling factor (total range=2*factor_range) factor_step : float > 0.0 Exploration step of the log10-scaling factor. x' = x*10^(factor) Returns ------- None """ assert factor_range > 0.0, "The factor range 'factor_range' must be a positive nonzero value. Exit." assert factor_step > 0.0, "The factor step 'factor_step' must be a positive nonzero value. Exit." self.initialize_OAT_analysis(factor_range, factor_step) stop_sa = False start_time = time.time() while not stop_sa: stop_sa = self.next_parameter() ongoing_time = time.time() estimated_time = (ongoing_time-start_time)*float(self.model.get_number_of_parameters()-self.param_index-1)/float(self.param_index+1) print(" Estimated remaining time "+str(int(round(estimated_time/60)))+" min.")
(self, factor_range, factor_step)
[ 0.00680714612826705, -0.0179614070802927, 0.001975754741579294, 0.06242384761571884, 0.0329398550093174, -0.022353993728756905, -0.06042308360338211, -0.0701722651720047, -0.047763701528310776, -0.01528765819966793, -0.006566144991666079, 0.016269851475954056, 0.011477111838757992, 0.010194803588092327, -0.04499901086091995, 0.031393811106681824, 0.0065161255188286304, -0.01757034845650196, -0.009248987771570683, 0.02470034547150135, 0.018516164273023605, 0.022335804998874664, -0.0945088341832161, 0.00679805176332593, 0.007607451640069485, 0.02477310039103031, -0.011604432947933674, -0.005620329175144434, -0.05274742469191551, -0.05016461759805679, -0.003178487066179514, -0.06089599058032036, 0.008989797905087471, -0.041834164410829544, -0.009994727559387684, -0.04463523253798485, 0.04550829529762268, 0.008344097062945366, -0.010831410996615887, 0.031521134078502655, 0.013223233632743359, -0.07726588100194931, -0.01596064306795597, 0.029556745663285255, -0.09567291289567947, -0.020898893475532532, -0.04419870302081108, 0.09138036519289017, 0.0376143716275692, -0.04350753128528595, -0.02018953114748001, -0.06460650265216827, -0.012559343129396439, 0.02539151906967163, 0.01074046641588211, 0.0624966025352478, -0.004310737829655409, 0.01107695885002613, 0.05391150340437889, -0.03359465301036835, 0.0019928067922592163, 0.02730133943259716, 0.05391150340437889, 0.022408559918403625, 0.03819641098380089, 0.0053793275728821754, -0.042561713606119156, 0.04558105021715164, 0.05001910775899887, 0.014150860719382763, 0.026482844725251198, -0.03643209859728813, 0.029483990743756294, 0.022281238809227943, 0.037323348224163055, -0.012459305115044117, -0.02080794982612133, 0.04070645943284035, -0.010594956576824188, -0.013741613365709782, -0.00436530401930213, 0.03190309554338455, -0.004901872482150793, 0.019261904060840607, -0.017397554591298103, -0.015151242725551128, -0.03557722643017769, -0.03877845034003258, 0.03508613258600235, 0.004017443861812353, -0.01940741389989853, 0.024500269442796707, 0.027628736570477486, 0.006416087504476309, 0.015742378309369087, 0.03479510918259621, -0.04558105021715164, -0.04103385657072067, -0.060022931545972824, -0.03757799416780472, 0.020535117015242577, 0.03739610314369202, 0.0003654805477708578, 0.04925518110394478, -0.0008042845292948186, -0.017952313646674156, -0.035959191620349884, 0.04270722344517708, 0.04488987475633621, 0.026882996782660484, -0.09509087353944778, 0.05500283092260361, -0.05434803664684296, -0.042561713606119156, -0.0814129188656807, 0.022917846217751503, 0.004053821321576834, 0.05063752830028534, -0.09567291289567947, -0.0130049679428339, 0.02655559964478016, 0.016515400260686874, -0.05121956765651703, 0.0368686318397522, 0.02793794497847557, 0.03397661820054054, 0.04296186566352844, 0.02337256632745266, -0.03881482779979706, -0.05667619779706001, 0.0006405856111086905, 0.013468781486153603, 0.028174400329589844, 0.009053458459675312, 0.007475583348423243, -0.005392969585955143, -0.012768514454364777, -0.031030036509037018, -0.0417250320315361, 0.008716966956853867, -0.01364157535135746, 0.005629423540085554, -0.007871189154684544, -0.05700359493494034, 0.042488958686590195, 0.017051968723535538, -0.034067559987306595, -0.0039174058474600315, 0.019152771681547165, -0.022590449079871178, -0.03495880961418152, 0.02788337878882885, -0.007157279644161463, -0.04699977487325668, 0.010031105019152164, -0.0221721064299345, 0.012168285436928272, -0.020444173365831375, -0.02913840487599373, -0.05467543378472328, -0.061368897557258606, -0.019261904060840607, -0.0068480707705020905, -0.023663586005568504, 0.005502101965248585, 0.01760672591626644, -0.07217302918434143, 0.07413741201162338, -0.0011265667853876948, -0.029629500582814217, -0.019280092790722847, -0.026464655995368958, -0.004385766573250294, -0.015451357699930668, -0.019134582951664925, 0.030811771750450134, -0.0064615593291819096, -0.01714291237294674, 0.06809874624013901, -0.011531678028404713, -0.047108907252550125, 0.02399098314344883, -0.09952893108129501, -0.015424074605107307, -0.04998273029923439, -0.06784410029649734, 0.025846237316727638, -0.029356669634580612, -0.01365066971629858, 0.02135361172258854, -0.01717928983271122, -0.018234238028526306, 0.015524112619459629, -0.01700649783015251, 0.01331417728215456, 0.005024646874517202, 0.010240275412797928, 0.019080016762018204, 0.029556745663285255, 0.044416967779397964, 0.0019086836837232113, 0.017379365861415863, 0.008298625238239765, -0.019152771681547165, -0.02342713251709938, 0.006438823416829109, 0.04619946703314781, 0.06260573863983154, -0.029047461226582527, 0.014305464923381805, 0.01859801448881626, -0.049109671264886856, 0.004897325299680233, 0.02864730730652809, 0.013059535063803196, -0.0034558656625449657, 0.0465996190905571, 0.007525602355599403, -0.005229270551353693, 0.00684352358803153, -0.006711654830724001, -0.04739992693066597, -0.0557667575776577, -0.020571494475007057, 0.0555848702788353, 0.039942532777786255, 0.04354390874505043, -0.0036172911059111357, 0.010513107292354107, -0.05765838921070099, -0.020516928285360336, -0.0006093236734159291, 0.02280871383845806, 0.020971648395061493, 0.041324879974126816, 0.04667237401008606, -0.01325961109250784, -0.011904547922313213, -0.07544700801372528, -0.053547728806734085, -0.025500651448965073, -0.0058385939337313175, -0.002188336104154587, -0.003567271865904331, -0.06915368884801865, -0.04587206989526749, 0.019025450572371483, 0.017306610941886902, -0.025828048586845398, -0.05962277948856354, 0.04201605170965195, -0.0184343159198761, -0.029629500582814217, 0.010413069278001785, -0.01957111246883869, -0.03444952517747879, 0.0402335524559021, 0.03712327405810356, 0.04216156154870987, -0.011477111838757992, 0.03253970295190811, 0.04983722046017647, -0.03715965151786804, 0.023063356056809425, -0.03757799416780472, 0.012150096707046032, -0.023718152195215225, -0.03388567268848419, 0.0323760062456131, 0.006893542595207691, 0.04503538832068443, 0.031393811106681824, -0.052965689450502396, -0.020607871934771538, -0.011486206203699112, 0.0765383318066597, 0.058094922453165054, -0.0391058474779129, -0.0325578935444355, 0.012759420089423656, 0.015351319685578346, -0.014159955084323883, 0.0036809516604989767, 0.02861092984676361, -0.0801033303141594, -0.05085579305887222, 0.015424074605107307, 0.016660910099744797, 0.0598774217069149, -0.008134925737977028, -0.017242951318621635, 0.05827680975198746, 0.062096450477838516, 0.020244097337126732, 0.03712327405810356, 0.0765383318066597, 0.0010282336734235287, -0.00020263422629795969, 0.013477875851094723, -0.027519604191184044, 0.04467160999774933, -0.03775988146662712, -0.04590844735503197, -0.058058544993400574, 0.009367214515805244, 0.01360519789159298, -0.0038446506951004267, -0.005543026607483625, 0.058094922453165054, -0.015169431455433369, -0.01728842221200466, 0.01597883179783821, 0.0755925178527832, 0.011440734378993511, -0.04223431646823883, 0.00701176980510354, 0.02073519490659237, -0.009012534283101559, 0.049073293805122375, 0.07253680378198624, -0.021062592044472694, 0.04157952219247818, 0.024372948333621025, -0.03170302137732506, 0.039178602397441864, -0.07089981436729431, 0.028174400329589844, 0.01588788814842701, -0.017133818939328194, -0.07908476144075394, -0.07733863592147827, 0.009576385840773582, 0.005452082958072424, 0.023572642356157303, -0.04889140650629997, 0.01173175498843193, -0.04616308957338333, -0.023699963465332985, 0.020989837124943733, 0.04692701995372772, 0.0012300153030082583, 0.011959114111959934, -0.054238904267549515, 0.03976064547896385, 0.05925900116562843, -0.015478640794754028, 0.023681774735450745, -0.025555217638611794, 0.02782881259918213, -0.07002675533294678, -0.0531475767493248, 0.04427145794034004, 0.00877607986330986, 0.029447613283991814, 0.039906155318021774, 0.07159098982810974, 0.02153550088405609, -0.044380590319633484, -0.02462759055197239, -0.042561713606119156, -0.004601757973432541, -0.006738937925547361, -0.02977501042187214, -0.006075048353523016, 0.0019223253475502133, -0.014914789237082005, -0.005752197466790676, 0.01099510956555605, 0.06420634686946869, -0.0054293470457196236, -0.04034268483519554, -0.0094035929068923, 0.01615162566304207, 0.036686744540929794, -0.014741995371878147, 0.07726588100194931, -0.000455571775091812, -0.030684448778629303, -0.05733099207282066, 0.019080016762018204, 0.05900435894727707, 0.004765457008033991, -0.04088834673166275, 0.027628736570477486, 0.002050783485174179, -0.06366068124771118, -0.05114681273698807, -0.008912495337426662, 0.03583187237381935, -0.008753344416618347, 0.041324879974126816, -0.005493007600307465, -0.027537792921066284, 0.013132289983332157, 0.03357646241784096, -0.0026646542828530073, -0.003242147620767355, 0.02530057542026043, -0.06995400041341782, -0.007384639233350754, -0.02531876415014267, -0.04761819168925285, 0.014860222116112709, 0.0010117501951754093, 0.02671929821372032, -0.043798550963401794, 0.022990601137280464, -0.044380590319633484, -0.0311573576182127, 0.011904547922313213, -0.02786519005894661, -0.010458541102707386, 0.022335804998874664, 0.01845250464975834, -0.020989837124943733, 0.0013505159877240658, -0.02335437573492527, 0.010922354646027088, -0.007889377884566784, 0.017524877563118935, 0.05434803664684296, 0.0031352885998785496, -0.0002230965910712257, 0.06864440441131592, 0.05336584150791168, 0.04419870302081108, 0.009044364094734192, -0.03044799529016018, -0.007084524724632502, 0.03126649186015129, -0.03943324834108353, 0.02268139272928238, -0.06649813055992126, 0.0038810281548649073, -0.0090761948376894, 0.01946198008954525, -0.03357646241784096, -0.06744394451379776, 0.041906919330358505, -0.03190309554338455, 0.02462759055197239, 0.023045167326927185, 0.061950940638780594, 0.03523164242506027, 0.007580168545246124, 0.006084142718464136, 0.008771533146500587, -0.0847596526145935, -0.02131723426282406, 0.00858964491635561, -0.007843906059861183, 0.001369841513223946, -0.02462759055197239, 0.02009858749806881, -0.007384639233350754, -0.011613527312874794, -0.03504975512623787, -0.023081544786691666, 0.012422927655279636, 0.03719602897763252, 0.013796179555356503, 0.018497975543141365, -0.026992129161953926, -0.014150860719382763, 0.04732717201113701, 0.019607489928603172, 0.050928547978401184, 0.03590462729334831, -0.019261904060840607, -0.02404554933309555, -0.010185709223151207, -0.0042084259912371635, 0.01581513322889805, -0.03375834971666336, 0.008830646052956581, 0.011640810407698154, 0.007962132804095745, 0.055439360439777374, -0.00227132230065763, -0.015314941294491291, -0.040488194674253464, -0.04165227711200714, 0.005734008736908436, 0.0557667575776577, -0.0226450152695179, 0.045253653079271317, -0.0034444977063685656, -0.04598120227456093, -0.04227069392800331, -0.0658797100186348, -0.02530057542026043, -0.041870541870594025, -0.009621857665479183, 0.02781062386929989, 0.006425181869417429, 0.0010253917425870895, 0.010867788456380367, 0.0030534393154084682, -0.040633704513311386, -0.004683607257902622, -0.005352044478058815, 0.02275414764881134, -0.03957875818014145, -0.021953841671347618, 0.03119373507797718, 0.057403746992349625, -0.05365686118602753, -0.04165227711200714, -0.0598774217069149, 0.04165227711200714, 0.02930210344493389, -0.005574856884777546, 0.015160337090492249, -0.04176140949130058, 0.045071765780448914, -0.01813420094549656, 0.03552266210317612, -0.030102409422397614, -0.034067559987306595, -0.004408502485603094, -0.06580695509910583, -0.03712327405810356, 0.023063356056809425, 0.029338480904698372, 0.034049373120069504, -0.013787085190415382, 0.0029852313455194235, 0.022263050079345703, -0.04474436491727829, 0.014487353153526783, 0.03128467872738838, -0.02519144117832184, 0.027428660541772842, 0.05824043229222298, 0.06853527575731277, 0.022990601137280464, -0.019643867388367653, -0.08541444689035416, 0.041324879974126816, 0.06631624698638916, -0.05605778098106384, -0.04092472419142723, -0.015151242725551128, -0.04794558882713318, 0.0066889189183712006, -0.013878028839826584, -0.014050822705030441, 0.01714291237294674, 0.008094001561403275, 0.012150096707046032, 0.04147038981318474, 0.02993871085345745, 0.08337730914354324, 0.0703541487455368, 0.007743867579847574, 0.05009186267852783, 0.019753001630306244, 0.01760672591626644, 0.025700727477669716, -0.02915659360587597, -0.00843958742916584, -0.0441623255610466, 0.005338402930647135, -0.012368361465632915, -0.03130286931991577, -0.012168285436928272, 0.006584333721548319, 0.045690182596445084, -0.019716624170541763, 0.02997508831322193, 0.04161589965224266, 0.01700649783015251, -0.0641699731349945, -0.024809477850794792, -0.06638900190591812, -0.018070539459586143, 0.03881482779979706, -0.02086251601576805, -0.044380590319633484, 0.02018953114748001, 0.01857982575893402, -0.01367795281112194, -0.04412594810128212, -0.03241238370537758, 0.03263064846396446, 0.06788048148155212, 0.002867004368454218, -0.015696905553340912, 0.002029184252023697, -0.029574934393167496, -0.03621383383870125, 0.026755675673484802, -0.04412594810128212, -0.048964161425828934, -0.06577058136463165, 0.06482476741075516, 0.02921115979552269, -0.04201605170965195, 0.06544318050146103, 0.025573406368494034, -0.08497791737318039, -0.007921207696199417, -0.021080780774354935, -0.05402063578367233, 0.007039052899926901, 0.039214979857206345, -0.021517310291528702, 0.04987359791994095, 0.00945815909653902, 0.05460267886519432, 0.07210027426481247, 0.03241238370537758, 0.04587206989526749, 0.01944379135966301, -0.022990601137280464, 0.015651434659957886, 0.024191059172153473, -0.03775988146662712, 0.0988013818860054, 0.06646175682544708, 0.006893542595207691, 0.03297623246908188, -0.034049373120069504, 0.026955751702189445, -0.03448590263724327, -0.007884830236434937, 0.026228202506899834, -0.05471181124448776, 0.007639281917363405, -0.038596563041210175, 0.024536646902561188, 0.02344532124698162, -0.02802889049053192, -0.013195950537919998, -0.014760184101760387, -0.011613527312874794, -0.023827284574508667, 0.027137640863656998, -0.02853817492723465, -0.03381291776895523, 0.012413833290338516, 0.019152771681547165, 0.010476729832589626, -0.016424456611275673, 0.058676961809396744, -0.03903309255838394, -0.03816003352403641, 0.05118319019675255, 0.001967797288671136, 0.07937578111886978, -0.0014096294762566686, -0.019152771681547165, -0.022954223677515984, 0.02782881259918213, -0.005793122109025717, -0.01760672591626644, -0.008857929147779942, 0.02468215674161911, 0.06966298073530197, -0.0028374476823955774, -0.06973573565483093, 0.024936798959970474, 0.014232710003852844, -0.024463891983032227, 0.026828430593013763, -0.021717388182878494, -0.0022099351044744253, 0.012177379801869392, 0.008603286929428577, 0.0939267948269844, 0.027446849271655083, -0.01618800312280655, 0.07217302918434143, 0.09349026530981064, 0.07115445286035538, 0.004601757973432541, 0.04754543676972389, 0.027756057679653168, -0.0006923099281266332, -0.026464655995368958, -0.026464655995368958, 0.008366832509636879, 0.011831793002784252, -0.088688425719738, 0.05965915694832802, 0.03323087841272354, -0.014487353153526783, -0.0016188002191483974, -0.015460452064871788, -0.01949835754930973, -0.08919771015644073, -0.027410471811890602, -0.05984104424715042, -0.010558579117059708, 0.028083456680178642, -0.03514069691300392, -0.05911349132657051, 0.0009986769873648882, 0.05925900116562843, -0.043180134147405624, 0.07060879468917847, 0.01362338662147522, 0.0028306269086897373, 0.02919297106564045, -0.023045167326927185, 0.01648811623454094, -0.04787283390760422, 0.007170921191573143, 0.01700649783015251, -0.01486931648105383, 0.00923534668982029, 0.027646925300359726, -0.02671929821372032, 0.013250516727566719, -0.00010295126412529498, 0.04983722046017647, -0.06500665098428726, 0.04619946703314781, -0.015687812119722366, 0.011658999137580395, -0.029684066772460938, -0.003605922916904092, 0.1066589280962944, -0.010522201657295227, 0.0014198606368154287, 0.028228966519236565, -0.009694612585008144, -0.009594574570655823, 0.024245625361800194, 0.014578296802937984, -0.03823278844356537, -0.0012504777405411005, -0.03497700020670891, -0.01397806778550148, -0.013887123204767704, -0.03452228009700775, -0.06598884612321854, -0.02670110948383808, 0.04157952219247818, 0.002573710400611162, 0.008003056980669498, -0.022881468757987022, -0.011549866758286953, 0.01854344829916954, 0.03306717798113823, -0.01401444524526596, -0.016142530366778374, -0.02271777018904686, -0.012741231359541416, -0.015742378309369087, 0.0053202142007648945, -0.03681406378746033, 0.0507102832198143, 0.0570763498544693, 0.06984486430883408, 0.026792053133249283, 0.024445703253149986, 0.017224762588739395, 0.01949835754930973, -0.02799251303076744, 0.019989455118775368, -0.014460070058703423, 0.061223387718200684, 0.03230325132608414, -0.01948016881942749, 0.007234582211822271, -0.02982957847416401, -0.030029654502868652 ]
20,513
metevolsim.metevolsim
run_random_analysis
Run the multivariate random sensitivity analysis algorithm. Parameters ---------- sigma : float > 0.0 Kinetic parameters mutation size. nb_iterations : int > 0 Number of iterations of the multivariate random analysis. Returns ------- None
def run_random_analysis( self, sigma, nb_iterations ): """ Run the multivariate random sensitivity analysis algorithm. Parameters ---------- sigma : float > 0.0 Kinetic parameters mutation size. nb_iterations : int > 0 Number of iterations of the multivariate random analysis. Returns ------- None """ assert sigma > 0.0, "The mutation size sigma must be positive. Exit." assert nb_iterations > 0, "The number of iterations must be positive. Exit." self.initialize_random_analysis(sigma, nb_iterations) stop_sa = False start_time = time.time() while not stop_sa: stop_sa = self.next_iteration() ongoing_time = time.time() estimated_time = (ongoing_time-start_time)*float(self.nb_iterations-self.iteration)/float(self.iteration+1) print(" Estimated remaining time "+str((round(estimated_time/60,2)))+" min.")
(self, sigma, nb_iterations)
[ 0.026364736258983612, 0.008051884360611439, -0.041765205562114716, 0.08143854141235352, 0.022703969851136208, 0.0014990209601819515, -0.05712960660457611, -0.05280160531401634, 0.015166034922003746, 0.06668727099895477, -0.044722672551870346, 0.052368804812431335, -0.021676069125533104, 0.008051884360611439, -0.0923306792974472, 0.0019723959267139435, 0.041116002947092056, 0.05720173940062523, -0.040791403502225876, -0.002499871188774705, -0.05478527396917343, 0.036210935562849045, -0.05907720699906349, 0.029809102416038513, 0.02777133695781231, 0.03956513851881027, -0.005225158762186766, -0.04594893753528595, 0.030386170372366905, 0.02614833600819111, -0.05027693882584572, -0.06077234074473381, 0.03411906957626343, 0.020630136132240295, 0.030512403696775436, -0.03348790481686592, 0.0179161187261343, 0.02061210200190544, -0.0765334740281105, 0.003924504388123751, -0.0077588423155248165, -0.041116002947092056, 0.07177267223596573, 0.0005342375370673835, -0.022090835496783257, -0.026851635426282883, 0.04526367038488388, 0.1012030765414238, -0.02061210200190544, -0.051431071013212204, -0.006884225644171238, -0.025048302486538887, 0.03053043596446514, 0.009530617855489254, -0.03664373606443405, 0.05294587090611458, 0.03732900321483612, -0.0002045656437985599, 0.0433160699903965, -0.05312620475888252, 0.031684570014476776, -0.0019847939256578684, 0.013470901176333427, 0.017925135791301727, -0.018898935988545418, -0.003223458770662546, -0.04594893753528595, 0.047427672892808914, 0.01641935110092163, 0.028330368921160698, 0.020107168704271317, -0.006505525670945644, 0.03909626975655556, 0.04887033998966217, 0.016608702018857002, 0.029863202944397926, -0.0830254778265953, -0.07963521033525467, -0.020017001777887344, 0.005671483930200338, 0.01843908615410328, -0.002842504531145096, 0.01739315129816532, -0.025282735005021095, -0.024038435891270638, 0.00949455052614212, -0.02780740335583687, -0.018060384318232536, 0.0850452110171318, -0.057021405547857285, -0.005252209026366472, 0.009873251430690289, 0.0671922042965889, 0.03195507079362869, -0.0014776063617318869, 0.04944740608334541, 0.006262075621634722, -0.060952674597501755, 0.014237318187952042, -0.08670427650213242, 0.05327047035098076, 0.014399617910385132, 0.08143854141235352, 0.015301285311579704, -0.005964525509625673, 0.026454903185367584, -0.014192234724760056, 0.011162634938955307, 0.021892469376325607, 0.045732539147138596, -0.05193600431084633, 0.10185227543115616, -0.05882474035024643, -0.008674033917486668, -0.06809387356042862, -0.02153180167078972, -0.002250785706564784, 0.020143235102295876, -0.03433547168970108, 0.021062934771180153, -0.008863383904099464, 0.0021189169492572546, 0.0030679211486130953, 0.055650871247053146, -0.026184402406215668, 0.00915191788226366, 0.024345003068447113, 0.004039467312395573, -0.010648684576153755, -0.01228971779346466, -0.003415062790736556, -0.012902851216495037, 0.04998840391635895, 0.0194399356842041, -0.000592282332945615, -0.00971996784210205, 0.01141510158777237, -0.04717520624399185, 0.026346702128648758, 0.0017706480575725436, 0.0045669423416256905, 0.012064301408827305, -0.003315879497677088, -0.015066851861774921, 0.005085400305688381, 0.013921734876930714, 0.025481102988123894, -0.03511090204119682, -0.02292036823928356, -0.08050081133842468, -0.012623334303498268, -0.005112450569868088, 0.009665867313742638, -0.003545804414898157, -0.012686450965702534, 0.009359301067888737, 0.06124120578169823, -0.0198366679251194, -0.05442460626363754, -0.03772573545575142, -0.055073805153369904, -0.01175773423165083, -0.027627069503068924, 0.011793801560997963, 0.0001292623783228919, 0.006875209044665098, -0.005824767053127289, 0.07047427445650101, -0.06686760485172272, -0.0018168585374951363, -0.036535538733005524, 0.01625705137848854, -0.029935335740447044, -0.026184402406215668, -0.04465053975582123, 0.03639126941561699, -0.0028334876988083124, -0.01971043460071087, 0.07631707191467285, -0.02530076913535595, -0.04360460489988327, -0.06264780461788177, -0.06827420741319656, -0.052404873073101044, -0.027915602549910545, 0.013939768075942993, 0.021044902503490448, -0.01870056800544262, 0.019403869286179543, 0.010224901139736176, 0.006803075782954693, -0.007492851000279188, 0.01196511834859848, -0.005310817155987024, 0.024994201958179474, 0.028564803302288055, 0.012893835082650185, 0.013074168004095554, 0.004273900296539068, 0.02659916877746582, 0.0222711693495512, 0.022397402673959732, -0.02611226961016655, -0.04356853663921356, 0.03707653656601906, -0.002168508479371667, 0.011478218249976635, 0.03478630259633064, 0.0032505085691809654, 0.029123837128281593, -0.038194604218006134, -0.06391014158725739, 0.09802921116352081, 0.024795835837721825, 0.04328000545501709, -0.05752633884549141, 0.041837338358163834, -0.017618568614125252, 0.03550763800740242, -0.007181775756180286, 0.002653154544532299, -0.04861787334084511, -0.01804235205054283, 0.04039467126131058, -0.000703300058376044, 0.0380503386259079, 0.03869953751564026, 0.02364170178771019, -0.016284102573990822, -0.059690337628126144, 0.007335058879107237, 0.011640517972409725, 0.05157534033060074, -0.05510987341403961, -0.07595640420913696, -0.015030784532427788, 0.014904551208019257, 0.00578870065510273, -0.027500836178660393, -0.009305200539529324, -0.028276270255446434, -0.014102067798376083, -0.010648684576153755, 0.018574334681034088, -0.10625240951776505, -0.012181517668068409, 0.04172913730144501, 0.024958135560154915, -0.00022598022769670933, 0.014814385212957859, 0.03855527192354202, -0.05323440581560135, -0.04955560341477394, 0.04786047339439392, 0.019421901553869247, -0.014183217659592628, 0.04566040635108948, 0.04558826982975006, 0.06427080929279327, -0.021080968901515007, 0.030999302864074707, 0.0009709823643788695, -0.037256870418787, 0.08396320790052414, -0.0546410046517849, 0.033181335777044296, -0.02813200280070305, 0.027356568723917007, 0.02126130275428295, -0.014210267923772335, 0.04659813642501831, 0.034840404987335205, -0.050096604973077774, -0.056949272751808167, -0.024687636643648148, 0.05016873776912689, -0.0036878171376883984, 0.04133240506052971, -0.08966173976659775, 0.005274750757962465, 0.06531673669815063, -0.007862534373998642, -0.00009002578735817224, 0.039132338017225266, -0.07079887390136719, 0.009485534392297268, -0.01723085157573223, 0.008124017156660557, 0.0728907436132431, 0.0008233344415202737, -0.01895303465425968, -0.02425483614206314, 0.036337170749902725, -0.012262667529284954, 0.015725068747997284, -0.000244295340962708, -0.03736507147550583, -0.016239019110798836, -0.004702192265540361, 0.03833886981010437, 0.05085400491952896, -0.028889402747154236, -0.04360460489988327, -0.02393023669719696, 0.0317927710711956, 0.025156501680612564, 0.03379447013139725, -0.04151273891329765, 0.03235180303454399, -0.0010690386407077312, -0.057490274310112, 0.03319936990737915, 0.037833936512470245, 0.040827471762895584, -0.013191384263336658, -0.009945384226739407, 0.012848751619458199, -0.05850014090538025, -0.0012319021625444293, 0.04288326948881149, -0.017275935038924217, -0.00895805936306715, -0.0008323510992340744, -0.043460339307785034, 0.043135736137628555, -0.0732874721288681, -0.029322203248739243, 0.003149071242660284, -0.05016873776912689, -0.019494036212563515, -0.040142204612493515, -0.01141510158777237, 0.030494369566440582, 0.012848751619458199, -0.025048302486538887, 0.014462734572589397, -0.031233737245202065, -0.008317875675857067, 0.059942808002233505, -0.04122420400381088, -0.0009304073755629361, -0.007005950901657343, -0.03328953683376312, 0.034191202372312546, 0.02533683553338051, 0.009359301067888737, 0.016040651127696037, -0.02679753676056862, 0.025481102988123894, -0.0562640056014061, 0.00829082541167736, 0.07631707191467285, -0.025715535506606102, 0.07033000886440277, 0.03956513851881027, 0.06340520828962326, -0.0064063421450555325, -0.009629800915718079, -0.04861787334084511, -0.04172913730144501, 0.0062485504895448685, 0.05330653861165047, 0.0028763168957084417, -0.024525335058569908, 0.06156580522656441, -0.03942086920142174, -0.055037740617990494, 0.03511090204119682, 0.06189040467143059, -0.03449777141213417, -0.011550351046025753, -0.07480227202177048, -0.00237363763153553, 0.04335213825106621, 0.004521858878433704, 0.01853826828300953, -0.041765205562114716, 0.001473098061978817, -0.006721925921738148, -0.013353684917092323, 0.03350593522191048, -0.005013267043977976, -0.031035369262099266, -0.015084885060787201, 0.040142204612493515, -0.04295540601015091, -0.020990801975131035, -0.0012803667923435569, 0.0251024030148983, -0.012037251144647598, 0.01554473489522934, -0.03141406923532486, 0.017807917669415474, -0.017582502216100693, 0.011342967860400677, 0.025859802961349487, -0.016347218304872513, 0.010026534087955952, -0.08230414241552353, 0.07170054316520691, -0.052368804812431335, 0.0003829266061075032, -0.09499961137771606, 0.0186284352093935, 0.023623669520020485, -0.07913027703762054, 0.004339271225035191, -0.03150423616170883, -0.015499651432037354, 0.05319833755493164, -0.002209083642810583, -0.019926834851503372, -0.03942086920142174, -0.022649869322776794, -0.00796622596681118, 0.03242393583059311, -0.018430069088935852, -0.03942086920142174, 0.011658551171422005, 0.020756369456648827, 0.046778470277786255, 0.0009884522296488285, 0.04061106964945793, 0.02016126923263073, 0.04962773993611336, 0.04396527260541916, -0.04728340357542038, -0.011568384245038033, -0.04028647020459175, -0.008606409654021263, -0.031035369262099266, -0.015048818662762642, -0.025282735005021095, 0.06910374015569687, -0.012064301408827305, 0.01485946774482727, -0.0700414702296257, -0.028402503579854965, 0.018159568309783936, -0.05117860436439514, -0.022559702396392822, 0.05067367106676102, -0.0019182959804311395, -0.04951953887939453, -0.004688667133450508, -0.007114150561392307, 0.05352293699979782, -0.020630136132240295, -0.008182626217603683, -0.016915269196033478, 0.014579951763153076, 0.058283738791942596, 0.039132338017225266, -0.027753302827477455, 0.04667027294635773, 0.005270242225378752, -0.04465053975582123, -0.004850967321544886, 0.014029935002326965, 0.004260375630110502, -0.013903701677918434, 0.007055542431771755, -0.06041167303919792, -0.0025224126875400543, 0.049772005528211594, -0.017257900908589363, 0.030386170372366905, 0.029736969619989395, -0.011234767735004425, -0.0336141362786293, 0.012614318169653416, 0.011207717470824718, 0.04497513920068741, 0.004720225464552641, -0.017934150993824005, -0.07130380719900131, -0.05590333789587021, 0.00455116294324398, -0.03514697030186653, 0.0010690386407077312, -0.004052991978824139, 0.0017312001436948776, 0.0022395148407667875, 0.0712677389383316, -0.016861168667674065, -0.01918746903538704, 0.040502872318029404, -0.03466007113456726, 0.006645284127444029, -0.06134940683841705, -0.0045669423416256905, -0.047427672892808914, 0.06859880685806274, 0.0805729404091835, -0.02351546846330166, -0.009485534392297268, 0.030782902613282204, 0.015725068747997284, 0.023659735918045044, -0.021189168095588684, 0.01016178447753191, 0.01726691797375679, -0.026094235479831696, -0.03137800469994545, 0.036012571305036545, 0.02425483614206314, 0.0041296337731182575, -0.039781536906957626, -0.054027874022722244, 0.023299068212509155, 0.01980060152709484, -0.030710769817233086, 0.03570600226521492, -0.03538140282034874, 0.07985160499811172, -0.038843803107738495, -0.008556817658245564, -0.021802302449941635, 0.010874100960791111, 0.02230723574757576, -0.002892096061259508, -0.04962773993611336, -0.04439806938171387, 0.03942086920142174, 0.034551870077848434, 0.0017278189770877361, 0.002080596052110195, 0.05063760653138161, 0.021080968901515007, 0.04569647088646889, -0.00736661721020937, 0.003683308605104685, -0.017907101660966873, 0.045768603682518005, 0.04537187144160271, -0.03303707018494606, 0.006473967339843512, -0.06279207020998001, 0.008087950758635998, -0.0017312001436948776, -0.03599453717470169, -0.020269468426704407, -0.002136950148269534, -0.04919493943452835, 0.01898910105228424, 0.04425380378961563, -0.009012158960103989, -0.012758584693074226, 0.045083336532115936, -0.006852667313069105, 0.044758737087249756, 0.05777880549430847, -0.0029304169584065676, 0.020377669483423233, 0.048726070672273636, -0.005044825375080109, -0.0076010506600141525, -0.003489450318738818, 0.02259576879441738, 0.026454903185367584, -0.006631758995354176, -0.056011538952589035, 0.04850967228412628, -0.007880567573010921, -0.033181335777044296, 0.012767601758241653, -0.026941802352666855, 0.03392070531845093, -0.0198366679251194, -0.01091016735881567, 0.005599350668489933, -0.002134696114808321, 0.0026711877435445786, -0.0293582696467638, -0.04861787334084511, 0.031594403088092804, 0.031269803643226624, -0.011649534106254578, -0.030061569064855576, 0.020251436159014702, 0.02513846941292286, -0.029340235516428947, 0.03559780493378639, 0.021802302449941635, -0.045047271996736526, 0.029123837128281593, -0.03938480466604233, -0.04021433740854263, -0.014895535074174404, 0.06372980773448944, -0.0509982705116272, 0.022577736526727676, -0.06023133918642998, -0.06683153659105301, -0.040466804057359695, 0.036048635840415955, 0.050024472177028656, -0.008435092866420746, 0.016040651127696037, -0.03873560577630997, -0.11122961342334747, -0.029484502971172333, -0.011748718097805977, -0.006464950740337372, -0.0009816896636039019, 0.011649534106254578, -0.018348919227719307, 0.010522451251745224, 0.030314035713672638, 0.04822113737463951, -0.011784784495830536, 0.010080634616315365, 0.008069917559623718, 0.014138135127723217, 0.041765205562114716, 0.02643686905503273, -0.0067895506508648396, -0.014652084559202194, 0.0684184730052948, -0.010648684576153755, -0.038230668753385544, 0.0469588041305542, -0.01495865173637867, -0.02457943558692932, -0.02708606980741024, -0.056011538952589035, 0.00021372319315560162, -0.06401833891868591, -0.010414251126348972, -0.03758146986365318, -0.028312336653470993, -0.027194269001483917, -0.012965967878699303, -0.053054071962833405, 0.0429193377494812, -0.00795270036906004, -0.008949042297899723, 0.06372980773448944, -0.038843803107738495, 0.026022102683782578, 0.04814900457859039, 0.011279851198196411, -0.014985702000558376, -0.019007135182619095, 0.006329700816422701, -0.007655150722712278, -0.00912035908550024, 0.07638920843601227, 0.03626503795385361, 0.05575907230377197, -0.022054769098758698, 0.020539969205856323, -0.008710101246833801, 0.024886002764105797, -0.03343380242586136, -0.09160934388637543, 0.010639667510986328, 0.02364170178771019, 0.04043073579668999, -0.029502537101507187, -0.006591184064745903, 0.02448926866054535, -0.036373235285282135, -0.06693974137306213, 0.06116907298564911, -0.028799235820770264, -0.007898600772023201, 0.012722518295049667, -0.0062710922211408615, 0.049375273287296295, 0.029286136850714684, -0.04407346993684769, 0.020864568650722504, 0.017077568918466568, -0.00010996108176186681, 0.04890640452504158, 0.0010200105607509613, -0.028041835874319077, -0.019530102610588074, 0.02741066925227642, -0.000016765367035986856, 0.01687920093536377, -0.02744673565030098, -0.03873560577630997, 0.022235102951526642, 0.00035249534994363785, 0.04320787265896797, -0.028402503579854965, -0.018574334681034088, -0.02861890383064747, -0.06621840596199036, -0.02748280204832554, 0.021315401419997215, -0.010792951099574566, 0.005207125563174486, 0.021405568346381187, -0.008538784459233284, 0.003101733746007085, 0.004483537748456001, -0.05882474035024643, 0.05561480671167374, 0.0518278069794178, 0.001342356437817216, 0.03384856879711151, -0.044109538197517395, 0.05081794038414955, -0.05756240710616112, 0.0271221362054348, 0.06935621052980423, -0.02676146849989891, -0.0013412293046712875, 0.008263776078820229, 0.005247700493782759, 0.040466804057359695, -0.013849601149559021, 0.01870056800544262, -0.006776025518774986, 0.03797820210456848, 0.01255120150744915, 0.016825102269649506, -0.026022102683782578, -0.019818635657429695, -0.00022879794414620847, -0.013173351064324379, -0.08215987682342529, -0.003561583813279867, -0.00001949502075149212, -0.012659401632845402, 0.09326840937137604, 0.014399617910385132, -0.05622793734073639, -0.01971043460071087, -0.0026734420098364353, -0.004510588012635708, -0.07631707191467285, -0.002709508640691638, -0.017600534483790398, 0.0037035963032394648, 0.026346702128648758, 0.004715716931968927, 0.00913839228451252, 0.0234794020652771, -0.009251100942492485, -0.010982301086187363, 0.033217404037714005, 0.01513898465782404, -0.04627353698015213, 0.03246000409126282, 0.049808070063591, -0.03244196996092796, 0.057021405547857285, -0.02412860281765461, 0.019746502861380577, 0.04259473830461502, 0.02732050232589245, 0.04198160395026207, 0.06246747449040413, -0.04933920502662659, 0.013678284361958504, -0.037148669362068176, 0.04367673769593239, -0.05117860436439514, 0.03758146986365318, 0.016798051074147224, -0.04273900389671326, 0.03547156974673271, -0.020558001473546028, 0.0020681980531662703 ]
20,514
metevolsim.metevolsim
write_OAT_output_file
Write the current OAT sensitivity analysis state in the output file. Parameters ---------- None Returns ------- None
def write_OAT_output_file( self ): """ Write the current OAT sensitivity analysis state in the output file. Parameters ---------- None Returns ------- None """ line = "" #~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Write current OAT state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~# line += str(self.param_metaid)+" " line += str(self.param_id)+" " line += str(self.param_wild_type)+" " line += str(self.param_val)+" " line += str((self.param_val-self.param_wild_type)/self.param_wild_type) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Write steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for species_id in self.model.species: if not self.model.species[species_id]["constant"]: wild_type_val = self.model.species[species_id]["wild_type_value"] mutant_val = self.model.species[species_id]["mutant_value"] dln_val = "NA" if wild_type_val != 0.0: dln_val = (mutant_val-wild_type_val)/wild_type_val line += " "+str(dln_val) for reaction_id in self.model.reactions: wild_type_val = self.model.reactions[reaction_id]["wild_type_value"] mutant_val = self.model.reactions[reaction_id]["mutant_value"] dln_val = "NA" if wild_type_val != 0.0: dln_val = (mutant_val-wild_type_val)/wild_type_val line += " "+str(dln_val) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Write in file # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.OAT_output_file = open("output/OAT_sensitivity_analysis.txt", "a") self.OAT_output_file.write(line+"\n") self.OAT_output_file.close()
(self)
[ -0.007267365697771311, -0.03805319219827652, 0.017362242564558983, 0.039414938539266586, 0.06298068165779114, -0.06509894877672195, -0.11446218937635422, -0.007546334061771631, -0.020028991624712944, -0.050914112478494644, -0.03449752554297447, 0.0013747472548857331, 0.0013180079404264688, 0.037069711834192276, 0.014988645911216736, 0.06207285076379776, 0.0008398606441915035, -0.02089899592101574, 0.022563349455595016, 0.04603452980518341, 0.02683771401643753, 0.014998102560639381, -0.08843773603439331, -0.026780974119901657, 0.019423771649599075, -0.022052695974707603, -0.018686160445213318, -0.011518089100718498, -0.029126200824975967, -0.036748189479112625, -0.011981460265815258, -0.07508508116006851, 0.01702180691063404, -0.029126200824975967, 0.0002820714144036174, -0.035802531987428665, 0.02869120053946972, 0.027896849438548088, -0.024076398462057114, 0.03710753843188286, 0.02838858962059021, -0.05235150828957558, -0.006993125192821026, -0.012520483694970608, -0.0914638340473175, 0.014856253750622272, -0.05976545065641403, 0.10258474946022034, 0.03623753413558006, -0.036124054342508316, -0.013068964704871178, -0.029428811743855476, -0.018752356991171837, 0.03309795632958412, 0.001124148489907384, -0.016000498086214066, 0.02509770728647709, 0.004288549534976482, 0.04633713886141777, -0.04758540540933609, 0.0039268359541893005, 0.040927987545728683, 0.06577982008457184, 0.009272156283259392, 0.03105533868074417, 0.03060142509639263, -0.05439412593841553, 0.030525771901011467, 0.006922201253473759, 0.05957632139325142, 0.04542930796742439, -0.08548729121685028, 0.037996452301740646, 0.039377111941576004, 0.01870507374405861, -0.016095062717795372, -0.0329277366399765, 0.011622111313045025, 0.001729368232190609, -0.03741014748811722, -0.04728279262781143, -0.004879584535956383, 0.030941860750317574, -0.002704575890675187, -0.027102498337626457, -0.0009308800217695534, 0.03385448083281517, -0.0017967461608350277, 0.016199085861444473, 0.022506609559059143, -0.035783618688583374, 0.0372399277985096, 0.0030946589540690184, -0.006288611795753241, 0.02931533195078373, 0.0009509752271696925, -0.017144741490483284, -0.04323538765311241, -0.00585361011326313, -0.031093165278434753, -0.050611503422260284, 0.01728658936917782, -0.006345351226627827, 0.018241701647639275, -0.017513547092676163, -0.0748959481716156, -0.03326817601919174, 0.08465511351823807, 0.02540031634271145, -0.013068964704871178, -0.09668385982513428, 0.00001626269477128517, 0.011745045892894268, -0.06967592239379883, 0.021182691678404808, -0.02933424524962902, -0.010440041311085224, 0.03793971613049507, -0.040020156651735306, -0.03241708502173424, 0.05707978829741478, 0.005267303436994553, -0.04898497462272644, 0.02386835403740406, 0.02352791838347912, 0.008681121282279491, 0.01723930612206459, 0.02386835403740406, 0.016255823895335197, -0.026932280510663986, -0.05378890782594681, 0.05038454756140709, 0.05526413023471832, 0.019726382568478584, 0.015253429301083088, -0.023603571578860283, -0.06313198804855347, -0.03915015235543251, -0.013693097047507763, 0.03619970753788948, 0.04009580984711647, -0.04762323200702667, -0.006028556264936924, -0.05083845928311348, 0.06729287654161453, 0.042630165815353394, -0.013976793736219406, -0.016709739342331886, -0.012813637033104897, -0.0312066450715065, 0.006487199570983648, 0.029712507501244545, -0.1011473536491394, -0.05269194766879082, 0.0009746166178956628, -0.0346488319337368, 0.012501570396125317, -0.03742906078696251, -0.010279279202222824, -0.04947671666741371, -0.02791576273739338, -0.020237036049365997, 0.041722338646650314, 0.0099010169506073, -0.014638753607869148, 0.04569409415125847, -0.04138190299272537, 0.04822845011949539, 0.059651974588632584, -0.0611271969974041, -0.01949942484498024, -0.0198020339012146, -0.0340057872235775, 0.026572929695248604, -0.04554278776049614, 0.04134407639503479, 0.0004843531351070851, -0.05291890352964401, 0.017125828191637993, 0.002725853119045496, -0.020974647253751755, -0.0043831150978803635, -0.07478246837854385, 0.04679105430841446, -0.009026285260915756, -0.03461100533604622, 0.03478122502565384, -0.02931533195078373, 0.017532460391521454, 0.04429452121257782, 0.04179799184203148, -0.0003584626829251647, -0.013437770307064056, 0.013087877072393894, 0.025684013962745667, -0.03584035858511925, 0.0561719611287117, -0.02997729182243347, 0.046866707503795624, 0.009948300197720528, -0.00724845239892602, 0.005357140675187111, -0.011527545750141144, -0.00012345242430455983, 0.005744859576225281, 0.0028558808844536543, 0.032379258424043655, 0.0027116683777421713, -0.07671160250902176, 0.01934812031686306, 0.03241708502173424, -0.02122051827609539, 0.011168195866048336, -0.003224686486646533, 0.033154696226119995, -0.019858773797750473, 0.019187357276678085, 0.06661199778318405, -0.08374728262424469, 0.012898745946586132, -0.04138190299272537, 0.009853734634816647, -0.050308894366025925, 0.024076398462057114, 0.012492114678025246, 0.04962801933288574, 0.03759927675127983, 0.005035617388784885, 0.021163778379559517, -0.01069536805152893, -0.00541860843077302, 0.062299810349941254, -0.006203502416610718, 0.025627274066209793, 0.003401997033506632, 0.015480387024581432, -0.029731420800089836, -0.015792453661561012, -0.11272218078374863, -0.025702927261590958, -0.05723109468817711, -0.04410539194941521, 0.029542289674282074, -0.001420847955159843, -0.0032790617551654577, -0.046223659068346024, 0.05726892128586769, 0.011489719152450562, -0.020955733954906464, -0.03495144098997116, 0.077052041888237, -0.01412809919565916, -0.03722101449966431, -0.011366783641278744, 0.022506609559059143, -0.08541163802146912, -0.030393380671739578, -0.0016501694917678833, 0.03203882277011871, -0.030487945303320885, 0.011499175801873207, 0.02855880744755268, -0.0061136651784181595, -0.03790188953280449, -0.032662954181432724, -0.011206022463738918, -0.001054406282491982, -0.037183187901973724, -0.005603011231869459, -0.0027896848041564226, 0.050951939076185226, 0.06721722334623337, -0.10477866977453232, -0.01997225172817707, -0.0561719611287117, 0.008884437382221222, 0.06555286794900894, -0.03254947438836098, -0.023433353751897812, 0.03591601178050041, 0.020199209451675415, 0.00877095852047205, 0.03570796549320221, 0.06142980605363846, -0.015102124772965908, -0.01381603255867958, -0.04815279692411423, -0.016813762485980988, 0.047509752213954926, -0.03309795632958412, 0.005517902318388224, 0.05367542803287506, 0.049552369862794876, 0.04947671666741371, 0.038771890103816986, 0.01904550939798355, -0.015858648344874382, -0.02916402742266655, 0.041419729590415955, -0.04883367195725441, -0.00018898342386819422, -0.009385635145008564, 0.06702809035778046, -0.056398916989564896, -0.0226011760532856, -0.006572308484464884, 0.02541922964155674, -0.021409649401903152, 0.03818558529019356, 0.023660309612751007, -0.0036786014679819345, 0.003219958394765854, 0.06740634888410568, 0.032057736068964005, 0.0018593958811834455, 0.009357265196740627, 0.014506361447274685, -0.002631287556141615, 0.07754378020763397, 0.07190767675638199, -0.02763206511735916, 0.006000186782330275, 0.029750334098935127, -0.02591097168624401, 0.025059880688786507, -0.0932038426399231, 0.05087628588080406, 0.012236787006258965, -0.009721342474222183, -0.0576850101351738, -0.06744417548179626, -0.03585927188396454, -0.002985908417031169, 0.041571032255887985, -0.003933928441256285, -0.0034161820076406, -0.027859022840857506, -0.07739248126745224, 0.0598411038517952, 0.02698901854455471, -0.006619591265916824, 0.014600927010178566, -0.043613649904727936, 0.011735589243471622, 0.021012473851442337, 0.001852303510531783, 0.0027353097684681416, -0.022998351603746414, -0.005891436245292425, 0.032057736068964005, -0.0007795750861987472, 0.08677338808774948, 0.01816605031490326, 0.05753370374441147, 0.03273860737681389, 0.03217121213674545, -0.005257846787571907, -0.020955733954906464, -0.011972003616392612, 0.000654866686090827, -0.010411671362817287, -0.013712010346353054, -0.007522692438215017, 0.009891560301184654, 0.020936820656061172, -0.04425669461488724, 0.007929324172437191, 0.0028015056159347296, 0.0346488319337368, -0.03589709848165512, -0.04573191702365875, -0.01713528484106064, 0.03510274738073349, -0.018780725076794624, 0.019064422696828842, 0.07534985989332199, -0.018922574818134308, -0.013560705818235874, -0.018147137016057968, -0.0396040678024292, 0.013314834795892239, -0.0012317168293520808, -0.011196565814316273, 0.033457305282354355, 0.0036715089809149504, -0.0630563348531723, 0.040625378489494324, -0.009617320261895657, -0.02201486937701702, 0.016350390389561653, 0.045164525508880615, 0.03748580068349838, -0.022204000502824783, -0.005735402926802635, 0.04705583676695824, 0.022355305030941963, 0.008369054645299911, 0.0380910187959671, -0.03903667628765106, 0.009054655209183693, -0.011801785789430141, -0.06354807317256927, -0.014165924862027168, 0.02668640948832035, -0.03264404088258743, -0.047661058604717255, 0.02072877623140812, 0.02591097168624401, -0.025513796135783195, 0.00479447515681386, -0.03576470538973808, 0.04459713026881218, 0.027991414070129395, 0.0029457181226462126, 0.031736209988594055, 0.019991165027022362, -0.000009137954293692019, 0.02057747170329094, 0.0062413290143013, 0.02479509823024273, 0.009844277985394001, 0.021258344873785973, 0.05428064987063408, 0.10031517595052719, 0.03820449858903885, -0.022487696260213852, -0.0064824712462723255, 0.013759293593466282, -0.012265156954526901, 0.05791196599602699, -0.0023204032331705093, -0.0006318163359537721, -0.07277767360210419, 0.004723551217466593, 0.010610259138047695, 0.004820480942726135, 0.00740448571741581, -0.08034292608499527, 0.011489719152450562, 0.035783618688583374, 0.035197313874959946, 0.015262885950505733, 0.02651619166135788, 0.04524017870426178, -0.0004057454934809357, 0.007319376803934574, 0.003380719805136323, -0.022222913801670074, 0.03428948298096657, 0.030639251694083214, 0.026459451764822006, 0.02793467417359352, -0.016265280544757843, -0.010875042527914047, -0.013002768158912659, 0.009759169071912766, 0.017362242564558983, -0.05798761919140816, -0.0022128347773104906, -0.015527669340372086, 0.0026903909165412188, 0.032852087169885635, 0.01846865937113762, 0.019158989191055298, 0.02634597383439541, -0.03915015235543251, -0.014657665975391865, -0.01823224499821663, -0.029561202973127365, -0.01168830692768097, -0.03201990947127342, 0.0013203719863668084, 0.0001121488749049604, -0.01848757266998291, 0.009002643637359142, -0.007863128557801247, -0.04043624550104141, -0.00549426069483161, -0.012586680240929127, -0.015064298175275326, -0.06211067736148834, -0.038601674139499664, -0.03631318733096123, 0.016170715913176537, 0.016095062717795372, 0.03926363214850426, 0.025381404906511307, -0.05042237043380737, -0.01779724471271038, -0.04334886744618416, -0.00040131271816790104, -0.018714530393481255, -0.022695740684866905, -0.05568021908402443, -0.03341947868466377, 0.09116122871637344, -0.032681867480278015, -0.011678850278258324, -0.07905682921409607, -0.01880909502506256, 0.011272218078374863, -0.01357961818575859, -0.08571425080299377, -0.03708862513303757, -0.02201486937701702, 0.025702927261590958, -0.051897596567869186, -0.06449373066425323, -0.028899243101477623, 0.009376178495585918, 0.016965067014098167, -0.043424516916275024, 0.01319189928472042, 0.0033996328711509705, -0.017400069162249565, 0.006009642966091633, 0.009144492447376251, -0.007697639055550098, -0.020653124898672104, 0.011754502542316914, -0.07463116198778152, -0.035972751677036285, -0.0024232431314885616, -0.010884499177336693, -0.02901272289454937, 0.02901272289454937, -0.007508507929742336, 0.016861043870449066, -0.0010715463431552052, -0.0007175164064392447, -0.03514057397842407, -0.04009580984711647, -0.0026951192412525415, 0.02916402742266655, 0.04440800100564957, -0.007045136298984289, 0.03419491648674011, -0.049060627818107605, 0.02197704277932644, 0.028161631897091866, -0.02449248731136322, -0.05291890352964401, -0.026100102812051773, -0.06907070428133011, 0.02229856513440609, -0.013012224808335304, 0.00045568792847916484, -0.031282298266887665, -0.001565060461871326, 0.012548853643238544, 0.008912806399166584, 0.010184713639318943, 0.0727398544549942, 0.016331477090716362, 0.0602571927011013, 0.027859022840857506, 0.04350017011165619, 0.022393131628632545, 0.027802282944321632, 0.015896474942564964, -0.01904550939798355, 0.007929324172437191, -0.002190375467762351, -0.05068715661764145, 0.005267303436994553, 0.032965563237667084, 0.016842130571603775, 0.01948051154613495, -0.02290378510951996, 0.013116247020661831, 0.06260242313146591, 0.042214080691337585, -0.036899492144584656, -0.0561719611287117, -0.07134027779102325, -0.012596136890351772, 0.025494882836937904, 0.040625378489494324, -0.013920054771006107, 0.020331602543592453, -0.019934426993131638, 0.028142718598246574, -0.014080815948545933, -0.040663205087184906, 0.07440420240163803, 0.05692848563194275, 0.02541922964155674, 0.04073885455727577, 0.019991165027022362, -0.0014858618378639221, -0.058101098984479904, 0.01052515022456646, 0.016482781618833542, -0.0820072814822197, -0.021560953930020332, 0.05182194337248802, 0.034421876072883606, -0.032681867480278015, 0.05038454756140709, 0.03979320079088211, -0.048266276717185974, -0.006501384079456329, -0.03132012486457825, -0.0025958253536373377, 0.0033074314706027508, -0.0019054965814575553, 0.02089899592101574, 0.023168569430708885, -0.02664858289062977, 0.059500668197870255, 0.04073885455727577, 0.06623373925685883, 0.04493756964802742, -0.06313198804855347, -0.030374467372894287, 0.0001327612262684852, 0.03504600748419762, -0.019707469269633293, 0.012444831430912018, 0.018043113872408867, 0.024379009380936623, 0.002680934499949217, -0.04009580984711647, 0.022336391732096672, -0.055301956832408905, -0.019310293719172478, -0.01093178242444992, -0.058744143694639206, 0.024908576160669327, -0.05991675704717636, -0.008113727904856205, -0.008189380168914795, -0.006066382396966219, -0.0075983451679348946, -0.0270079318434, 0.028312936425209045, -0.014704949222505093, -0.037523627281188965, -0.016558434814214706, 0.004203440621495247, 0.028577720746397972, 0.01835518144071102, 0.03073381632566452, -0.028747938573360443, -0.0061940462328493595, 0.013135160319507122, -0.03247382491827011, 0.0016371667152270675, -0.018648333847522736, -0.007149158511310816, -0.02619466744363308, -0.00005806918125017546, -0.007352474611252546, -0.011716676875948906, 0.04996845871210098, -0.05583152547478676, 0.032057736068964005, 0.02524901181459427, 0.04414321854710579, 0.02201486937701702, -0.04970367252826691, -0.002289669355377555, 0.019423771649599075, -0.03154708072543144, 0.05261629447340965, -0.028464242815971375, -0.002718760631978512, 0.017012350261211395, 0.01560332253575325, 0.009135035797953606, 0.010430584661662579, 0.008075901307165623, 0.044861916452646255, 0.05647457018494606, 0.02899380959570408, -0.051708463579416275, 0.06831417977809906, 0.06963810324668884, 0.05496152117848396, -0.022998351603746414, 0.008945904672145844, 0.06733069568872452, 0.05912240594625473, -0.11559697240591049, 0.046110183000564575, 0.0308851208537817, -0.006142035126686096, 0.04959019646048546, -0.027178149670362473, -0.039717547595500946, -0.09032905101776123, -0.04198712110519409, -0.04883367195725441, -0.01831735484302044, 0.04505104571580887, -0.024057485163211823, 0.0010680000996217132, 0.019253553822636604, -0.0151210380718112, -0.012671789154410362, 0.019612902775406837, 0.02089899592101574, 0.029220767319202423, 0.03489470109343529, -0.018828008323907852, -0.010884499177336693, 0.009787538088858128, -0.033759914338588715, -0.028577720746397972, -0.026440538465976715, 0.0064824712462723255, 0.07606855779886246, -0.004801567643880844, -0.021731171756982803, -0.02154204063117504, 0.03619970753788948, -0.04909845441579819, 0.019168443977832794, -0.004144337028264999, -0.03213338553905487, -0.03865841403603554, 0.007442311849445105, 0.06922201067209244, -0.012161134742200375, -0.04682888090610504, 0.004964693449437618, -0.03856384754180908, 0.004870127886533737, 0.015262885950505733, -0.022222913801670074, -0.030166422948241234, 0.018818551674485207, -0.025967711582779884, 0.01588701829314232, 0.022260740399360657, -0.00350838340818882, -0.016482781618833542, -0.02027486264705658, 0.016255823895335197, 0.038620587438344955, 0.006960027385503054, 0.027083585038781166, -0.007120789028704166, -0.0273294560611248, -0.008752045221626759, 0.039414938539266586, 0.0374479740858078, 0.0189414881169796, -0.04705583676695824, 0.012076025828719139, 0.058138925582170486, -0.01007123477756977, 0.038601674139499664, 0.013617444783449173, 0.10432475805282593, 0.005428064614534378, 0.07996466010808945, 0.008591284044086933, 0.016265280544757843, -0.00510654179379344, 0.002676206175237894, -0.02916402742266655, 0.03930145874619484, 0.07379898428916931, 0.021125951781868935, 0.06657417118549347, -0.07160506397485733, -0.04962801933288574 ]
20,515
metevolsim.metevolsim
write_random_output_file
Write the current multivariate random sensitivity analysis state in the output file. Parameters ---------- None Returns ------- None
def write_random_output_file( self ): """ Write the current multivariate random sensitivity analysis state in the output file. Parameters ---------- None Returns ------- None """ line = "" #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 1) Write current multivariate random state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# line += str(self.iteration) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 2) Write steady-state # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# for species_id in self.model.species: if not self.model.species[species_id]["constant"]: wild_type_val = self.model.species[species_id]["wild_type_value"] mutant_val = self.model.species[species_id]["mutant_value"] dln_val = "NA" if wild_type_val != 0.0: dln_val = (mutant_val-wild_type_val)/wild_type_val line += " "+str(dln_val) for reaction_id in self.model.reactions: wild_type_val = self.model.reactions[reaction_id]["wild_type_value"] mutant_val = self.model.reactions[reaction_id]["mutant_value"] dln_val = "NA" if wild_type_val != 0.0: dln_val = (mutant_val-wild_type_val)/wild_type_val line += " "+str(dln_val) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # 3) Write in file # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# self.random_output_file = open("output/random_sensitivity_analysis.txt", "a") self.random_output_file.write(line+"\n") self.random_output_file.close()
(self)
[ -0.016836760565638542, -0.0043170577846467495, 0.005716994404792786, 0.0601058267056942, 0.07267477363348007, -0.03202267363667488, -0.11833569407463074, -0.01149026770144701, 0.011677864007651806, -0.0034658401273190975, -0.025569364428520203, 0.044797975569963455, -0.0017680942546576262, 0.05631638318300247, -0.011630965396761894, 0.05909280851483345, 0.03753800317645073, 0.032078951597213745, -0.02367464266717434, 0.03369227796792984, -0.01746520772576332, 0.046261224895715714, -0.05459049716591835, 0.004635971505194902, 0.033148251473903656, -0.0316849984228611, -0.022305188700556755, -0.028402065858244896, 0.013741422444581985, -0.008765432983636856, -0.0764642134308815, -0.07218702137470245, 0.022549064829945564, 0.023974796757102013, -0.0002847651776392013, -0.03823210671544075, 0.027445325627923012, 0.022849218919873238, -0.06907292455434799, 0.025456806644797325, 0.028101911768317223, -0.034536462277173996, 0.03070949949324131, -0.004335817415267229, -0.07612654566764832, 0.016574125736951828, -0.006495518609881401, 0.07758979499340057, 0.0025559982750564814, -0.058492500334978104, -0.021648602560162544, -0.014923278242349625, -0.00029531746986322105, 0.02915245108306408, -0.0037613040767610073, -0.007048927713185549, 0.02842082642018795, -0.02543804608285427, 0.042959533631801605, -0.049375321716070175, 0.003221964929252863, 0.015898779034614563, 0.04554836079478264, 0.013929018750786781, 0.02318689227104187, 0.015195293352007866, -0.05958055704832077, 0.04821222648024559, -0.011715383268892765, 0.06464565545320511, 0.03920760750770569, -0.0703485757112503, 0.05447794124484062, 0.05151392146945, 0.012447008863091469, 0.031178491190075874, -0.07455073297023773, -0.023449527099728584, 0.0024176461156457663, -0.005838932003825903, -0.04401007294654846, -0.0026732459664344788, 0.0564289391040802, -0.020147833973169327, -0.0637827143073082, -0.0329231359064579, 0.01284096110612154, 0.0016438118182122707, 0.048925090581178665, -0.006575247272849083, -0.038419704884290695, 0.04862493649125099, 0.005599746946245432, 0.0025466184597462416, 0.03078453801572323, -0.0010675396770238876, -0.0004259020206518471, -0.027332767844200134, 0.0031187869608402252, -0.04194651171565056, -0.05466553568840027, 0.025006575509905815, 0.0531647652387619, 0.02020411193370819, -0.042171627283096313, -0.06442053616046906, -0.03198515251278877, 0.05822986364364624, -0.009267252869904041, -0.00846058875322342, -0.08937083184719086, 0.054440420120954514, 0.012728403322398663, -0.05466553568840027, 0.007381910923868418, -0.05008818954229355, -0.023918516933918, 0.01895659789443016, -0.02155480533838272, -0.017727842554450035, 0.048512380570173264, -0.011171353980898857, -0.04551083967089653, 0.05451545864343643, -0.03095337562263012, -0.026263469830155373, 0.009492368437349796, 0.021986275911331177, -0.00039922818541526794, -0.014726302586495876, -0.06734704226255417, 0.0198289193212986, 0.057141806930303574, 0.025831999257206917, 0.01653660647571087, -0.016470948234200478, -0.058867692947387695, -0.05136384442448616, 0.030409345403313637, 0.03095337562263012, 0.03909505158662796, -0.03553072363138199, -0.00891081988811493, -0.014341730624437332, 0.07312500476837158, 0.04314712807536125, 0.007339701987802982, -0.020598063245415688, -0.028683461248874664, -0.05406522750854492, 0.0016942282672971487, 0.008765432983636856, -0.08516868203878403, -0.02703261375427246, 0.001723540248349309, -0.02461262233555317, 0.03950776159763336, -0.03708777204155922, -0.022867977619171143, -0.04543580114841461, -0.02568192221224308, -0.03553072363138199, 0.035061731934547424, 0.04037070646882057, -0.004523413721472025, 0.04689905419945717, -0.04603610932826996, 0.025831999257206917, 0.016555365175008774, -0.019284890964627266, -0.022905496880412102, -0.002043626271188259, -0.03840094432234764, 0.00232619303278625, -0.05699172988533974, 0.02273666113615036, 0.012522047385573387, -0.04858741909265518, 0.026601143181324005, 0.029827797785401344, -0.013929018750786781, -0.05830490216612816, -0.06509588658809662, 0.03491165488958359, -0.0047203898429870605, 0.001629742095246911, 0.01598319783806801, -0.02007279545068741, 0.019012875854969025, 0.029583923518657684, 0.05327732488512993, -0.00035496719647198915, -0.0001297051931032911, -0.01192173920571804, 0.04325968772172928, -0.036693818867206573, 0.04772447794675827, -0.05785467103123665, 0.09102167934179306, -0.030634460970759392, 0.0013835220597684383, 0.006312612444162369, -0.010674224235117435, -0.009018687531352043, -0.005304282996803522, 0.009553337469696999, 0.017136914655566216, 0.010571046732366085, -0.0760515034198761, 0.04310961067676544, -0.0061297062784433365, -0.019978996366262436, 0.03902001306414604, -0.0008072499767877162, 0.04734928533434868, -0.06224442273378372, 0.013178633525967598, 0.046223707497119904, -0.054853133857250214, -0.0008054912323132157, -0.02326193079352379, -0.024049833416938782, -0.022924257442355156, 0.053539957851171494, -0.021611083298921585, 0.04408511146903038, 0.03431134670972824, 0.012728403322398663, -0.014735682867467403, -0.008015047758817673, 0.01732451096177101, 0.04746184125542641, 0.02714517153799534, -0.010458488948643208, -0.0641954243183136, 0.007785242982208729, -0.02768920175731182, 0.008380861021578312, -0.05721684545278549, 0.031910113990306854, -0.09237237274646759, -0.024725180119276047, 0.026638662442564964, 0.014304211363196373, 0.003622951917350292, -0.029246250167489052, 0.060293421149253845, 0.03431134670972824, -0.01784977875649929, 0.0013248982140794396, 0.06494580954313278, -0.022661622613668442, -0.06505836546421051, 0.011180734261870384, 0.0764642134308815, -0.07068625092506409, -0.01937868818640709, -0.006964509375393391, 0.047049131244421005, -0.0388324148952961, 0.0013237257953733206, 0.02249278500676155, -0.005698234774172306, 0.001775129116140306, -0.06742207705974579, -0.018459467217326164, -0.044873014092445374, -0.0008688049274496734, 0.00419277511537075, -0.005022888537496328, 0.04828726500272751, 0.08006606251001358, -0.11600949615240097, -0.02637602761387825, -0.03282933682203293, -0.004802463110536337, 0.0429220125079155, -0.012991037219762802, -0.04596107080578804, 0.03806327283382416, 0.04547332227230072, 0.001141405664384365, 0.037688080221414566, 0.08239225298166275, 0.018281251192092896, 0.02776423841714859, -0.06959819793701172, -0.03761304169893265, 0.06018086522817612, -0.04010806977748871, -0.019041014835238457, 0.0036112270317971706, 0.038494743406772614, 0.04093349352478981, 0.020429227501153946, -0.04097101092338562, -0.04607363045215607, -0.060330942273139954, 0.03913256898522377, -0.005534088239073753, -0.00009394466178491712, -0.021611083298921585, 0.06967323273420334, -0.03459274023771286, -0.03157244250178337, -0.016621025279164314, 0.009384500794112682, -0.027632921934127808, 0.009905080311000347, 0.018731482326984406, -0.021367209032177925, 0.024875257164239883, 0.042059071362018585, 0.04817470535635948, 0.029733998700976372, -0.004485894460231066, -0.01750272698700428, -0.004673490766435862, 0.050688497722148895, 0.05327732488512993, -0.0592804029583931, -0.004335817415267229, 0.038944974541664124, -0.019069155678153038, 0.03823210671544075, -0.09319780021905899, 0.018121793866157532, -0.01837504841387272, -0.02408735267817974, -0.018572025001049042, -0.04975051432847977, -0.02346828579902649, 0.0128784803673625, 0.04588603228330612, 0.011011897586286068, -0.0018853419460356236, -0.015823740512132645, -0.033598482608795166, 0.10580426454544067, -0.023449527099728584, -0.01774660125374794, -0.0067018745467066765, -0.03042810596525669, 0.011237013153731823, 0.015823740512132645, 0.0208606980741024, -0.006837882101535797, 0.0025559982750564814, -0.012250032275915146, 0.02395603619515896, 0.023974796757102013, 0.061156366020441055, 0.007081756833940744, 0.07698948681354523, 0.02543804608285427, 0.04772447794675827, -0.024237429723143578, -0.01916295289993286, -0.013741422444581985, 0.01294413860887289, 0.007344391662627459, -0.001813820912502706, -0.003669850993901491, 0.007686754688620567, 0.04558587819337845, -0.0531647652387619, -0.003981729503720999, 0.007180245127528906, 0.054327864199876785, -0.03222902864217758, -0.04562339931726456, -0.061156366020441055, 0.029996633529663086, 0.0012252377346158028, 0.02097325585782528, 0.029058653861284256, -0.054815612733364105, 0.007489778567105532, 0.03262298181653023, -0.06453309953212738, 0.007133346050977707, -0.01885341852903366, -0.011105695739388466, 0.018243731930851936, 0.013975917361676693, -0.053464919328689575, 0.06198178976774216, -0.005238624289631844, -0.027051374316215515, 0.02138596773147583, 0.02768920175731182, 0.037763118743896484, 0.003791788360103965, -0.03421754762530327, 0.051701515913009644, 0.024387506768107414, -0.007527297828346491, 0.043859995901584625, -0.052189264446496964, 0.03793195262551308, -0.03819458931684494, -0.023524565622210503, -0.09499872475862503, 0.014745062217116356, -0.024631382897496223, -0.05421530455350876, 0.014773202128708363, 0.03153492137789726, -0.004786048550158739, 0.00008383205567952245, -0.002933535724878311, 0.05282709375023842, -0.016508467495441437, -0.03384235501289368, 0.04746184125542641, 0.038982491940259933, -0.01410723477602005, -0.022136352956295013, 0.02530672959983349, 0.039807915687561035, 0.027632921934127808, 0.033673521131277084, 0.06798486411571503, 0.08509363979101181, 0.03995799273252487, -0.021723641082644463, -0.04134620353579521, 0.049863073974847794, -0.005088547244668007, 0.050238266587257385, -0.010617945343255997, -0.021367209032177925, -0.06832253932952881, 0.05905528739094734, 0.019153572618961334, -0.011565306223928928, -0.02204255573451519, -0.01941620744764805, -0.01642404869198799, -0.0005454946076497436, 0.006382961291819811, 0.026300989091396332, -0.006903540808707476, 0.0006501381285488605, -0.014838860370218754, 0.0066549754701554775, 0.015654904767870903, -0.004141186363995075, -0.009905080311000347, 0.024556344375014305, 0.027895556762814522, 0.0605185367166996, -0.010186473838984966, -0.011415229178965092, 0.03579335659742355, 0.02093573659658432, 0.0017856814665719867, -0.051251284778118134, 0.02755788341164589, -0.05177655443549156, 0.021067054942250252, 0.05237686261534691, -0.01795295812189579, 0.03078453801572323, 0.04404759034514427, -0.06866021454334259, -0.00474852928891778, -0.015185913071036339, -0.02224891074001789, -0.015589245595037937, -0.001819683238863945, 0.027745479717850685, 0.009717484004795551, -0.015420408919453621, -0.02436874806880951, -0.02641354687511921, -0.058079786598682404, -0.011133834719657898, -0.017099395394325256, -0.0003370869380887598, -0.034161269664764404, -0.01917233318090439, -0.04363488033413887, 0.0071521056815981865, -0.0025841377209872007, -0.0011027139844372869, 0.0327167809009552, -0.01903163641691208, 0.026845017448067665, -0.036693818867206573, 0.010496008209884167, -0.03553072363138199, 0.005735754035413265, -0.026113392785191536, -0.057179324328899384, 0.04382247477769852, -0.021254651248455048, -0.0025231691543012857, -0.03284809738397598, -0.015814360231161118, 0.02440626733005047, -0.015364130027592182, -0.07395042479038239, -0.03761304169893265, 0.002652141498401761, 0.026638662442564964, -0.013338090851902962, -0.04836230352520943, -0.034817855805158615, -0.003545568324625492, 0.048962611705064774, -0.041646357625722885, 0.016630403697490692, -0.020616823807358742, 0.015251572243869305, 0.002518479246646166, -0.02682625874876976, -0.009562716819345951, 0.010824301280081272, 0.049900591373443604, -0.06108132749795914, -0.017530865967273712, -0.04509812965989113, 0.010073916986584663, -0.022398987784981728, 0.023768439888954163, -0.013713283464312553, 0.01445428840816021, 0.02526921033859253, 0.04112108796834946, -0.04689905419945717, -0.03470529988408089, 0.009403260424733162, 0.032078951597213745, 0.017840400338172913, -0.020598063245415688, 0.034498944878578186, -0.05335236340761185, 0.01975388079881668, -0.03483661636710167, -0.022867977619171143, -0.040708377957344055, -0.020804420113563538, -0.07181183248758316, 0.03605599328875542, -0.0019193437183275819, 0.0007796967402100563, -0.04145876318216324, 0.01412599440664053, 0.022661622613668442, 0.013732043094933033, 0.0034705298021435738, 0.00857783667743206, -0.046148668974637985, 0.06652161478996277, -0.0035619831178337336, 0.013882119208574295, 0.024237429723143578, 0.0017082979902625084, 0.023562084883451462, -0.022867977619171143, 0.0025231691543012857, 0.05781715363264084, -0.04408511146903038, 0.007761793211102486, 0.024837737902998924, -0.0029991944320499897, 0.008076016791164875, -0.03838218376040459, -0.029677720740437508, 0.03840094432234764, 0.0715867131948471, 0.0017329200636595488, -0.016658542677760124, -0.06059357523918152, -0.00039541764999739826, 0.061681635677814484, 0.012259412556886673, 0.03397367522120476, 0.03521180897951126, -0.006776913069188595, 0.033054452389478683, 0.036168549209833145, -0.0347428172826767, 0.030728260055184364, 0.04596107080578804, 0.01711815409362316, 0.023111853748559952, -0.02024163119494915, 0.051588959991931915, -0.06430798023939133, 0.02367464266717434, -0.003592467401176691, -0.09537391364574432, -0.004567967727780342, 0.014247932471334934, 0.035718318074941635, -0.012568945996463299, 0.034611500799655914, 0.022417746484279633, -0.061644114553928375, -0.004049733281135559, -0.04502309113740921, -0.0024434407241642475, 0.0020190041977912188, -0.02862718142569065, 0.032322827726602554, -0.015917537733912468, -0.04596107080578804, 0.0711364820599556, -0.022924257442355156, 0.04641130194067955, 0.031065933406352997, -0.058042269200086594, 0.01632087118923664, -0.009318841621279716, 0.012615845538675785, -0.026094632223248482, 0.007316252216696739, 0.009698724374175072, -0.006917610298842192, -0.003784753615036607, -0.03609351068735123, -0.0009467746131122112, -0.03483661636710167, -0.026357267051935196, -0.006049977615475655, -0.05549095943570137, -0.0004426098021212965, -0.04997562989592552, -0.04584851488471031, -0.014463667757809162, 0.0009074966656044126, -0.021573564037680626, -0.001078678178600967, 0.028720980510115623, -0.004708664957433939, -0.010111436247825623, 0.010120815597474575, 0.0151296341791749, 0.022417746484279633, 0.03705025091767311, 0.008240163326263428, -0.04243426397442818, -0.01688365824520588, 0.02436874806880951, -0.01858140528202057, 0.021123332902789116, 0.012015537358820438, -0.012296931818127632, -0.03954528272151947, 0.044422782957553864, -0.012287551537156105, 0.010861820541322231, 0.04686153307557106, -0.095674067735672, 0.014257311820983887, 0.02260534279048443, 0.03868233785033226, -0.0031821008305996656, -0.02478145994246006, 0.02543804608285427, 0.006678425241261721, -0.056278862059116364, 0.05474057421088219, -0.014763821847736835, 0.001582843018695712, 0.03532436490058899, -0.018309390172362328, -0.014154134318232536, 0.018037375062704086, -0.026807498186826706, 0.016958696767687798, 0.014670023694634438, -0.01986643858253956, -0.021967517212033272, 0.044910531491041183, 0.03303569182753563, 0.03545568510890007, 0.00045550704817287624, 0.0388324148952961, 0.0650208443403244, 0.006115636322647333, -0.06937307864427567, 0.06269465386867523, 0.038213349878787994, -0.012737782672047615, 0.03643118590116501, -0.051588959991931915, -0.03607475012540817, -0.08239225298166275, -0.033954914659261703, -0.027220210060477257, -0.0329231359064579, 0.0572543628513813, -0.013150494545698166, 0.011218253523111343, -0.0029593303333967924, -0.03793195262551308, -0.03716281056404114, 0.009225043468177319, 0.026282228529453278, 0.021273409947752953, 0.04247178137302399, -0.024462545290589333, -0.0025231691543012857, 0.006579936947673559, -0.007625786121934652, 0.002570067998021841, -0.057554516941308975, 0.007325632032006979, 0.0637827143073082, 0.01197801809757948, 0.01678048074245453, -0.04719920828938484, 0.025250449776649475, -0.009056206792593002, -0.0025513083674013615, 0.006106256507337093, -0.040708377957344055, -0.013732043094933033, 0.006823812145739794, 0.015683043748140335, -0.023918516933918, -0.07582639157772064, -0.02395603619515896, -0.03793195262551308, 0.013600725680589676, 0.06483325362205505, -0.015214052982628345, -0.04494805261492729, -0.012709643691778183, -0.027201451361179352, 0.02097325585782528, -0.005637266207486391, 0.009558026678860188, -0.0026028973516076803, -0.000934463634621352, -0.000046459375880658627, 0.02588827721774578, -0.009004618041217327, 0.03153492137789726, 0.03905753046274185, -0.027539124712347984, 0.011630965396761894, 0.05320228636264801, 0.027407806366682053, 0.04641130194067955, -0.015214052982628345, -0.02658238261938095, 0.08314263820648193, -0.010617945343255997, 0.007255283650010824, 0.03260422125458717, 0.07616405934095383, -0.001049952581524849, 0.12088699638843536, -0.030578183010220528, 0.02682625874876976, -0.009492368437349796, 0.006800362840294838, -0.034367624670267105, 0.05155143886804581, 0.085844025015831, 0.008812331594526768, 0.08411814272403717, -0.04183395579457283, -0.019125433638691902 ]
20,524
pyobjectify.pyobjectify
Connectivity
An enumeration of the supported file connectivity types: - `ONLINE_STATIC` = The URL points to a static file on the Internet. - `LOCAL` = The URL is a path to a local file. For example, at the moment, a data stream from the Internet is not supported. The end-user does not have to interface with this, but it is provided for more granular operations.
class Connectivity(Enum): """ An enumeration of the supported file connectivity types: - `ONLINE_STATIC` = The URL points to a static file on the Internet. - `LOCAL` = The URL is a path to a local file. For example, at the moment, a data stream from the Internet is not supported. The end-user does not have to interface with this, but it is provided for more granular operations. """ ONLINE_STATIC = auto() LOCAL = auto()
(value, names=None, *, module=None, qualname=None, type=None, start=1)
[ 0.030656374990940094, -0.08984371274709702, -0.0727323368191719, -0.03184516355395317, 0.038077306002378464, -0.03991452604532242, 0.022641047835350037, -0.054576270282268524, -0.04157162830233574, -0.02316339500248432, 0.006115064024925232, 0.02871108241379261, -0.008398081175982952, 0.04268836975097656, 0.005038849078118801, -0.02716205269098282, -0.060196008533239365, 0.005939447320997715, -0.012068020179867744, 0.006790513172745705, 0.0013925505336374044, 0.03800525888800621, 0.0037622505333274603, -0.04899255931377411, 0.02849493734538555, 0.10540605336427689, -0.018516305834054947, -0.014553672634065151, -0.029269453138113022, -0.04049091041088104, -0.036654360592365265, 0.009600380435585976, -0.030494267120957375, -0.022010628134012222, 0.004656094592064619, 0.014697768725454807, 0.017624713480472565, 0.07579437643289566, -0.10346075892448425, -0.045894503593444824, -0.08840275555849075, -0.0033772445749491453, -0.06109660491347313, -0.009798511862754822, 0.0012428259942680597, 0.02804463915526867, -0.06505923718214035, -0.011851876974105835, 0.01727348007261753, -0.08062158524990082, 0.015436259098351002, 0.04394920915365219, -0.024388208985328674, 0.0002898801467381418, -0.02062370628118515, 0.03069239854812622, -0.0050928848795592785, 0.05137014016509056, -0.06408659368753433, 0.0389418825507164, -0.034889187663793564, -0.027432231232523918, 0.03281781077384949, -0.01003266777843237, 0.006650920491665602, -0.003928861115127802, -0.04085114970803261, 0.006452788598835468, 0.0015512809623032808, 0.06999451667070389, 0.04218403622508049, -0.008060356602072716, -0.01612071320414543, -0.02019141986966133, 0.03634815663099289, -0.0458584763109684, -0.0060610282234847546, 0.062069252133369446, -0.010888236574828625, 0.005696285981684923, 0.02101997099816799, -0.03514135628938675, 0.05259495601058006, -0.04384113848209381, 0.03474509343504906, -0.04128343611955643, -0.005106393713504076, -0.07046283036470413, -0.00044326335773803294, 0.05014532804489136, -0.035663701593875885, -0.0009591374546289444, -0.055620964616537094, -0.02332550287246704, -0.009303183294832706, 0.011986966244876385, -0.008524165488779545, -0.027684399858117104, -0.017534654587507248, -0.0651312842965126, -0.05558494105935097, 0.006353722885251045, -0.06199720501899719, -0.04711931571364403, -0.026819825172424316, -0.10252413898706436, 0.015958605334162712, 0.030458243563771248, -0.04203994199633598, -0.019939251244068146, -0.007236309349536896, -0.04185982048511505, -0.007821698673069477, 0.028999272733926773, 0.040671031922101974, 0.055801086127758026, -0.01195994857698679, -0.030260110273957253, 0.01880449801683426, 0.005097387824207544, -0.05641349405050278, 0.06556357443332672, -0.029683727771043777, 0.025865189731121063, 0.057386137545108795, 0.05608927831053734, 0.03667237237095833, -0.03568171337246895, 0.0018057001288980246, 0.06477104872465134, 0.0005904549034312367, 0.0008713291026651859, -0.011446607299149036, 0.044849809259176254, 0.015580355189740658, 0.03179112821817398, -0.046110644936561584, 0.05054159089922905, -0.003235400188714266, 0.05093785375356674, -0.03955428674817085, 0.025540973991155624, 0.0045705377124249935, -0.00041793400305323303, 0.029845835641026497, 0.05097387731075287, -0.013445936143398285, -0.053207363933324814, -0.04747955501079559, 0.041823796927928925, 0.06869765371084213, -0.023469598963856697, -0.08321530371904373, 0.031160710379481316, 0.004624573513865471, -0.019723108038306236, -0.044129326939582825, -0.013301840983331203, -0.01495894230902195, -0.012338199652731419, -0.05306326597929001, 0.018084019422531128, 0.0006276046042330563, -0.001431951648555696, 0.00715075246989727, 0.008483638055622578, -0.014040331356227398, -0.034294791519641876, 0.027017956599593163, -0.028855176642537117, -0.022785143926739693, 0.0003017005219589919, 0.028116686269640923, 0.005268501583486795, 0.09272562712430954, 0.038581643253564835, 0.01830916851758957, 0.012500307522714138, 0.04888448864221573, -0.035339485853910446, 0.01052799727767706, 0.0015659157652407885, -0.06286177784204483, 0.005777339451014996, 0.05209061875939369, 0.04546221345663071, 0.022947251796722412, -0.018678413704037666, 0.053819768130779266, 0.012599373236298561, 0.0097354706376791, 0.0007885866216383874, 0.012167086824774742, -0.028476925566792488, 0.00742543488740921, -0.08199049532413483, 0.015030989423394203, -0.02177647314965725, 0.010482966899871826, 0.032421547919511795, -0.014940929599106312, 0.05201857164502144, 0.010023661889135838, 0.03479912877082825, -0.0013058679178357124, 0.013067685067653656, 0.03789718821644783, -0.06408659368753433, -0.038797784596681595, 0.0442374013364315, -0.08062158524990082, 0.007947782054543495, -0.00882586557418108, 0.03155697137117386, 0.024226101115345955, -0.050793759524822235, -0.041391510516405106, 0.0791085734963417, -0.026261454448103905, 0.03481714054942131, 0.06095251068472862, -0.00033828732557594776, 0.026333501562476158, -0.0359518937766552, 0.057386137545108795, -0.01968708448112011, -0.004885747097432613, -0.0316830575466156, -0.05961962416768074, 0.0032759271562099457, -0.018570341169834137, -0.03245757147669792, -0.0079207643866539, 0.053711697459220886, 0.04009464755654335, 0.047659676522016525, 0.020443586632609367, 0.04553426429629326, -0.051009900867938995, -0.01078016497194767, 0.0005299459444358945, 0.005214465782046318, 0.007245315238833427, 0.034078650176525116, -0.013517984189093113, -0.059691671282052994, 0.01107736211270094, 0.009231135249137878, -0.01204100251197815, -0.027684399858117104, 0.004352142568677664, -0.04387716203927994, -0.062177322804927826, -0.06664429605007172, -0.006006992422044277, -0.028855176642537117, -0.0987776517868042, -0.0334482304751873, 0.025847177952528, -0.04153560474514961, -0.025378866121172905, -0.006074537057429552, 0.02970173954963684, 0.0389418825507164, -0.031592998653650284, -0.031755104660987854, 0.012977625243365765, -0.013815181329846382, -0.001306993653997779, -0.0006281674723140895, 0.12399441003799438, 0.036654360592365265, -0.04038283973932266, 0.0045727891847491264, -0.03580779954791069, -0.05284712091088295, 0.01061805710196495, 0.0029832327272742987, 0.03613201528787613, -0.037753090262413025, -0.031034626066684723, -0.003917603753507137, -0.04967701435089111, -0.015814511105418205, -0.0017156401881948113, -0.014778821729123592, -0.035285450518131256, -0.008974464610219002, -0.019488953053951263, 0.004167519975453615, 0.03760899603366852, 0.03652827814221382, 0.04020271822810173, -0.003595639718696475, 0.08177434653043747, 0.04113934189081192, 0.026081334799528122, -0.002888669725507498, 0.07586642354726791, 0.006939111743122339, -0.025757119059562683, -0.001228191307745874, 0.021218102425336838, -0.010095709934830666, -0.037212733179330826, -0.03080047108232975, 0.004455711226910353, -0.06758091598749161, 0.013653074391186237, 0.0255769994109869, -0.011401577852666378, -0.024280136451125145, -0.004732645582407713, 0.02183050848543644, 0.013220787048339844, 0.045894503593444824, -0.026081334799528122, 0.013265816494822502, 0.003573124762624502, 0.059151314198970795, -0.0178768802434206, 0.0964721143245697, -0.0453181192278862, 0.007785674650222063, -0.06480707228183746, -0.05990781635046005, 0.07161559909582138, 0.03479912877082825, 0.0028458915185183287, 0.013689097948372364, -0.035231415182352066, -0.005606226157397032, 0.014490630477666855, 0.00731286033987999, -0.04250825196504593, 0.03514135628938675, 0.025775130838155746, -0.025775130838155746, 0.033736422657966614, -0.0165530014783144, 0.013076690956950188, 0.011671757325530052, -0.020227443426847458, -0.005016333889216185, 0.0025824662297964096, 0.00490826228633523, 0.022226771339774132, 0.030458243563771248, 0.07341679185628891, -0.033033955842256546, -0.02249695174396038, 0.02739620767533779, -0.04459764063358307, 0.015931587666273117, 0.027035968378186226, -0.0006174728623591363, -0.00754701578989625, -0.08696179836988449, 0.05533277615904808, -0.008857387118041515, 0.043913185596466064, 0.0097354706376791, -0.013770151883363724, 0.014085360802710056, 0.002539687789976597, -0.01688622310757637, 0.07161559909582138, 0.010176763869822025, 0.057710353285074234, -0.02199261635541916, -0.02617139369249344, -0.013220787048339844, -0.02426212467253208, -0.03678044304251671, 0.03321407362818718, 0.0020927658770233393, 0.04085114970803261, -0.0006534968269988894, 0.015598366968333721, 0.05104592442512512, -0.006970632821321487, 0.05933143198490143, 0.03832947462797165, 0.052667003124952316, 0.015400235541164875, -0.001123496680520475, 0.03800525888800621, 0.02871108241379261, -0.05544084683060646, 0.05839480832219124, 0.020083347335457802, 0.002418107120320201, -0.04157162830233574, 0.012329193763434887, 0.03553761914372444, -0.026045309379696846, -0.046939197927713394, 0.018732449039816856, 0.036600325256586075, 0.030782457441091537, 0.009501314722001553, 0.02563103474676609, -0.03144890069961548, 0.024928567931056023, -0.03750092163681984, 0.055080607533454895, 0.041931867599487305, 0.00437240581959486, -0.044129326939582825, -0.06707657873630524, 0.004545771051198244, -0.028026627376675606, -0.060520220547914505, 0.0020117119420319796, 0.02134418487548828, 0.03524942696094513, 0.025450915098190308, -0.015643397346138954, 0.026909884065389633, 0.03496123477816582, 0.014238462783396244, -0.05378374457359314, 0.0754341334104538, 0.04960496723651886, 0.0009253650205209851, -0.008109889924526215, 0.09027599543333054, 0.00626816600561142, 0.00234380760230124, 0.007875734008848667, 0.03937416896224022, 0.03915802389383316, 0.005979974288493395, -0.1275247484445572, 0.011932930909097195, -0.03746489807963371, -0.008645745925605297, -0.05482843890786171, 0.00526399863883853, -0.022028639912605286, -0.04499390348792076, -0.025540973991155624, -0.024118028581142426, 0.03706863522529602, 0.0011966703459620476, -0.052054595202207565, -0.0325656421482563, -0.0015231373254209757, 0.03334015980362892, -0.0011887900764122605, -0.09567958861589432, 0.003460549982264638, 0.020533647388219833, 0.008258488960564137, 0.009942607954144478, -0.009492308832705021, -0.018462270498275757, 0.03179112821817398, -0.014184427447617054, -0.05245085805654526, 0.062285397201776505, -0.0036474240478128195, -0.03334015980362892, -0.10129932314157486, 0.0057863458059728146, 0.01605767197906971, 0.03987850248813629, 0.008636740036308765, -0.01069911103695631, -0.0015591612318530679, -0.03334015980362892, 0.014553672634065151, 0.010825194418430328, 0.011689769104123116, 0.014310510829091072, 0.017786821350455284, -0.008407087065279484, 0.009672428481280804, -0.009276164695620537, -0.0742093175649643, -0.007173267193138599, -0.04877641797065735, -0.029323488473892212, 0.03339419513940811, -0.0020060832612216473, -0.046939197927713394, -0.007754153572022915, 0.026585668325424194, 0.014724786393344402, -0.020821837708353996, -0.026693740859627724, 0.04859629645943642, -0.0038950887974351645, -0.046110644936561584, 0.040346816182136536, 0.059475526213645935, -0.021272137761116028, 0.04258029907941818, -0.026423560455441475, 0.025757119059562683, 0.05702589824795723, -0.046939197927713394, -0.06732874363660812, -0.0009839038830250502, 0.03332214802503586, 0.010627062991261482, -0.011257481761276722, -0.04513799771666527, -0.007772165350615978, 0.011806846596300602, 0.01578749343752861, 0.019542988389730453, 0.0894114226102829, 0.007821698673069477, -0.010807182639837265, -0.012437266297638416, 0.01941690407693386, -0.01163573283702135, 0.032979920506477356, -0.010897242464125156, -0.019272807985544205, -0.048200033605098724, 0.04229210689663887, 0.05108194798231125, -0.041211389005184174, -0.0023708257358521223, -0.005363064352422953, -0.028026627376675606, -0.03141287714242935, 0.03876176103949547, 0.05918733775615692, 0.02629747800529003, -0.007893746718764305, 0.000555556733161211, 0.026045309379696846, 0.003615903202444315, -0.011095373891294003, 0.007560524623841047, -0.049965206533670425, 0.022749118506908417, -0.0033187055960297585, -0.018165072426199913, -0.044129326939582825, -0.0305302906781435, 0.020767802372574806, -0.05482843890786171, 0.018057001754641533, -0.018282150849699974, 0.07049885392189026, -0.02172243781387806, 0.038581643253564835, 0.024874532595276833, -0.038473568856716156, -0.08890708535909653, 0.011239469982683659, 0.039230071008205414, 0.05374772101640701, -0.06639212369918823, 0.015931587666273117, -0.031755104660987854, -0.03854561597108841, -0.036095988005399704, -0.11592504382133484, 0.03526743873953819, 0.01375214010477066, -0.019561000168323517, 0.067977175116539, 0.005565699189901352, 0.03177311643958092, -0.046218715608119965, 0.04697522148489952, -0.012599373236298561, 0.058827098459005356, -0.017741791903972626, 0.02953963167965412, 0.032421547919511795, 0.021470269188284874, 0.030512278899550438, 0.02772042341530323, -0.0021265384275466204, -0.04524607211351395, -0.010843206197023392, -0.032979920506477356, -0.018606366589665413, 0.01688622310757637, -0.011914919130504131, 0.0011240595486015081, -0.021182077005505562, -0.03382648155093193, -0.01765173114836216, -0.011860882863402367, -0.012347206473350525, 0.0008161674486473203, -0.02397393248975277, -0.06358225643634796, -0.016021648421883583, 0.005282010417431593, -0.008105386979877949, 0.050073280930519104, 0.033736422657966614, -0.027378195896744728, -0.003985148388892412, -0.053711697459220886, -0.02370375394821167, -0.0033209570683538914, 0.012932594865560532, -0.012248139828443527, -0.01936286874115467, 0.0016210774192586541, 0.006317698862403631, 0.015193097293376923, 0.020857863128185272, -0.05396386608481407, -0.007483974099159241, 0.05796252191066742, 0.01826413907110691, -0.007209291215986013, 0.033033955842256546, -0.038689713925123215, -0.0043611484579741955, -0.03101661428809166, 0.01572445034980774, 0.004491735249757767, 0.0005814489559270442, -0.017444593831896782, 0.06397852301597595, -0.04175174981355667, 0.002319041173905134, -0.016156738623976707, -0.013319852761924267, 0.041211389005184174, 0.02930547669529915, -0.014859875664114952, 0.01968708448112011, -0.021956592798233032, -0.06722067296504974, 0.028729094192385674, 0.008681770414113998, 0.044021256268024445, 0.008614225313067436, -0.030116016045212746, 0.08797046542167664, 0.03227745369076729, -0.018282150849699974, -0.008641242980957031, 0.02199261635541916, -0.02925144135951996, -0.03843754529953003, 0.010735134594142437, -0.04441751912236214, -0.013427924364805222, 0.023109357804059982, 0.05137014016509056, 0.010573026724159718, -0.026495609432458878, 0.03553761914372444, 0.0024834005162119865, 0.01885853335261345, 0.07889243215322495, -0.026819825172424316, -0.05198254808783531, -0.0002359849604545161, 0.07345281541347504, 0.02105599455535412, 0.012752475216984749, 0.02975577674806118, 0.028296805918216705, -0.0849444568157196, -0.017507635056972504, -0.023991946130990982, 0.023685742169618607, 0.07132740318775177, 0.06026805564761162, 0.00321063376031816, 0.019002629444003105, 0.03200727328658104, 0.007128237280994654, 0.019272807985544205, 0.0065113273449242115, 0.015337193384766579, 0.010095709934830666, 0.025991274043917656, -0.013031660579144955, -0.0005186884663999081, 0.011617721058428288, -0.008573697879910469, 0.0034290289040654898, -0.011320523917675018, 0.02469441294670105, -0.02429814822971821, -0.04852424934506416, 0.05198254808783531, -0.015130055136978626, 0.019921239465475082, -0.015454270876944065, -0.012950606644153595, 0.010086704045534134, -0.019831180572509766, -0.0305302906781435, -0.011734799481928349, 0.057710353285074234, -0.018678413704037666, -0.023721765726804733, 0.01278849970549345, 0.02919740416109562, 0.005723303649574518, 0.015652403235435486, -0.03460099548101425, 0.06898584961891174, 0.002022969536483288, 0.016598030924797058, 0.017363540828227997, -0.0800452008843422, -0.0051919505931437016, -0.01003266777843237, 0.01567041501402855, -0.00783971045166254, 0.014967948198318481, -0.024550316855311394, 0.026603681966662407, 0.02188454382121563, -0.03251160681247711, 0.007393914274871349, 0.02260502427816391, -0.010428931564092636, 0.010428931564092636, -0.024388208985328674, 0.036384180188179016, -0.015121049247682095, 0.043408848345279694, 0.006443782709538937, 0.004975806921720505, -0.025649046525359154, 0.09423863142728806, 0.0011809098068624735, -0.0005381076480261981, 0.023991946130990982, -0.005597219802439213, -0.002454131143167615, 0.04218403622508049, -0.006011495366692543, -0.0032781786285340786, -0.03524942696094513, -0.011095373891294003, -0.087105892598629, -0.019542988389730453, 0.035771775990724564, 0.0067950161173939705, 0.0322234146296978, 0.05209061875939369, -0.03377244621515274, -0.04492185637354851, 0.01907467655837536, -0.004741651471704245, 0.008623231202363968, -0.010005650110542774, -0.017138389870524406, -0.03146691247820854, -0.05421603098511696, -0.022136712446808815, -0.022568998858332634, 0.02590121328830719, 0.04459764063358307, -0.002888669725507498, -0.03757297247648239, -0.004032429773360491, -0.03332214802503586, -0.019164737313985825 ]
20,525
pyobjectify.pyobjectify
InputType
An enumeration of the input types supported by pyobjectify. The end-user does not have to interface with this, but it is provided for more granular operations.
class InputType(Enum): """ An enumeration of the input types supported by pyobjectify. The end-user does not have to interface with this, but it is provided for more granular operations. """ JSON = auto() CSV = auto() TSV = auto() XML = auto() XLSX = auto()
(value, names=None, *, module=None, qualname=None, type=None, start=1)
[ 0.04119632765650749, -0.04510980471968651, -0.07917802035808563, -0.05877203121781349, 0.014832775108516216, -0.048534099012613297, 0.002594425342977047, -0.026747914031147957, -0.030032439157366753, -0.051329437643289566, 0.005629990249872208, 0.02910648286342621, -0.04014807567000389, 0.03742261976003647, -0.002382590901106596, -0.013583607040345669, -0.01428244262933731, 0.0361996591091156, 0.04451579600572586, 0.017977533861994743, 0.0041886428371071815, 0.043153066188097, -0.009967135265469551, 0.006254574283957481, 0.02873959392309189, 0.04458567872643471, 0.02942095696926117, -0.0028390176594257355, -0.051958389580249786, -0.06719299405813217, -0.027534103021025658, -0.02110482007265091, 0.025455068796873093, 0.022869378328323364, -0.01378452219069004, -0.04584358260035515, -0.007442594040185213, 0.09224623441696167, -0.035605646669864655, -0.011670546606183052, -0.05782860517501831, -0.012858565896749496, -0.043153066188097, -0.019672207534313202, -0.01953244023025036, 0.02199583500623703, -0.0819733589887619, -0.008377285674214363, -0.0017853053286671638, -0.029351074248552322, 0.02505323849618435, -0.019742092117667198, 0.014754155650734901, -0.0026468378491699696, -0.0537753626704216, -0.007813850417733192, 0.006953409407287836, 0.014107733964920044, -0.04203493148088455, 0.05852743983268738, -0.02231031097471714, 0.043642252683639526, 0.0004938252968713641, -0.05052577704191208, -0.010936769656836987, -0.004369903355836868, -0.014771627262234688, -0.008429698646068573, -0.011565720662474632, 0.056430935859680176, -0.03190182149410248, -0.029490841552615166, 0.0007878273609094322, 0.03263559937477112, 0.09077867865562439, -0.047066543251276016, -0.0044288672506809235, 0.055906809866428375, 0.012413058429956436, -0.0067219203338027, 0.04874374717473984, -0.001796224620193243, -0.0462978258728981, -0.04399167001247406, -0.015391843393445015, -0.008451537229120731, -0.008084648288786411, -0.021821126341819763, 0.02220548503100872, 0.0367237851023674, -0.06104324758052826, -0.011242509819567204, -0.04140597954392433, 0.029543254524469376, -0.03031197190284729, -0.016143091022968292, 0.01631779968738556, -0.038226280361413956, -0.03847087174654007, -0.005708609241992235, -0.015260811895132065, 0.03787686303257942, -0.011041594669222832, 0.0011170442448928952, -0.03763227164745331, -0.057653896510601044, 0.03242594748735428, 0.024808645248413086, 0.03513393551111221, -0.025647249072790146, 0.0014795649331063032, -0.02910648286342621, -0.03522128984332085, 0.0031556773465126753, 0.012771211564540863, -0.0021041487343609333, -0.020598163828253746, 0.024773703888058662, -0.00027953405515290797, -0.006656404118984938, -0.048289503902196884, 0.05314641073346138, -0.036444250494241714, 0.032757896929979324, 0.07729116082191467, 0.010176786221563816, 0.06562061607837677, -0.006730655673891306, -0.021139761433005333, 0.033334434032440186, -0.017243755981326103, 0.01946255750954151, -0.04252411425113678, 0.032810308039188385, 0.014928865246474743, 0.047276195138692856, -0.009879780933260918, -0.012954656034708023, -0.009565305896103382, 0.04909316450357437, 0.03899499773979187, 0.04406155273318291, 0.05084025487303734, -0.05181862413883209, -0.04231446608901024, 0.03277536481618881, 0.03350914269685745, -0.027027446776628494, -0.055068206042051315, 0.026538262143731117, -0.009355654940009117, -0.010412642732262611, -0.02751663140952587, 0.005254366435110569, 0.0023279944434762, -0.0009679957875050604, -0.022240426391363144, -0.08015638589859009, -0.006005614064633846, -0.036234598606824875, 0.005411604419350624, 0.009608983062207699, 0.011198832653462887, 0.020143922418355942, 0.04332777485251427, 0.051329437643289566, 0.0033980857115238905, -0.07177036255598068, 0.016745835542678833, -0.04088185355067253, -0.025350242853164673, -0.03125540167093277, 0.029455900192260742, 0.024179695174098015, 0.07379698753356934, 0.0734475702047348, -0.0010215003276243806, 0.0457736998796463, 0.026136433705687523, 0.005752286408096552, 0.040707144886255264, 0.00939059630036354, -0.06425788998603821, 0.03031197190284729, 0.03766721114516258, 0.019427616149187088, -0.007294091396033764, 0.01299833320081234, 0.035605646669864655, -0.006529740523546934, 0.010613557882606983, -0.007534315809607506, 0.0013594526099041104, -0.016361476853489876, -0.03516887500882149, -0.021122291684150696, -0.029875200241804123, 0.0037802611477673054, -0.01610814966261387, 0.05618634074926376, -0.054963380098342896, 0.05335605889558792, 0.016754571348428726, 0.005765389651060104, -0.01951497048139572, 0.021034937351942062, 0.0442013218998909, -0.08134440332651138, -0.0338410884141922, -0.0506306029856205, -0.016361476853489876, -0.032600656151771545, -0.005415971856564283, 0.009914723224937916, 0.05335605889558792, -0.018903490155935287, 0.01878119260072708, 0.009215887635946274, -0.0495823509991169, 0.02173377200961113, 0.08386021107435226, 0.05971546098589897, 0.02678285539150238, -0.015435520559549332, 0.12124788761138916, -0.03861064091324806, -0.04297835752367973, -0.015068631619215012, -0.03125540167093277, -0.022065717726945877, -0.031866881996393204, -0.020720461383461952, -0.0029547621961683035, 0.04870880767703056, -0.004542428068816662, 0.061078187078237534, 0.01199375744909048, -0.03242594748735428, -0.08924124389886856, 0.015374371781945229, 0.009740014560520649, 0.009661395102739334, -0.035605646669864655, -0.045389339327812195, -0.07019798457622528, 0.006586520932614803, 0.04353742673993111, 0.01623918116092682, -0.023498330265283585, -0.017069047316908836, 0.017724204808473587, -0.02241513505578041, -0.030224617570638657, -0.019707150757312775, 0.01078826654702425, 0.005389765836298466, -0.04842927306890488, -0.0735873356461525, 0.023655567318201065, -0.020231276750564575, -0.022694669663906097, -0.020353572443127632, 0.058492496609687805, 0.08162394165992737, -0.009670130908489227, -0.05702494457364082, 0.01574126072227955, -0.009224623441696167, 0.04968717694282532, -0.014002908021211624, 0.07645256072282791, 0.04856903851032257, -0.029089011251926422, -0.005765389651060104, 0.002941658953204751, -0.0019294400699436665, 0.01702537015080452, 0.030958395451307297, 0.03892511501908302, 0.009853575378656387, -0.005542635917663574, -0.025140592828392982, 0.007420755457133055, 0.009740014560520649, -0.006267677526921034, -0.021192174404859543, -0.033019959926605225, 0.005346088670194149, -0.03854075446724892, -0.007678450550884008, 0.024721290916204453, 0.06614474207162857, 0.04605323448777199, -0.020231276750564575, 0.029770376160740852, 0.027761224657297134, 0.03336937725543976, -0.06942927092313766, 0.06527119874954224, -0.033282022923231125, 0.0031141838990151882, 0.04004324972629547, 0.058702148497104645, -0.03478451818227768, -0.05940098315477371, -0.039589010179042816, 0.020388513803482056, -0.07931778579950333, -0.04109150543808937, 0.03350914269685745, -0.02293926291167736, 0.08749415725469589, -0.046018291264772415, 0.043642252683639526, -0.03109816275537014, 0.04846421256661415, 0.010954240337014198, 0.009914723224937916, -0.006376870442181826, 0.03742261976003647, -0.04137103632092476, 0.011015388183295727, 0.003007174702361226, -0.05583692342042923, -0.06327951699495316, -0.06603991985321045, 0.005468384828418493, 0.037282854318618774, 0.0005140259745530784, -0.04451579600572586, -0.06331446021795273, -0.019794505089521408, 0.03721296787261963, 0.04357236996293068, -0.028337763622403145, -0.016745835542678833, 0.04566887393593788, -0.019357731565833092, -0.011871461756527424, 0.02735939435660839, 0.0442013218998909, -0.023900160565972328, -0.009477950632572174, 0.019707150757312775, -0.05363559350371361, -0.02505323849618435, 0.049652233719825745, -0.012579032219946384, 0.12711811065673828, 0.0030049909837543964, 0.0012480758596211672, 0.01820465363562107, 0.01989932917058468, -0.014815304428339005, 0.023760393261909485, -0.07121129333972931, 0.002603160683065653, -0.0723993182182312, -0.003928763791918755, -0.022083189338445663, 0.05408983677625656, -0.05678035318851471, -0.0008260449394583702, 0.037387676537036896, -0.03190182149410248, -0.015697583556175232, 0.046123117208480835, -0.014928865246474743, 0.08833275735378265, 0.038855232298374176, -0.007612934801727533, 0.033282022923231125, -0.04874374717473984, -0.061217956244945526, -0.004717136733233929, 0.04968717694282532, 0.01841430552303791, 0.039239589124917984, -0.05814307928085327, 0.044865213334560394, -0.010246669873595238, 0.01580240949988365, -0.013863141648471355, 0.04182527959346771, -0.047066543251276016, -0.017034105956554413, 0.02568219043314457, 0.041965048760175705, -0.04203493148088455, 0.05646587535738945, 0.012509148567914963, 0.022747082635760307, 0.006595256272703409, -0.02777869440615177, 0.03350914269685745, -0.03605988994240761, -0.0735873356461525, 0.0004078357887919992, -0.013627284206449986, 0.03913476690649986, 0.03143011033535004, 0.037702154368162155, 0.04329283535480499, 0.018693838268518448, -0.05199333280324936, 0.014693007804453373, 0.02772628329694271, -0.007665347307920456, -0.01484151091426611, 0.0020298976451158524, 0.06460730731487274, -0.02393510192632675, -0.027534103021025658, -0.06016970053315163, -0.00970507226884365, -0.010421378538012505, 0.02589184045791626, -0.021297000348567963, -0.028809476643800735, 0.01236938126385212, 0.02515806443989277, 0.022799495607614517, 0.03913476690649986, 0.08029615134000778, -0.021227115765213966, 0.00847337581217289, 0.05084025487303734, 0.055068206042051315, 0.02398751489818096, 0.036863550543785095, -0.006826745346188545, -0.0066913459450006485, -0.0313427560031414, -0.13333773612976074, -0.0011771003482863307, -0.01678951270878315, -0.00918094627559185, -0.06219632551074028, -0.009434273466467857, 0.007892468944191933, -0.009084856137633324, 0.0015603677602484822, 0.020860228687524796, 0.040497492998838425, 0.04427120462059975, -0.04011313617229462, -0.021663887426257133, 0.06537602096796036, 0.015094838105142117, -0.0006027452764101326, 0.025297829881310463, 0.02500082552433014, 0.039484184235334396, -0.04276870936155319, 0.04269882291555405, -0.04182527959346771, 0.0033325699623674154, 0.016990428790450096, 0.013810728676617146, -0.02403992787003517, 0.02884441800415516, 0.0034788884222507477, 0.057059887796640396, -0.04842927306890488, 0.015199663117527962, 0.011722958646714687, -0.0024022457655519247, 0.009137269109487534, 0.01460565347224474, 0.0042628939263522625, -0.029123952612280846, 0.03242594748735428, 0.030032439157366753, -0.011487102136015892, -0.001061901799403131, 0.024721290916204453, 0.054858554154634476, 0.03452245518565178, -0.03466222062706947, -0.06002993509173393, 0.05737436190247536, -0.06848584115505219, -0.0025005193892866373, 0.027394335716962814, 0.0032888927962630987, 0.008547626435756683, 0.02963060885667801, -0.013609813526272774, -0.0074644326232373714, 0.00783568900078535, -0.014090262353420258, 0.055906809866428375, 0.038715463131666183, -0.05562727525830269, 0.06251080334186554, -0.005184482783079147, 0.04479533061385155, 0.016938015818595886, -0.04573875665664673, -0.0028783271554857492, 0.08441928029060364, -0.01815224252641201, -0.04325789213180542, -0.07484523952007294, 0.022659728303551674, -0.027481690049171448, 0.02910648286342621, -0.04542428255081177, -0.02735939435660839, -0.01554908137768507, -0.0591563917696476, 0.02162894606590271, 0.07743092626333237, -0.008848999626934528, 0.015391843393445015, 0.016169296577572823, 0.05524291470646858, 0.02403992787003517, -0.02604907751083374, 0.011565720662474632, -0.052657224237918854, -0.05597669258713722, 0.006210897117853165, -0.03651413321495056, -0.011460895650088787, 0.05052577704191208, -0.03440015763044357, -0.004468176979571581, 0.005385397933423519, 0.03350914269685745, 0.05003659427165985, 0.00031283788848668337, -0.005367927253246307, 0.04371213540434837, -0.04168551415205002, 0.01255282573401928, -0.021139761433005333, 0.023166384547948837, 0.051224611699581146, 0.052657224237918854, 0.011172626167535782, 0.06478201597929001, -0.039449241012334824, 0.016466302797198296, 0.07400663942098618, 0.0034090050030499697, 0.007446961477398872, -0.009023708291351795, -0.01841430552303791, -0.01210731826722622, -0.026084020733833313, -0.018851077184081078, -0.014561976306140423, -0.003144758054986596, -0.03431280329823494, 0.0017492716433480382, 0.05646587535738945, -0.023131441324949265, 0.025664718821644783, -0.008739806711673737, -0.032810308039188385, 0.0002302607026649639, -0.056221283972263336, 0.026398496702313423, 0.024668879806995392, 0.023533271625638008, -0.011845255270600319, 0.03453992307186127, 0.002987520070746541, -0.004127494990825653, 0.07145588845014572, -0.04759066924452782, 0.05237768962979317, -0.0210524071007967, 0.021384354680776596, 0.019916800782084465, -0.013749580830335617, 0.022485019639134407, -0.025088179856538773, -0.011259980499744415, -0.04074208810925484, 0.027953404933214188, -0.06167219951748848, -0.11453907191753387, 0.030189676210284233, -0.03693343698978424, -0.0060623944737017155, 0.002609712304547429, -0.0020025994163006544, 0.009102326817810535, -0.04951246827840805, 0.03392844274640083, -0.009014972485601902, 0.004177723545581102, -0.03752744570374489, 0.01378452219069004, 0.004708401393145323, -0.024983355775475502, -0.008224415592849255, -0.07414640486240387, -0.038121454417705536, 0.04797502979636192, -0.0447254478931427, -0.005337352864444256, 0.06331446021795273, -0.012806152924895287, -0.01741846464574337, -0.040183018893003464, 0.03457486629486084, 0.01181031297892332, 0.03798168897628784, -0.024179695174098015, -0.03798168897628784, -0.0101331090554595, 0.010989181697368622, -0.01044758502393961, -0.0013190512545406818, -0.032653070986270905, 0.019235435873270035, -0.014596918597817421, -0.004155884962528944, 0.017217550426721573, 0.017200078815221786, -0.01181031297892332, -0.03605988994240761, 0.009416802786290646, -0.055487506091594696, -0.03509899228811264, 0.03130781278014183, -0.06974374502897263, 0.021349411457777023, -0.0033434892538934946, 0.025193005800247192, -0.04409649595618248, 0.00988851673901081, 0.0031229194719344378, -0.023218795657157898, -0.018763722851872444, -0.0014828407438471913, 0.007652244530618191, -0.030608978122472763, 0.03787686303257942, 0.017479613423347473, 0.013749580830335617, 0.0031513094436377287, 0.023865219205617905, -0.040811970829963684, -0.03700331971049309, 0.03962394967675209, -0.027499161660671234, -0.004573001991957426, 0.051434263586997986, -0.008634980767965317, 0.002725456841289997, -0.024284519255161285, 0.012517883442342281, -0.0213144700974226, 0.000508839322719723, 0.0842096284031868, -0.023183854296803474, -0.03319466859102249, 0.007280988153070211, 0.045703817158937454, 0.00487874262034893, -0.007538683712482452, -0.011015388183295727, -0.0346272811293602, -0.03902994096279144, 0.044376030564308167, -0.004485647659748793, 0.007861894555389881, 0.03251330181956291, 0.07917802035808563, -0.0056649320758879185, -0.01893843151628971, -0.013251660391688347, 0.04255905747413635, 0.05118967220187187, 0.04409649595618248, -0.004230136051774025, -0.00788373313844204, -0.02421463653445244, -0.025297829881310463, 0.028075700625777245, 0.019235435873270035, -0.057758722454309464, 0.03605988994240761, -0.019707150757312775, 0.015007483772933483, -0.041021618992090225, -0.002023346023634076, 0.0009133993298746645, -0.022485019639134407, -0.04678700864315033, -0.012509148567914963, -0.031080691143870354, 0.004952993709594011, 0.0039833602495491505, -0.016623539850115776, 0.01608194224536419, 0.06562061607837677, -0.003476704703643918, -0.0034439468290656805, 0.030486680567264557, 0.0011399748036637902, 0.05073542892932892, -0.025297829881310463, 0.004321858286857605, 0.08141428977251053, -0.043502483516931534, -0.0075124772265553474, 0.06907984614372253, -0.051958389580249786, -0.05524291470646858, 0.031220458447933197, 0.014509564265608788, -0.013627284206449986, 0.10265887528657913, -0.005953201558440924, -0.01204617042094469, 0.012701327912509441, -0.037597328424453735, 0.003098896937444806, -0.0071062794886529446, -0.01657986268401146, 0.0014511747285723686, -0.10594340413808823, 0.013845670036971569, 0.014029114507138729, 0.02278202399611473, 0.017724204808473587, -0.021034937351942062, -0.07812976092100143, 0.015915969386696815, 0.010194256901741028, -0.011845255270600319, -0.0020834021270275116, -0.017112724483013153, 0.014326119795441628, -0.020650576800107956, -0.028914302587509155, 0.04895339906215668, -0.027638928964734077, 0.011845255270600319, -0.015068631619215012, 0.028180524706840515, 0.06698334217071533, -0.01815224252641201, -0.002513622399419546, 0.05625622719526291, -0.0032255607657134533, -0.012229613959789276, -0.008311769925057888, -0.04573875665664673, 0.05304158478975296, 0.00048181405873037875, -0.0008227691287174821, -0.005415971856564283, -0.05926121771335602, 0.009740014560520649, -0.06202161684632301, 0.0011312393471598625, 0.017907649278640747, -0.03955406695604324, 0.0005246722721494734, -0.015653906390070915, -0.02257237397134304, -0.05056072026491165 ]
20,526
pyobjectify.pyobjectify
Resource
The Resource class stores some metadata about the resource to simplify the code. The end-user does not have to interface with this, but it is provided for more granular operations.
class Resource: """ The Resource class stores some metadata about the resource to simplify the code. The end-user does not have to interface with this, but it is provided for more granular operations. """ def __init__(self, url, connectivity): url = url.replace("file://", "") self.url = url self.connectivity = connectivity if connectivity == Connectivity.ONLINE_STATIC: response = get(url) self.response = response self.plaintext = response.text elif connectivity == Connectivity.LOCAL: url = url.replace("file://", "") file_obj = open(url, "r") self.response = file_obj try: self.plaintext = file_obj.read() self.response.seek(0, 0) except Exception: # XLSX data does not like to be read self.plaintext = None def __eq__(self, other): # For Internet resources, # Resource.response may have stochastic attributes like time elapsed. # URL, connectivity type, plaintext should be enough to determine different Resources. return self.url == other.url and self.connectivity == other.connectivity and self.plaintext == other.plaintext
(url, connectivity)
[ 0.0521245151758194, -0.05349312722682953, -0.07081583142280579, -0.009761126711964607, 0.017879921942949295, -0.06690551340579987, -0.0052007208578288555, 0.02891678921878338, 0.005992559716105461, -0.049269985407590866, 0.027235353365540504, 0.02842799946665764, 0.033198583871126175, 0.027235353365540504, -0.06017976626753807, -0.008803099393844604, -0.04621993750333786, 0.02033364400267601, -0.03110656514763832, -0.049778327345848083, 0.0005676068249158561, 0.050638597458601, 0.026922527700662613, 0.05239823833107948, 0.035642534494400024, 0.0900936871767044, 0.017312925308942795, -0.014790771529078484, 0.00920390710234642, -0.002881414256989956, -0.006090317387133837, 0.014057586900889874, 0.0017914136406034231, 0.025201989337801933, -0.007014129776507616, 0.02432216703891754, 0.028369344770908356, 0.047236621379852295, -0.08000507205724716, -0.005836146883666515, -0.06741385161876678, -0.020353196188807487, -0.010851128026843071, -0.03355051204562187, -0.0041620428673923016, 0.030246296897530556, -0.06170479208230972, 0.024928266182541847, 0.00667686527594924, -0.07934031635522842, 0.010802248492836952, 0.02645329013466835, -0.020959295332431793, 0.03699159249663353, -0.013901174068450928, 0.0241853054612875, -0.00435755867511034, 0.14139704406261444, -0.03812558203935623, -0.0039982981979846954, -0.02146763727068901, -0.018153643235564232, 0.011183504946529865, -0.019649339839816093, -0.018544675782322884, -0.005567312706261873, -0.06463752686977386, -0.02711804397404194, -0.0021946649067103863, 0.07097224146127701, 0.03411750867962837, 0.024380821734666824, -0.020235886797308922, -0.007180318236351013, 0.030148537829518318, -0.015611938200891018, -0.0166090689599514, 0.004900115076452494, -0.006476461421698332, -0.04586800932884216, 0.030402708798646927, -0.01976664923131466, 0.024850059300661087, -0.07390497624874115, 0.0015457968693226576, -0.05869384855031967, 0.0708940327167511, -0.043482717126607895, 0.009418974630534649, 0.05521366745233536, -0.042896170169115067, 0.050990525633096695, -0.028623515740036964, -0.0427788607776165, 0.06502856314182281, -0.00850982591509819, -0.03038315661251545, -0.028623515740036964, -0.01323642022907734, -0.049269985407590866, -0.04403015971183777, 0.02719624899327755, -0.04751034453511238, 0.03038315661251545, -0.006153860129415989, -0.04246603325009346, 0.012992026284337044, 0.01662861928343773, -0.02205418422818184, -0.009790454059839249, -0.029855264350771904, -0.003959195222705603, -0.05048218369483948, 0.042817965149879456, 0.04848792031407356, -0.028447551652789116, -0.057286132127046585, -0.021702256053686142, -0.03863392397761345, -0.06049259379506111, 0.00798193272203207, 0.02385292947292328, -0.015748798847198486, 0.042348723858594894, 0.03497777879238129, 0.018182970583438873, 0.03022674471139908, -0.03986567631363869, 0.004347783047705889, -0.000728296407032758, -0.014096690341830254, -0.005396236665546894, -0.005606416147202253, 0.08133457601070404, 0.021096156910061836, -0.025905845686793327, -0.050677698105573654, 0.09017189592123032, -0.01752799190580845, 0.00097513513173908, 0.06123555451631546, 0.03922047093510628, -0.018319832161068916, 0.026257773861289024, -0.011897137388586998, -0.03206459432840347, -0.01470278948545456, -0.059241291135549545, -0.0241853054612875, 0.010870679281651974, 0.010157046839594841, -0.06549780070781708, -0.02408754825592041, -0.0032528943847864866, -0.014585480093955994, -0.010626284405589104, -0.0649503543972969, -0.047236621379852295, -0.004900115076452494, -0.039083611220121384, -0.03349185734987259, -0.019170325249433517, -0.01563148945569992, -0.022562524303793907, -0.02352055162191391, 0.0013185098068788648, -0.036307286471128464, -0.09071933478116989, 0.019522253423929214, 0.013021353632211685, -0.025495262816548347, -0.019522253423929214, -0.033687375485897064, 0.025182437151670456, 0.007805969100445509, 0.037265315651893616, 0.04477312043309212, -0.028388896957039833, 0.02508467808365822, -0.01689256727695465, 0.015572834759950638, -0.05282837152481079, -0.06240864843130112, 0.041527558118104935, 0.02318817563354969, 0.016491759568452835, 0.029659749940037727, -0.009062157943844795, 0.056543175131082535, 0.05052128806710243, -0.03290531039237976, -0.015084045007824898, -0.01653086207807064, 0.02434171922504902, 0.010362338274717331, -0.08751288056373596, -0.0015323552070185542, -0.00016924337251111865, 0.033530961722135544, 0.08086533844470978, -0.07891017943620682, 0.061782997101545334, 0.04066728800535202, 0.024928266182541847, -0.01383274421095848, 0.0038272221572697163, -0.00379545078612864, 0.009888212196528912, -0.08868597447872162, 0.051733482629060745, -0.03720666095614433, 0.002935181139037013, -0.00345818605273962, 0.022484319284558296, 0.05314119905233383, 0.0238333772867918, 0.012962698936462402, 0.014829874970018864, -0.016638396307826042, -0.007336731068789959, 0.019189877435564995, 0.0032089033629745245, -0.03519284725189209, -0.004902558866888285, 0.0005324751255102456, -0.016472207382321358, 0.01281606126576662, 0.021448085084557533, -0.0262773260474205, -0.021252568811178207, 0.016433104872703552, 0.007698435336351395, 0.06655358523130417, -0.000152517604874447, 0.01830027997493744, 0.007131439168006182, 0.008939960971474648, 0.0863397866487503, -0.02572988159954548, -0.0019172769971191883, -0.004008074291050434, 0.0035950469318777323, 0.0018830617191269994, -0.03480181470513344, -0.029425129294395447, -0.07941852509975433, 0.0032528943847864866, 0.04309168457984924, -0.05583931505680084, -0.08790390938520432, 0.04477312043309212, -0.0206464696675539, -0.03022674471139908, -0.09056292474269867, 0.014145568944513798, -0.06322981417179108, -0.08798211812973022, -0.05877205356955528, 0.040706392377614975, -0.023716067895293236, -0.0019307186594232917, -0.007199869956821203, 0.0450468435883522, 0.05904577672481537, -0.043717335909605026, -0.0335700660943985, -0.028858134523034096, 0.03149759769439697, -0.006256505846977234, 0.008377852849662304, 0.11504150182008743, 0.012835613451898098, -0.011994895525276661, 0.0315171480178833, -0.01261076983064413, -0.02612091228365898, 0.028193380683660507, -0.024126650765538216, 0.007385609671473503, -0.045437876135110855, -0.014722340740263462, 0.01709785871207714, 0.01946359872817993, -0.04418657347559929, 0.0577944740653038, -0.08579234033823013, -0.028955891728401184, 0.007092336192727089, -0.021428532898426056, -0.005195832811295986, 0.0016643283888697624, 0.02318817563354969, -0.006232066545635462, -0.04133204370737076, 0.04344361275434494, 0.06256505846977234, -0.05505725368857384, -0.04590711370110512, 0.05763806030154228, -0.016697051003575325, -0.034332577139139175, -0.017420459538698196, 0.06639716774225235, -0.0324360728263855, -0.06514587253332138, -0.05130334943532944, 0.027724143117666245, -0.009199019521474838, 0.009032830595970154, 0.02686387300491333, 0.08501027524471283, 0.0008138346020132303, 0.013871846720576286, 0.009531395509839058, 0.0037025806959718466, 0.04876164346933365, 0.005611303728073835, 0.04864433407783508, -0.014859202317893505, 0.05853743478655815, -0.03419571742415428, 0.04754944518208504, -0.027978312224149704, 0.016560189425945282, 0.033276792615652084, -0.0570124126970768, 0.008612471632659435, 0.005826371256262064, -0.017058754339814186, 0.01624736376106739, -0.026433737948536873, 0.0412929393351078, 0.0036121546290814877, 0.008387628011405468, -0.01282583735883236, 0.01902368851006031, -0.0026492392644286156, -0.03184952586889267, 0.0543924979865551, -0.012004670687019825, 0.045359667390584946, -0.025123782455921173, -0.007336731068789959, -0.0332181379199028, 0.007805969100445509, -0.03763679414987564, -0.017694180831313133, -0.012943146750330925, 0.0048072449862957, -0.04704110324382782, -0.051733482629060745, 0.01891615428030491, -0.002710337983444333, 0.04148845747113228, 0.016853462904691696, -0.017215168103575706, -0.0347040556371212, -0.05576111003756523, 0.0275872815400362, 0.005479330662637949, 0.049934737384319305, 0.011486554518342018, -0.04676738381385803, -0.008094354532659054, -0.06670999526977539, -0.022015079855918884, 0.04297437518835068, 0.01768440566956997, -0.019600460305809975, -0.05407967418432236, -0.07163699716329575, -0.02375517226755619, -0.028701720759272575, -0.08579234033823013, 0.032123249024152756, -0.027059389278292656, 0.026335980743169785, -0.0007838961901143193, -0.02434171922504902, 0.0033995311241596937, 0.06858694553375244, 0.04770585894584656, 0.002463499316945672, 0.017664853483438492, -0.024615440517663956, -0.04285706579685211, -0.007356282323598862, 0.006300497334450483, 0.010851128026843071, 0.0847756564617157, 0.019747097045183182, -0.010792473331093788, -0.0005752441938966513, 0.01424332708120346, -0.005259375553578138, -0.02557346783578396, -0.0035095089115202427, 0.034664954990148544, -0.022327905520796776, 0.002463499316945672, 0.011173728853464127, 0.0307741891592741, -0.03464540094137192, 0.029503336176276207, -0.030598225072026253, 0.04121473431587219, 0.11011450737714767, 0.013744762167334557, -0.020705124363303185, 0.006046326365321875, -0.03272934630513191, -0.04109742492437363, -0.01822207309305668, -0.04559428617358208, -0.011564760468900204, 0.016569964587688446, 0.041605766862630844, 0.01948315091431141, 0.04375644028186798, 0.05016935616731644, -0.005498882383108139, 0.01812431588768959, 0.0465327650308609, -0.0052495994605124, -0.04101921617984772, -0.047002002596855164, 0.05306299030780792, -0.01139857154339552, -0.003942087758332491, 0.021506739780306816, 0.004413769580423832, -0.00663287378847599, -0.0281542781740427, -0.09822714328765869, 0.03452809154987335, -0.03724576160311699, -0.015416421927511692, -0.018114540725946426, -0.00035742734326049685, -0.0076348925940692425, 0.020274989306926727, -0.024517683312296867, 0.0288972370326519, 0.04508594796061516, -0.06385546177625656, -0.02547571063041687, -0.05118604004383087, 0.010596957057714462, -0.020294541493058205, -0.002325416309759021, -0.021115707233548164, 0.011075970716774464, 0.016266915947198868, -0.001909945160150528, -0.04696289822459221, -0.028760375455021858, 0.038418859243392944, 0.02074422873556614, -0.033530961722135544, 0.014311757870018482, 0.0017327589448541403, 0.01448772195726633, 0.025123782455921173, -0.07261457294225693, -0.05013025552034378, -0.0032308988738805056, 0.010313458740711212, 0.02269938588142395, 0.01074359379708767, -0.008837315253913403, -0.025612572208046913, 0.01799723133444786, -0.004093612544238567, 0.02449813112616539, 0.0062662819400429726, 0.03701114282011986, 0.007180318236351013, 0.04101921617984772, -0.024107100442051888, -0.04833151027560234, 0.009135476313531399, -0.017547544091939926, 0.031087014824151993, -0.04590711370110512, 0.00502475630491972, -0.05951501429080963, 0.04711931198835373, 0.016306018456816673, 0.03992433100938797, -0.020138129591941833, -0.01126171089708805, 0.05716882273554802, -0.04156666249036789, 0.018847724422812462, -0.046337246894836426, 0.03220145404338837, -0.018310055136680603, 0.06936901062726974, 0.0023046426940709352, -0.01254233904182911, 0.024517683312296867, -0.07441332191228867, -0.028545308858156204, -0.0009916317649185658, 0.05740344151854515, 0.04019805043935776, -0.03480181470513344, 0.004303792025893927, 0.03922047093510628, 0.010704491287469864, -0.02082243375480175, 0.0005474442732520401, 0.08594875037670135, 0.03161490708589554, -0.016442880034446716, 0.013050680980086327, -0.04500773921608925, 0.035486120730638504, 0.01264987327158451, -0.01376431342214346, 0.02105705253779888, 0.03681562840938568, 0.06115734577178955, 0.0014394852332770824, -0.05454891175031662, -0.007698435336351395, -0.024693647399544716, -0.049856532365083694, -0.012229514308273792, 0.014135793782770634, 0.013950053602457047, -0.04477312043309212, -0.031732216477394104, -0.04578980430960655, 0.017107633873820305, 0.08313332498073578, -0.03963105380535126, -0.050990525633096695, 0.02310996875166893, -0.005127402022480965, 0.02522153966128826, 0.026414185762405396, -0.009155027568340302, -0.03396109864115715, 0.0010258470429107547, -0.058420125395059586, -0.0039176479913294315, 0.042348723858594894, 0.0046288371086120605, -0.018779294565320015, 0.051420658826828, -0.009707360528409481, 0.00780108105391264, -0.053532231599092484, 0.014683237299323082, 0.03708935156464577, 0.038497064262628555, -0.013871846720576286, 0.026257773861289024, 0.017821267247200012, 0.025690777227282524, -0.02221059612929821, -0.02529974654316902, 0.021174361929297447, 0.013177765533328056, -0.010235252790153027, 0.07992686331272125, -0.008118794299662113, 0.008426731452345848, -0.03495822846889496, 0.051655277609825134, 0.04360002651810646, 0.03427392244338989, 0.020059922710061073, 0.05544828623533249, 0.019932838156819344, -0.0018109652446582913, 0.02326638251543045, 0.04594621807336807, 0.01220018696039915, 0.031869076192379, -0.010724042542278767, -0.016745928674936295, -0.10291952639818192, 0.005792155861854553, -0.0013796084094792604, -0.009330992586910725, 0.04039356857538223, 0.02408754825592041, -0.015035166405141354, -0.02670746110379696, -0.005860586650669575, -0.009594938717782497, -0.0160420723259449, 0.027567729353904724, 0.02434171922504902, 0.031243426725268364, -0.032045040279626846, -0.02244521491229534, 0.02717669866979122, -0.04172307625412941, 0.009800230152904987, -0.05634765699505806, -0.05974963307380676, 0.01265964936465025, 0.01261076983064413, -0.07261457294225693, -0.04891805723309517, -0.04657186567783356, -0.008500049822032452, 0.040628187358379364, -0.019209429621696472, -0.004164486657828093, -0.02817382849752903, 0.05114693567156792, -0.004025181755423546, -0.0674920603632927, 0.0326511412858963, -0.04301347956061363, -0.02973795495927334, -0.010430769063532352, 0.021917322650551796, 0.01217085961252451, 0.055565595626831055, -0.07277098298072815, 0.0563085563480854, 0.002971840323880315, -0.009013279341161251, -0.037284865975379944, -0.028877684846520424, 0.028858134523034096, -0.03355051204562187, 0.033022619783878326, 0.041840385645627975, -0.034743160009384155, -0.021858667954802513, 0.07038569450378418, 0.036952488124370575, 0.030246296897530556, 0.0364050455391407, 0.001027069054543972, 0.008089466951787472, -0.006236954592168331, -0.005014980677515268, -0.04270065203309059, 0.030187642201781273, 0.02987481653690338, -0.06412918865680695, 0.04101921617984772, -0.03708935156464577, -0.04219231382012367, 0.053023889660835266, 0.04676738381385803, -0.011007539927959442, 0.003116033272817731, 0.03120432421565056, -0.011506105773150921, -0.014829874970018864, 0.05787268280982971, 0.010812024585902691, -0.010196149349212646, 0.0018781737890094519, 0.045125048607587814, -0.03503643348813057, 0.04770585894584656, 0.035153742879629135, 0.02097884751856327, -0.049426399171352386, -0.007810856681317091, 0.024791404604911804, 0.0045897336676716805, 0.06710102409124374, 0.052789270877838135, -0.004267132841050625, 0.0022019967436790466, 0.0013026241213083267, -0.013011577539145947, -0.044694915413856506, -0.010655611753463745, -0.007698435336351395, 0.017664853483438492, 0.013862071558833122, -0.022562524303793907, 0.0006146528176032007, 0.0006482571479864419, 0.047080207616090775, 0.0006684196996502578, -0.02883858233690262, -0.00667197722941637, -0.05431429296731949, -0.029366474598646164, 0.0253192987293005, 0.008109018206596375, 0.023892031982541084, -0.0307741891592741, -0.0206464696675539, -0.029992125928401947, -0.03071553446352482, 0.009648705832660198, -0.004323343280702829, 0.028858134523034096, -0.009956642985343933, 0.016970772296190262, 0.00761045329272747, -0.03087194636464119, 0.0004759588045999408, -0.061118245124816895, -0.03120432421565056, 0.05697330832481384, -0.01738135516643524, 0.005049196071922779, 0.060961831361055374, 0.020626917481422424, -0.05423608794808388, 0.037597689777612686, 0.03896630182862282, 0.010939110070466995, -0.011760275810956955, -0.006056102458387613, 0.028388896957039833, 0.030422260984778404, -0.020450953394174576, 0.040706392377614975, 0.021858667954802513, -0.031869076192379, 0.030402708798646927, 0.017537768930196762, -0.011633191257715225, 0.008568480610847473, 0.03276845067739487, -0.003665921511128545, 0.0735921561717987, -0.05626945197582245, 0.052046310156583786, 0.01799723133444786, -0.04297437518835068, 0.03182997554540634, -0.02881903015077114, 0.09251808375120163, 0.07511717826128006, 0.0010570073500275612, 0.00571394944563508, 0.006461797747761011, -0.023618310689926147, -0.05904577672481537, -0.025201989337801933, 0.03667876496911049, 0.030578672885894775, 0.028388896957039833, 0.0427788607776165, 0.019131222739815712, -0.03859482333064079, 0.0038296659477055073, 0.048057787120342255, 0.05783357843756676, -0.013901174068450928, -0.020392298698425293, -0.000004281681867723819, 0.021584946662187576, -0.01078269723802805, -0.03053957037627697, 0.02115481160581112, 0.002278981264680624, 0.05372774600982666, -0.0159345380961895, 0.028271587565541267, -0.01779193989932537, 0.04891805723309517 ]
20,527
pyobjectify.pyobjectify
__eq__
null
def __eq__(self, other): # For Internet resources, # Resource.response may have stochastic attributes like time elapsed. # URL, connectivity type, plaintext should be enough to determine different Resources. return self.url == other.url and self.connectivity == other.connectivity and self.plaintext == other.plaintext
(self, other)
[ 0.03474009037017822, -0.03669571876525879, -0.043835610151290894, 0.02747105434536934, -0.018006546422839165, -0.04154789447784424, -0.027231212705373764, 0.016161613166332245, 0.027360357344150543, 0.004640006925910711, 0.015838749706745148, -0.011992065235972404, 0.07276415824890137, 0.06940638273954391, -0.021345876157283783, -0.04796826094388962, -0.031954240053892136, 0.022176096215844154, -0.00649416446685791, -0.057451214641332626, -0.03180664777755737, 0.05069876089692116, 0.03739679232239723, 0.030533643439412117, 0.023467548191547394, 0.09232044965028763, 0.011226417496800423, -0.007121441885828972, -0.01853235252201557, 0.07471978664398193, -0.0271943137049675, -0.007730269804596901, 0.021032236516475677, 0.03466629236936569, 0.03859600052237511, 0.030533643439412117, -0.032360125333070755, 0.03315344825387001, -0.0754946619272232, -0.02555232308804989, -0.0339098684489727, -0.03623448684811592, -0.04228586703538895, -0.013523359782993793, -0.008592776022851467, 0.0036045380402356386, -0.07531017065048218, 0.036271385848522186, 0.024039478972554207, -0.051842618733644485, -0.004953645169734955, 0.024592958390712738, -0.0062912218272686005, 0.06999675929546356, -0.022434385493397713, 0.03374382480978966, 0.011069598607718945, 0.12095381319522858, -0.05748811364173889, 0.01825561374425888, -0.01281306054443121, -0.035717904567718506, -0.00755038857460022, -0.023412201553583145, -0.03474009037017822, -0.03189889341592789, -0.07305935025215149, 0.017858952283859253, 0.013182046823203564, 0.0836123675107956, 0.015829525887966156, 0.007130666170269251, -0.05073565989732742, -0.002739725634455681, -0.026364093646407127, 0.027729343622922897, 0.016447577625513077, 0.06575341522693634, 0.0015820300905033946, -0.05818919092416763, 0.0159955695271492, -0.029574276879429817, 0.008878740482032299, -0.08280059695243835, -0.06748764961957932, -0.024722103029489517, 0.0005044738645665348, -0.030035510659217834, 0.016825789585709572, 0.008168441243469715, -0.022508183494210243, 0.0340205654501915, -0.000999146606773138, -0.06948018074035645, 0.061214879155159, 0.03424195945262909, -0.03575480356812477, -0.03116091899573803, 0.003765969770029187, -0.04409389942884445, -0.009233890101313591, 0.031068673357367516, -0.013560257852077484, 0.028190577402710915, -0.002898851176723838, -0.013929245062172413, -0.02269267663359642, 0.007642635144293308, -0.04243345931172371, -0.024039478972554207, -0.021548818796873093, 0.02486969716846943, -0.03132696449756622, 0.04121580347418785, 0.04092061519622803, -0.026530137285590172, -0.0426548533141613, -0.023117011412978172, -0.012573218904435635, -0.030441395938396454, 0.010774409398436546, 0.08826159685850143, 0.019869929179549217, 0.004953645169734955, 0.031474556773900986, 0.016632072627544403, 0.011374012567102909, -0.027507951483130455, -0.033467087894678116, -0.01024860329926014, 0.014473499730229378, -0.008412894792854786, 0.0018380145775154233, 0.10516118258237839, 0.052174706012010574, -0.03621603548526764, -0.013034452684223652, 0.0706978365778923, 0.019242651760578156, 0.0377473309636116, 0.02658548578619957, 0.05018217861652374, 0.014750240370631218, 0.025127988308668137, -0.040699224919080734, -0.0038835841696709394, -0.0718785896897316, -0.02999861165881157, 0.02077394723892212, 0.0011490473989397287, 0.017453067004680634, -0.04379871115088463, 0.03855910152196884, -0.02099533937871456, -0.046713706105947495, -0.026696180924773216, -0.04099441319704056, -0.024445364251732826, 0.0034892295952886343, -0.021917805075645447, 0.0004661338753066957, -0.020275814458727837, -0.005253446754068136, -0.03328259289264679, -0.011641527526080608, 0.005216548219323158, -0.047562375664711, -0.04128960147500038, 0.02870715968310833, 0.028172127902507782, -0.009658224880695343, -0.011300215497612953, -0.00023047250579111278, -0.001259166863746941, -0.02201005257666111, 0.005281121004372835, 0.0523592010140419, -0.020404959097504616, -0.009150868281722069, -0.01756376214325428, 0.0171671025454998, -0.0638715848326683, -0.048152752220630646, 0.023670490831136703, 0.028079882264137268, -0.00793321244418621, 0.015681931748986244, 0.008772657252848148, 0.022397488355636597, 0.04010884463787079, -0.03143766149878502, -0.010912778787314892, -0.03431575372815132, -0.0011081129778176546, -0.0016638990491628647, -0.056491851806640625, 0.003890502732247114, -0.02638254314661026, 0.08331717550754547, 0.11187674105167389, -0.0571560263633728, -0.009413771331310272, -0.026437891647219658, 0.0028135229367762804, 0.015562010928988457, -0.030588990077376366, -0.01004566065967083, 0.008256075903773308, 0.009556753560900688, 0.017120979726314545, -0.04199067875742912, -0.0037359895650297403, 0.0325261689722538, 0.008325260132551193, 0.05269128829240799, 0.046861302107572556, -0.007462754379957914, -0.0072551993653178215, -0.024353116750717163, 0.006434204056859016, 0.04520086199045181, -0.03505373001098633, 0.008454405702650547, -0.0008186890627257526, -0.031954240053892136, 0.006904662121087313, 0.013809324242174625, 0.04538535326719284, -0.03335639089345932, -0.02671463042497635, 0.03848530352115631, 0.052949581295251846, 0.08759742230176926, 0.0008832617313601077, 0.016641296446323395, 0.015063879080116749, -0.006650983821600676, 0.07593744248151779, -0.10014297068119049, -0.020958440378308296, -0.00867579784244299, 0.0003130620752926916, 0.021917805075645447, -0.01298832893371582, -0.005811539012938738, -0.08995893597602844, -0.03221253305673599, 0.02186245657503605, -0.022674227133393288, -0.05789399892091751, 0.013661729171872139, -0.021364325657486916, -0.03951846808195114, -0.07999629527330399, -0.006415755022317171, -0.059296149760484695, -0.07136201113462448, -0.03999814763665199, 0.056897737085819244, 0.00037965262890793383, 0.014169085770845413, 0.027083618566393852, 0.0017815135652199388, 0.02700982056558132, -0.07202618569135666, 0.001710022334009409, -0.026124252006411552, 0.053281668573617935, -0.004427839536219835, -0.026068905368447304, 0.08922096341848373, -0.042212069034576416, -0.004543147515505552, 0.05645495280623436, -0.03911258280277252, -0.024777451530098915, 0.024629857391119003, -0.037894926965236664, -0.044868770986795425, -0.058262985199689865, 0.0040865265764296055, 0.04339282587170601, 0.0015036204131320119, -0.07361283153295517, 0.014611870050430298, -0.06394538283348083, -0.019168855622410774, -0.010746735148131847, -0.007693370804190636, -0.03538581728935242, 0.0067939660511910915, -0.002993403933942318, 0.003832848509773612, -0.015977120026946068, 0.005765415728092194, 0.06136247515678406, 0.005733129568397999, -0.04250725731253624, 0.04025644063949585, 0.03069968707859516, -0.05398274213075638, -0.013218945823609829, 0.023836536332964897, -0.014860936440527439, -0.014565746299922466, -0.004381716251373291, 0.026567036285996437, 0.05597526952624321, 0.039333973079919815, 0.024925045669078827, 0.03815321624279022, 0.03601309284567833, -0.006531063001602888, 0.04405700042843819, -0.004640006925910711, 0.053761351853609085, 0.012600893154740334, 0.005318019539117813, -0.033651579171419144, 0.07110372185707092, -0.03411281108856201, 0.0466030091047287, -0.03068123757839203, 0.0013594850897789001, 0.033725377172231674, -0.07866794615983963, 0.016041692346334457, 0.023873433470726013, 0.003846685402095318, 0.02754485048353672, -0.016152389347553253, 0.001402149093337357, 0.04914901778101921, 0.021567268297076225, -0.024482261389493942, 0.0038236237596720457, 0.0017930443864315748, -0.00722752558067441, 0.054388627409935, -0.013200496323406696, 0.0242608692497015, -0.04804205894470215, 0.009547528810799122, -0.06745075434446335, 0.03470319136977196, -0.016530601307749748, -0.04571744054555893, -0.0026659283321350813, 0.029629625380039215, -0.05497900769114494, -0.09601031988859177, 0.032507721334695816, 0.05132604017853737, 0.039739858359098434, 0.03361468017101288, 0.047119591385126114, -0.021475020796060562, -0.023209258913993835, 0.016253860667347908, 0.016438353806734085, 0.059849631041288376, 0.01566348224878311, -0.022471284493803978, -0.019464043900370598, -0.04235966503620148, 0.015598908998072147, 0.028135228902101517, -0.007725657429546118, -0.054167237132787704, -0.05848437920212746, -0.07302245497703552, -0.00009995789878303185, -0.009824268519878387, -0.08464553207159042, 0.02822747640311718, -0.05442552641034126, -0.04047783091664314, 0.0013710159109905362, 0.018071118742227554, -0.009100132621824741, 0.0795535147190094, 0.05844748020172119, -0.01647525280714035, 0.03424195945262909, -0.002006364753469825, -0.020349612459540367, -0.024371566250920296, -0.02767399698495865, 0.031456109136343, 0.08619527518749237, -0.01927955076098442, -0.015312944538891315, -0.012388725765049458, 0.02241593785583973, -0.03254462033510208, -0.005461001768708229, -0.023836536332964897, 0.023596694692969322, -0.055938370525836945, -0.04080991819500923, 0.016595173627138138, 0.06545822322368622, -0.017941974103450775, 0.028817854821681976, -0.017822053283452988, 0.035920847207307816, 0.0648309513926506, 0.043023839592933655, -0.0329505056142807, 0.019242651760578156, -0.06973847001791, -0.04973939433693886, -0.029980162158608437, -0.0359392948448658, -0.03381762281060219, -0.006844701711088419, 0.052654389292001724, 0.0011467412114143372, 0.06335499882698059, 0.056823939085006714, -0.006088279187679291, 0.02213919721543789, 0.016318432986736298, -0.025533873587846756, -0.03479543700814247, -0.06745075434446335, 0.046455416828393936, 0.02236058935523033, 0.023688940331339836, -0.01487016025930643, -0.02125362865626812, -0.01393846981227398, 0.03651122748851776, -0.034869235008955, 0.03992435336112976, 0.004985931795090437, -0.00800239760428667, -0.03955536708235741, 0.02461140789091587, -0.013670953921973705, 0.02324615605175495, -0.05638115480542183, -0.019740784540772438, 0.03095797635614872, -0.056344255805015564, -0.06722936034202576, -0.02077394723892212, 0.019261101260781288, 0.009067846462130547, 0.008947925642132759, -0.014842486940324306, 0.02748950384557247, -0.048632435500621796, -0.04520086199045181, -0.04996078833937645, -0.005391817074269056, 0.043097637593746185, 0.01339421421289444, -0.03955536708235741, 0.024851249530911446, -0.03712005540728569, -0.0038766656070947647, -0.011706100776791573, -0.021235179156064987, -0.04593883454799652, 0.04151099547743797, 0.0020732434932142496, 0.022932518273591995, 0.03462939336895943, 0.031216267496347427, -0.030035510659217834, -0.021419672295451164, -0.024482261389493942, 0.020737048238515854, -0.0029472806490957737, 0.019519392400979996, 0.004490105900913477, 0.04885382950305939, -0.035514961928129196, 0.004967482294887304, -0.024648306891322136, -0.007813291624188423, 0.03492458164691925, -0.04929661378264427, 0.028319722041487694, -0.09217285364866257, -0.01062681432813406, 0.01240717526525259, 0.028190577402710915, -0.007167565170675516, -0.006664820946753025, -0.01707485504448414, -0.06346569955348969, 0.027637097984552383, -0.021696412935853004, 0.013163597323000431, 0.006941560655832291, 0.03274756297469139, -0.028596462681889534, 0.006604860536754131, 0.0018956687999889255, -0.024574508890509605, -0.017397718504071236, 0.010958902537822723, 0.0426548533141613, 0.027434155344963074, -0.05092015489935875, -0.040699224919080734, 0.016346106305718422, 0.043355926871299744, 0.005068953614681959, -0.023559795692563057, 0.05394584313035011, 0.015875648707151413, 0.040625426918268204, 0.027028270065784454, -0.033042751252651215, -0.034205060452222824, -0.0020432632882148027, -0.04413079842925072, 0.03521977365016937, 0.04151099547743797, 0.048226550221443176, -0.026622384786605835, -0.07294865697622299, -0.0006180526106618345, -0.05387204512953758, -0.012324153445661068, 0.007481203880161047, -0.03116091899573803, -0.010737510398030281, -0.04199067875742912, -0.046234022825956345, -0.015248372219502926, -0.024961944669485092, 0.07287485897541046, -0.07102992385625839, -0.016825789585709572, 0.023356853052973747, 0.03381762281060219, 0.0036644984502345324, 0.005442552734166384, 0.007412018720060587, -0.013523359782993793, -0.024223972111940384, 0.001213043462485075, -0.014971631579101086, 0.04431529343128204, 0.0300724096596241, 0.019740784540772438, 0.0305520910769701, 0.006415755022317171, 0.03765508532524109, -0.0670817643404007, -0.006614085286855698, 0.042876243591308594, 0.03090262971818447, 0.01442737691104412, 0.0515105314552784, 0.04708269238471985, 0.05722982436418533, -0.0286333616822958, 0.036806415766477585, 0.004178773611783981, 0.009095519781112671, -0.045496050268411636, 0.05309717357158661, -0.020663250237703323, 0.013099025003612041, 0.014473499730229378, 0.030238453298807144, 0.012545544654130936, -0.004736865870654583, 0.0026128864847123623, 0.049444206058979034, -0.003655273700132966, -0.01961163803935051, 0.01110649760812521, -0.008846454322338104, 0.006540287751704454, 0.014750240370631218, 0.030330700799822807, 0.03309809789061546, -0.06623309850692749, 0.02501729317009449, -0.02236058935523033, 0.018264837563037872, 0.050403572618961334, 0.018264837563037872, -0.019464043900370598, -0.06730315834283829, 0.03588394820690155, -0.00957520306110382, -0.04210137203335762, 0.010368524119257927, -0.026419442147016525, 0.059775833040475845, -0.047746866941452026, -0.020607901737093925, 0.031013324856758118, 0.036529675126075745, -0.01817259006202221, -0.03588394820690155, -0.06424056738615036, 0.00881416816264391, 0.019519392400979996, -0.08198882639408112, -0.04324522987008095, -0.008528202772140503, 0.01107882335782051, 0.08117705583572388, 0.01619851216673851, 0.017545314505696297, -0.07025504857301712, 0.057783305644989014, -0.033393289893865585, -0.04977629333734512, 0.049185916781425476, -0.06519993394613266, 0.004211059771478176, 0.01667819544672966, 0.037415243685245514, 0.004215672146528959, 0.036179136484861374, -0.09468196332454681, 0.003851297777146101, 0.014916284009814262, -0.015423640608787537, -0.003922788891941309, -0.02898389846086502, 0.030994875356554985, -0.038780491799116135, 0.00933074951171875, -0.0046861302107572556, -0.021825557574629784, -0.054646916687488556, 0.04889072850346565, 0.03558875992894173, 0.033116549253463745, 0.052248504012823105, 0.007799454499036074, 0.020884642377495766, -0.031216267496347427, 0.037618186324834824, -0.07800377160310745, 0.032083384692668915, 0.0017849727300927043, -0.06007102131843567, 0.036732617765665054, -0.032507721334695816, -0.05092015489935875, 0.0455329492688179, 0.06320741027593613, -0.012748487293720245, -0.03357778117060661, 0.008832616731524467, -0.004423227161169052, 0.006849314086139202, 0.04922281578183174, -0.0056454953737556934, 0.033190347254276276, -0.0023292279802262783, 0.04055162891745567, -0.04387250915169716, 0.0359392948448658, 0.03811631724238396, 0.041252702474594116, -0.04387250915169716, -0.013763200491666794, 0.023153910413384438, -0.019703885540366173, 0.04730408266186714, 0.011659977026283741, 0.0030533643439412117, 0.006701719481498003, -0.011134170927107334, -0.016641296446323395, -0.035644106566905975, -0.01384622324258089, -0.019464043900370598, -0.010571466758847237, 0.0109035549685359, -0.031124021857976913, -0.018560027703642845, 0.00538259232416749, 0.06615930050611496, -0.0013398826122283936, 0.0007177942898124456, 0.004570821765810251, -0.03160370513796806, -0.02748950384557247, -0.05582767352461815, -0.0003407360927667469, 0.03621603548526764, 0.008929476141929626, 0.004916746634989977, -0.03212028369307518, -0.015220697969198227, -0.022858720272779465, 0.0016154695767909288, -0.008666573092341423, 0.0006468796636909246, 0.027655547484755516, -0.009243114851415157, -0.0010227847378700972, 0.00014889186422806233, -0.03778422996401787, -0.010239378549158573, 0.07704440504312515, -0.020829293876886368, -0.037894926965236664, 0.024980394169688225, 0.0053687551990151405, -0.05966513603925705, 0.05413033813238144, 0.022950967773795128, -0.013920020312070847, -0.0037336833775043488, -0.0019786907359957695, 0.052949581295251846, -0.012619342654943466, -0.024722103029489517, 0.03521977365016937, 0.009962638840079308, -0.03450024873018265, 0.03610534220933914, 0.033467087894678116, 0.004861398600041866, 0.0007033807341940701, -0.004506248980760574, -0.043909408152103424, 0.10243068635463715, 0.000716064649168402, 0.025810614228248596, -0.03745214268565178, -0.010986576788127422, -0.007508877664804459, -0.023080112412571907, 0.07837275415658951, 0.07195238769054413, 0.02706516906619072, -0.007356670685112476, 0.042950041592121124, -0.019224202260375023, -0.029851017519831657, -0.012121210806071758, 0.0032563069835305214, 0.015451314859092236, 0.019390245899558067, 0.006341957487165928, 0.03020155429840088, -0.011650752276182175, 0.009372260421514511, 0.009404546581208706, 0.062358736991882324, 0.014058389700949192, -0.024279318749904633, 0.005225772969424725, 0.028799405321478844, 0.00623587379232049, -0.021696412935853004, 0.046787504106760025, 0.007942437194287777, 0.049665600061416626, -0.02739725634455681, 0.03197269141674042, -0.0054748388938605785, 0.06490474939346313 ]
20,528
pyobjectify.pyobjectify
__init__
null
def __init__(self, url, connectivity): url = url.replace("file://", "") self.url = url self.connectivity = connectivity if connectivity == Connectivity.ONLINE_STATIC: response = get(url) self.response = response self.plaintext = response.text elif connectivity == Connectivity.LOCAL: url = url.replace("file://", "") file_obj = open(url, "r") self.response = file_obj try: self.plaintext = file_obj.read() self.response.seek(0, 0) except Exception: # XLSX data does not like to be read self.plaintext = None
(self, url, connectivity)
[ 0.015738096088171005, -0.06247352063655853, -0.04438713937997818, 0.0004414540599100292, 0.010442949831485748, -0.011603277176618576, -0.03040795400738716, 0.051606956869363785, 0.007086287252604961, -0.015517081134021282, 0.02388801798224449, 0.023151300847530365, -0.004397273994982243, 0.016705036163330078, -0.042398009449243546, -0.004355833400040865, -0.04151394963264465, 0.009853577241301537, -0.018749423325061798, -0.013178007677197456, -0.0178929902613163, 0.0017082602716982365, -0.0033244311343878508, 0.07120360434055328, 0.020351780578494072, 0.06851459294557571, 0.007040242664515972, -0.018721796572208405, 0.02462473325431347, -0.00007712496153544635, 0.03952481597661972, 0.04062988981604576, -0.051938481628894806, 0.054922182112932205, 0.006133161019533873, 0.05584307387471199, 0.03490192070603371, -0.02164103277027607, -0.05901095271110535, 0.026613866910338402, -0.043503083288669586, -0.026208672672510147, 0.0028593791648745537, 0.006948153022676706, -0.020296527072787285, 0.037038397043943405, -0.08906897157430649, -0.0012639284832403064, 0.022672435268759727, -0.05886361002922058, -0.029321298003196716, 0.11411731690168381, 0.007169167976826429, 0.002131872111931443, -0.01780090108513832, 0.032691773027181625, -0.004592963960021734, 0.11131779104471207, -0.04707615450024605, 0.021235840395092964, -0.06343124806880951, -0.008527488447725773, 0.02508518099784851, -0.001144212088547647, -0.006004235707223415, 0.02589556947350502, -0.037977710366249084, -0.003964453004300594, 0.02339073456823826, 0.031715624034404755, 0.07138778269290924, 0.05005985498428345, -0.05562205985188484, -0.010304815135896206, 0.054848507046699524, -0.0014688275987282395, -0.031328849494457245, -0.018417900428175926, -0.033888936042785645, 0.026356015354394913, 0.024993091821670532, 0.013389813713729382, 0.033152222633361816, -0.011317799799144268, 0.019265124574303627, -0.07595542073249817, 0.08236484974622726, -0.03915645554661751, -0.0038240167777985334, 0.1409337818622589, -0.005737176164984703, 0.03713048994541168, -0.06321023404598236, -0.05831107497215271, 0.03346532583236694, -0.008398562669754028, 0.0037526472005993128, -0.022690853103995323, 0.005608250852674246, -0.040961410850286484, -0.07407679408788681, 0.03062896989285946, -0.0766921415925026, -0.019743990153074265, -0.032268162816762924, -0.05779537186026573, 0.03637535497546196, -0.015388156287372112, 0.018049543723464012, 0.012109769508242607, -0.015296067111194134, -0.028510911390185356, -0.041808634996414185, 0.08892162889242172, 0.026945389807224274, -0.014715902507305145, -0.03923013061285019, -0.014881663955748081, -0.021585779264569283, -0.03212082013487816, -0.0044018784537911415, 0.011621695011854172, -0.03808821737766266, 0.02258034609258175, 0.04692881181836128, 0.03871442750096321, 0.031715624034404755, -0.07499769330024719, 0.08671147376298904, 0.012616261839866638, 0.03550971299409866, 0.00704945158213377, 0.024716822430491447, 0.021235840395092964, -0.012542590498924255, -0.023077629506587982, -0.052159495651721954, 0.05212265998125076, -0.03304171562194824, -0.0005220323801040649, 0.032176073640584946, 0.02530619502067566, -0.004017404746264219, -0.012303157709538937, -0.002804125426337123, 0.044534485787153244, -0.005760198459029198, -0.0791969746351242, -0.055180031806230545, 0.0032047147396951914, 0.020462287589907646, -0.053817104548215866, -0.05993184819817543, -0.03425729647278786, -0.005364213604480028, -0.012745187617838383, -0.04523436352610588, 0.0032369461841881275, 0.004880743566900492, -0.01062712911516428, -0.04361359030008316, 0.017708811908960342, 0.01775485649704933, -0.022654017433524132, -0.017478587105870247, -0.021880466490983963, -0.031107835471630096, -0.07175613939762115, 0.00798876490443945, -0.016576111316680908, -0.0006837645778432488, 0.032949626445770264, -0.07396628707647324, 0.003628326579928398, 0.06704115867614746, 0.017791692167520523, 0.03948798030614853, -0.0018452433869242668, 0.025656135752797127, 0.018003497272729874, -0.03948798030614853, 0.004954415373504162, -0.050023019313812256, 0.049433644860982895, 0.057353343814611435, 0.02641127072274685, 0.033410072326660156, 0.0035822817590087652, 0.041329771280288696, 0.07691315561532974, 0.00202827132306993, -0.005870705936104059, -0.016576111316680908, 0.008103876374661922, 0.03508610278367996, -0.08457499742507935, 0.04110875353217125, -0.0019753198139369488, -0.0575006864964962, 0.055474717170000076, -0.031144671142101288, 0.027755776420235634, 0.03701997920870781, 0.006519936956465244, -0.03342849016189575, 0.031144671142101288, -0.004733400419354439, -0.006068698130548, -0.07912330329418182, 0.05635877698659897, -0.03676212951540947, 0.008020996116101742, -0.005497743375599384, -0.009503636509180069, 0.01818767748773098, 0.014080485329031944, -0.047555018216371536, 0.008375540375709534, 0.0096878157928586, 0.0028847036883234978, 0.012082142755389214, 0.023611748591065407, -0.03156828135251999, -0.03410995379090309, 0.009254994802176952, 0.0036835800856351852, -0.001079173875041306, -0.030610552057623863, -0.05849525332450867, 0.01265309751033783, -0.028345149010419846, -0.012809650041162968, 0.05315406247973442, 0.023998524993658066, 0.03838290646672249, -0.02628234401345253, -0.011916382238268852, 0.057869043201208115, -0.06564139574766159, -0.03527028113603592, 0.019228288903832436, 0.0035523525439202785, 0.0011689611710608006, -0.002083525061607361, -0.039635322988033295, -0.02479049377143383, 0.004542314913123846, 0.06630444526672363, -0.051349107176065445, -0.047223497182130814, 0.07249286025762558, -0.027700522914528847, -0.024164285510778427, -0.024643151089549065, 0.004079564940184355, -0.03585965186357498, -0.0579427145421505, -0.035417623817920685, 0.011161248199641705, -0.041256096214056015, -0.0003605879610404372, -0.04501334950327873, 0.04796021431684494, 0.0050557139329612255, -0.03309696912765503, -0.033244311809539795, -0.026982225477695465, 0.004954415373504162, 0.04733400419354439, 0.010415323078632355, 0.03508610278367996, 0.025987658649683, 0.03300487995147705, 0.01094944216310978, -0.03475457802414894, -0.05031770467758179, 0.014633022248744965, -0.05702182278037071, 0.03272860869765282, 0.004160143435001373, -0.002108849585056305, -0.006925130728632212, 0.0006193019216880202, -0.039414308965206146, 0.03670687600970268, -0.07809189707040787, -0.03624643012881279, -0.01734045334160328, -0.041292935609817505, -0.04449765011668205, -0.027461091056466103, 0.03037111833691597, -0.007615801878273487, -0.029542313888669014, 0.01967031881213188, 0.013316142372786999, -0.03889860585331917, 0.006031862460076809, 0.03429413214325905, 0.024901002645492554, -0.02679804526269436, -0.07359793037176132, 0.014034440740942955, 0.006736347451806068, -0.0400405153632164, -0.058421581983566284, -0.0009692420135252178, 0.003586886217817664, 0.018463945016264915, 0.012082142755389214, 0.08229117840528488, 0.004017404746264219, -0.020204437896609306, -0.0030067223124206066, -0.0026498755905777216, 0.0766921415925026, 0.029247626662254333, 0.019909750670194626, 0.03615434095263481, 0.03254443034529686, -0.007261257618665695, 0.005460907705128193, -0.029671238735318184, 0.03309696912765503, 0.024716822430491447, 0.0001242488797288388, 0.06833041459321976, 0.024348465725779533, -0.0344967283308506, 0.026982225477695465, 0.003923012875020504, 0.06759369373321533, -0.004540012683719397, -0.03272860869765282, -0.035546548664569855, -0.02602449432015419, -0.023703837767243385, -0.061699967831373215, 0.04225066304206848, -0.03996684402227402, 0.01516714133322239, -0.011483561247587204, 0.00007356368587352335, -0.023482823744416237, 0.05120176449418068, -0.006234459578990936, -0.01401602290570736, -0.03722257912158966, 0.010267979465425014, -0.060116030275821686, -0.053780268877744675, 0.012137396261096, -0.03342849016189575, 0.045050185173749924, 0.00023338933533523232, 0.015857812017202377, -0.007067869417369366, -0.024164285510778427, 0.026724373921751976, -0.024993091821670532, 0.025711389258503914, -0.004528501536697149, -0.0728612169623375, 0.017957452684640884, -0.017662767320871353, -0.04085090383887291, 0.022340914234519005, 0.032912787050008774, -0.00022734596859663725, -0.0007770052179694176, -0.05304355546832085, -0.03582281619310379, -0.04195597767829895, -0.05311722680926323, 0.026816463097929955, -0.012339993380010128, -0.013371395878493786, -0.027534762397408485, -0.0011718389578163624, 0.0037457405123859644, 0.04306105151772499, 0.022598763927817345, -0.002337922342121601, -0.003992080222815275, 0.011069158092141151, -0.040187858045101166, -0.029026612639427185, 0.029873834922909737, 0.012487336993217468, 0.0545169860124588, 0.05772170051932335, -0.0031080208718776703, 0.01687079668045044, 0.01648402214050293, 0.036743711680173874, 0.008343309164047241, 0.005640482064336538, 0.014669857919216156, 0.030481625348329544, 0.042361173778772354, 0.007477667648345232, -0.004931393079459667, -0.035122938454151154, 0.04965466260910034, -0.040151022374629974, 0.03849341347813606, 0.07558706402778625, -0.011492770165205002, -0.01584860309958458, -0.019522974267601967, 0.007067869417369366, -0.0036812778562307358, -0.040151022374629974, -0.0447186641395092, -0.008610368706285954, 0.08884795010089874, 0.01835343800485134, -0.021622614935040474, 0.01618012599647045, 0.027626851573586464, -0.01373975444585085, 0.022248825058341026, 0.05208582431077957, -0.016594529151916504, -0.02530619502067566, -0.021438436582684517, 0.05359609052538872, -0.06571506708860397, 0.0006405976018868387, 0.004931393079459667, 0.0005801639053970575, 0.018123215064406395, -0.04284003749489784, -0.06700432300567627, 0.03466248884797096, 0.013933141715824604, -0.037498846650123596, -0.010129845701158047, -0.025011509656906128, 0.017193110659718513, -0.00004305903712520376, -0.026779627427458763, 0.0447186641395092, 0.03414678946137428, -0.0054286764934659, -0.01593148335814476, -0.046192094683647156, -0.024440554901957512, -0.05341191217303276, -0.015599962323904037, -0.042361173778772354, -0.0007418960449285805, 0.04884427413344383, -0.0005649115773849189, -0.07035638391971588, -0.012680725194513798, 0.029100283980369568, 0.026816463097929955, 0.0159775298088789, 0.05503268912434578, -0.02333548106253147, 0.009816741570830345, 0.022543510422110558, -0.09150013327598572, -0.04560272395610809, 0.015811767429113388, -0.01861128956079483, 0.03414678946137428, -0.0208674818277359, -0.03517819195985794, -0.060594893991947174, -0.013896306045353413, -0.003856247989460826, 0.027884701266884804, 0.013141172006726265, 0.016041992232203484, -0.0065061235800385475, -0.006989593151956797, 0.02530619502067566, -0.0506860613822937, -0.04906528815627098, -0.03370475769042969, 0.023059211671352386, 0.0065659815445542336, -0.025029927492141724, -0.031144671142101288, 0.03296804428100586, 0.0018544524209573865, 0.037112072110176086, -0.02270927093923092, -0.023759091272950172, 0.13511371612548828, -0.04243484511971474, 0.002912330674007535, -0.023574912920594215, 0.05094391480088234, -0.015415783040225506, 0.055180031806230545, 0.020664885640144348, 0.007832212373614311, 0.001412422745488584, -0.03258126601576805, -0.03945114463567734, 0.006372593808919191, 0.02261718176305294, 0.020167602226138115, -0.021162167191505432, 0.021622614935040474, 0.014200201258063316, -0.007321115583181381, -0.020646467804908752, 0.03462565317749977, 0.01967031881213188, 0.029339715838432312, -0.06188414618372917, 0.02202780917286873, -0.0438714399933815, 0.01979924365878105, -0.007288884371519089, 0.011879545636475086, 0.0400405153632164, -0.0022561929654330015, 0.03871442750096321, -0.007947323843836784, -0.036099087446928024, 0.0011729900725185871, 0.004275255370885134, -0.004599870648235083, -0.039377473294734955, 0.03396260738372803, 0.018003497272729874, -0.04435030370950699, -0.013316142372786999, -0.04250851646065712, 0.03945114463567734, 0.04906528815627098, -0.047591857612133026, -0.07499769330024719, -0.04740767553448677, 0.004049635957926512, 0.0016587622230872512, -0.015047425404191017, 0.00006752031185897067, -0.06969333440065384, -0.020370198413729668, -0.08538538962602615, -0.007150750141590834, 0.06372593343257904, 0.01035086065530777, 0.006584399379789829, 0.05157012119889259, -0.031107835471630096, -0.0033382445108145475, -0.043981947004795074, 0.008149920962750912, 0.03849341347813606, -0.016502439975738525, -0.061994653195142746, 0.013187216594815254, -0.03425729647278786, 0.01520397700369358, -0.029026612639427185, -0.06737267971038818, 0.04851274937391281, 0.015084261074662209, 0.003131043165922165, 0.05864259600639343, -0.006607422139495611, -0.039414308965206146, -0.06446265429258347, 0.05227000266313553, 0.02735058218240738, -0.0018049542559310794, 0.03841974213719368, 0.05005985498428345, -0.002020213520154357, 0.030684223398566246, 0.04144027829170227, 0.046155259013175964, 0.02440371923148632, 0.03429413214325905, -0.04103508219122887, -0.020038675516843796, -0.022893451154232025, -0.019449302926659584, -0.024974673986434937, -0.012128187343478203, -0.011253337375819683, 0.020720139145851135, -0.04081406816840172, 0.010277188383042812, -0.06501518934965134, -0.0217147059738636, -0.019780825823545456, -0.009918039664626122, 0.04055621847510338, 0.017791692167520523, -0.023243390023708344, 0.02388801798224449, 0.020609630271792412, -0.03694630786776543, 0.055474717170000076, -0.05617459863424301, -0.02232249639928341, -0.013389813713729382, 0.021033242344856262, -0.0591951347887516, 0.03134726732969284, 0.0018498479621484876, -0.012321575544774532, 0.05311722680926323, -0.038530249148607254, -0.02624550834298134, -0.022138316184282303, 0.006340362597256899, 0.01584860309958458, -0.02180679515004158, 0.02735058218240738, -0.025287777185440063, 0.006759369745850563, 0.006064093671739101, -0.002100791782140732, -0.017819318920373917, 0.08214383572340012, -0.04250851646065712, 0.06192098185420036, 0.025361450389027596, -0.017837736755609512, -0.011253337375819683, 0.034865085035562515, 0.03530711680650711, 0.006045675836503506, 0.02530619502067566, 0.06711483001708984, 0.0018728702561929822, -0.018933601677417755, 0.06435214728116989, 0.02602449432015419, 0.04438713937997818, 0.0075098988600075245, 0.012689934112131596, 0.019062526524066925, 0.01972557231783867, -0.03178929537534714, -0.013067500665783882, -0.012395246885716915, 0.029192373156547546, -0.01653006672859192, 0.042361173778772354, -0.0009479463333263993, -0.026042912155389786, -0.004588359501212835, 0.05374343320727348, 0.024698404595255852, -0.029063448309898376, 0.025950822979211807, 0.03550971299409866, 0.019283542409539223, 0.05499585345387459, 0.007961137220263481, -0.07488718628883362, 0.0010716916294768453, 0.032047148793935776, -0.01720231957733631, 0.10078275203704834, 0.03368633985519409, 0.023409152403473854, -0.04994934797286987, -0.02624550834298134, 0.0046574268490076065, -0.009623353369534016, 0.08825857937335968, 0.00992724858224392, 0.01631825976073742, 0.03694630786776543, -0.031752459704875946, -0.003775669727474451, -0.04994934797286987, 0.025029927492141724, 0.05558522418141365, 0.00960493553429842, 0.03398102894425392, -0.014715902507305145, -0.01775485649704933, -0.04191914200782776, -0.00003181764259352349, 0.005419467110186815, -0.006050280295312405, 0.0021468366030603647, -0.029063448309898376, -0.06803572922945023, 0.06553088873624802, -0.03046320751309395, 0.015185559168457985, -0.03245234116911888, -0.025490375235676765, -0.010332442820072174, -0.059305641800165176, -0.006289713084697723, 0.030058015137910843, 0.03202873095870018, -0.002647573361173272, -0.03670687600970268, 0.03657795116305351, 0.0011183118913322687, -0.04114558920264244, -0.029339715838432312, -0.025029927492141724, -0.0022999353241175413, 0.018215304240584373, 0.02193571999669075, 0.026890134438872337, -0.012579426169395447, -0.01548024546355009, 0.007615801878273487, 0.0830278992652893, -0.01818767748773098, -0.016686618328094482, -0.04829173535108566, 0.026300761848688126, 0.02440371923148632, -0.06129477545619011, 0.028400402516126633, 0.07735518366098404, 0.011538814753293991, 0.011050740256905556, -0.0344967283308506, -0.004413389600813389, 0.025158852338790894, 0.03355741500854492, -0.0018912882078438997, 0.03333640098571777, -0.019946586340665817, 0.0591951347887516, -0.009936457499861717, -0.05856892466545105, -0.0008472234476357698, 0.016253797337412834, 0.07897596061229706, 0.04906528815627098, -0.01963348314166069, -0.05311722680926323, -0.0421769917011261, -0.015277648344635963, -0.055695731192827225, 0.003121834248304367, 0.0553642101585865, 0.010977068915963173, 0.024974673986434937, 0.07551339268684387, -0.03923013061285019, -0.052454181015491486, 0.043981947004795074, 0.08700616657733917, 0.008007182739675045, -0.00378027418628335, -0.029781745746731758, 0.002291877521201968, -0.02508518099784851, 0.003847039071843028, -0.00117126340046525, 0.0408877395093441, 0.0159775298088789, 0.04954415187239647, -0.015995947644114494, 0.032047148793935776, 0.026724373921751976, 0.04000367969274521 ]
20,530
pyobjectify.pyobjectify
convert
Attempts to convert the resource data through possible conversions. The end-user does not have to interface with this, but it is provided for more granular operations. Args: resource (:obj:`Resource`): he Resource object for the resource. conversions (list): The list of all possible conversions, filtered if user specified output data type. Returns: object: The first successful conversion from the probable resource type to an output data type. Raises: TypeError: None of the possible conversions were successful.
def convert(resource, conversions): """ Attempts to convert the resource data through possible conversions. The end-user does not have to interface with this, but it is provided for more granular operations. Args: resource (:obj:`Resource`): he Resource object for the resource. conversions (list): The list of all possible conversions, filtered if user specified output data type. Returns: object: The first successful conversion from the probable resource type to an output data type. Raises: TypeError: None of the possible conversions were successful. """ for conversion in conversions: try: i_type, o_type = conversion # Handle each case. Currently, only JSON has multiple options. # Return the first conversion that works. if i_type is InputType.JSON: if o_type is dict: return json_to_dict(resource) elif o_type is list: return json_to_list(resource) elif o_type is DataFrame: return json_to_dataframe(resource) elif i_type is InputType.CSV: return csv_to_list(resource) elif i_type is InputType.TSV: return tsv_to_list(resource) elif i_type is InputType.XML: return xml_to_dict(resource) elif i_type is InputType.XLSX: return xlsx_to_dict(resource) except Exception: continue # Try the next conversion # Reach here means none of the conversions worked! raise TypeError("The type of the resource is not supported.")
(resource, conversions)
[ 0.0040297904051840305, -0.022920269519090652, -0.027989860624074936, -0.059621259570121765, -0.03827185183763504, 0.0005494661163538694, 0.053909044712781906, 0.012861412949860096, 0.021278006955981255, -0.029507169499993324, 0.011861775070428848, 0.05883583053946495, 0.022509703412652016, -0.025704974308609962, -0.025276558473706245, 0.0599425733089447, -0.062298860400915146, 0.0551585927605629, 0.03238112851977348, 0.003297912422567606, 0.005024965386837721, -0.015217701904475689, 0.03386273235082626, 0.025026649236679077, 0.014646479859948158, 0.04148497432470322, 0.04387696459889412, -0.014298392459750175, -0.04605474695563316, -0.014021706767380238, -0.0010821972973644733, -0.00971969310194254, 0.02184922806918621, 0.059764064848423004, -0.02740078791975975, 0.03404124081134796, -0.028989499434828758, 0.051302846521139145, -0.07804315537214279, -0.012522249482572079, -0.0657975971698761, -0.024259069934487343, -0.03020334430038929, -0.0007486127433367074, -0.00963936559855938, 0.02204558625817299, -0.07982822507619858, -0.0013811960816383362, -0.024330472573637962, -0.03845035657286644, 0.01899312064051628, -0.07354478538036346, 0.007582074962556362, 0.03695090115070343, -0.011201299726963043, -0.005292725749313831, -0.03127438575029373, 0.08789673447608948, -0.018109511584043503, -0.010165960527956486, 0.03034614957869053, 0.0005913036875426769, -0.02891809679567814, -0.011290553025901318, 0.002844951581209898, 0.021188752725720406, -0.014182362705469131, -0.062191758304834366, -0.0015518931904807687, 0.04944637417793274, -0.036343976855278015, 0.021224454045295715, -0.037736330181360245, 0.0003988510579802096, 0.06133492663502693, -0.008786995895206928, 0.017172351479530334, 0.03016764298081398, 0.016645755618810654, 0.003746410831809044, 0.06426243484020233, 0.009121695533394814, -0.06365551054477692, -0.04109225794672966, 0.008443370461463928, -0.022866716608405113, -0.012200937606394291, -0.01582462526857853, -0.041949089616537094, 0.013504036702215672, -0.04384126141667366, -0.06661872565746307, -0.012584727257490158, 0.012807860970497131, 0.03680809587240219, 0.0021565849892795086, -0.06419103592634201, -0.03927148878574371, -0.008630801923573017, -0.011710043996572495, -0.01093353983014822, 0.04612614959478378, -0.03880736976861954, -0.008978890255093575, 0.04294872656464577, -0.10439075529575348, 0.004518452566117048, 0.025365810841321945, 0.012486548162996769, -0.014030631631612778, -0.04823252931237221, -0.022920269519090652, -0.010496198199689388, -0.05458736792206764, -0.00027319902437739074, -0.05473017320036888, 0.0023071998730301857, -0.01656542718410492, -0.041877686977386475, -0.018778912723064423, 0.006734167691320181, -0.018850315362215042, 0.04530501738190651, 0.012575801461935043, -0.014405496418476105, 0.011022793129086494, 0.005868409760296345, 0.0024388486053794622, 0.024883843958377838, 0.04926786944270134, -0.018296943977475166, -0.0386645644903183, -0.06540487706661224, 0.0518740676343441, -0.005042816046625376, -0.04002121835947037, -0.09482279419898987, 0.05376623943448067, -0.011772520840168, -0.015494387596845627, 0.0692606270313263, 0.02743648923933506, 0.012040281668305397, 0.001927873119711876, -0.003936074208468199, -0.03441610559821129, 0.06911782175302505, 0.019528640434145927, -0.07254514843225479, 0.04277022182941437, -0.04526931792497635, 0.026561807841062546, -0.005395366810262203, -0.015396208502352238, -0.005234710872173309, 0.021099500358104706, -0.03654033690690994, -0.05212397500872612, -0.03022119589149952, -0.04776841029524803, -0.028453977778553963, 0.001245084684342146, -0.025740675628185272, -0.005730067379772663, 0.03880736976861954, 0.012165236286818981, -0.047411397099494934, -0.05105293542146683, 0.05626533180475235, 0.0045965490862727165, -0.016074534505605698, 0.004183752462267876, -0.019689297303557396, -0.014369795098900795, 0.03550499677658081, 0.018796762451529503, 0.039200086146593094, -0.028311172500252724, 0.03173850476741791, 0.05762198567390442, 0.029507169499993324, -0.030399702489376068, -0.0007547489367425442, 0.02324158139526844, 0.013004218228161335, 0.0115493880584836, -0.009826797991991043, 0.036343976855278015, -0.01904667168855667, -0.03529078885912895, 0.03529078885912895, 0.01940368488430977, 0.006778794340789318, 0.023009521886706352, -0.03716510906815529, -0.05940705165266991, -0.03016764298081398, 0.024187667295336723, -0.009036905132234097, 0.036504633724689484, -0.05165985971689224, 0.01710987277328968, 0.059692662209272385, 0.037415020167827606, -0.052588094025850296, -0.027954159304499626, -0.002191170584410429, 0.007724880240857601, -0.06215605512261391, -0.037629228085279465, -0.006087080575525761, 0.007434806786477566, -0.005439993925392628, -0.019546490162611008, 0.019867803901433945, 0.014842838048934937, 0.03798624128103256, -0.048518139868974686, -0.02593703381717205, -0.022277643904089928, -0.014084183610975742, 0.011156672611832619, -0.025312259793281555, -0.009344829246401787, 0.051552753895521164, -0.005542634986341, -0.047411397099494934, 0.02320588007569313, 0.02047472633421421, 0.000025869534511002712, -0.008974427357316017, -0.046019043773412704, 0.03188131004571915, 0.03150644525885582, 0.028989499434828758, 0.02195633202791214, 0.00892533827573061, 0.009407307021319866, 0.023794952780008316, 0.01438764575868845, 0.037415020167827606, 0.022634658962488174, -0.07297356426715851, -0.044376783072948456, -0.02490169368684292, -0.032291874289512634, 0.021295856684446335, -0.007318777497857809, -0.06540487706661224, -0.0522310808300972, 0.04780411347746849, 0.0008255937718786299, -0.023723550140857697, -0.036433231085538864, -0.02466963604092598, -0.087611123919487, -0.07275936007499695, -0.06936772912740707, 0.028346873819828033, -0.02179567702114582, 0.004815219901502132, -0.000481968279927969, 0.00680110789835453, 0.07168831676244736, -0.06529777497053146, -0.08918198198080063, -0.06672582775354385, 0.009621514938771725, 0.0381290465593338, 0.005975514184683561, 0.06494076550006866, 0.028186218813061714, -0.022688210010528564, 0.01032661646604538, 0.039128683507442474, -0.009300202131271362, 0.060799404978752136, -0.03027474693953991, 0.062513068318367, 0.017029546201229095, -0.015833551064133644, 0.00858171284198761, -0.017609693109989166, -0.007747193798422813, 0.05762198567390442, -0.07068867981433868, 0.00014712862321175635, -0.003857977455481887, -0.022563254460692406, -0.007461582776159048, 0.040556736290454865, 0.018600404262542725, -0.016467249020934105, -0.0007558646029792726, -0.017279455438256264, 0.054051849991083145, -0.0314350426197052, -0.13502252101898193, 0.0824701264500618, -0.06022818386554718, -0.01230804156512022, 0.021063799038529396, 0.09118125587701797, 0.001235043746419251, -0.07504424452781677, -0.008657578378915787, -0.026543956249952316, -0.05073162168264389, -0.06679723411798477, 0.048696644604206085, -0.003188577014952898, -0.01032661646604538, 0.0061584836803376675, 0.010630077682435513, -0.003188577014952898, -0.017716797068715096, 0.02324158139526844, 0.104105144739151, 0.011094195768237114, 0.016556503251194954, -0.028079114854335785, 0.07308067381381989, 0.020349770784378052, -0.005390904378145933, 0.0262047927826643, -0.010692555457353592, -0.0316135473549366, 0.010505123063921928, 0.03570135310292244, 0.018457598984241486, -0.021349409595131874, 0.04094945266842842, 0.006519959773868322, 0.031024476513266563, -0.0073500159196555614, 0.008019416593015194, 0.014155586250126362, 0.0026508255396038294, -0.0027133028488606215, 0.050017595291137695, 0.04019972309470177, 0.004676877520978451, 0.029275109991431236, -0.009960677474737167, -0.044483885169029236, 0.03602266684174538, 0.00015591450210195035, -0.006917137186974287, -0.02175997570157051, -0.048696644604206085, -0.04405546933412552, -0.00956796295940876, 0.009309127926826477, 0.03944999724626541, -0.04980338737368584, -0.04473379626870155, 0.008104206994175911, -0.07308067381381989, 0.030667463317513466, -0.03579060733318329, 0.06033528596162796, 0.010085632093250751, -0.03677239269018173, -0.036558184772729874, -0.014726808294653893, 0.021635020151734352, 0.02463393472135067, -0.015655042603611946, 0.009219874627888203, 0.010424795560538769, 0.0144322719424963, 0.05323071777820587, 0.01772572286427021, -0.06369121372699738, -0.04823252931237221, 0.043091531842947006, 0.0017292842967435718, 0.033630676567554474, -0.08411239087581635, 0.054266057908535004, 0.011254851706326008, 0.03873596712946892, -0.05597972124814987, 0.04266311600804329, 0.054051849991083145, -0.07654370367527008, -0.030845969915390015, -0.02349149063229561, -0.0005530920461751521, 0.0357370562851429, -0.010915689170360565, 0.03937859460711479, 0.03004268929362297, -0.006778794340789318, 0.0021320402156561613, -0.036308277398347855, 0.006310214288532734, 0.06465514749288559, 0.003949462436139584, 0.013557588681578636, -0.026758164167404175, 0.020278368145227432, -0.000657685857731849, 0.027757802978157997, -0.07847157120704651, 0.02490169368684292, 0.07997103035449982, 0.05026750639081001, -0.009942826814949512, 0.02881099283695221, 0.07690071314573288, -0.007622239179909229, -0.015226627700030804, -0.052695196121931076, -0.02759714610874653, 0.031131580471992493, -0.02875743992626667, 0.08097066730260849, -0.040521036833524704, 0.0007692525978200138, 0.032149069011211395, 0.015744296833872795, 0.027025924995541573, 0.04077094420790672, -0.011299478821456432, -0.04409117251634598, 0.050160400569438934, 0.05105293542146683, 0.001953533384948969, 0.004045409616082907, 0.004299781750887632, -0.044376783072948456, -0.004161438904702663, -0.13616496324539185, 0.03266673907637596, 0.023991309106349945, 0.013852125033736229, 0.035040877759456635, -0.003652694635093212, 0.004966950975358486, 0.03712940588593483, 0.015315880998969078, -0.0007463814108632505, -0.03962850198149681, -0.05091013014316559, -0.032291874289512634, -0.08782532811164856, 0.05305221304297447, -0.06008537858724594, -0.0204390250146389, 0.0030993237160146236, 0.0006889245705679059, 0.043127235025167465, -0.037807732820510864, 0.013084545731544495, 0.0037062468472868204, 0.05526569485664368, 0.03955709934234619, -0.01642262190580368, 0.033648524433374405, 0.037522122263908386, -0.009523335844278336, 0.06697574257850647, -0.025597870349884033, -0.01504812017083168, 0.008978890255093575, 0.014414421282708645, 0.020082011818885803, 0.024366173893213272, 0.0008863976690918207, 0.012227713130414486, 0.04409117251634598, 0.04651886224746704, 0.011094195768237114, 0.050053298473358154, 0.02331298403441906, 0.028400426730513573, 0.011977803893387318, -0.007104569114744663, 0.00509636802598834, 0.04223470017313957, -0.05572981387376785, 0.026668911799788475, -0.007738268468528986, -0.03991411253809929, -0.00622542342171073, 0.05608682706952095, -0.01089783851057291, -0.008470145985484123, 0.01933228224515915, -0.019689297303557396, 0.03148859366774559, 0.013887826353311539, -0.0019490707200020552, -0.00830949004739523, -0.03439825400710106, -0.006470870226621628, -0.007992640137672424, 0.0018676270265132189, 0.006827883888036013, 0.055515605956315994, -0.025187304243445396, -0.05358773097395897, -0.02720443159341812, -0.0019602274987846613, 0.05458736792206764, -0.002016010694205761, 0.008255938068032265, -0.016592204570770264, -0.010121333412826061, -0.04641176015138626, 0.030845969915390015, 0.04266311600804329, 0.019957056269049644, -0.01917162723839283, -0.010879987850785255, 0.0434485487639904, 0.017582915723323822, -0.02452682889997959, -0.0033202259801328182, -0.03862886503338814, 0.018404047936201096, -0.005551560316234827, 0.009773245081305504, 0.003978469409048557, 0.0288645438849926, -0.040628138929605484, -0.0414135716855526, 0.0009656100301072001, -0.044376783072948456, -0.011272702366113663, -0.004103424493223429, 0.009844648651778698, -0.009889274835586548, -0.023741399869322777, -0.02754359506070614, -0.013111322186887264, -0.014155586250126362, -0.012638279236853123, -0.0004691380891017616, 0.012209862470626831, 0.05494438111782074, -0.03463031351566315, 0.016003131866455078, 0.06586899608373642, -0.07825736701488495, -0.003652694635093212, -0.012977441772818565, -0.004032021388411522, 0.012745383195579052, -0.047268591821193695, -0.03398768976330757, -0.02865033596754074, 0.06772546470165253, -0.015369432978332043, 0.016538651660084724, 0.019957056269049644, 0.013441559858620167, -0.0012941741151735187, -0.0035054266918450594, -0.02763284742832184, -0.01036231778562069, -0.011504760943353176, 0.014253765344619751, -0.034808818250894547, 0.01734193228185177, 0.005323964171111584, 0.05740777775645256, -0.01700276881456375, -0.005689903162419796, 0.06636881828308105, -0.009425157681107521, 0.03611191734671593, -0.025044498965144157, 0.027811354026198387, 0.0015775535721331835, -0.008251475170254707, -0.04776841029524803, 0.06383401900529861, 0.022545404732227325, 0.017484737560153008, 0.004152513574808836, -0.06626170873641968, -0.08818234503269196, 0.04073524475097656, -0.007657940499484539, -0.007711492478847504, 0.03521938621997833, 0.01899312064051628, -0.007381254807114601, -0.010505123063921928, 0.026347598060965538, -0.01162971556186676, 0.04273451864719391, 0.021153051406145096, 0.0008735674782656133, 0.045911941677331924, 0.010549750179052353, -0.0177792739123106, -0.0207067858427763, -0.06776116788387299, 0.02350934036076069, -0.01629766821861267, -0.027115177363157272, 0.05440886318683624, 0.020099861547350883, -0.03998551517724991, -0.05740777775645256, 0.01230804156512022, 0.01700276881456375, 0.03532648831605911, -0.021670721471309662, 0.013584365136921406, 0.02725798264145851, 0.04002121835947037, -0.021385110914707184, -0.08147048950195312, -0.050017595291137695, -0.004681339953094721, -0.0004755531845148653, 0.005783619359135628, 0.034773118793964386, -0.022652508690953255, 0.03184560686349869, -0.06204895302653313, 0.025544319301843643, -0.017493663355708122, -0.018850315362215042, -0.023777101188898087, -0.025330109521746635, 0.02061753161251545, -0.06483365595340729, 0.087611123919487, 0.03446965664625168, -0.05237388610839844, 0.02461608313024044, 0.031078027561306953, 0.00956796295940876, 0.05458736792206764, -0.001031992258504033, 0.05037460848689079, 0.01899312064051628, 0.017261603847146034, -0.011165598407387733, 0.034808818250894547, 0.016975993290543556, 0.00680110789835453, -0.05855021998286247, 0.016012057662010193, 0.025187304243445396, -0.003936074208468199, 0.10660424083471298, -0.021420812234282494, 0.0231880284845829, 0.00797478947788477, 0.023919906467199326, -0.012424071319401264, -0.041556376963853836, 0.012361593544483185, 0.039200086146593094, 0.0001227234024554491, 0.059514157474040985, 0.013584365136921406, -0.007635626941919327, -0.012013505212962627, -0.03159569948911667, -0.05912144109606743, -0.0021219991613179445, -0.01245084684342146, 0.009773245081305504, 0.011237001046538353, -0.012352668680250645, 0.07047446817159653, 0.00963936559855938, -0.016851039603352547, 0.02170642279088497, 0.030399702489376068, 0.03275599330663681, 0.00961258914321661, -0.006064767483621836, -0.020064160227775574, -0.023794952780008316, -0.02731153555214405, 0.08111347258090973, -0.040235426276922226, -0.027704250067472458, -0.00022871179680805653, -0.04905365779995918, 0.0004239535774104297, -0.010398019105196, 0.04219900071620941, 0.004926786758005619, -0.027133028954267502, -0.07297356426715851, -0.031042326241731644, -0.05751487985253334, -0.08411239087581635, -0.0036236874293535948, -0.0061629461124539375, 0.04684017598628998, 0.0802566409111023, -0.052588094025850296, 0.013352306559681892, 0.0016991612501442432, 0.009318052791059017, -0.05762198567390442, -0.034915924072265625, -0.031149430200457573, 0.05244528874754906, -0.040592439472675323, -0.012495473958551884, 0.054373160004615784, 0.033434316515922546, -0.013878901489078999, -0.029168006032705307, 0.006631526630371809, -0.04409117251634598, 0.0883251503109932, 0.00949656032025814, -0.0021978644654154778, 0.03566565364599228, -0.05565841123461723, 0.0463760569691658, 0.017457962036132812, 0.005569410976022482, 0.023973459377884865, 0.0021643945947289467, 0.022509703412652016, 0.05662234500050545, -0.005524784326553345, 0.024990947917103767, -0.00848353374749422, -0.05883583053946495, -0.012781084515154362, 0.03584415838122368, -0.023955607786774635, 0.031078027561306953, 0.013271978124976158, 0.030685313045978546, -0.016395846381783485, -0.04548352584242821, 0.054051849991083145, -0.01781497523188591, 0.007854297757148743, -0.04769700765609741, -0.022884568199515343, 0.07947121560573578, -0.0019713840447366238, -0.010781808756291866, 0.027186580002307892, 0.02627619542181492, -0.029096603393554688, -0.028989499434828758, 0.016610054299235344, 0.0687251016497612, -0.008657578378915787, -0.0043734158389270306, 0.05644384026527405, -0.017984556034207344, 0.015494387596845627, -0.01710987277328968, 0.03691519796848297, -0.0007703682640567422, -0.0036883961874991655, 0.016993844881653786, 0.00954118650406599, 0.010014229454100132, 0.011754670180380344 ]
20,531
pyobjectify.pyobjectify
from_url
This is the main interface that the end-user interacts with. Given a URL, converts the resource data to a parsable Python object. Args: url (str): A URL to a resource. out_type (:obj:`class`, optional): The user-specified data type of the output. Returns: object: A parsable Python object representation of the resource. Raises: TypeError: The user-specified data type of the output is not supported.
def from_url(url, out_type=None): """ This is the main interface that the end-user interacts with. Given a URL, converts the resource data to a parsable Python object. Args: url (str): A URL to a resource. out_type (:obj:`class`, optional): The user-specified data type of the output. Returns: object: A parsable Python object representation of the resource. Raises: TypeError: The user-specified data type of the output is not supported. """ if out_type is not None and out_type not in OUTPUT_TYPES: raise TypeError(f"The specified output type {out_type} is not supported.") # (1) Get resource connectivity type connectivity = url_to_connectivity(url) # (2) Retrieve resource resource = retrieve_resource(url, connectivity) # (3) Determine input type in_types = get_resource_types(resource) # (4) Determine possible conversions conversions = get_conversions(in_types, out_type) # (5) Convert to output type output = convert(resource, conversions) # (6) Close the file object if open()-ed if connectivity is Connectivity.LOCAL: resource.response.close() return output
(url, out_type=None)
[ -0.01383038330823183, -0.019455095753073692, -0.07144808024168015, -0.0880730152130127, 0.009976743720471859, 0.029244940727949142, 0.009665247984230518, 0.029476337134838104, -0.0411529541015625, -0.02550699934363365, 0.01789761893451214, 0.05233117938041687, -0.025346802547574043, 0.03389066830277443, 0.014497872442007065, 0.046742066740989685, -0.01490726601332426, -0.012531003914773464, 0.0411173552274704, -0.018493909388780594, -0.023175235837697983, -0.0027033325750380754, 0.03453145921230316, 0.009335953742265701, -0.0009027795749716461, -0.0030571019742637873, 0.032448891550302505, -0.04449930042028427, -0.0490560308098793, -0.003041527234017849, 0.0665353536605835, 0.041473351418972015, 0.015788352116942406, 0.05382635444402695, 0.00754708144813776, 0.01789761893451214, 0.022445447742938995, 0.08280429989099503, -0.025542600080370903, -0.0018589583924040198, -0.05436034873127937, -0.027108974754810333, -0.007466983050107956, 0.02036288008093834, 0.027002176269888878, 0.05724390223622322, -0.097898468375206, -0.035759638994932175, -0.08714743703603745, -0.07166167348623276, 0.012077110819518566, -0.008971059694886208, 0.026165589690208435, 0.02077227458357811, -0.024367818608880043, -0.012913697399199009, -0.0097898468375206, 0.06956131011247635, -0.010341637767851353, 0.024065222591161728, -0.05660311132669449, 0.006652645766735077, 0.002387387678027153, 0.007084289100021124, -0.008041024208068848, 0.030686719343066216, -0.03257348760962486, -0.003998262342065573, -0.02897794544696808, 0.03798460587859154, 0.031452108174562454, 0.005954006686806679, -0.040440965443849564, -0.0063189007341861725, 0.12210608273744583, -0.00029230478685349226, 0.036952219903469086, -0.03252008929848671, 0.00627885153517127, 0.039693377912044525, 0.02703777514398098, 0.019544092938303947, -0.028532952070236206, -0.06504017859697342, 0.00046529583050869405, -0.02821255847811699, 0.04214973747730255, -0.0880730152130127, -0.06233462318778038, 0.08607944846153259, -0.043965309858322144, -0.031630102545022964, -0.0606970489025116, 0.000888873590156436, -0.006305551156401634, -0.018493909388780594, -0.021662259474396706, -0.04588767886161804, 0.0032862734515219927, -0.05386195704340935, 0.00009727269207360223, -0.0042964075691998005, -0.08472666889429092, 0.0026098841335624456, 0.004454380366951227, -0.10060402005910873, 0.014346575364470482, 0.04022736847400665, -0.003637817921116948, 0.013260792009532452, 0.010101341642439365, -0.038696594536304474, -0.055926721543073654, 0.04268373176455498, 0.046955663710832596, -0.04158014804124832, -0.03292948380112648, -0.008081072941422462, -0.009522850625216961, -0.025756195187568665, -0.07354844361543655, 0.03396186605095863, -0.013990581035614014, 0.003909263759851456, 0.020861273631453514, 0.016331244260072708, -0.0022249650210142136, -0.05211758241057396, 0.0352790467441082, -0.009602949023246765, -0.01559255551546812, 0.03276928514242172, -0.040440965443849564, 0.03428226336836815, -0.05432474985718727, 0.0005962906288914382, -0.11270783096551895, 0.05151239037513733, -0.02276584319770336, 0.03355247527360916, 0.025969792157411575, 0.060056257992982864, 0.023851625621318817, -0.05777789279818535, -0.0021915906108915806, -0.04350251704454422, 0.061266638338565826, -0.046564068645238876, -0.03983577713370323, 0.03994257375597954, 0.00485487375408411, -0.02705557644367218, 0.0391237847507, 0.0074981325305998325, -0.00597625644877553, -0.035385843366384506, -0.01148082036525011, -0.04624367505311966, -0.012032611295580864, -0.037343814969062805, -0.014853866770863533, 0.019757689908146858, 0.0391949862241745, -0.00408726092427969, 0.008254620246589184, -0.011293922550976276, 0.08073953539133072, -0.023780427873134613, 0.04667086899280548, -0.03547484427690506, -0.04218534007668495, 0.011934712529182434, -0.07952915132045746, 0.02369142882525921, 0.03826940059661865, 0.012878097593784332, 0.05055120587348938, -0.008757462725043297, 0.03666742518544197, 0.02134186588227749, 0.030526520684361458, -0.01731022819876671, -0.0391593873500824, 0.062227822840213776, 0.005402215290814638, 0.016393542289733887, -0.012878097593784332, 0.03116731159389019, -0.01145412027835846, -0.005940656643360853, -0.02077227458357811, -0.004234108608216047, -0.007934225723147392, -0.026361387223005295, -0.01902790181338787, -0.0705580934882164, -0.05756429582834244, 0.05329236388206482, -0.012806898914277554, 0.06254822015762329, -0.02645038440823555, 0.04528249055147171, -0.012424205429852009, 0.021626660600304604, -0.0181290153414011, -0.018689706921577454, -0.02744716964662075, -0.019170299172401428, -0.049305226653814316, 0.021235067397356033, -0.0004157903604209423, -0.019633091986179352, -0.001094126608222723, 0.0030637769959867, 0.005562412552535534, 0.006198752671480179, -0.04731165990233421, 0.03155890479683876, -0.02741157077252865, -0.022196251899003983, -0.013269691728055477, 0.016669439151883125, 0.03252008929848671, 0.0176395233720541, -0.004118410404771566, -0.01086672954261303, -0.03905258700251579, -0.004234108608216047, -0.05218878015875816, -0.02237424999475479, -0.009282554499804974, -0.020487478002905846, 0.06778133660554886, 0.04232773557305336, 0.030615519732236862, 0.008481566794216633, -0.01636684313416481, 0.03559944033622742, -0.016535941511392593, 0.009082308039069176, 0.02000688575208187, -0.004788124933838844, -0.02938733994960785, -0.036525025963783264, -0.06963250786066055, 0.04435690492391586, 0.00680839316919446, -0.01881430484354496, -0.057315099984407425, -0.07340604811906815, 0.05208198353648186, 0.0055757625959813595, 0.002398512326180935, 0.012851398438215256, 0.013234092853963375, -0.005250917747616768, -0.04268373176455498, -0.09832565486431122, -0.0181290153414011, -0.013225192204117775, -0.0023473382461816072, -0.04585207998752594, 0.0607326477766037, 0.048522040247917175, -0.05895267426967621, -0.10138721019029617, -0.04414330795407295, -0.0008760800119489431, 0.03551044315099716, -0.009861045517027378, 0.08316029608249664, 0.10138721019029617, 0.01302939560264349, -0.02095027081668377, -0.005687010940164328, -0.03677422180771828, 0.03462045639753342, -0.04766765236854553, 0.058917075395584106, -0.016429143026471138, -0.0015630379784852266, -0.019864488393068314, 0.0107777314260602, -0.020540878176689148, 0.07333485037088394, -0.05724390223622322, -0.021715659648180008, 0.06347380578517914, 0.01352778822183609, -0.009674148634076118, 0.03405086696147919, 0.0068217432126402855, -0.014631371013820171, -0.025418002158403397, -0.025240004062652588, 0.056140318512916565, -0.04336012154817581, -0.051227595657110214, 0.037557411938905716, -0.019259298220276833, -0.032662488520145416, -0.015343359671533108, 0.052615974098443985, 0.025418002158403397, -0.01630454510450363, 0.004770325031131506, 0.013287492096424103, -0.08700503408908844, -0.031256310641765594, 0.02237424999475479, 0.05268717557191849, -0.014827167615294456, -0.03355247527360916, 0.019526293501257896, -0.05250917747616768, 0.04211413860321045, 0.032858286052942276, 0.007591580972075462, 0.026557182893157005, 0.0000692868052283302, -0.022872641682624817, 0.007333484943956137, 0.052615974098443985, -0.02627238817512989, -0.0037357164546847343, -0.020843472331762314, -0.03741501271724701, 0.046136874705553055, 0.0006852892693132162, -0.011213824152946472, -0.032039497047662735, 0.04083256050944328, -0.0021348539739847183, 0.028301555663347244, -0.03257348760962486, -0.06703374534845352, 0.005424465052783489, -0.07070048898458481, 0.03933738172054291, -0.0037490662652999163, 0.03584863618016243, 0.014364374801516533, -0.031131712719798088, -0.006403449457138777, 0.004285282921046019, 0.008753012865781784, -0.012860298156738281, -0.05136999487876892, 0.052224382758140564, -0.02629018761217594, -0.047560855746269226, 0.022498847916722298, -0.026005392894148827, 0.05158359184861183, -0.02036288008093834, 0.0205586776137352, 0.0070264399982988834, -0.08607944846153259, 0.028764348477125168, -0.0490560308098793, 0.013447688892483711, -0.010857829824090004, -0.059878259897232056, -0.02744716964662075, -0.02018488384783268, -0.037343814969062805, 0.06571657210588455, 0.0038180400151759386, 0.03688102215528488, 0.026201188564300537, -0.017390327528119087, 0.02271244302392006, -0.00293917884118855, -0.022837042808532715, 0.005896157585084438, 0.004672426730394363, -0.002994803013280034, -0.016224445775151253, -0.03591983765363693, 0.035350244492292404, -0.00754708144813776, 0.04955442249774933, -0.011240523308515549, -0.00745363300666213, 0.06283301115036011, -0.043609317392110825, -0.03944418206810951, 0.041224151849746704, -0.026752980425953865, 0.016010848805308342, 0.04389411211013794, 0.047525253146886826, 0.058667879551649094, 0.01636684313416481, 0.03376607224345207, -0.001995793776586652, -0.03805580362677574, 0.03994257375597954, 0.013776984065771103, 0.04884243384003639, -0.0011514194775372744, 0.015726054087281227, -0.024439016357064247, 0.03424666449427605, -0.07194647192955017, 0.030063727870583534, 0.05425354838371277, 0.02780316397547722, -0.0038580894470214844, -0.07660999894142151, 0.02844395488500595, -0.06215662509202957, -0.06678455322980881, -0.06176503002643585, 0.013483288697898388, 0.06393659859895706, 0.027126774191856384, 0.012166108936071396, -0.018084516748785973, -0.010751031339168549, 0.028283756226301193, 0.022623445838689804, 0.04293292760848999, 0.012860298156738281, -0.004716926254332066, -0.028123559430241585, 0.020131483674049377, 0.004009386990219355, 0.017372528091073036, 0.0372014157474041, 0.019668690860271454, -0.029351739212870598, -0.006447948981076479, -0.09640328586101532, 0.030686719343066216, 0.030882515013217926, 0.035154446959495544, 0.01630454510450363, 0.009985643438994884, 0.01789761893451214, 0.012308507226407528, 0.012886998243629932, 0.000752038205973804, 0.05724390223622322, 0.011774515733122826, -0.007898625917732716, -0.051049601286649704, 0.02041628025472164, -0.006937441416084766, -0.012415305711328983, -0.011374021880328655, 0.00715103792026639, 0.054751940071582794, -0.014213076792657375, -0.02312183752655983, -0.034406859427690506, 0.027393771335482597, 0.025934193283319473, 0.001066314522176981, 0.054217949509620667, 0.010813330300152302, -0.016322344541549683, 0.0725872591137886, -0.04197174310684204, -0.03494085371494293, 0.054004352539777756, 0.005500113591551781, -0.0038269399665296078, 0.0033730471041053534, -0.022107252851128578, -0.04296852648258209, 0.008890960365533829, 0.01559255551546812, 0.048522040247917175, 0.017675122246146202, 0.00940715242177248, 0.022570045664906502, -0.014666969887912273, -0.010857829824090004, -0.03330327942967415, -0.004748075734823942, -0.030829116702079773, -0.0009355978108942509, 0.05129879713058472, -0.03680982440710068, 0.03374826908111572, 0.010662033222615719, 0.009834345430135727, 0.04218534007668495, 0.013812582939863205, -0.06888491660356522, 0.07981394976377487, 0.008161172270774841, -0.04663527011871338, -0.04951882362365723, 0.02705557644367218, -0.013011596165597439, 0.014471173286437988, -0.02114606834948063, 0.004841524176299572, 0.04837964102625847, 0.0007982062525115907, -0.019882287830114365, -0.054395947605371475, 0.011934712529182434, 0.04610127583146095, -0.001880095573142171, 0.02098587155342102, -0.0027634066063910723, 0.0225344467908144, -0.0470980629324913, 0.07475882768630981, 0.050907202064991, 0.02881774865090847, -0.03876779228448868, 0.0490204319357872, 0.040084972977638245, 0.023015039041638374, -0.027678566053509712, 0.0006235464825294912, 0.0040516615845263, 0.039906974881887436, 0.031469907611608505, -0.022623445838689804, -0.0035376944579184055, 0.038304999470710754, 0.023869425058364868, 0.05190398544073105, -0.03017052635550499, 0.005865008104592562, 0.02976113371551037, -0.008165622130036354, -0.02803456038236618, -0.009852145798504353, 0.03138090670108795, -0.03273368626832962, -0.06970370560884476, -0.003515444928780198, -0.005909507162868977, 0.0030126026831567287, -0.01899230293929577, 0.03396186605095863, -0.0071332380175590515, -0.030099328607320786, 0.003875889116898179, -0.028372755274176598, 0.027108974754810333, 0.044962093234062195, -0.026112191379070282, -0.030455322936177254, -0.005589112173765898, -0.03737941384315491, 0.048878032714128494, 0.012735700234770775, 0.03666742518544197, 0.06710495054721832, -0.0032172994688153267, -0.007355734705924988, 0.017568323761224747, -0.04848644137382507, -0.01399948075413704, -0.0017043232219293714, -0.07547082006931305, 0.05129879713058472, -0.01049293577671051, 0.03333887830376625, -0.02506200782954693, 0.008890960365533829, -0.04738285765051842, -0.037735410034656525, 0.08301790058612823, -0.0021248417906463146, 0.01899230293929577, -0.024652613326907158, 0.04271933063864708, 0.021840257570147514, 0.020629877224564552, 0.008165622130036354, 0.06521818041801453, 0.04912722855806351, 0.01979328878223896, -0.006924091372638941, -0.04133095219731331, -0.04531808942556381, 0.01194361224770546, -0.05136999487876892, -0.021235067397356033, -0.0069062914699316025, 0.012753499671816826, -0.004409880843013525, 0.019544092938303947, -0.007934225723147392, -0.036525025963783264, 0.03572404012084007, 0.009852145798504353, -0.03389066830277443, 0.010501835495233536, -0.0333566777408123, 0.012335206381976604, -0.017158931121230125, -0.013652386143803596, 0.025613797828555107, -0.042398933321237564, -0.006385650020092726, 0.046528469771146774, 0.005072920583188534, -0.04542488604784012, -0.033018480986356735, 0.020131483674049377, -0.020736675709486008, 0.05307876691222191, -0.0186185073107481, -0.05368395894765854, -0.013225192204117775, 0.006292201112955809, 0.008054373785853386, -0.024759411811828613, -0.03453145921230316, -0.02547140046954155, -0.029494136571884155, 0.07127008587121964, 0.036916621029376984, 0.05895267426967621, 0.06742534041404724, -0.010804430581629276, -0.00043943061609752476, -0.04207853972911835, -0.031131712719798088, -0.001066314522176981, -0.021270666271448135, 0.05151239037513733, -0.017959918826818466, 0.016607139259576797, -0.0006864017341285944, -0.0043119825422763824, 0.00023125730513129383, 0.056353915482759476, 0.0018522834870964289, 0.02899574488401413, -0.021413063630461693, -0.004578978288918734, 0.011018027551472187, 0.003944863099604845, -0.02684197947382927, 0.01667833887040615, -0.009763146750628948, 0.03559944033622742, 0.011026927269995213, 0.0053844153881073, -0.010573034174740314, 0.009611849673092365, 0.03670302405953407, 0.08586585521697998, 0.027553968131542206, -0.02429661899805069, 0.02506200782954693, 0.039479780942201614, -0.027162374928593636, 0.01547685731202364, 0.05347036197781563, -0.030028128996491432, 0.014124078676104546, 0.023798227310180664, 0.0012637801701202989, -0.00817452184855938, 0.02429661899805069, -0.014933966100215912, -0.0186363086104393, -0.0587390772998333, 0.012121610343456268, -0.023566830903291702, 0.055926721543073654, 0.06596576422452927, -0.012753499671816826, 0.007382434327155352, -0.04763205349445343, -0.02313963696360588, -0.026361387223005295, -0.015610354952514172, 0.008766362443566322, 0.01822691410779953, 0.016028648242354393, -0.004285282921046019, 0.03680982440710068, -0.027286972850561142, 0.01314509380608797, 0.026165589690208435, -0.03017052635550499, -0.01675843633711338, -0.03446026146411896, -0.009073407389223576, 0.061017442494630814, -0.04350251704454422, -0.08266190439462662, -0.029654335230588913, -0.0047124759294092655, -0.019099101424217224, 0.004082811065018177, 0.001128613599576056, 0.057742293924093246, 0.09291454404592514, -0.023282034322619438, 0.007128788158297539, 0.025827394798398018, -0.009763146750628948, 0.008481566794216633, -0.010635333135724068, -0.005090720020234585, -0.009424951858818531, -0.009460551664233208, -0.024848410859704018, -0.03444245830178261, 0.024617014452815056, -0.04912722855806351, 0.018707506358623505, 0.0061275539919734, -0.052402377128601074, 0.08073953539133072, -0.025346802547574043, 0.030455322936177254, 0.010857829824090004, -0.09262974560260773, 0.04485529661178589, 0.0005801596562378109, -0.029511937871575356, -0.001776634599082172, -0.07361964881420135, -0.0019112450536340475, 0.048700034618377686, -0.010822230018675327, -0.005967356264591217, 0.04293292760848999, -0.025524800643324852, 0.02527560293674469, 0.004819274414330721, -0.04389411211013794, 0.004443255253136158, -0.016144346445798874, 0.09341293573379517, -0.019116900861263275, -0.03116731159389019, 0.045175690203905106, -0.016117647290229797, -0.030117128044366837, -0.01765732280910015, -0.019739890471100807, 0.038732193410396576, -0.031238509342074394, 0.005068470723927021, 0.05724390223622322, 0.011997011490166187, -0.05254477635025978, 0.022587845101952553, 0.04385851323604584, 0.08138032257556915, -0.019650891423225403, -0.0011380696669220924, 0.02883554808795452, -0.02372702769935131, -0.01820911467075348, 0.005700360517948866, 0.05920187011361122, 0.01223730854690075, -0.022623445838689804, -0.03424666449427605, 0.0470980629324913, -0.04076135903596878, -0.06215662509202957 ]
20,532
pyobjectify.pyobjectify
get_conversions
Get possible conversions for the probable resource types. If the user specified a preferred output type, filter out any undesirable conversions to consider. The end-user does not have to interface with this, but it is provided for more granular operations. Args: in_types (:obj:`list`): A list of calculated possible resource types. out_type (:obj:`class`, optional): The user-specified data type of the output. Returns: list: A list of (in, out) conversion tuples as described above. Raises: TypeError: There are no possible conversions.
def get_conversions(in_types, out_type=None): """ Get possible conversions for the probable resource types. If the user specified a preferred output type, filter out any undesirable conversions to consider. The end-user does not have to interface with this, but it is provided for more granular operations. Args: in_types (:obj:`list`): A list of calculated possible resource types. out_type (:obj:`class`, optional): The user-specified data type of the output. Returns: list: A list of (in, out) conversion tuples as described above. Raises: TypeError: There are no possible conversions. """ # There is guaranteed at least one probable in_type # Go through each probable resource data type. # Use lists to preserve order. conversions = [] # To make a list of possible conversions. poss_out_types = [] # To make list of all output types based on probable input types. for in_type in in_types: for poss_out_type in CONVERSIONS[in_type]: if out_type is None: if (in_type, poss_out_type) not in conversions: conversions.append((in_type, poss_out_type)) if poss_out_type not in poss_out_types: poss_out_types.append(poss_out_type) elif poss_out_type is out_type: # (and user specified a preferred output type) if (in_type, poss_out_type) not in conversions: conversions.append((in_type, poss_out_type)) if poss_out_type not in poss_out_types: poss_out_types.append(poss_out_type) if out_type is not None and out_type not in poss_out_types: raise TypeError(f"The resource cannot be converted into the requested data type {out_type}.") return conversions
(in_types, out_type=None)
[ -0.02973504737019539, -0.025386229157447815, -0.039936650544404984, -0.060557298362255096, -0.03823336213827133, 0.02373730204999447, 0.019913965836167336, -0.029390765354037285, 0.07059582322835922, -0.016561750322580338, -0.003680640598759055, 0.050844937562942505, 0.006310316734015942, -0.04569883644580841, -0.0027406616136431694, 0.04428546875715256, -0.042437221854925156, 0.01113478746265173, 0.06102842092514038, -0.01786639541387558, 0.0014643287286162376, 0.020185766741633415, -0.010237843729555607, 0.002289924770593643, 0.0013137055793777108, 0.032761100679636, 0.011696510016918182, -0.0477282851934433, -0.07291518896818161, -0.005934325512498617, -0.03370334208011627, 0.029916247352957726, -0.006332966964691877, 0.006944519467651844, 0.009685181081295013, 0.018464358523488045, 0.042980823665857315, 0.06099218130111694, -0.06787780672311783, 0.012656874023377895, -0.006065696012228727, -0.06534099578857422, 0.009268419817090034, -0.011651209555566311, -0.014559482224285603, 0.011578729376196861, -0.07849617302417755, 0.015764467418193817, -0.057621847838163376, -0.05008389428257942, 0.04602499678730965, -0.08849845826625824, 0.01597284898161888, 0.02067500911653042, 0.0002705270890146494, -0.007202730979770422, -0.04283586144447327, 0.03866824507713318, 0.001861837925389409, -0.006129116285592318, -0.004887891001999378, 0.024625185877084732, -0.008371476083993912, -0.021617252379655838, -0.009046448394656181, 0.02747003734111786, -0.009164229035377502, -0.08697637170553207, -0.01119820773601532, 0.07084950059652328, -0.03863200545310974, -0.006432627327740192, -0.052584465593099594, 0.000564553658477962, 0.10640109330415726, -0.004228773061186075, 0.08298995345830917, -0.00599321536719799, 0.020602528005838394, -0.023157458752393723, 0.04135001823306084, 0.015175565145909786, -0.03236245736479759, -0.053128067404031754, 0.05490383505821228, 0.01140658836811781, -0.010237843729555607, -0.031148413196206093, -0.0267814751714468, 0.0008997750701382756, -0.06316658854484558, -0.08429460227489471, 0.01320047676563263, 0.0235742200165987, -0.005186872091144323, 0.01099888700991869, -0.05740440636873245, -0.05062749609351158, -0.029481366276741028, -0.023012498393654823, 0.023682940751314163, 0.0007774645928293467, -0.013245776295661926, -0.020095165818929672, 0.06385515630245209, -0.09654377400875092, -0.011814290657639503, -0.012620633468031883, -0.0015152915148064494, 0.023356780409812927, -0.054034069180488586, -0.0461699552834034, 0.030224289745092392, -0.07458224147558212, 0.0013182356487959623, -0.03714615851640701, -0.04747460409998894, -0.0026704464107751846, -0.03200005739927292, -0.014106480404734612, -0.02786867879331112, 0.02732507698237896, 0.052983105182647705, 0.01827409863471985, -0.05504879355430603, -0.01707817241549492, 0.041096337139606476, -0.014459821395576, 0.02718011662364006, 0.056317199021577835, 0.0003975091967731714, -0.0017644425388425589, -0.06345651298761368, 0.07429231703281403, -0.029408885166049004, 0.027270715683698654, -0.0866139680147171, 0.013445097021758556, 0.020838089287281036, -0.0235742200165987, 0.05305558815598488, 0.030441729351878166, 0.03852328285574913, -0.007882233709096909, 0.01359005831182003, 0.018881119787693024, 0.09879066050052643, 0.049793973565101624, -0.04185738041996956, 0.05544743686914444, -0.05236702412366867, 0.0025186906568706036, -0.046568598598241806, -0.026346592232584953, -0.010192543268203735, 0.015039663761854172, -0.01573728770017624, -0.025023827329277992, -0.07262527197599411, -0.04048025235533714, -0.02890152297914028, 0.03714615851640701, -0.02174409292638302, 0.00786864385008812, 0.07233534753322601, 0.01787545718252659, 0.017821095883846283, -0.025531189516186714, 0.0752345621585846, -0.03622203320264816, -0.03214501589536667, -0.014034000225365162, -0.01904420182108879, -0.03787096217274666, 0.033775825053453445, -0.011841470375657082, 0.022849418222904205, -0.03622203320264816, 0.012131392024457455, 0.04080641269683838, 0.01587318815290928, -0.04080641269683838, -0.04761956259608269, 0.02239641547203064, 0.004815410356968641, 0.047909483313560486, 0.013780319131910801, 0.005078151822090149, -0.0336308628320694, -0.04461162909865379, 0.017368094995617867, 0.012973975390195847, -0.007628552615642548, 0.05573735758662224, -0.018718039616942406, -0.04761956259608269, -0.07248030602931976, 0.06251426786184311, -0.03375770524144173, 0.014151780866086483, -0.017105352133512497, 0.022958137094974518, 0.033395301550626755, 0.02797739952802658, 0.015456425957381725, -0.01313705649226904, 0.01458666194230318, -0.02690831571817398, -0.002908272435888648, -0.0038482514210045338, 0.02558554895222187, -0.02092869020998478, 0.032181259244680405, -0.06628324091434479, -0.01852777972817421, 0.023773541674017906, 0.03665691614151001, -0.00898755807429552, -0.0642537921667099, 0.004407708998769522, -0.005830134730786085, -0.009032858535647392, 0.0073250411078333855, 0.04595251753926277, 0.05106237903237343, -0.0005393554456532001, -0.02933640591800213, 0.05341798812150955, 0.015927547588944435, -0.026545913890004158, -0.0007434894214384258, -0.03319597989320755, -0.010962646454572678, 0.02933640591800213, -0.00355153507553041, 0.027397556230425835, 0.028992123901844025, 0.009667061269283295, 0.010690845549106598, 0.03636699542403221, -0.012403192929923534, 0.02640095353126526, -0.0730963945388794, -0.022305814549326897, -0.000661382800899446, -0.03424694761633873, 0.038740724325180054, -0.0034088394604623318, -0.033648982644081116, 0.006654598284512758, 0.012095151469111443, -0.037001196295022964, -0.0013725958997383714, -0.0673704445362091, -0.025531189516186714, -0.07943841814994812, -0.11894018948078156, -0.061644501984119415, 0.04051649197936058, -0.023646701127290726, 0.03390266373753548, 0.04048025235533714, 0.016887912526726723, 0.0629853904247284, -0.020095165818929672, -0.11618593335151672, -0.03906688839197159, -0.011687450110912323, -0.02134545147418976, 0.002412235364317894, 0.042074818164110184, 0.028557242825627327, -0.0133907375857234, 0.001382788410410285, 0.008507376536726952, 0.008761057630181313, 0.0651235580444336, 0.02159913256764412, 0.00792300421744585, 0.02574862912297249, -0.0003660821821540594, 0.02332053892314434, -0.017531175166368484, 0.012674993835389614, 0.02477014623582363, -0.043923068791627884, -0.0159909687936306, -0.009685181081295013, 0.012856194749474525, -0.006722548510879278, 0.06621076166629791, -0.016498330980539322, 0.026056671515107155, -0.0333409421145916, 0.01352663803845644, 0.0520046204328537, 0.0397554486989975, -0.12372388690710068, 0.07418359816074371, -0.004919601138681173, -0.025349987670779228, 0.01973276399075985, 0.07653920352458954, 0.003768976079300046, -0.03252553939819336, -0.015583266504108906, 0.005639873910695314, -0.09132518619298935, -0.018881119787693024, 0.03627639636397362, -0.027524396777153015, -0.030568569898605347, 0.004942250903695822, -0.019116681069135666, -0.007130250334739685, -0.020493807271122932, 0.024045342579483986, 0.08936822414398193, 0.013209536671638489, 0.022468896582722664, -0.02212461456656456, 0.05827416852116585, 0.024607064202427864, 0.011026066727936268, -0.01891736127436161, 0.024099702015519142, -0.060049936175346375, 0.02507818676531315, 0.08110546320676804, -0.024480223655700684, -0.054034069180488586, -0.00892866775393486, -0.026690874248743057, 0.04424922913312912, 0.023139338940382004, 0.005576453637331724, 0.056969523429870605, -0.041784897446632385, 0.021798452362418175, 0.015048724599182606, 0.015411125496029854, 0.022686336189508438, -0.0229400172829628, 0.014867523685097694, -0.05809296667575836, 0.05001141503453255, -0.026165392249822617, 0.012348832562565804, -0.028883403167128563, 0.0615357831120491, -0.02199777401983738, -0.0029626325704157352, 0.00847566593438387, 0.048453085124492645, -0.01120726764202118, 0.01920728199183941, -0.006813148967921734, -0.06958109885454178, 0.07287894934415817, -0.021019289270043373, 0.06342027336359024, 0.03640323504805565, 0.01358099840581417, -0.026853954419493675, -0.0009133651619777083, -0.007542482111603022, 0.02386414259672165, -0.006500577554106712, 0.03036925010383129, 0.006505107972770929, 0.012339772656559944, 0.0514247789978981, 0.01352663803845644, -0.05095365643501282, -0.022613856941461563, 0.03823336213827133, -0.004833530634641647, 0.03575091436505318, -0.06722548604011536, 0.04261842370033264, -0.05436023324728012, 0.016217470169067383, -0.04689475893974304, 0.057259444147348404, 0.02426278404891491, -0.05320054665207863, 0.004520959220826626, 0.0009705566335469484, 0.0397554486989975, 0.0636739507317543, -0.004330698400735855, 0.019497202709317207, 0.03228997811675072, -0.024697665125131607, 0.021236730739474297, -0.046967241913080215, -0.011705569922924042, 0.052983105182647705, 0.01365347858518362, -0.021164249628782272, -0.020946810021996498, 0.019406603649258614, -0.05254822596907616, 0.03250741958618164, -0.06258674710988998, 0.02214273437857628, 0.0651235580444336, 0.04330698400735855, -0.004869770724326372, 0.003870901418849826, -0.015646686777472496, -0.009902622550725937, 0.03903064504265785, -0.06490612030029297, -0.03569655120372772, 0.0397554486989975, -0.04196609929203987, 0.04504651203751564, 0.002797286957502365, -0.00825369544327259, 0.05450519174337387, -0.03812464326620102, 0.07798881083726883, 0.032579898834228516, 0.044865310192108154, -0.050989896059036255, 0.03680187836289406, 0.0376172810792923, -0.015202744863927364, 0.021689733490347862, 0.014378281310200691, 0.019497202709317207, -0.025114426389336586, -0.1270579844713211, 0.05196838080883026, 0.022034013643860817, 0.018736159428954124, 0.01627182960510254, -0.021417930722236633, -0.007053240202367306, -0.01426050066947937, 0.03321410343050957, -0.013146116398274899, -0.0035719203297048807, 0.005576453637331724, -0.022197095677256584, -0.07516208291053772, 0.0376172810792923, -0.05983249470591545, -0.05345422774553299, 0.013635357841849327, -0.012548153288662434, 0.011977370828390121, -0.04229225963354111, 0.06081097945570946, 0.034065745770931244, -0.0007825608481653035, 0.05454143136739731, -0.0642537921667099, 0.025150667876005173, 0.05533871799707413, -0.010817686095833778, 0.051787182688713074, 0.006840329151600599, -0.0015175564913079143, 0.007383931428194046, 0.0314926952123642, -0.015628566965460777, 0.00449830899015069, -0.008181215263903141, 0.01956968382000923, 0.013753138482570648, 0.05849160999059677, 0.010645545087754726, 0.011026066727936268, -0.0075107719749212265, 0.0010736145777627826, 0.010056642815470695, -0.014740683138370514, 0.010047582909464836, 0.05251198261976242, -0.015701046213507652, 0.011297868564724922, -0.000738393166102469, -0.06468867510557175, -0.013227656483650208, 0.032851699739694595, -0.013173296116292477, -0.04533643275499344, -0.015963789075613022, -0.02933640591800213, 0.02359233982861042, 0.033395301550626755, -0.025259388610720634, 0.0037848311476409435, -0.01827409863471985, -0.009005678817629814, -0.02890152297914028, 0.028992123901844025, 0.04954029247164726, 0.0743647962808609, -0.03000684827566147, -0.04892420768737793, -0.013834679499268532, 0.02507818676531315, 0.03183697536587715, -0.007488121744245291, -0.014867523685097694, -0.023393020033836365, -0.0014190286165103316, -0.04530019313097, 0.03103969246149063, 0.08733877539634705, 0.008611566387116909, 0.0021993243135511875, -0.012421312741935253, 0.05863657221198082, -0.03187321498990059, -0.018210677430033684, 0.02531374804675579, -0.057513125240802765, 0.015257105231285095, -0.011352228932082653, 0.044068027287721634, 0.02944512479007244, 0.022867538034915924, -0.01773049496114254, -0.036330755800008774, -0.012484733015298843, -0.03466370701789856, 0.0036829058080911636, -0.026872074231505394, -0.017540235072374344, -0.010301264002919197, -0.002502835588529706, -0.02757875807583332, -0.009893562644720078, 0.012321652844548225, 0.017159713432192802, 0.01985960453748703, 0.015275225043296814, 0.049649011343717575, 0.012058911845088005, 0.01192301046103239, 0.056425921618938446, -0.017105352133512497, -0.016597989946603775, 0.0038912866730242968, -0.0032027235720306635, -0.012049851007759571, -0.04196609929203987, -0.037653520703315735, 0.011152907274663448, 0.06142706051468849, -0.0038912866730242968, -0.0018720304360613227, 0.03653007745742798, 0.01598190888762474, -0.02225145511329174, -0.0005639874143525958, -0.033250343054533005, 0.00703058997169137, -0.021236730739474297, -0.015519846230745316, -0.069399893283844, -0.01758553460240364, 0.0139252794906497, 0.05943385511636734, -0.032851699739694595, -0.017694255337119102, 0.04066145420074463, -0.028158599510788918, 0.0010028330143541098, -0.038559526205062866, 0.0083352355286479, 0.020475687459111214, -0.000040097747842082754, -0.04395930841565132, 0.0346093475818634, 0.023157458752393723, -0.0009445090545341372, 0.007651202846318483, -0.01918916217982769, -0.05787552893161774, 0.04236474260687828, -0.02531374804675579, -0.02933640591800213, -0.030296768993139267, 0.004992081318050623, 0.031239014118909836, -0.011424709111452103, 0.02466142550110817, 0.002688566455617547, 0.04569883644580841, -0.01906232163310051, -0.02853912115097046, 0.01694227196276188, 0.061100900173187256, -0.036729395389556885, -0.03236245736479759, -0.03587775304913521, 0.026346592232584953, 0.02239641547203064, -0.004670449998229742, 0.0535629503428936, -0.007315981201827526, -0.018237857148051262, -0.07994578033685684, 0.005173282232135534, 0.030713530257344246, 0.01771237514913082, 0.014034000225365162, 0.01852777972817421, 0.0074111116118729115, 0.05758560448884964, -0.03142021596431732, -0.06041233614087105, -0.029137084260582924, -0.03263425827026367, 0.00866592675447464, 0.0040906076319515705, 0.03681999817490578, 0.007143840659409761, 0.03185509517788887, -0.03772599995136261, 0.04732964187860489, -0.035769034177064896, -0.030822250992059708, 0.0073295715264976025, -0.004289928358048201, 0.04624243825674057, -0.01705099269747734, 0.07762641459703445, 0.014740683138370514, -0.06628324091434479, 0.03776223957538605, 0.015655746683478355, -0.023936621844768524, 0.0013091756263747811, -0.01987772434949875, 0.030188048258423805, 0.0227950569242239, 0.025929830968379974, -0.025223147124052048, 0.03613143414258957, 0.005472263321280479, 0.0058256047777831554, -0.06650068610906601, -0.0003802384890150279, 0.028086120262742043, 0.004860710818320513, 0.09328215569257736, 0.04602499678730965, -0.000161806630785577, -0.007759923115372658, 0.012611573562026024, -0.012004551477730274, -0.003809746354818344, 0.009368079714477062, 0.0235742200165987, -0.014034000225365162, 0.03816088289022446, 0.030822250992059708, -0.02078372798860073, -0.03776223957538605, 0.013182356022298336, -0.025766750797629356, 0.010953586548566818, -0.03181885555386543, 0.03214501589536667, -0.0019026080844923854, -0.012946795672178268, 0.08356979489326477, -0.015963789075613022, -0.03473618999123573, 0.03957425057888031, -0.0037848311476409435, 0.0413137748837471, -0.001542471582069993, -0.028557242825627327, -0.0020056660287082195, -0.020874328911304474, -0.03580527380108833, 0.0661020427942276, -0.02174409292638302, -0.0354791097342968, 0.014613842591643333, -0.04932285100221634, -0.006292196922004223, -0.02053004689514637, 0.05146101862192154, 0.018754279240965843, 0.008031724020838737, -0.09393448382616043, -0.03721863776445389, 0.00279955193400383, -0.07414735853672028, -0.0237191803753376, -0.00580295454710722, 0.0277055986225605, 0.09132518619298935, -0.04932285100221634, 0.01060024555772543, -0.003426959738135338, -0.004992081318050623, -0.011225388385355473, -0.01351757813245058, -0.03410198539495468, 0.022994378581643105, 0.0040521021001040936, -0.022650096565485, 0.04174865782260895, 0.022559495642781258, -0.019787125289440155, -0.04946780949831009, -0.0658121183514595, -0.014813163317739964, 0.09734105318784714, -0.000404870486818254, 0.026038551703095436, 0.029880007728934288, -0.030550450086593628, 0.054831355810165405, 0.006419037468731403, -0.03808840364217758, 0.04225602000951767, -0.0013680658303201199, -0.020874328911304474, 0.012267292477190495, -0.02011328563094139, 0.018627438694238663, 0.033268462866544724, -0.027796199545264244, 0.030604811385273933, 0.023809781298041344, -0.012856194749474525, -0.012819955125451088, -0.00846660602837801, -0.022197095677256584, -0.0267814751714468, -0.04439419135451317, 0.025947950780391693, -0.002400910248979926, 0.002776901936158538, -0.04968525096774101, -0.014568542130291462, 0.07302391529083252, 0.0025979659985750914, -0.00023980789410416037, -0.0104009248316288, -0.015574206598103046, -0.02747003734111786, -0.02027636580169201, -0.043778106570243835, 0.05653464049100876, -0.012729354202747345, 0.0012559478636831045, -0.018844880163669586, -0.043524425476789474, -0.017032872885465622, -0.008439426310360432, 0.049649011343717575, 0.00899208802729845, 0.0023759950418025255, 0.03145645558834076, 0.019769003614783287, 0.0002695361617952585, -0.009802961722016335 ]
20,533
pyobjectify.pyobjectify
get_resource_types
Get possible resource types of the resource. The end-user does not have to interface with this, but it is provided for more granular operations. Args: resource (:obj:`Resource`): The Resource object for the resource. Returns: list: A list of possible resource types of the resource. Raises: TypeError: The resource is of a type that is not supported.
def get_resource_types(resource): """ Get possible resource types of the resource. The end-user does not have to interface with this, but it is provided for more granular operations. Args: resource (:obj:`Resource`): The Resource object for the resource. Returns: list: A list of possible resource types of the resource. Raises: TypeError: The resource is of a type that is not supported. """ possible = list(InputType) try: _ = loads(resource.plaintext) except Exception: possible.remove(InputType.JSON) pass try: dicts = DictReader(resource.response) if resource.connectivity is Connectivity.LOCAL: resource.response.seek(0, 0) # Ensure that each row has the same number of fields nums_fields = set([len(d.items()) for d in list(dicts)]) if resource.connectivity is Connectivity.LOCAL: resource.response.seek(0, 0) assert len(nums_fields) == 1 # Ensure that the number of fields is greater than 1 (num_fields,) = nums_fields assert num_fields > 1 # Data that have only one column will not be interpreted as CSVs except Exception: possible.remove(InputType.CSV) try: dicts = DictReader(resource.response, delimiter="\t") if resource.connectivity is Connectivity.LOCAL: resource.response.seek(0, 0) # Ensure that each row has the same number of fields nums_fields = set([len(d.items()) for d in list(dicts)]) if resource.connectivity is Connectivity.LOCAL: resource.response.seek(0, 0) assert len(nums_fields) == 1 # Ensure that the number of fields is greater than 1 (num_fields,) = nums_fields assert num_fields > 1 # Data that have only one column will not be interpreted as TSVs except Exception: possible.remove(InputType.TSV) try: _ = parse(resource.plaintext) assert resource.plaintext[0] == "<" except Exception: possible.remove(InputType.XML) try: df = read_excel(resource.url, sheet_name=None) sheets_dict = {} for sheet_name, df in df.items(): sheets_dict[sheet_name] = df.to_dict() except Exception: possible.remove(InputType.XLSX) if len(possible) == 0: raise TypeError("The type of the resource is not supported.") return possible
(resource)
[ 0.031488001346588135, -0.017559146508574486, -0.054034024477005005, -0.07856715470552444, -0.008593281731009483, 0.010289010591804981, 0.02759021520614624, -0.003990932367742062, 0.011387651786208153, -0.03521382808685303, 0.015982836484909058, 0.05774074047803879, -0.025794176384806633, -0.03712450712919235, -0.016622914001345634, 0.009820894338190556, -0.060301054269075394, 0.06198245286941528, 0.03634113073348999, -0.04734664410352707, -0.010680699720978737, 0.04941017925739288, 0.010451418347656727, 0.02311922423541546, 0.05460722744464874, 0.07726789265871048, 0.031182292848825455, -0.0411178283393383, 0.009462641552090645, -0.013737787492573261, -0.021342292428016663, 0.0011231214739382267, -0.016336312517523766, 0.026596661657094955, -0.0291378665715456, 0.01892528310418129, 0.011540506035089493, 0.0484166257083416, -0.04524489492177963, 0.004014815669506788, -0.08315278589725494, -0.012696467339992523, -0.027360934764146805, -0.06240279972553253, -0.013890641741454601, -0.010690253227949142, -0.05445437133312225, -0.02067355439066887, -0.02927161380648613, -0.09484614431858063, 0.024590447545051575, 0.002796757500618696, -0.03664683923125267, 0.020578021183609962, -0.040697477757930756, -0.024915263056755066, -0.060644976794719696, 0.08170066773891449, -0.015581592917442322, 0.0009105583303608, 0.020654447376728058, 0.010241243056952953, -0.04325778782367706, -0.018848855048418045, -0.013728233985602856, -0.014368311502039433, -0.006505864672362804, -0.05132085829973221, -0.013241010718047619, 0.047728780657052994, -0.033035654574632645, 0.05613576993346214, -0.030914798378944397, 0.0027274952735751867, 0.038996972143650055, -0.046353090554475784, 0.042073167860507965, 0.013613592833280563, -0.0028373594395816326, -0.03508007898926735, 0.06255565583705902, 0.026310060173273087, 0.0031335148960351944, -0.06943409889936447, 0.002624796237796545, 0.01258182618767023, 0.02424652688205242, 0.002062340034171939, -0.040850333869457245, 0.004363514948636293, -0.04967767372727394, -0.03525204211473465, -0.020272312685847282, -0.0021948933135718107, 0.014817321673035622, -0.04287565499544144, -0.045741673558950424, -0.053881168365478516, -0.023845283314585686, -0.038366448134183884, -0.023386720567941666, 0.04566524550318718, -0.014053049497306347, -0.018457166850566864, 0.009973748587071896, -0.08124209940433502, -0.0030188739765435457, 0.047423072159290314, -0.007122058887034655, 0.028736623004078865, -0.026023458689451218, -0.0564032681286335, 0.007680932525545359, -0.012390757910907269, 0.03574881702661514, -0.007036078255623579, -0.026577554643154144, 0.0011099855182692409, -0.01096730213612318, -0.05365188792347908, 0.0064437673427164555, 0.04218780994415283, 0.0552186444401741, -0.013967068865895271, 0.030551768839359283, 0.027360934764146805, -0.006606175098568201, -0.012600933201611042, -0.012600933201611042, 0.07310260832309723, -0.0411178283393383, -0.008550291880965233, -0.038232702761888504, 0.0791785717010498, -0.011960855685174465, -0.0025674758944660425, -0.07986641675233841, 0.02097926288843155, -0.006720816250890493, -0.03819448873400688, 0.05560078099370003, 0.053575459867715836, 0.002844524569809437, -0.011464078910648823, -0.054760079830884933, -0.008784350007772446, 0.05013623833656311, -0.012018175795674324, -0.024800622835755348, 0.018629128113389015, -0.022622447460889816, -0.024800622835755348, -0.04000963270664215, -0.03339868038892746, -0.007833787240087986, 0.01341297198086977, -0.041308894753456116, -0.07088621705770493, -0.02071176841855049, -0.07677111029624939, -0.06018641218543053, 0.003620738163590431, -0.014998836442828178, -0.0027251068968325853, 0.023042798042297363, 0.04639130458235741, -0.03634113073348999, -0.07623612135648727, 0.03200388699769974, -0.007231922820210457, -0.040086060762405396, -0.0013207573210820556, -0.010298564098775387, -0.018476273864507675, 0.0426463708281517, 0.03752575069665909, 0.016775768250226974, -0.04998338222503662, 0.05659433454275131, 0.01938384585082531, 0.016126137226819992, -0.04493918642401695, -0.028889477252960205, 0.02162889391183853, 0.005254369229078293, -0.0009117525187321007, 0.01829475909471512, -0.02329118549823761, -0.0063291266560554504, 0.017520932480692863, -0.02086462266743183, 0.0021925049368292093, 0.007862446829676628, 0.01639363169670105, -0.011722019873559475, -0.03504186496138573, 0.005564854945987463, 0.02514454536139965, -0.009792233817279339, 0.021705321967601776, -0.054492585361003876, 0.05965142324566841, 0.03521382808685303, 0.024494914337992668, -0.028469128534197807, -0.02147603966295719, -0.012524506077170372, -0.03851930424571037, -0.06909018009901047, 0.005082407966256142, -0.025068119168281555, -0.0011547671165317297, 0.014616699889302254, 0.0022593787871301174, 0.03846198320388794, 0.009706253185868263, 0.012725126929581165, -0.03829002380371094, -0.015791768208146095, -0.0698162391781807, 0.011444971896708012, 0.060453906655311584, -0.028583768755197525, -0.015237671323120594, 0.05277297645807266, -0.050174448639154434, -0.04551239311695099, 0.028602875769138336, -0.04386920854449272, -0.0031167962588369846, -0.03615006059408188, -0.027934137731790543, 0.04149996489286423, 0.03811806067824364, -0.028602875769138336, 0.01625988446176052, 0.04367813840508461, 0.011158369481563568, 0.024915263056755066, -0.007016971241682768, 0.0027251068968325853, -0.0013004563516005874, -0.063205286860466, -0.08208280056715012, -0.07291153818368912, -0.041156042367219925, 0.015247224830091, 0.025220973417162895, -0.054760079830884933, -0.10386455059051514, 0.007929321378469467, -0.02193460427224636, -0.01409126352518797, -0.08429919183254242, -0.008091729134321213, -0.07470757514238358, -0.0395892858505249, -0.045168470591306686, 0.04490097239613533, -0.046200238168239594, -0.009992854669690132, 0.0008317427709698677, 0.04119425639510155, 0.09110121428966522, -0.05323153734207153, -0.07023658603429794, -0.004564136266708374, 0.05227619782090187, 0.005966097582131624, 0.001126703922636807, 0.044671691954135895, 0.050633013248443604, -0.029921244829893112, 0.0024146216455847025, 0.01780753582715988, 0.0018617185996845365, 0.060988899320364, 0.023424934595823288, 0.044557053595781326, 0.006587068550288677, -0.05166478082537651, 0.016135690733790398, 0.03735378757119179, -0.014186796732246876, 0.05506579205393791, -0.0778028815984726, -0.003250543959438801, -0.012935302220284939, -0.06832590699195862, 0.030914798378944397, 0.02176264300942421, 0.009424427524209023, -0.011397204361855984, -0.030532661825418472, 0.009983302094042301, 0.06901375204324722, 0.020788196474313736, -0.09721538424491882, 0.060148198157548904, -0.03309297189116478, -0.011855768039822578, 0.002823029411956668, 0.09331759810447693, -0.020425166934728622, -0.06549809873104095, -0.044365983456373215, 0.024800622835755348, -0.06943409889936447, -0.055409714579582214, 0.019871069118380547, 0.0007415825966745615, 0.0438309945166111, 0.046047382056713104, -0.03660862520337105, -0.00981134083122015, 0.05292582884430885, -0.0033460778649896383, 0.1027945727109909, -0.027934137731790543, 0.022278526797890663, -0.023252973333001137, 0.06645344197750092, 0.02896590530872345, -0.025870604440569878, 0.014205903746187687, -0.026157205924391747, 0.00898019503802061, -0.015113476663827896, -0.014635806903243065, 0.0071411654353141785, -0.008244583383202553, 0.029004119336605072, -0.01233343780040741, 0.058619655668735504, 0.032405126839876175, 0.019584467634558678, 0.025182759389281273, -0.0236160010099411, 0.0038906217087060213, 0.018696000799536705, 0.047881633043289185, -0.02040605992078781, 0.04081211984157562, -0.03989499434828758, -0.01263914629817009, -0.01263914629817009, 0.05651790648698807, 0.022106565535068512, 0.0012186553794890642, 0.03294011950492859, -0.014654913917183876, 0.005894447211176157, 0.031048545613884926, 0.041156042367219925, -0.019498486071825027, -0.04673522710800171, -0.03467883914709091, -0.033666178584098816, 0.028086991980671883, 0.049601245671510696, 0.061829596757888794, 0.019192777574062347, -0.03200388699769974, 0.021418720483779907, -0.03832823410630226, -0.01990928314626217, 0.034411340951919556, -0.0036016313824802637, 0.027781283482909203, -0.0178361963480711, -0.011779340915381908, 0.013737787492573261, -0.0016790098743513227, -0.08116567879915237, 0.023558681830763817, 0.009782680310308933, 0.04658237099647522, 0.0023990971967577934, -0.04035355523228645, 0.019345631822943687, 0.007380000315606594, 0.027322720736265182, -0.010317671112716198, -0.01938384585082531, -0.019851962104439735, -0.05051837116479874, -0.032099418342113495, -0.00968236941844225, -0.036379341036081314, 0.035653285682201385, 0.03175549581646919, 0.0006221650983206928, 0.009018408134579659, 0.01416769064962864, 0.017387185245752335, -0.018590914085507393, -0.05193227529525757, 0.02697879821062088, 0.012266564182937145, 0.017759768292307854, -0.014530719257891178, 0.027208080515265465, -0.026405593380331993, 0.04470990598201752, -0.05223798379302025, 0.027991458773612976, 0.08284707367420197, -0.01218058355152607, -0.030494449660182, -0.012935302220284939, 0.07810858637094498, -0.03213763236999512, 0.0180081557482481, -0.05781716853380203, -0.023081012070178986, 0.045588817447423935, 0.012839768081903458, 0.08666843175888062, 0.005765476264059544, 0.04165281727910042, 0.04933375120162964, 0.0007368059013970196, 0.04413670301437378, 0.06698843091726303, -0.006954874377697706, 0.008894214406609535, 0.010002408176660538, 0.018676893785595894, -0.009214253164827824, 0.0071793789975345135, 0.02130407840013504, 0.020023923367261887, -0.0057129324413836, -0.12342990934848785, -0.01341297198086977, -0.036111846566200256, -0.012381204403936863, -0.00625269953161478, -0.005469320807605982, -0.012323884293437004, 0.027246292680501938, -0.01960357464849949, 0.006396000273525715, 0.006009087897837162, -0.007150718942284584, -0.020749982446432114, -0.04432776942849159, 0.05667076259851456, -0.04318136349320412, -0.047117363661527634, -0.047117363661527634, -0.01188442762941122, 0.046047382056713104, -0.020444273948669434, 0.01964178867638111, 0.04241709038615227, 0.04677344113588333, 0.043601710349321365, -0.035806138068437576, 0.011979961767792702, 0.07665646821260452, 0.010508738458156586, 0.047423072159290314, -0.02848823554813862, -0.016508273780345917, 0.003236213931813836, -0.005980427842587233, 0.001120136003009975, 0.05284940078854561, 0.02638648822903633, -0.022928157821297646, 0.08032497763633728, 0.03620738163590431, -0.00563650531694293, 0.009247690439224243, 0.0567471869289875, 0.07948427647352219, 0.04302850738167763, -0.025220973417162895, -0.004958213772624731, 0.07470757514238358, -0.048378411680459976, 0.020902836695313454, -0.02541203983128071, -0.027781283482909203, -0.04704093560576439, 0.017425399273633957, -0.0006561990594491363, -0.006935767363756895, -0.004392175003886223, -0.0054167769849300385, 0.019192777574062347, 0.017014604061841965, 0.04004784673452377, 0.000014964503861847334, -0.0242083128541708, 0.03678058460354805, 0.015658020973205566, 0.02222120575606823, 0.05307868495583534, 0.06580381095409393, -0.05961320921778679, -0.04245530441403389, -0.01341297198086977, 0.01822788454592228, 0.0441749170422554, 0.05456901341676712, 0.021399613469839096, 0.03658951818943024, -0.016747107729315758, -0.0530022569000721, 0.015419185161590576, 0.11242439597845078, 0.032252274453639984, -0.03114408068358898, -0.00586578669026494, 0.024915263056755066, 0.028545554727315903, 0.021953709423542023, 0.02390260435640812, -0.014578486792743206, -0.018648235127329826, 0.05013623833656311, 0.002758543938398361, 0.00818726234138012, 0.04444241151213646, -0.018610021099448204, -0.05231441184878349, -0.029080545529723167, 0.013604040257632732, 0.04551239311695099, 0.0038309129886329174, -0.0073561170138418674, -0.068287692964077, -0.004568913020193577, 0.011015068739652634, -0.03829002380371094, -0.035481322556734085, 0.033494215458631516, 0.002135184593498707, 0.028755730018019676, 0.0002879454114008695, -0.006501087918877602, -0.001834252616390586, 0.03131604194641113, -0.06721771508455276, 0.018715107813477516, -0.021724428981542587, -0.025660429149866104, -0.03420116752386093, 0.01637452468276024, -0.003876291448250413, -0.008005748502910137, -0.017969943583011627, -0.015982836484909058, 0.00759017514064908, 0.03253887593746185, -0.01892528310418129, 0.012534059584140778, 0.003897786606103182, 0.005311689805239439, -0.03429670259356499, -0.05330796539783478, 0.005349903367459774, -0.0008192039676941931, -0.014559379778802395, -0.009238136932253838, 0.06511596590280533, -0.04337242990732193, -0.02590881660580635, 0.054034024477005005, -0.009515184909105301, 0.04425134137272835, -0.009338446892797947, 0.07222369313240051, 0.0057463692501187325, -0.0008974223746918142, 0.00566516537219286, 0.026443807408213615, 0.01540007907897234, 0.013346098363399506, 0.010881321504712105, -0.026787729933857918, -0.08980194479227066, 0.02438027411699295, 0.005426330491900444, 0.004910447169095278, 0.019565360620617867, 0.011597826145589352, 0.030609089881181717, -0.03966571018099785, 0.05002159625291824, 0.03311207890510559, -0.026023458689451218, 0.00708384532481432, 0.0441749170422554, 0.03339868038892746, -0.008273242972791195, -0.05712932348251343, 0.0016993108438327909, -0.05437794700264931, 0.047461286187171936, -0.03299744054675102, -0.04941017925739288, 0.06419883668422699, -0.022928157821297646, -0.01929786615073681, -0.029386254027485847, 0.009448311291635036, -0.0014712234260514379, 0.04172924533486366, -0.05701468512415886, -0.021686214953660965, -0.02588971145451069, 0.044213131070137024, -0.0038858449552208185, -0.05991891771554947, -0.027246292680501938, 0.0472320020198822, -0.0637020617723465, -0.005383340176194906, 0.03939821571111679, 0.034869905561208725, 0.022125670686364174, -0.07784109562635422, 0.04677344113588333, -0.07948427647352219, -0.020348738878965378, -0.04769056662917137, -0.043448857963085175, 0.037181828171014786, -0.04948660731315613, 0.052352625876665115, 0.030781051144003868, -0.05563899502158165, 0.0419585257768631, 0.031182292848825455, -0.00890376791357994, 0.014502059668302536, 0.026634875684976578, 0.02772396244108677, 0.04234066233038902, 0.0053403498604893684, -0.012811107560992241, 0.00013635984214488417, 0.036111846566200256, 0.02206835150718689, -0.05407223850488663, 0.02132318541407585, 0.0089610880240798, -0.03385724499821663, 0.08422276377677917, 0.015237671323120594, -0.015438292175531387, -0.00015867597539909184, 0.01921188458800316, -0.0036422333214432, -0.010728467255830765, -0.0058180196210742, -0.02086462266743183, 0.03188924491405487, 0.03389545902609825, 0.0468880794942379, 0.006018641404807568, 0.006496311165392399, -0.01125390361994505, -0.005894447211176157, -0.02545025385916233, 0.013069049455225468, 0.006458097603172064, 0.02436116710305214, 0.02835448831319809, 0.07310260832309723, 0.0030690294224768877, -0.02543114684522152, 0.06446633487939835, -0.03620738163590431, 0.02837359346449375, 0.013078602962195873, -0.00788155384361744, 0.02636738121509552, -0.017253438010811806, -0.05025087669491768, 0.04490097239613533, 0.0022844565100967884, -0.009868660941720009, 0.019116351380944252, -0.05460722744464874, -0.011530952528119087, -0.025851497426629066, 0.010279457084834576, -0.010785787366330624, 0.013776000589132309, 0.003092912957072258, -0.03850019723176956, -0.04302850738167763, -0.027227185666561127, 0.003580136224627495, 0.01892528310418129, 0.04749950021505356, 0.04941017925739288, -0.048034489154815674, 0.004289476200938225, 0.026023458689451218, -0.024494914337992668, 0.008373553864657879, -0.03905429318547249, -0.017473166808485985, 0.05353724583983421, -0.014072156511247158, 0.015457399189472198, 0.052352625876665115, 0.02653934247791767, -0.03152621537446976, -0.033169399946928024, -0.008029631339013577, -0.0031430681701749563, 0.04662058502435684, 0.017339419573545456, -0.009562952443957329, 0.024342060089111328, -0.012085049413144588, 0.022622447460889816, 0.05262012034654617, -0.004346796311438084, 0.04612381011247635, -0.0356723926961422, 0.0426463708281517, 0.018676893785595894, -0.007914991118013859, 0.02974928356707096, 0.002691670088097453, -0.09048978984355927, 0.003229048801586032, 0.05609755590558052, -0.013957515358924866, 0.04149996489286423, 0.02191549725830555, 0.02344403974711895, -0.027685750275850296, -0.019183224067091942, 0.04012427479028702, -0.04738485813140869, -0.016202563419938087, -0.033360470086336136, 0.024342060089111328, 0.07856715470552444, -0.0011589466594159603, -0.007251029834151268, 0.03402920812368393, 0.03267262503504753, -0.06526882201433182, -0.021724428981542587, 0.00030496239196509123, 0.02346314676105976, -0.0038476313930004835, 0.010632933117449284, 0.0032600972335785627, -0.03387635201215744, 0.02239316701889038, -0.009104388765990734, 0.00455697113648057, 0.01341297198086977, 0.010107495822012424, 0.031659964472055435, -0.02006213739514351, -0.006415107287466526, -0.02986392378807068 ]
20,535
pyobjectify.pyobjectify
retrieve_resource
Retrieves the resource at the URL using the connectivity type and stores it in a Resource object. The end-user does not have to interface with this, but it is provided for more granular operations. Args: url (str): The URL to a resource. connectivity (:obj:`Connectivity`): An attribute in the enumeration Connectivity. The calculated connectivity type of the resource. Returns: Resource: The Resource object for the resource at the URL specified. Raises: TypeError: The connectivity type is not supported.
def retrieve_resource(url, connectivity): """ Retrieves the resource at the URL using the connectivity type and stores it in a Resource object. The end-user does not have to interface with this, but it is provided for more granular operations. Args: url (str): The URL to a resource. connectivity (:obj:`Connectivity`): An attribute in the enumeration Connectivity. The calculated connectivity type of the resource. Returns: Resource: The Resource object for the resource at the URL specified. Raises: TypeError: The connectivity type is not supported. """ if not isinstance(connectivity, Connectivity): raise TypeError(f"The connectivity type {connectivity} is not supported.") return Resource(url, connectivity)
(url, connectivity)
[ 0.01993345282971859, -0.045402031391859055, -0.06687691062688828, -0.02448766864836216, 0.030092857778072357, 0.012786837294697762, 0.053739748895168304, 0.002616484649479389, 0.006787533406168222, -0.054755691438913345, 0.01667543686926365, 0.05542130768299103, 0.013575066812336445, 0.001561132725328207, -0.022280625998973846, -0.008477848023176193, -0.029322145506739616, 0.030600829049944878, -0.01266422402113676, -0.05216329172253609, 0.022876176983118057, 0.013636373914778233, 0.055281177163124084, -0.0019683847203850746, 0.0012392723001539707, 0.05755828320980072, 0.036889150738716125, -0.00045624267659150064, -0.007645828183740377, 0.007904192432761192, 0.026396937668323517, 0.061376821249723434, -0.008793139830231667, 0.05671750754117966, -0.013645132072269917, 0.09914178401231766, 0.00983535498380661, 0.09514808654785156, -0.06911898404359818, -0.02792084775865078, -0.07973381131887436, -0.009134706109762192, 0.00564897945150733, 0.0015020155115053058, 0.03480472043156624, 0.029532339423894882, -0.036363665014505386, -0.04494661092758179, -0.054160140454769135, -0.07055531442165375, 0.03692418336868286, 0.05121741443872452, 0.011166587471961975, 0.0058416579850018024, -0.02266598306596279, -0.0405675545334816, -0.04820462688803673, 0.0645647719502449, -0.0388159342110157, 0.00228805560618639, -0.027360329404473305, -0.02560870721936226, -0.03720444068312645, 0.05219832435250282, -0.0469084270298481, 0.00410317350178957, -0.03976180776953697, -0.015458060428500175, 0.019898420199751854, 0.0184796079993248, 0.030635861679911613, 0.0505167655646801, -0.03751973435282707, -0.03166931867599487, 0.04974605143070221, -0.05331936106085777, 0.05895958095788956, -0.059134744107723236, -0.016114918515086174, -0.0012502198806032538, -0.018742350861430168, -0.014179376885294914, 0.01452094316482544, -0.011534428223967552, -0.004109742119908333, -0.007904192432761192, 0.00880189798772335, -0.06771768629550934, -0.06579090654850006, 0.05009637773036957, -0.024172376841306686, 0.004000265616923571, -0.06607116758823395, -0.011595734395086765, 0.042914729565382004, 0.011008941568434238, -0.03324577584862709, -0.008451574482023716, 0.041688594967126846, -0.03284290432929993, 0.006831324193626642, -0.021877752617001534, -0.09129451960325241, -0.007588900625705719, -0.033105649054050446, -0.055281177163124084, 0.03857070580124855, 0.06382908672094345, -0.01276056282222271, 0.032002124935388565, 0.015606948174536228, -0.011849720031023026, -0.029935212805867195, 0.06502019613981247, 0.028831690549850464, -0.033018067479133606, -0.02835875377058983, -0.004050625022500753, -0.02473289705812931, -0.04946579411625862, -0.07349804043769836, 0.007330536376684904, 0.013925391249358654, 0.0022179908119142056, 0.040252264589071274, 0.04526190087199211, -0.025188317522406578, -0.04809952899813652, 0.0016016389708966017, 0.03100370243191719, -0.018952544778585434, 0.004689966794103384, -0.03979684039950371, 0.03240500018000603, -0.043335117399692535, -0.03436681628227234, -0.04512177035212517, 0.060360878705978394, -0.01804170198738575, 0.03772993013262749, 0.05559646710753441, 0.0811351090669632, -0.01700824499130249, 0.016509033739566803, -0.030968669801950455, -0.07482927292585373, -0.008009289391338825, -0.06995976716279984, -0.005797867197543383, 0.04834475368261337, 0.008780003525316715, -0.010203195735812187, 0.022736048325896263, -0.021194620057940483, 0.014310748316347599, -0.011875994503498077, -0.01348748616874218, -0.004466635175049305, -0.006419693119823933, -0.057523250579833984, -0.03506746515631676, 0.07230693846940994, -0.0010849105892702937, -0.024330023676156998, -0.028831690549850464, 0.0065423063933849335, 0.01499388087540865, 0.027815749868750572, 0.02741287834942341, -0.041968852281570435, -0.0811351090669632, 0.0022749186027795076, -0.03110879845917225, -0.030268020927906036, 0.01473989523947239, -0.003402524860575795, 0.060606107115745544, -0.01375022903084755, 0.0415484644472599, 0.0037024901248514652, 0.06540554761886597, -0.03916625678539276, -0.016184983775019646, 0.009721499867737293, 0.04799443110823631, 0.0051103560253977776, 0.05205819383263588, 0.0167017113417387, 0.013645132072269917, 0.012795595452189445, -0.0173585694283247, 0.017612554132938385, -0.024435121566057205, -0.024767929688096046, -0.000588435388635844, -0.07097570598125458, 0.039376452565193176, 0.030600829049944878, 0.0025157665368169546, 0.07069544494152069, -0.03102121874690056, 0.03228238597512245, 0.019355418160557747, 0.002336225239560008, 0.02266598306596279, -0.0356454998254776, 0.01091260276734829, -0.04165356233716011, -0.06621129810810089, 0.02345421351492405, -0.06733233481645584, 0.014249441213905811, 0.028919272124767303, -0.018584704026579857, 0.028814174234867096, 0.008219484239816666, -0.03815031796693802, -0.0011801550863310695, 0.00338281923905015, -0.042389240115880966, -0.057242993265390396, 0.007882297039031982, 0.016228774562478065, -0.010702407918870449, 0.00021662632934749126, -0.03152918815612793, -0.06326857209205627, -0.0007389653474092484, -0.05366968363523483, -0.012392723001539707, -0.019390450790524483, -0.02422492578625679, 0.09696976840496063, 0.006840082351118326, 0.009852871298789978, -0.030127890408039093, -0.005968650337308645, 0.06312844157218933, 0.02077423222362995, -0.006139433477073908, 0.045051705092191696, 0.04340518265962601, -0.03093363717198372, 0.0028069736436009407, -0.06484503298997879, 0.008035563863813877, 0.024014731869101524, 0.012629191391170025, -0.03245754912495613, -0.07861277461051941, 0.03941148519515991, -0.00794360414147377, 0.022140497341752052, -0.05181296542286873, 0.03231741860508919, -0.05514104664325714, -0.06607116758823395, -0.08281666785478592, 0.008013668470084667, -0.03653882443904877, -0.006029957439750433, 0.016202500090003014, 0.05762834846973419, 0.056472279131412506, -0.08582945913076401, -0.06400424987077713, -0.02946227416396141, 0.016342628747224808, 0.019005093723535538, -0.008617978543043137, 0.0686635673046112, 0.038780901581048965, 0.04407079890370369, 0.020476456731557846, 0.011070248670876026, -0.07721147686243057, 0.02079174853861332, -0.009765290655195713, 0.05212825909256935, -0.025363480672240257, -0.07146616280078888, -0.011788412928581238, 0.0031923302449285984, -0.015957271680235863, 0.022105464711785316, -0.05531620979309082, 0.0035776870790868998, 0.05121741443872452, -0.011394298635423183, 0.010754956863820553, 0.0424242727458477, -0.004138206131756306, -0.03839554637670517, -0.012944483198225498, 0.016649162396788597, 0.03916625678539276, -0.041968852281570435, -0.004098794423043728, 0.05465059354901314, 0.016342628747224808, 0.039026129990816116, -0.027798233553767204, -0.021404815837740898, -0.0021873374935239553, -0.012506578117609024, -0.04098794609308243, 0.03478720411658287, -0.03779999166727066, -0.0464179702103138, 0.04095291346311569, 0.021755140274763107, -0.0135312769562006, -0.001837013172917068, 0.05710286274552345, -0.07552992552518845, 0.03177441656589508, 0.004004644695669413, -0.0027544249314814806, 0.020651618018746376, 0.01932038553059101, 0.011560702696442604, 0.04070768505334854, -0.00585917429998517, -0.004348400514572859, -0.043265052139759064, -0.0032711531966924667, -0.06361889839172363, 0.04887024313211441, -0.008048701100051403, 0.021159589290618896, -0.0241373460739851, 0.06691194325685501, -0.0047468943521380424, 0.007768441457301378, -0.04799443110823631, 0.023576825857162476, 0.025748837739229202, -0.04116310551762581, 0.0063102166168391705, 0.01791032962501049, 0.04140833392739296, 0.01907515898346901, -0.022473305463790894, -0.03615346923470497, 0.017043277621269226, 0.004383433144539595, 0.012524094432592392, -0.053389426320791245, 0.0446663498878479, -0.06481000036001205, -0.01839202642440796, 0.03667895495891571, -0.04950082674622536, 0.03489230200648308, -0.05864429101347923, 0.07016996294260025, -0.02044142410159111, -0.026169225573539734, 0.018356993794441223, -0.060606107115745544, 0.011735864914953709, 0.011595734395086765, -0.03349100425839424, -0.0352075919508934, -0.04809952899813652, -0.001435234909877181, 0.036118436604738235, -0.0008812845917418599, -0.024873025715351105, -0.012594158761203289, -0.021544944494962692, 0.02517080120742321, 0.00816255621612072, 0.01839202642440796, -0.008850067853927612, -0.024067280814051628, 0.01632511243224144, -0.034139104187488556, 0.05402000993490219, 0.04484151303768158, 0.005863553378731012, 0.044806480407714844, -0.01219128631055355, -0.011700832284986973, 0.04498164355754852, -0.07721147686243057, -0.04165356233716011, 0.0007696187240071595, -0.0482746921479702, 0.040917880833148956, 0.03357858583331108, -0.010063066147267818, 0.021772656589746475, -0.014319506473839283, 0.061551980674266815, -0.005802246276289225, -0.0014604144962504506, 0.016535308212041855, 0.018164316192269325, 0.1137152686715126, -0.0049833632074296474, 0.04070768505334854, -0.02816607430577278, 0.0019202150870114565, -0.05874938890337944, 0.024259958416223526, 0.0644596740603447, 0.0034769687335938215, -0.035698048770427704, -0.048589982092380524, 0.005329308565706015, -0.01839202642440796, -0.07202667742967606, -0.01464355643838644, 0.026869874447584152, 0.02396218292415142, 0.07973381131887436, 0.027115100994706154, -0.034506943076848984, 0.008197588846087456, 0.033455971628427505, -0.03997200354933739, 0.0319846086204052, -0.013951665721833706, -0.03555791825056076, -0.037940122187137604, 0.05146264284849167, 0.041688594967126846, 0.012129979208111763, 0.019460516050457954, -0.011744623072445393, -0.051672834903001785, 0.05142761021852493, -0.09739015996456146, 0.011192861944437027, -0.019442999735474586, 0.012200044468045235, 0.013583824969828129, 0.011473121121525764, -0.013872843235731125, 0.0071641323156654835, 0.001318095251917839, 0.001389254815876484, 0.028621496632695198, -0.03997200354933739, -0.038185350596904755, -0.01094763446599245, 0.013364872895181179, -0.003936769440770149, 0.005793488118797541, -0.0167017113417387, 0.0034353677183389664, 0.07524966448545456, -0.008118766359984875, -0.00880189798772335, -0.0388159342110157, 0.0024457015097141266, 0.011700832284986973, 0.017919087782502174, -0.015606948174536228, 0.019723258912563324, -0.0012808733154088259, 0.023471729829907417, -0.09921184927225113, -0.0356454998254776, 0.04021723195910454, -0.012489061802625656, -0.003930200822651386, 0.004168859217315912, -0.034471914172172546, -0.01588720828294754, -0.001300579053349793, -0.016044853255152702, 0.013785261660814285, 0.0013750229263678193, 0.009344900958240032, 0.009257320314645767, 0.02681732550263405, 0.03349100425839424, -0.0035229488275945187, 0.025783870369195938, 0.020423907786607742, -0.002822300186380744, 0.02636190503835678, -0.03186199814081192, 0.007050276733934879, 0.025643739849328995, 0.04725874960422516, 0.027255231514573097, 0.012690498493611813, -0.05839906260371208, 0.09220536053180695, 0.03622353449463844, 0.02947979047894478, -0.044386088848114014, 0.00026493275072425604, -0.05195309594273567, 0.009695225395262241, -0.006984591018408537, 0.044386088848114014, 0.036889150738716125, -0.03573308140039444, -0.020511489361524582, -0.02114207297563553, -0.022228077054023743, -0.005964271258562803, -0.004685587715357542, 0.06677181273698807, 0.0771414116024971, 0.010071824304759502, 0.02455773390829563, 0.0663163959980011, 0.05790860950946808, 0.03653882443904877, -0.03461204096674919, 0.022876176983118057, 0.0056051891297101974, -0.009414966218173504, 0.00919601321220398, 0.008526017889380455, 0.034839753061532974, 0.05076199397444725, 0.04757404327392578, 0.07045021653175354, 0.0025135769974440336, 0.018234379589557648, 0.0171658918261528, -0.021177105605602264, -0.015387995168566704, 0.05783854424953461, 0.03709934651851654, 0.013461211696267128, -0.056121956557035446, -0.04873011261224747, 0.017770200967788696, -0.031213896349072456, -0.09970229864120483, -0.04757404327392578, -0.008009289391338825, -0.005066565237939358, 0.006734984926879406, -0.034577008336782455, 0.01819934882223606, -0.0033018067479133606, -0.015764594078063965, -0.04011213406920433, 0.016255049034953117, -0.00680504972115159, -0.04683836176991463, -0.0016027337405830622, 0.009143464267253876, -0.0071553741581737995, -0.038185350596904755, -0.06754253059625626, 0.05065689608454704, 0.07300758361816406, 0.0101418886333704, -0.018777383491396904, -0.019442999735474586, 0.004111931659281254, -0.0035273279063403606, -0.04140833392739296, -0.022228077054023743, 0.07581017911434174, -0.020493973046541214, -0.0036784051917493343, 0.022736048325896263, -0.008346476592123508, 0.020914360880851746, -0.03284290432929993, 0.05577163025736809, -0.039306387305259705, -0.0049702259711921215, 0.010973908938467503, 0.017849024385213852, 0.02129971794784069, 0.03144160658121109, -0.0022267489694058895, 0.09921184927225113, 0.05738312378525734, 0.02609916217625141, -0.005040291231125593, 0.0024391331244260073, -0.022385723888874054, -0.010211953893303871, -0.019442999735474586, 0.0006732795154675841, 0.01473989523947239, -0.030635861679911613, -0.041022978723049164, 0.03888599947094917, -0.02343669719994068, -0.02129971794784069, -0.01301454845815897, 0.004768789745867252, -0.018321961164474487, -0.0006234677857719362, 0.001411150093190372, 0.010737440548837185, 0.020914360880851746, -0.03660888969898224, 0.008175693452358246, -0.027290264144539833, -0.03513753041625023, -0.012261350639164448, 0.04165356233716011, -0.05307413265109062, -0.06708710640668869, -0.0038075873162597418, -0.02869156189262867, 0.04561222717165947, -0.029532339423894882, -0.07139609754085541, -0.007987393997609615, 0.028919272124767303, -0.00045104254968464375, -0.045752353966236115, -0.0010126562556251884, -0.06092139706015587, -0.006472241599112749, 0.045472096651792526, 0.030215471982955933, 0.047539010643959045, 0.05902964621782303, -0.0320371575653553, 0.07945355772972107, -0.030180439352989197, -0.01408303715288639, -0.027202682569622993, -0.001296199974603951, 0.01740236021578312, -0.0036827842704951763, -0.00783412717282772, 0.03874586895108223, -0.07405856251716614, -0.04571732133626938, 0.09774048626422882, 0.029847631230950356, 0.02499563992023468, 0.025048188865184784, -0.0437905378639698, 0.03436681628227234, -0.015204074792563915, 0.03804522007703781, -0.00010044455120805651, 0.04070768505334854, 0.029146982356905937, -0.02851639874279499, 0.0018359184032306075, -0.002329656621441245, -0.006218256428837776, -0.007820989936590195, 0.04435105621814728, 0.007558247074484825, 0.015782110393047333, 0.01777895912528038, 0.02121213637292385, 0.0019026988884434104, -0.02483799308538437, 0.07805225998163223, -0.01375022903084755, -0.0005605188780464232, 0.0032623952720314264, -0.015677012503147125, 0.036889150738716125, 0.012594158761203289, -0.042144015431404114, -0.06887376308441162, -0.03829044848680496, -0.018794899806380272, -0.0036915424279868603, 0.0671922042965889, 0.068558469414711, 0.010448422282934189, -0.013154678046703339, -0.027360329404473305, -0.041618529707193375, -0.023997215554118156, -0.0011626387713477015, 0.03236996755003929, 0.048835210502147675, 0.006866356357932091, 0.015107735991477966, 0.06691194325685501, -0.03573308140039444, -0.016132434830069542, -0.004992121364921331, -0.04112807288765907, -0.046698231250047684, -0.025380996987223625, 0.0019267837051302195, 0.03494485095143318, -0.020073583349585533, -0.06116662546992302, -0.03958664834499359, -0.009414966218173504, -0.04953585937619209, 0.017262229695916176, 0.02249082177877426, 0.050201475620269775, 0.050551798194646835, 0.0014122448628768325, 0.0035251383669674397, 0.023226501420140266, 0.009721499867737293, 0.014293232001364231, -0.0013246637536212802, -0.02895430475473404, 0.002552988473325968, -0.019460516050457954, -0.028901755809783936, 0.007475045043975115, 0.007010865490883589, -0.04529693350195885, 0.0037309539038687944, 0.029234563931822777, 0.004326505120843649, 0.009204771369695663, -0.04147839918732643, 0.031213896349072456, -0.015624464489519596, -0.09374678879976273, 0.0040155923925340176, -0.04785430058836937, 0.004760031588375568, 0.040847815573215485, -0.0115081537514925, -0.004562973976135254, 0.012007365934550762, 0.007680860348045826, -0.01804170198738575, 0.03275532275438309, -0.013251016847789288, 0.06176217645406723, 0.021930301561951637, -0.028218623250722885, 0.014547216705977917, -0.016509033739566803, 0.09795067459344864, 0.023857085034251213, -0.03343845531344414, 0.04631287604570389, -0.05402000993490219, -0.021597493439912796, -0.008906995877623558, -0.01495009008795023, 0.018427059054374695, -0.009441240690648556, 0.022893693298101425, 0.009703983552753925, 0.024207409471273422, -0.0144333615899086, 0.05976532772183418, 0.017043277621269226, 0.004368106368929148, -0.021089524030685425, 0.006402176804840565, -0.009222287684679031, -0.021632526069879532, 0.0020461129024624825, 0.02121213637292385, 0.0396917462348938, -0.003109128214418888, 0.0068269451148808, -0.050481732934713364, 0.04407079890370369, -0.004760031588375568, -0.027342813089489937 ]
20,536
pyobjectify.pyobjectify
url_to_connectivity
Get the connectivity type of the resource. The end-user does not have to interface with this, but it is provided for more granular operations. Args: url (str): The URL to a resource. Returns: Connectivity: An attribute in the enumeration `Connectivity`. The calculated connectivity of the resource type.
def url_to_connectivity(url): """ Get the connectivity type of the resource. The end-user does not have to interface with this, but it is provided for more granular operations. Args: url (str): The URL to a resource. Returns: Connectivity: An attribute in the enumeration `Connectivity`. The calculated connectivity of the resource type. """ local_conditions = [url.startswith("file:///"), url.startswith("/"), url.startswith(".")] if any(local_conditions): return Connectivity.LOCAL else: return Connectivity.ONLINE_STATIC
(url)
[ 0.010284311138093472, -0.051377564668655396, -0.007979358546435833, -0.014647885225713253, 0.04768260568380356, 0.011999828740954399, 0.047506652772426605, -0.02602308988571167, -0.016380997374653816, -0.040609389543533325, -0.002258765511214733, 0.022750409319996834, 0.007543880492448807, -0.027307529002428055, 0.004623101092875004, -0.03376491367816925, -0.012272551655769348, -0.0060175093822181225, 0.02859196811914444, -0.03415200486779213, 0.008150910027325153, 0.029172604903578758, 0.05060338228940964, -0.05588189885020256, 0.02487941086292267, 0.07601064443588257, 0.0247210543602705, -0.012782808393239975, 0.0010155646596103907, -0.03411681577563286, -0.025671187788248062, 0.0534185916185379, -0.028873488306999207, 0.019073041155934334, 0.014788645319640636, 0.05771178752183914, 0.0641515776515007, 0.04222813621163368, -0.06686121225357056, -0.05120161548256874, -0.08523045480251312, 0.007499892730265856, -0.0968431904911995, 0.010108360089361668, 0.03709037974476814, 0.03853317350149155, -0.0745326578617096, -0.05373530462384224, -0.009518926031887531, -0.08544159680604935, -0.0104602612555027, 0.0023775319568812847, 0.041911426931619644, 0.020639002323150635, -0.009439747780561447, -0.012518882751464844, -0.014401554130017757, 0.03884988650679588, -0.06833919882774353, 0.029190199449658394, -0.025970304384827614, -0.019020255655050278, -0.019442537799477577, 0.03480302169919014, -0.0021883852314203978, 0.005577633157372475, -0.05331302061676979, 0.014331174083054066, -0.017339928075671196, 0.014823835343122482, 0.01831645332276821, -0.013556991703808308, -0.03863874450325966, -0.032023005187511444, 0.021553944796323776, -0.0170935969799757, 0.08241524547338486, 0.0059735216200351715, 0.0007384425261989236, -0.0009743262780830264, 0.014938203617930412, -0.034855809062719345, 0.07111921906471252, -0.059576861560344696, 0.03962406888604164, -0.0197768434882164, -0.010979315266013145, -0.025020170956850052, -0.07432152330875397, 0.05880267918109894, -0.005203737877309322, 0.0023027530405670404, -0.04511372372508049, -0.017797399312257767, 0.02748347818851471, 0.06267359107732773, -0.0057579823769629, -0.0736880972981453, 0.03142477199435234, -0.04863273724913597, -0.020551025867462158, 0.004605506081134081, -0.09318342059850693, -0.05862672999501228, -0.027342718094587326, -0.09036821126937866, 0.004645095206797123, 0.06119560822844505, -0.029806025326251984, 0.004631898831576109, -0.0060175093822181225, -0.0692189559340477, 0.010319501161575317, 0.03350098803639412, 0.06348296254873276, -0.009360570460557938, -0.01919620670378208, -0.017383916303515434, -0.012985152192413807, 0.0024743047542870045, -0.06323663145303726, 0.05116642639040947, 0.035278089344501495, -0.028486397117376328, 0.03445111960172653, 0.04986439272761345, 0.015017380937933922, -0.03962406888604164, -0.010407475754618645, 0.039800018072128296, -0.039800018072128296, -0.008709552697837353, -0.04933653771877289, 0.07819243520498276, -0.03853317350149155, -0.00810252409428358, -0.09022744745016098, 0.05127199366688728, -0.050145912915468216, 0.03825165331363678, -0.0015428665792569518, 0.06598146259784698, -0.02023431472480297, -0.007086409255862236, 0.04560638591647148, 0.009281392209231853, -0.02809930592775345, -0.05190541595220566, -0.019108232110738754, 0.03147755563259125, 0.026656510308384895, -0.04078534245491028, 0.0013933085137978196, 0.007939768955111504, -0.015668397769331932, -0.02774740383028984, -0.03406402841210365, -0.052679598331451416, 0.02686765231192112, -0.052609220147132874, -0.04173547402024269, 0.046134237200021744, -0.005150952842086554, -0.03951849788427353, -0.013389837928116322, -0.017067205160856247, 0.020251911133527756, -0.030527424067258835, 0.004843039438128471, -0.03902583569288254, -0.025776758790016174, 0.015580423176288605, -0.0043195863254368305, 0.0027888165786862373, 0.05324264243245125, 0.029260579496622086, 0.031371984630823135, 0.014348768629133701, 0.06358853727579117, -0.009378165006637573, 0.03610505536198616, 0.023243069648742676, -0.03775899112224579, 0.056796845048666, 0.019530512392520905, 0.02897905930876732, 0.026744486764073372, -0.028081711381673813, 0.01075057964771986, 0.03431035950779915, 0.002867994364351034, 0.0035454039461910725, 0.018527595326304436, -0.04560638591647148, 0.015835551545023918, -0.0765736848115921, 0.034662261605262756, 0.022908763960003853, -0.045395247638225555, 0.06826882064342499, -0.02660372667014599, 0.03327225148677826, -0.01159514207392931, 0.0669315978884697, 0.02046305127441883, 0.006510171107947826, -0.005674405954778194, -0.03782937303185463, -0.02143077924847603, 0.04141876474022865, -0.04032786935567856, 0.016583340242505074, -0.00038104294799268246, 0.0429319366812706, -0.007359132636338472, -0.016468973830342293, -0.03151274845004082, 0.06049180403351784, -0.0125716682523489, -0.013803321868181229, -0.04694361239671707, 0.004843039438128471, 0.06154751032590866, -0.017850184813141823, 0.007645052392035723, -0.04821045696735382, -0.04905501753091812, 0.045817527920007706, -0.017216762527823448, 0.006153871305286884, -0.023946871981024742, -0.024633079767227173, 0.07133036106824875, 0.04131319373846054, 0.0463101901113987, 0.0007411917904391885, -0.005304909776896238, 0.045711956918239594, 0.025653593242168427, -0.04469144344329834, 0.015369282104074955, 0.009862028993666172, 0.0027514270041137934, -0.011683117598295212, -0.018263669684529305, -0.05707836523652077, 0.0055424426682293415, -0.03663290664553642, -0.04335422068834305, -0.05380568280816078, -0.012430907227098942, -0.04071496054530144, -0.006967642344534397, -0.09226847440004349, 0.011137670837342739, -0.06893743574619293, -0.0794592797756195, -0.006466183345764875, -0.011823877692222595, -0.04384688287973404, -0.029067033901810646, -0.0024984979536384344, 0.06745944917201996, 0.014841430820524693, -0.11471977084875107, -0.03276199474930763, 0.014436744153499603, 0.03835722431540489, 0.0042118169367313385, 0.001526371226646006, 0.059999141842126846, 0.010856149718165398, 0.026920435950160027, 0.0226096473634243, -0.004279997665435076, -0.09445026516914368, -0.009844434447586536, -0.020322291180491447, 0.0719989687204361, -0.04008153825998306, -0.03161831572651863, 0.011181658133864403, -0.05574113875627518, -0.04761222377419472, 0.032674022018909454, -0.04810488596558571, -0.024773839861154556, 0.0034794225357472897, -0.007442709058523178, 0.0056128231808543205, 0.02035748027265072, -0.009307784959673882, -0.006870869547128677, 0.026955626904964447, 0.004865033086389303, 0.05246846005320549, 0.04504334554076195, 0.013592181727290154, 0.03265642374753952, 0.003934694454073906, -0.022064201533794403, 0.003351858351379633, -0.038075704127550125, 0.005366492085158825, -0.005837160162627697, -0.009571710601449013, -0.006606943905353546, -0.04127800464630127, -0.004491138271987438, 0.03158312663435936, -0.00684007816016674, -0.03207578882575035, 0.004931014496833086, 0.03089691884815693, -0.03186464682221413, 0.05926015228033066, -0.0173663217574358, -0.011111278086900711, -0.006439790595322847, 0.030263498425483704, 0.022169770672917366, 0.08748262375593185, -0.028187280520796776, 0.020075960084795952, -0.10571110248565674, -0.02648056112229824, 0.06235688179731369, -0.00705121923238039, 0.01854518987238407, 0.027078792452812195, 0.012228564359247684, 0.02238091267645359, 0.0068664709106087685, -0.004253604914993048, -0.028222471475601196, 0.005269719287753105, 0.017295941710472107, -0.05253883823752403, 0.011260836385190487, 0.003547603264451027, 0.02172989584505558, 0.02644537016749382, -0.02927817404270172, -0.026691701263189316, -0.001795795513316989, 0.017656639218330383, -0.025882327929139137, -0.011867865920066833, 0.05218693986535072, -0.029735645279288292, -0.03965925797820091, 0.022328127175569534, -0.08480817079544067, 0.03839241340756416, -0.030457044020295143, 0.06144193932414055, -0.017269548028707504, -0.07111921906471252, 0.0736880972981453, -0.016424985602498055, 0.04655652120709419, 0.0039764828979969025, -0.024844219908118248, -0.034363146871328354, 0.020058365538716316, 0.010838555172085762, 0.08023346215486526, 0.014797442592680454, 0.016152262687683105, -0.05577633157372475, -0.03128401190042496, -0.006950047332793474, 0.023348640650510788, -0.030562613159418106, 0.01586194336414337, -0.018140504136681557, 0.036773670464754105, -0.029524505138397217, 0.022943954914808273, 0.049160588532686234, -0.020639002323150635, 0.052609220147132874, 0.02016393467783928, 0.015175736509263515, 0.044515494257211685, -0.01919620670378208, -0.034855809062719345, -0.008146511390805244, -0.044058021157979965, 0.034855809062719345, 0.04458587244153023, 0.022943954914808273, -0.00085171073442325, 0.009404557757079601, 0.037653420120477676, 0.04004634916782379, -0.025653593242168427, -0.00933417771011591, 0.05472062528133392, 0.07256201654672623, 0.0055864304304122925, 0.006259441375732422, -0.012246159836649895, -0.008625976741313934, -0.0703098475933075, 0.06094927713274956, 0.05514290928840637, 0.02771221473813057, -0.055670760571956635, -0.09825079888105392, 0.01170951034873724, -0.004719873890280724, -0.06116041913628578, -0.013354647904634476, 0.001759505714289844, 0.03944811597466469, 0.060808517038822174, -0.009342974983155727, -0.01105849351733923, 0.045782338827848434, 0.04483220353722572, -0.03740708902478218, 0.041876234114170074, 0.010011587291955948, -0.008238885551691055, -0.03744228184223175, 0.05732469633221626, -0.018826710060238838, 0.03256845101714134, 0.04127800464630127, 0.010952922515571117, -0.014348768629133701, 0.04479701444506645, -0.11999828368425369, -0.024738648906350136, -0.017911767587065697, 0.029155008494853973, 0.012492490001022816, 0.007812205236405134, -0.017929362133145332, -0.013451420702040195, -0.011392799206078053, -0.046697281301021576, 0.054791007190942764, -0.005401682574301958, -0.011973435990512371, -0.015536434948444366, -0.03341301158070564, -0.018105313181877136, -0.0319526232779026, -0.05468543618917465, -0.0023951272014528513, 0.025847138836979866, 0.02862715721130371, -0.02686765231192112, 0.011524762026965618, -0.006131877191364765, 0.07516608387231827, 0.026462964713573456, 0.014454338699579239, -0.009659686125814915, 0.0019882414489984512, 0.004601107444614172, -0.07446227967739105, -0.03515492379665375, -0.00033870484912768006, 0.011823877692222595, -0.009342974983155727, 0.012122994288802147, 0.011991031467914581, -0.02169470489025116, 0.007935370318591595, 0.022486481815576553, 0.03181186318397522, 0.0002571902296040207, 0.03997596725821495, -0.025231311097741127, -0.0142607931047678, 0.06288473308086395, 0.003967685159295797, -0.015202129259705544, -0.011480774730443954, -0.007077611517161131, -0.0005498455138877034, -0.007429512683302164, -0.0043767704628407955, -0.07389923930168152, 0.0412428118288517, 0.014841430820524693, -0.03754785284399986, -0.09015706926584244, 0.05380568280816078, 0.04300231859087944, -0.013820917345583439, -0.01368015632033348, 0.029454125091433525, -0.05380568280816078, 0.04250965639948845, -0.014524719677865505, 0.06904300302267075, 0.05021629109978676, -0.005018990021198988, -0.040679771453142166, -0.008397241123020649, 0.007869388908147812, 0.039307355880737305, 0.0072931512258946896, 0.010319501161575317, 0.043565358966588974, 0.04029268026351929, 0.016583340242505074, 0.04250965639948845, 0.08867908269166946, 0.0683743879199028, -0.043178267776966095, 0.015228522010147572, 0.029612479731440544, -0.04222813621163368, 0.02195863053202629, -0.023770920932292938, -0.0027844177093356848, -0.0043943654745817184, 0.043248649686574936, 0.045360054820775986, -0.02172989584505558, 0.005841558799147606, 0.018580380827188492, 0.00708201015368104, -0.07755900919437408, 0.03877950459718704, 0.05317226052284241, 0.019987983629107475, -0.03024590201675892, 0.007847395725548267, 0.04141876474022865, 0.00012254681496415287, -0.048703115433454514, -0.04053901135921478, -0.054826196283102036, 0.025055360049009323, 0.0033606558572500944, -0.057007983326911926, 0.007125997915863991, -0.02982362173497677, 0.003628980368375778, -0.02387649193406105, 0.013425027951598167, 0.0029295769054442644, -0.046626899391412735, 0.008238885551691055, -0.008441228419542313, 0.030298687517642975, -0.033940862864255905, -0.06112522631883621, 0.0712599828839302, 0.04849197715520859, 0.016732899472117424, -0.04560638591647148, 0.007957364432513714, -0.016926445066928864, -0.029682861641049385, -0.030210712924599648, -0.04338940978050232, 0.031987812370061874, -0.028451206162571907, -0.030527424067258835, 0.018562784418463707, 0.01140159647911787, 0.030791349709033966, -0.030949704349040985, 0.05243327096104622, -0.062497641891241074, 0.00798815581947565, -0.03663290664553642, 0.0170935969799757, 0.016504162922501564, 0.006496974732726812, 0.017084799706935883, 0.06745944917201996, 0.044058021157979965, -0.030668184161186218, 0.012448502704501152, -0.017964553087949753, 0.017999742180109024, 0.020639002323150635, -0.010776972398161888, -0.0173663217574358, 0.0010930929565802217, -0.02004076912999153, -0.03103768080472946, 0.00031863548792898655, -0.015131749212741852, 0.024897005409002304, 0.00028399520670063794, -0.03884988650679588, -0.03839241340756416, -0.007407519035041332, 0.001568159437738359, 0.02862715721130371, 0.03450390696525574, -0.00816410593688488, -0.008401639759540558, -0.03365934267640114, -0.058697108179330826, -0.010530641302466393, 0.013618573546409607, -0.028679942712187767, -0.01889709010720253, 0.009589306078851223, -0.0469084195792675, 0.06714273989200592, 0.024228394031524658, -0.07622178643941879, -0.028679942712187767, 0.05077933520078659, 0.004328384064137936, -0.04588790982961655, 0.009052656590938568, -0.019442537799477577, -0.004365773405879736, 0.023207880556583405, 0.013398636132478714, 0.07685520499944687, 0.005458866246044636, -0.009633293375372887, 0.0593305304646492, -0.015624410472810268, -0.030017167329788208, 0.0007010530680418015, -0.013425027951598167, 0.03441593050956726, 0.024509914219379425, -0.001641838694922626, -0.00008907497249310836, -0.0553540475666523, -0.05408720299601555, 0.035207707434892654, 0.009624496102333069, 0.03531327843666077, 0.024421939626336098, -0.033553771674633026, 0.053911253809928894, 0.03015792742371559, -0.005670006852596998, 0.01448952965438366, 0.003191303461790085, 0.005304909776896238, -0.03188224136829376, -0.014366364106535912, -0.029841216281056404, -0.005023388657718897, -0.01523731928318739, 0.0712599828839302, 0.011841473169624805, -0.01801733858883381, 0.032902754843235016, -0.003714756341651082, 0.017762210220098495, -0.01341623067855835, -0.0017199168214574456, -0.03422238677740097, 0.01735752262175083, 0.019178612157702446, 0.03548923134803772, 0.0561986118555069, 0.06021028384566307, 0.04736589267849922, -0.07699596881866455, -0.03316668048501015, -0.03204059973359108, -0.00010728860797826201, 0.08656767755746841, 0.059119392186403275, 0.01379452459514141, 0.026339799165725708, 0.012826796621084213, -0.013187495060265064, 0.024210797622799873, -0.012413312681019306, 0.003804930951446295, 0.021817870438098907, 0.015325294807553291, 0.014234401285648346, 0.013231482356786728, -0.0004115593619644642, -0.030597804114222527, -0.024509914219379425, -0.03582353517413139, -0.015554030425846577, -0.007442709058523178, -0.043706122785806656, 0.06207536160945892, 0.007517488207668066, -0.0032506866846233606, -0.015078963711857796, -0.009061453863978386, -0.0055688354186713696, 0.03687923774123192, -0.022240152582526207, 0.020603811368346214, 0.08009269833564758, -0.015800360590219498, -0.02982362173497677, 0.009193417616188526, 0.03652733936905861, 0.041453953832387924, 0.02004076912999153, -0.02253926731646061, 0.00590314157307148, 0.014990988187491894, -0.022979144006967545, -0.02637499012053013, -0.0485975481569767, -0.04338940978050232, 0.014771049842238426, 0.05672646313905716, 0.006972041446715593, -0.023331046104431152, -0.007996953092515469, 0.05109604448080063, 0.009677281603217125, -0.05412239581346512, 0.016187451779842377, 0.006021908018738031, -0.043178267776966095, 0.037231139838695526, 0.013108317740261555, 0.02813449501991272, 0.0006031805532984436, -0.004200819879770279, -0.03603467717766762, 0.04761222377419472, -0.02143077924847603, 0.09191657602787018, 0.019336966797709465, 0.027377909049391747, 0.012949962168931961, -0.004755063913762569, 0.025037765502929688, -0.021290019154548645, -0.009870827198028564, 0.0001616545778233558, -0.053101882338523865, -0.025495236739516258, -0.065488800406456, -0.03408162668347359, 0.021290019154548645, 0.013205090537667274, 0.012079006060957909, 0.005322504788637161, 0.018369238823652267, -0.009510127827525139, 0.045782338827848434, -0.03559479862451553, 0.03237490355968475, -0.042791176587343216, 0.009527723304927349, -0.019600892439484596, -0.02165951579809189, -0.001072748564183712, 0.0324980691075325, 0.029348554089665413, 0.024158012121915817, -0.019336966797709465, -0.025020170956850052, 0.013565788976848125, -0.050533004105091095, -0.041102051734924316 ]
20,537
pyratings.utils
_extract_rating_provider
Extract valid rating providers. It is meant to extract rating providers from the column headings of a ``pd.DataFrame``. For example, let's assume some rating column headers are ["rating_fitch", "S&P rating", "BLOOMBERG composite rating"]. The function would then return a list of valid rating providers, namely ["Fitch", "SP", "Bloomberg"]. Parameters ---------- rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. valid_rtg_provider List of strings containing the names of valid rating providers. Supported rating providers are {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. 'rating_provider' must be in that list. Returns ------- Union[str, List[str]] str or List[str] with valid rating providers. Raises ------ AssertionError If ``rating_provider`` is not a subset of `valid_rtg_provider`. Examples -------- >>> _extract_rating_provider( ... rating_provider="S&P", ... valid_rtg_provider=["fitch", "s&p", "moody"], ... ) 'SP' >>> _extract_rating_provider( ... rating_provider="rtg_DBRS", ... valid_rtg_provider=["Fitch", "SP", "DBRS"] ... ) 'DBRS' You can also provide a list of strings. >>> _extract_rating_provider( ... rating_provider=["Fitch ratings", "rating_SP", "DBRS"], ... valid_rtg_provider=["fitch", "moody", "sp", "bloomberg", "dbrs"] ... ) ['Fitch', 'SP', 'DBRS']
def _extract_rating_provider( rating_provider: str | list[str] | Hashable, valid_rtg_provider: list[str], ) -> str | list[str]: """Extract valid rating providers. It is meant to extract rating providers from the column headings of a ``pd.DataFrame``. For example, let's assume some rating column headers are ["rating_fitch", "S&P rating", "BLOOMBERG composite rating"]. The function would then return a list of valid rating providers, namely ["Fitch", "SP", "Bloomberg"]. Parameters ---------- rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. valid_rtg_provider List of strings containing the names of valid rating providers. Supported rating providers are {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. 'rating_provider' must be in that list. Returns ------- Union[str, List[str]] str or List[str] with valid rating providers. Raises ------ AssertionError If ``rating_provider`` is not a subset of `valid_rtg_provider`. Examples -------- >>> _extract_rating_provider( ... rating_provider="S&P", ... valid_rtg_provider=["fitch", "s&p", "moody"], ... ) 'SP' >>> _extract_rating_provider( ... rating_provider="rtg_DBRS", ... valid_rtg_provider=["Fitch", "SP", "DBRS"] ... ) 'DBRS' You can also provide a list of strings. >>> _extract_rating_provider( ... rating_provider=["Fitch ratings", "rating_SP", "DBRS"], ... valid_rtg_provider=["fitch", "moody", "sp", "bloomberg", "dbrs"] ... ) ['Fitch', 'SP', 'DBRS'] """ provider_map = { "fitch": "Fitch", "moody": "Moody", "moody's": "Moody", "sp": "SP", "s&p": "SP", "bloomberg": "Bloomberg", "dbrs": "DBRS", } if isinstance(rating_provider, str): rating_provider = [rating_provider] valid_rtg_provider_lowercase = [x.lower() for x in valid_rtg_provider] for i, provider in enumerate(rating_provider): if not any(x in provider.lower() for x in valid_rtg_provider_lowercase): raise AssertionError( f"{provider!r} is not a valid rating provider. 'rating_provider' must " f"be in {valid_rtg_provider}." ) for valid_provider in valid_rtg_provider: if valid_provider.lower() in provider.lower(): rating_provider[i] = provider_map[valid_provider.lower()] if len(rating_provider) > 1: return rating_provider else: return rating_provider[0]
(rating_provider: str | list[str] | collections.abc.Hashable, valid_rtg_provider: list[str]) -> str | list[str]
[ 0.05662768334150314, -0.016962070018053055, -0.003930235747247934, -0.0017834895988926291, 0.04242031276226044, -0.06324703246355057, 0.06437715888023376, 0.026275569573044777, 0.07910923659801483, 0.006240952294319868, 0.004396919626742601, 0.05586080998182297, -0.018737992271780968, 0.013904660008847713, -0.003004435682669282, -0.025569235906004906, -0.012845160439610481, 0.02714334800839424, 0.034065406769514084, 0.009237820282578468, -0.018546273931860924, 0.026719549670815468, -0.002269093180075288, 0.0027900133281946182, -0.007613255176693201, 0.06700067967176437, 0.06195544824004173, -0.017194150015711784, -0.038283221423625946, 0.049281828105449677, 0.06494222581386566, -0.031260259449481964, -0.0613500215113163, 0.027042444795370102, -0.01923242397606373, -0.00348373269662261, -0.012350727804005146, 0.042985375970602036, 0.011281139217317104, 0.003095249878242612, -0.05170353874564171, -0.004457462579011917, 0.06167291849851608, -0.08011828362941742, -0.05368126928806305, 0.06235906854271889, -0.018919620662927628, -0.013652398250997066, -0.06352956593036652, -0.019847942516207695, 0.017900483682751656, 0.018294012174010277, -0.04078565537929535, -0.018102291971445084, -0.005675886292010546, 0.03644675761461258, 0.016124561429023743, 0.10421431064605713, 0.0454474501311779, 0.007169274613261223, 0.007461898028850555, 0.0041623166762292385, -0.03872720152139664, 0.012784617953002453, 0.04026095196604729, -0.0005571828223764896, 0.015226510353386402, -0.03463047370314598, -0.024378562346100807, 0.0441962331533432, 0.015085243619978428, -0.014621082693338394, -0.06558801978826523, -0.0024645959492772818, 0.015670491382479668, 0.028576195240020752, 0.014802711084485054, 0.004909010604023933, 0.056506600230932236, -0.042097415775060654, 0.05997771769762039, 0.012148918583989143, 0.08823101967573166, -0.06478077918291092, 0.06494222581386566, 0.022602640092372894, -0.03939317166805267, -0.005877695512026548, 0.0023536006920039654, 0.03565970063209534, -0.05198607221245766, -0.04556853696703911, 0.02778913825750351, -0.028374385088682175, -0.057233113795518875, 0.007406400516629219, -0.003710768185555935, -0.0318656861782074, 0.01825365051627159, 0.004154748748987913, 0.04322754964232445, -0.004873694386333227, -0.012643351219594479, 0.018082112073898315, -0.009197457693517208, -0.018606815487146378, -0.032612379640340805, 0.0006621867069043219, -0.04153234884142876, 0.027042444795370102, -0.056264426559209824, -0.06530548632144928, 0.0303924772888422, -0.022885173559188843, 0.003604818368330598, -0.0028127168770879507, -0.04306609928607941, -0.013238688930869102, -0.025185799226164818, -0.047949884086847305, 0.0343075767159462, 0.06494222581386566, -0.04887820780277252, -0.003690587356686592, 0.016437366604804993, -0.06332775205373764, -0.010786706581711769, -0.00615518307313323, 0.019948847591876984, 0.03041265904903412, -0.015266872011125088, 0.06151146814227104, -0.05989699438214302, 0.006871606223285198, -0.0007662446005269885, 0.00660925405099988, -0.03733471781015396, 0.026396654546260834, 0.0242574755102396, -0.028354205191135406, 0.02082671783864498, -0.05081557855010033, 0.03814195469021797, -0.018294012174010277, 0.02904035523533821, -0.007199546322226524, 0.009732252918183804, 0.06405426561832428, 0.027567148208618164, -0.010014785453677177, -0.04585107043385506, 0.024217113852500916, 0.06159219145774841, -0.030614469200372696, 0.020594637840986252, -0.035861510783433914, 0.00044429575791582465, -0.04653722047805786, 0.039191361516714096, -0.01892971061170101, 0.048837848007678986, -0.07745440304279327, -0.024842722341418266, 0.033601246774196625, 0.03644675761461258, 0.03452956676483154, 0.02121015638113022, 0.008112733252346516, 0.03345998004078865, -0.0318656861782074, 0.03473137691617012, -0.007078460417687893, -0.0741850957274437, -0.03723381459712982, -0.02924216538667679, 0.06647597998380661, -0.01619519479572773, -0.004687020555138588, 0.014126650057733059, -0.01501461025327444, -0.006003826390951872, -0.014782530255615711, -0.0193434190005064, -0.008521396666765213, 0.0004761437885463238, 0.016679536551237106, 0.03138134256005287, -0.004858558531850576, -0.05420597270131111, 0.022501735016703606, -0.03146206587553024, -0.025831587612628937, -0.046214327216148376, 0.03727417439222336, -0.025488512590527534, -0.029464155435562134, -0.020271742716431618, 0.05049268156290054, -0.05763673037290573, -0.00907132774591446, -0.005721293389797211, -0.004190065432339907, -0.016941890120506287, 0.04585107043385506, -0.0041623166762292385, 0.008985558524727821, -0.038121774792671204, -0.025468330830335617, -0.025185799226164818, -0.045407090336084366, 0.04177452251315117, -0.008420492522418499, 0.0034938231110572815, -0.0026209980715066195, -0.016629084944725037, 0.015266872011125088, 0.04278356954455376, 0.010554625652730465, -0.02579122595489025, -0.003241561586037278, 0.0055245291441679, -0.057313837110996246, 0.016891436651349068, 0.024378562346100807, 0.09339733421802521, -0.014883434399962425, -0.017900483682751656, -0.01186638604849577, -0.029988858848810196, -0.02238065004348755, -0.04104800894856453, -0.08149059116840363, 0.07923032343387604, 0.03896937146782875, -0.060744594782590866, -0.06377173215150833, 0.07200555503368378, 0.02318788692355156, 0.027647871524095535, 0.03047320246696472, -0.0032163355499505997, 0.03168405592441559, -0.03146206587553024, 0.01916179060935974, -0.019696585834026337, -0.016800623387098312, -0.022965896874666214, 0.03275364637374878, -0.016649266704916954, -0.043510083109140396, 0.005711202509701252, 0.008687889203429222, 0.022138478234410286, -0.02409602887928486, -0.024398742243647575, -0.04673903062939644, -0.07140012085437775, 0.00951530784368515, 0.03257201984524727, -0.06845370680093765, 0.008748432621359825, -0.020907441154122353, -0.018132563680410385, 0.007204591296613216, -0.029908135533332825, -0.020867079496383667, 0.05513429641723633, 0.033601246774196625, -0.008450763300061226, -0.01733541674911976, -0.07212663441896439, 0.06429643929004669, -0.0220981165766716, 0.018526092171669006, -0.01853618212044239, 0.004179974552243948, 0.02227974496781826, -0.011008696630597115, 0.027587328106164932, -0.005569936241954565, -0.0313006192445755, -0.006740429904311895, 0.008455809205770493, 0.07357966154813766, 0.03975642845034599, 0.021492687985301018, 0.02490326575934887, -0.08702016621828079, -0.014873344451189041, 0.048313140869140625, -0.02597285434603691, -0.035942234098911285, 0.008289316669106483, 0.01770876534283161, 0.025327065959572792, 0.04213777929544449, 0.031340982764959335, -0.09186358749866486, 0.08411411195993423, -0.022158659994602203, -0.023147525265812874, 0.051299918442964554, 0.06663742661476135, 0.010463811457157135, -0.032531656324863434, -0.034509386867284775, 0.043510083109140396, -0.057677093893289566, -0.02217883989214897, 0.015630129724740982, 0.01677035167813301, 0.015579676255583763, -0.019202154129743576, -0.022602640092372894, 0.05674877017736435, -0.03366179019212723, -0.023127343505620956, 0.05323728919029236, -0.01330932229757309, 0.014429363422095776, 0.013945021666586399, 0.004323763772845268, 0.008950241841375828, 0.00980288628488779, 0.026901178061962128, -0.014812801033258438, -0.07466943562030792, 0.02238065004348755, -0.021432146430015564, 0.023490600287914276, -0.029605422168970108, -0.04060402885079384, 0.018061930313706398, 0.023409876972436905, 0.018203197047114372, 0.0768086165189743, -0.024196933954954147, -0.03543771058320999, 0.02740570157766342, 0.004906488116830587, -0.045770347118377686, -0.0021089070942252874, -0.019555319100618362, 0.025387607514858246, 0.0038066275883466005, -0.012956156395375729, 0.030372297391295433, 0.012865342199802399, 0.008516351692378521, -0.018243558704853058, -0.04088656231760979, -0.011634305119514465, -0.0059533738531172276, 0.026235206052660942, 0.03751634433865547, 0.05594153329730034, -0.043792612850666046, 0.029423793777823448, 0.003526617307215929, 0.04932218790054321, 0.07470979541540146, -0.0503312349319458, 0.03890882804989815, -0.04746554419398308, -0.06223798170685768, 0.014106469228863716, 0.0020332285203039646, -0.02038273774087429, 0.03580096736550331, -0.03977660834789276, 0.004775312263518572, 0.008491125889122486, -0.018758172169327736, -0.021714678034186363, 0.009732252918183804, -0.009237820282578468, -0.008153094910085201, 0.01843527890741825, -0.03200695291161537, -0.01024182140827179, 0.0021038618870079517, 0.05699094012379646, 0.06046206131577492, 0.05755600705742836, 0.015307234600186348, -0.01204801443964243, 0.0001396110310452059, 0.021533049643039703, -0.03707236424088478, 0.017920663580298424, -0.09363950788974762, -0.003677974222227931, -0.008687889203429222, 0.009394221939146519, -0.015165967866778374, -0.03620458394289017, -0.051098112016916275, -0.006331766489893198, -0.013521222397685051, -0.003001913195475936, 0.029020175337791443, -0.06276268512010574, -0.006750520318746567, -0.009157096035778522, -0.02417675219476223, 0.040281131863594055, 0.06643561273813248, 0.03826304152607918, -0.06348919868469238, -0.016578633338212967, -0.027930404990911484, -0.031522609293460846, 0.030695192515850067, -0.051098112016916275, -0.025145437568426132, 0.04286429286003113, -0.023308971896767616, 0.06231870502233505, 0.027728594839572906, 0.01186638604849577, 0.0019398917211219668, -0.08322615176439285, -0.0014366297982633114, 0.12358800321817398, 0.0023599073756486177, -0.010564715601503849, 0.0030700236093252897, -0.07741404324769974, 0.02688099630177021, -0.08556713908910751, 0.0006189869018271565, 0.04213777929544449, -0.01731523685157299, -0.05061376839876175, 0.019777309149503708, -0.03465065360069275, -0.01177557185292244, 0.026901178061962128, -0.03329853340983391, -0.035578977316617966, -0.0015387957682833076, 0.004810628946870565, 0.003602295648306608, 0.03273346647620201, -0.0014832982560619712, -0.05016978830099106, -0.026679188013076782, 0.04102782905101776, -0.03335907310247421, -0.07692969590425491, -0.02191648818552494, -0.015842027962207794, 0.018465548753738403, 0.05892831087112427, 0.01006019301712513, 0.07232844829559326, 0.038565754890441895, 0.013006608001887798, -0.04790952429175377, 0.030796095728874207, 0.04149198904633522, 0.013077241368591785, 0.006210680585354567, 0.041269998997449875, 0.010362906381487846, 0.09041056036949158, 0.02724425308406353, -0.05820179730653763, -0.008092552423477173, 0.047223370522260666, 0.024378562346100807, -0.02427765727043152, 0.035235900431871414, 0.023430056869983673, 0.018546273931860924, 0.055336106568574905, 0.03354070335626602, -0.005247041583061218, -0.04205705597996712, -0.01312769390642643, -0.013410226441919804, 0.019747037440538406, -0.012693803757429123, 0.024701455608010292, 0.005736428778618574, -0.04895893111824989, -0.03543771058320999, 0.007648571860045195, -0.03727417439222336, -0.03588169068098068, -0.04484202340245247, 0.041976332664489746, 0.04306609928607941, 0.04104800894856453, -0.007108732126653194, 0.048111334443092346, 0.052107155323028564, -0.023793313652276993, 0.023147525265812874, 0.028192756697535515, 0.07204591482877731, -0.022299926728010178, -0.03093736246228218, -0.019070977345108986, 0.09420457482337952, -0.05961446091532707, -0.039473894983530045, 0.015670491382479668, -0.033681970089673996, -0.009535488672554493, -0.03854557126760483, 0.016659356653690338, 0.09929016977548599, -0.02256227843463421, -0.02633611112833023, 0.02427765727043152, 0.02526652254164219, -0.014227554202079773, -0.004679452627897263, 0.01923242397606373, -0.014489906840026379, 0.020947802811861038, 0.03608350083231926, -0.01832428202033043, 0.03800068795681, 0.022764086723327637, 0.018566453829407692, 0.001034272601827979, -0.00402861787006259, -0.018919620662927628, -0.043792612850666046, 0.03307654336094856, -0.02129087969660759, -0.04242031276226044, -0.03047320246696472, 0.04040221869945526, 0.011432495899498463, -0.003135611768811941, 0.03309672325849533, 0.038828104734420776, 0.007456853054463863, -0.0447613000869751, 0.0230062585324049, -0.03709254786372185, 0.03699164092540741, -0.02976686879992485, -0.021048707887530327, -0.03424703702330589, -0.020685451105237007, -0.04391369968652725, 0.04706192389130592, 0.009838202968239784, 0.060663871467113495, -0.0027193801943212748, 0.0028127168770879507, -0.025690320879220963, -0.009858383797109127, 0.05295475572347641, 0.0005083071300759912, -0.00034086848609149456, -0.020594637840986252, -0.040987465530633926, 0.004197632893919945, 0.004084115382283926, 0.0349937304854393, -0.0027143347542732954, -0.010806887410581112, 0.009565760381519794, -0.02290535345673561, -0.03957480192184448, -0.02581140771508217, 0.012774528004229069, 0.0027193801943212748, 0.00615518307313323, -0.08149059116840363, 0.0011452676262706518, -0.016911618411540985, -0.04084619879722595, 0.023773133754730225, -0.04383297637104988, 0.014883434399962425, 0.012683713808655739, 0.04060402885079384, -0.033803053200244904, -0.01801147870719433, -0.012027833610773087, -0.04815169423818588, 0.010342725552618504, -0.07402364164590836, 0.051299918442964554, 0.020493732765316963, -0.005428669508546591, 0.044075146317481995, -0.008723205886781216, 0.04104800894856453, 0.008854382671415806, -0.0077898381277918816, 0.017325326800346375, 0.006619344465434551, 0.000817958265542984, 0.004959463141858578, 0.03140152618288994, 0.0085920300334692, -0.051178835332393646, 0.11454694718122482, -0.03194640949368477, -0.002506219083443284, -0.014772439375519753, -0.040180228650569916, -0.008132914081215858, -0.017850030213594437, 0.06409462541341782, 0.007441717199981213, -0.051178835332393646, 0.07713150978088379, 0.005241996143013239, -0.04205705597996712, 0.005802016705274582, -0.0038696930278092623, -0.0515824519097805, -0.03239038959145546, 0.05594153329730034, 0.005721293389797211, 0.02768823318183422, -0.0349331870675087, -0.04411550983786583, -0.05323728919029236, -0.015044881962239742, 0.013834026642143726, -0.06885732710361481, 0.0208468995988369, -0.07414472848176956, 0.08572858572006226, -0.016023656353354454, -0.004154748748987913, 0.028838546946644783, 0.08205565810203552, -0.03967570513486862, -0.02752678655087948, 0.046052876859903336, 0.011906747706234455, -0.03325816988945007, -0.02490326575934887, 0.017224421724677086, 0.015902571380138397, 0.01023173052817583, -0.03402504697442055, 0.012713984586298466, 0.0023977465461939573, 0.04472093656659126, -0.03854557126760483, 0.059130121022462845, 0.03325816988945007, -0.027365338057279587, -0.031098810955882072, 0.06474041938781738, -0.013521222397685051, 0.0032516520004719496, -0.0355587974190712, 0.041734158992767334, -0.00004256914689904079, -0.0017809668788686395, 0.06449824571609497, 0.0669199600815773, -0.04698120057582855, 0.02264300175011158, -0.011452676728367805, -0.0032062449026852846, 0.018082112073898315, 0.0693013072013855, 0.01132150087505579, 0.006619344465434551, 0.07131940126419067, -0.0260737594217062, 0.0034458935260772705, -0.018394915387034416, -0.01911133900284767, 0.03138134256005287, -0.02443910390138626, 0.02508489415049553, 0.018677448853850365, -0.01484307274222374, 0.0035341850016266108, 0.007133958395570517, 0.013622126542031765, 0.03075573407113552, -0.024398742243647575, 0.005302539095282555, -0.010352816432714462, -0.061471108347177505, 0.037294354289770126, -0.07075433433055878, -0.0008141743019223213, -0.05662768334150314, -0.024196933954954147, -0.004785402677953243, -0.05275294557213783, 0.0017633086536079645, 0.034226853400468826, -0.0020773743744939566, -0.01677035167813301, 0.03608350083231926, 0.010050102137029171, 0.049766167998313904, 0.006281313952058554, 0.0017494342755526304, -0.04399442300200462, -0.00814804993569851, -0.02490326575934887, -0.06570909917354584, -0.01204801443964243, -0.023430056869983673, -0.0019134043250232935, -0.017537226900458336, -0.00543371494859457, -0.051178835332393646, 0.02508489415049553, 0.00826913584023714, 0.059493377804756165, -0.04157271236181259, 0.04932218790054321, -0.03715308755636215, 0.05549755319952965, 0.052833668887615204, -0.03408558666706085, 0.035578977316617966, -0.029383432120084763, -0.03111899085342884, 0.028394566848874092, -0.01967640593647957, 0.0014240167802199721, 0.058040350675582886, -0.002026922069489956, 0.03372232988476753, 0.016053928062319756, -0.056062620133161545, -0.019747037440538406, 0.020988166332244873, 0.006816108711063862, 0.0002759111230261624, -0.014035835862159729, 0.010978424921631813, -0.016467638313770294, -0.03503409028053284, -0.026416834443807602, 0.07571884244680405, -0.01042344979941845, -0.03202713280916214, -0.033681970089673996, 0.00010531921725487337, 0.0030700236093252897, -0.06857479363679886, -0.03339943662285805, 0.027365338057279587, 0.01484307274222374, -0.010085418820381165, 0.0033576020505279303, -0.006493213586509228, -0.06978564709424973, -0.00480306101962924, 0.02742588147521019, 0.050290875136852264, 0.03616422414779663, -0.03023103065788746, 0.003471119562163949, -0.0022867515217512846, -0.023571323603391647, 0.05081557855010033 ]
20,538
pyratings.utils
_get_translation_dict
Load translation dictionaries from SQLite database.
def _get_translation_dict( translation_table: str, rating_provider: str = None, tenor: str = "long-term", st_rtg_strategy: str = "base", ) -> dict | pd.DataFrame: """Load translation dictionaries from SQLite database.""" def _rtg_to_scores(tenor: str) -> dict[str, int]: """Create translation dictionary to translate from ratings to scores.""" if tenor == "long-term": sql_query = """ SELECT Rating, RatingScore FROM v_ltRatings WHERE RatingProvider=? """ cursor.execute(sql_query, (rating_provider,)) else: sql_query = """ SELECT Rating, AvgEquivLTScore FROM v_stRatings WHERE RatingProvider=? and Strategy=? """ cursor.execute(sql_query, (rating_provider, st_rtg_strategy)) return dict(cursor.fetchall()) def _scores_to_rtg(tenor: str, strat: str) -> dict[int, str] | pd.DataFrame: """Create translation dictionary to translate from scores to ratings.""" if tenor == "long-term": sql_query = """ SELECT RatingScore, Rating FROM v_ltRatings WHERE Rating != 'SD' and RatingProvider=? """ cursor.execute(sql_query, (rating_provider,)) translation_dict = dict(cursor.fetchall()) else: sql_query = """ SELECT MinEquivLTScore, MaxEquivLTScore, Rating FROM v_stRatings WHERE RatingProvider=? and Strategy=? ORDER BY MaxEquivLTScore """ cursor.execute(sql_query, (rating_provider, strat)) translation_dict = pd.DataFrame.from_records( cursor.fetchall(), columns=["MinScore", "MaxScore", "Rating"] ) return translation_dict def _scores_to_warf() -> dict[int, int]: """Create translation dictionary to translate from scores to WARFs.""" sql_query = "SELECT RatingScore, WARF FROM WARFs" cursor.execute(sql_query) return dict(cursor.fetchall()) # connect to database connection = sqlite3.connect(str(RATINGS_DB)) cursor = connection.cursor() if translation_table == "rtg_to_scores": translation_dict = _rtg_to_scores(tenor=tenor) elif translation_table == "scores_to_rtg": translation_dict = _scores_to_rtg(tenor=tenor, strat=st_rtg_strategy) else: translation_dict = _scores_to_warf() # close database connection connection.close() return translation_dict
(translation_table: str, rating_provider: Optional[str] = None, tenor: str = 'long-term', st_rtg_strategy: str = 'base') -> dict | pandas.core.frame.DataFrame
[ 0.03934849053621292, -0.05665120482444763, -0.04219433292746544, 0.024493202567100525, 0.005312236025929451, -0.05479191988706589, -0.03301175311207771, 0.03285997360944748, 0.030469469726085663, -0.045533452183008194, -0.03608526289463043, 0.06553022563457489, -0.04200461134314537, 0.06257054954767227, -0.025271065533161163, 0.026276595890522003, -0.019541440531611443, 0.08218788355588913, -0.009495622478425503, -0.03037460707128048, 0.025555649772286415, -0.008504320867359638, -0.036369845271110535, 0.030526386573910713, -0.03378961607813835, -0.014380982145667076, -0.02716829441487789, -0.03416906297206879, 0.04223227873444557, 0.02151455730199814, 0.02210269682109356, -0.01122209895402193, 0.019275829195976257, 0.011914586648344994, -0.08765189349651337, -0.0461026206612587, 0.006578635424375534, -0.047051236033439636, -0.005535160191357136, -0.03923465684056282, -0.044812507927417755, -0.010738305747509003, 0.02582126297056675, -0.05316030606627464, -0.041511330753564835, 0.013641063123941422, -0.052021969109773636, -0.07960765063762665, 0.052553191781044006, -0.010377832688391209, 0.024189647287130356, -0.02752876654267311, 0.012180198915302753, 0.04052477329969406, -0.02671295963227749, 0.010368346236646175, -0.07558552920818329, 0.06560611724853516, 0.018744604662060738, -0.06040771305561066, 0.021116139367222786, 0.012009448371827602, -0.06617528200149536, 0.06473339349031448, 0.008494834415614605, -0.014580191113054752, 0.0414733849465847, -0.061242494732141495, -0.02811690792441368, -0.006222905125468969, 0.002997618867084384, 0.007745429873466492, -0.019275829195976257, -0.02009163610637188, -0.023316921666264534, 0.0462164543569088, -0.002343075582757592, -0.06298794597387314, -0.003962833434343338, -0.02327897772192955, 0.021818112581968307, -0.03251847252249718, 0.07930409908294678, -0.00329406070522964, 0.061242494732141495, -0.016278209164738655, 0.055740535259246826, 0.03445364534854889, -0.01984499581158161, -0.021173056215047836, -0.0827191025018692, -0.030886858701705933, 0.02730109915137291, 0.010245027020573616, -0.016885321587324142, -0.013745411299169064, 0.00022603683464694768, -0.009362815879285336, -0.028496352955698967, -0.02971057780086994, 0.06010415777564049, 0.00339129357598722, -0.014362010173499584, -0.01394462026655674, 0.02269083820283413, -0.04488839581608772, -0.019901912659406662, 0.00023596762912347913, -0.032708197832107544, -0.053729474544525146, -0.09994593262672424, -0.007546221371740103, 0.005473500583320856, 0.019408633932471275, -0.015073469839990139, -0.03957615792751312, -0.034358784556388855, -0.010880597867071629, -0.018033144995570183, 0.017786504700779915, -0.004154927562922239, 0.050731856375932693, 0.012521699070930481, 0.01772010140120983, 0.0034814118407666683, -0.04963146522641182, 0.01584184728562832, 0.015234734863042831, 0.047127123922109604, 0.03602834418416023, 0.0026347741950303316, -0.02056594379246235, -0.012218142859637737, 0.017701130360364914, 0.015965167433023453, -0.012331976555287838, 0.01676200143992901, 0.05069391056895256, 0.03420700505375862, 0.03352400287985802, 0.03373270109295845, -0.0365595668554306, 0.0050987983122467995, -0.03485206514596939, 0.022956449538469315, -0.03714770823717117, -0.011411821469664574, 0.05611998215317726, -0.03710976243019104, -0.04154927656054497, 0.009865581057965755, -0.012588102370500565, -0.024151701480150223, 0.006227648351341486, -0.00863712653517723, -0.05494369938969612, 0.022937476634979248, -0.06044565886259079, 0.005231603980064392, 0.014694024808704853, 0.051604580134153366, -0.043522391468286514, -0.03674929216504097, -0.050959523767232895, -0.015471887774765491, 0.0030237059108912945, 0.05274291709065437, -0.011563600040972233, 0.024967510253190994, -0.03470028564333916, -0.006275078747421503, -0.008224479854106903, -0.030905831605196, -0.028230741620063782, -0.003851371118798852, 0.03519356623291969, 0.010928028263151646, -0.026257624849677086, 0.01587030477821827, 0.016448959708213806, 0.039727937430143356, -0.07133574038743973, -0.013754896819591522, 0.008200764656066895, 0.0033509775530546904, 0.012237115763127804, 0.021362777799367905, 0.024569092318415642, 0.029141409322619438, 0.022956449538469315, 0.0034980126656591892, -0.056575316935777664, -0.04477456212043762, 0.009201551787555218, -0.002615801990032196, 0.018592827022075653, 0.02475881576538086, 0.015263193286955357, -0.04166311025619507, -0.0229943934828043, -0.016676627099514008, -0.003955718595534563, 0.01908610574901104, 0.02872402034699917, -0.04803779348731041, -0.03251847252249718, -0.029084492474794388, -0.030165912583470345, -0.03976588323712349, -0.04845518246293068, 0.006621323060244322, -0.051908135414123535, -0.018716147169470787, -0.03557300940155983, -0.0029739036690443754, -0.015822874382138252, 0.03532636910676956, 0.025954067707061768, -0.007797603961080313, -0.02252008765935898, -0.003946232609450817, -0.03217697516083717, -0.03752715513110161, -0.05316030606627464, 0.05054213106632233, -0.05274291709065437, -0.0007920923526398838, 0.029217299073934555, 0.013280590064823627, -0.047354791313409805, 0.018042631447315216, -0.06807251274585724, 0.02557462267577648, -0.03857062757015228, 0.04466072842478752, -0.10290560126304626, 0.009201551787555218, 0.010795222595334053, 0.025593595579266548, -0.007878235541284084, 0.04659590125083923, -0.007873493246734142, -0.03149397298693657, 0.02551770582795143, -0.08233965933322906, -0.044281281530857086, 0.03396036848425865, -0.023013366386294365, -0.03498486801981926, -0.03401728346943855, 0.04196666553616524, -0.035003840923309326, 0.01696121133863926, 0.00734226917847991, 0.007792860735207796, -0.055740535259246826, -0.016894808039069176, 0.05054213106632233, 0.018175436183810234, -0.056575316935777664, 0.013935133814811707, -0.0024201504420489073, -0.08233965933322906, -0.005739112384617329, -0.0156521238386631, -0.013394423760473728, -0.019522467628121376, 0.005231603980064392, -0.03084891475737095, -0.020357247442007065, -0.02682679332792759, 0.05687887221574783, -0.04750657081604004, -0.00045740962377749383, -0.005805515218526125, 0.02198886312544346, 0.05505753308534622, 0.009358073584735394, 0.017150934785604477, -0.0024379368405789137, 0.021343806758522987, -0.012123282067477703, 0.014485329389572144, 0.04515400901436806, 0.05528520047664642, 0.00747507531195879, -0.03803940489888191, -0.026675013825297356, 0.06685828417539597, 0.0048569017089903355, 0.025669483467936516, 0.0058814045041799545, 0.023734312504529953, 0.05490575358271599, 0.015765957534313202, 0.04261172190308571, 0.011250557377934456, -0.06716184318065643, 0.0924329087138176, -0.01637306995689869, 0.0018071088707074523, -0.012208657339215279, 0.16027775406837463, 0.061546050012111664, -0.05467808619141579, 0.034719258546829224, 0.057941317558288574, -0.04443306103348732, -0.03426392376422882, -0.016942238435149193, -0.010140679776668549, -0.009168350137770176, 0.05482986569404602, 0.027927184477448463, -0.01004581805318594, -0.03534534201025963, -0.05748598277568817, 0.011098778806626797, 0.01956041157245636, 0.02517620474100113, -0.01105134841054678, 0.04420539364218712, 0.03208211064338684, -0.006232391577214003, 0.08082187920808792, -0.12134665250778198, 0.008746217004954815, -0.029767494648694992, 0.05240141600370407, -0.03591451048851013, 0.024796759709715843, -0.04727890342473984, 0.029444966465234756, -0.002983389887958765, 0.022709809243679047, 0.0933435782790184, -0.010928028263151646, 0.006189703941345215, 0.02037622034549713, 0.0042284452356398106, 0.04253583401441574, -0.018545396625995636, 0.0014584934106096625, 0.03479514643549919, 0.05213580280542374, -0.017890851944684982, -0.007446616888046265, -0.02198886312544346, 0.02878093719482422, -0.07334680110216141, -0.06465750187635422, 0.003151768585667014, 0.007109859026968479, 0.08939734846353531, -0.010245027020573616, 0.01598413847386837, -0.004197615198791027, -0.05088363215327263, 0.0007476261234842241, 0.025593595579266548, 0.006749385967850685, 0.00809167418628931, -0.006626065820455551, 0.028041018173098564, 0.01595568098127842, 0.012417351827025414, -0.024417314678430557, -0.004503543023020029, -0.00639365566894412, 0.01081419549882412, 0.02151455730199814, -0.0008395230397582054, 0.03227183595299721, 0.04750657081604004, 0.0009486136259511113, -0.016980184242129326, 0.0024284508544951677, 0.031095553189516068, -0.008765189908444881, 0.004166785161942244, 0.05790337547659874, 0.024569092318415642, 0.005464014131575823, 0.06386066973209381, 0.05004885420203209, -0.06416422128677368, 0.053919196128845215, -0.03953821584582329, -0.0031802270095795393, -0.03206314146518707, -0.08309855312108994, 0.026105847209692, 0.05122513324022293, 0.022197557613253593, -0.018260812386870384, -0.00004168712257524021, -0.03138013929128647, -0.01584184728562832, 0.01255964394658804, 0.01450430229306221, -0.012474268674850464, -0.06628911942243576, 0.008490092121064663, -0.015547776594758034, -0.022956449538469315, -0.010880597867071629, 0.08750011771917343, 0.02758568339049816, -0.023791229352355003, 0.017084531486034393, -0.06996973603963852, -0.007830805145204067, -0.036066289991140366, 0.007157289423048496, -0.03191136196255684, -0.016894808039069176, 0.023373838514089584, 0.06329149752855301, -0.016866350546479225, 0.04496428370475769, 0.03242361173033714, -0.01444738544523716, 0.03640779107809067, 0.05854843184351921, -0.0016837891889736056, -0.007892465218901634, -0.0007179818931035697, -0.015101928263902664, -0.007000768557190895, -0.014248176477849483, -0.01730271242558956, -0.041093941777944565, 0.035478148609399796, -0.06313972175121307, 0.03832399100065231, -0.009998387657105923, 0.00947190634906292, 0.0017442632233723998, -0.018839465454220772, -0.004344650078564882, 0.05171841382980347, 0.0049659921787679195, 0.05205991491675377, -0.015452915802598, -0.038551658391952515, -0.040980108082294464, -0.033049698919057846, 0.010207082144916058, -0.04006943851709366, -0.021248944103717804, -0.01615488901734352, 0.013166756369173527, 0.05813104286789894, 0.04526784271001816, -0.018422076478600502, 0.03149397298693657, 0.004287733696401119, -0.02316514402627945, -0.04837929457426071, 0.0229943934828043, -0.0030521643348038197, -0.003984177019447088, 0.03318250551819801, 0.027282126247882843, 0.030678164213895798, 0.025612566620111465, -0.03378961607813835, -0.07031124085187912, -0.06234288588166237, -0.016885321587324142, 0.020755665376782417, 0.047468625009059906, 0.04625440016388893, -0.028515323996543884, 0.017615754157304764, -0.013166756369173527, -0.0005003936821594834, -0.023848146200180054, -0.014760427176952362, 0.027680544182658195, 0.05623381584882736, -0.02872402034699917, -0.03267025202512741, 0.006104328669607639, 0.0021818112581968307, -0.028515323996543884, -0.02534695528447628, 0.0006652153097093105, -0.02705446071922779, -0.019209425896406174, -0.03769790381193161, 0.05611998215317726, 0.08097365498542786, 0.047772180289030075, -0.03724256902933121, 0.0465579554438591, 0.009618941694498062, -0.007864006794989109, 0.012104309163987637, -0.03373270109295845, 0.049783241003751755, -0.00722369272261858, -0.07854520529508591, 0.020660804584622383, 0.04359827935695648, -0.021343806758522987, -0.05410892143845558, 0.024265535175800323, 0.013252131640911102, -0.020072663202881813, -0.029672633856534958, -0.002490110695362091, 0.0518701933324337, -0.010472694411873817, -0.031171442940831184, -0.01864025741815567, 0.0006278636283241212, -0.007124088238924742, -0.020072663202881813, -0.023184116929769516, -0.0022790441289544106, 0.06598556041717529, 0.031152470037341118, -0.006398398894816637, 0.004861644934862852, 0.016638683155179024, 0.04928996413946152, 0.00989403948187828, 0.05907965451478958, -0.03900698944926262, -0.052856750786304474, 0.004932790528982878, 0.012550157494843006, -0.044281281530857086, 0.026618096977472305, 0.021002305671572685, 0.010614986531436443, -0.04261172190308571, -0.00792092364281416, 0.019826024770736694, 0.022482141852378845, 0.014324065297842026, -0.020129580050706863, -0.07201874256134033, 0.04849312826991081, 0.00023552296624984592, -0.06549227982759476, 0.021552501246333122, 0.01735014282166958, -0.005506701767444611, -0.004980221390724182, 0.024037867784500122, 0.062418773770332336, -0.027927184477448463, -0.03396036848425865, 0.0016920894850045443, -0.027339043095707893, 0.02233036421239376, 0.029558800160884857, 0.019323259592056274, 0.001581813208758831, -0.03821015730500221, 0.03792557120323181, 0.022292420268058777, 0.00865135621279478, 0.021666334941983223, -0.0009646214311942458, 0.08772778511047363, -0.020641831681132317, 0.005179430358111858, 0.016676627099514008, 0.011648975312709808, 0.04200461134314537, 0.009016572497785091, -0.041397497057914734, -0.04815162718296051, -0.05133896693587303, -0.039196714758872986, -0.0008798391208983958, -0.04648206755518913, 0.05342591926455498, 0.03308764100074768, 0.031038636341691017, -0.0017916939686983824, 0.036901067942380905, 0.06063538044691086, -0.02688371017575264, 0.12051187455654144, 0.0662132278084755, 0.0013660035328939557, -0.037185654044151306, 0.03762201592326164, 0.009509851224720478, -0.0116679472848773, 0.04473661631345749, 0.03280305862426758, -0.03864651918411255, 0.032120056450366974, -0.0036474193911999464, -0.03037460707128048, -0.08279499411582947, 0.041321609169244766, -0.06480927765369415, -0.0468994565308094, 0.03900698944926262, -0.03720462694764137, 0.06044565886259079, 0.022026807069778442, -0.021116139367222786, -0.000514622894115746, -0.011449766345322132, 0.02895168773829937, 0.028496352955698967, -0.082491435110569, 0.10609294474124908, -0.07410569489002228, -0.026599125936627388, 0.0011667946819216013, 0.009068746119737625, -0.08302266150712967, -0.04318089038133621, 0.03445364534854889, -0.02168530784547329, 0.03139910846948624, -0.01640152931213379, 0.03470028564333916, 0.01769164390861988, -0.004681407939642668, -0.019465550780296326, -0.0831744372844696, 0.025593595579266548, -0.04781012609601021, 0.060938939452171326, -0.009116176515817642, 0.008404716849327087, 0.0518701933324337, 0.07573731243610382, -0.024246564134955406, -0.001168573391623795, 0.06822428852319717, 0.053919196128845215, -0.008053729310631752, 0.032120056450366974, 0.03454850614070892, 0.03635087236762047, 0.008447404019534588, -0.009116176515817642, -0.02244419790804386, -0.019901912659406662, 0.03020385652780533, -0.036180123686790466, 0.012540671974420547, 0.0075367349199950695, -0.05217374861240387, -0.018678201362490654, -0.0024106642231345177, -0.020584914833307266, -0.021305860951542854, 0.0058908904902637005, 0.035591982305049896, 0.00396046182140708, -0.010368346236646175, -0.01625923626124859, 0.017739074304699898, 0.07065273821353912, -0.0022304276935756207, -0.053919196128845215, 0.038855213671922684, 0.07960765063762665, 0.01187664270401001, 0.04815162718296051, 0.03705284744501114, 0.05183224752545357, 0.016060028225183487, 0.0019280571723356843, 0.027452876791357994, 0.013527230359613895, 0.0073470124043524265, 0.05771365016698837, -0.007323297206312418, 0.01550983265042305, 0.058927878737449646, 0.029501883313059807, 0.028041018173098564, -0.0232220608741045, 0.005188916344195604, -0.050731856375932693, 0.0020324045326560736, 0.00019209425954613835, -0.028154851868748665, 0.017672671005129814, -0.009742261841893196, -0.06055949255824089, -0.014532760716974735, -0.00014429302245844156, -0.05714448168873787, -0.05854843184351921, -0.01601259782910347, 0.017644213512539864, 0.008698786608874798, 0.023146171122789383, 0.0045343730598688126, 0.031228359788656235, 0.02912243828177452, 0.0020715349819511175, -0.01740705966949463, -0.01299600675702095, -0.027851294726133347, -0.013318534940481186, -0.04234611243009567, -0.00039219242171384394, 0.005193659570068121, -0.0015640266938135028, 0.01033988781273365, 0.004496428649872541, 0.00809167418628931, -0.015035525895655155, 0.046444121748209, -0.0022126412950456142, -0.03953821584582329, -0.010245027020573616, -0.03437775745987892, 0.0515286922454834, 0.046937402337789536, -0.004313820507377386, 0.019399147480726242, 0.012464783154428005, -0.04261172190308571, -0.018773064017295837, 0.0183082427829504, -0.008518550544977188, 0.036654431372880936, -0.03432083874940872, -0.04272555559873581, -0.009272698312997818, -0.021723251789808273, 0.04272555559873581, -0.018848951905965805, 0.028154851868748665, 0.019180966541171074, -0.05346386134624481, -0.008300368674099445, -0.030810968950390816, 0.0015201532514765859, 0.00021847756579518318, 0.06374683231115341, -0.04378800466656685, -0.04557139798998833, -0.02085052616894245, 0.06913495808839798, 0.08985268324613571, 0.0366164855659008, -0.021894002333283424, -0.02215961366891861, 0.028097935020923615, 0.004254532046616077, 0.052856750786304474, -0.004558088257908821, -0.00998890120536089, -0.0058197444304823875, -0.0034387242048978806, 0.012720908038318157, -0.011810239404439926, 0.018773064017295837, 0.013697979971766472, -0.0042450460605323315, 0.007859263569116592, 0.010207082144916058 ]
20,542
pyratings.consolidate
consolidate_ratings
Consolidate ratings on a security level basis across rating agencies . Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) method Defines the method that will be used in order to consolidate the ratings on a security level basis across rating agencies. Valid methods are {"best", "second_best", "worst"}. rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. rating_provider_output Indicates which rating scale will be used for output results. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Consolidated ratings on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) Identify the best ratings: >>> consolidate_ratings( ... ratings=ratings_df, ... method="best", ... rating_provider_input=["S&P", "Moody", "Fitch"], ... rating_provider_output="Moody", ... ) 0 Aaa 1 Aa3 2 Aa1 3 Ba3 4 Ca Name: best_rtg, dtype: object Identify the second-best ratings: >>> consolidate_ratings( ... ratings=ratings_df, ... method="second_best", ... rating_provider_input=["S&P", "Moody", "Fitch"], ... rating_provider_output="DBRS", ... ) 0 AAH 1 AAL 2 AA 3 BBL 4 C Name: second_best_rtg, dtype: object Identify the worst ratings: >>> consolidate_ratings( ... ratings=ratings_df, ... method="worst", ... rating_provider_input=["S&P", "Moody", "Fitch"] ... ) 0 AA- 1 AA- 2 AA- 3 B+ 4 C Name: worst_rtg, dtype: object
def consolidate_ratings( ratings: pd.DataFrame, method: Literal["best", "second_best", "worst"] = "worst", rating_provider_input: list[str] = None, rating_provider_output: Literal[ "Fitch", "Moody", "S&P", "Bloomberg", "DBRS" ] = "S&P", tenor: Literal["long-term", "short-term"] = "long-term", ) -> pd.Series: """Consolidate ratings on a security level basis across rating agencies . Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) method Defines the method that will be used in order to consolidate the ratings on a security level basis across rating agencies. Valid methods are {"best", "second_best", "worst"}. rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. rating_provider_output Indicates which rating scale will be used for output results. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Consolidated ratings on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) Identify the best ratings: >>> consolidate_ratings( ... ratings=ratings_df, ... method="best", ... rating_provider_input=["S&P", "Moody", "Fitch"], ... rating_provider_output="Moody", ... ) 0 Aaa 1 Aa3 2 Aa1 3 Ba3 4 Ca Name: best_rtg, dtype: object Identify the second-best ratings: >>> consolidate_ratings( ... ratings=ratings_df, ... method="second_best", ... rating_provider_input=["S&P", "Moody", "Fitch"], ... rating_provider_output="DBRS", ... ) 0 AAH 1 AAL 2 AA 3 BBL 4 C Name: second_best_rtg, dtype: object Identify the worst ratings: >>> consolidate_ratings( ... ratings=ratings_df, ... method="worst", ... rating_provider_input=["S&P", "Moody", "Fitch"] ... ) 0 AA- 1 AA- 2 AA- 3 B+ 4 C Name: worst_rtg, dtype: object """ func = { "best": get_best_scores, "second_best": get_second_best_scores, "worst": get_worst_scores, } # translate ratings -> scores rating_scores_series = func[method]( ratings, rating_provider_input=rating_provider_input, tenor=tenor ) # convert back to ratings ratings_series = get_ratings_from_scores( rating_scores=rating_scores_series, rating_provider=rating_provider_output, tenor=tenor, ) ratings_series.name = f"{method}_rtg" return ratings_series
(ratings: pandas.core.frame.DataFrame, method: Literal['best', 'second_best', 'worst'] = 'worst', rating_provider_input: Optional[list[str]] = None, rating_provider_output: Literal['Fitch', 'Moody', 'S&P', 'Bloomberg', 'DBRS'] = 'S&P', tenor: Literal['long-term', 'short-term'] = 'long-term') -> pandas.core.series.Series
[ 0.016189346089959145, -0.06007565185427666, 0.06216079369187355, -0.018107281997799873, -0.006181654985994101, -0.09568040817975998, -0.008084837347269058, -0.015638554468750954, 0.08584484457969666, 0.04551900923252106, 0.003501462284475565, 0.04921718314290047, 0.01936623454093933, 0.05468576028943062, -0.01282558124512434, 0.022425096482038498, -0.006225914694368839, 0.014379600994288921, 0.0236447062343359, -0.008222535252571106, -0.007686496712267399, -0.000726602622307837, 0.01781221479177475, 0.013563249260187149, 0.019130181521177292, 0.08356299251317978, 0.016602439805865288, -0.005847245454788208, -0.053505491465330124, 0.023349639028310776, 0.07742559164762497, -0.0050849891267716885, -0.055039841681718826, -0.0023900431115180254, -0.02037929743528366, -0.04850902408361435, 0.017428627237677574, 0.04685664921998978, -0.006265257019549608, 0.007012760266661644, -0.039617668837308884, -0.0033490110654383898, 0.042961765080690384, -0.08804801106452942, -0.027814988046884537, 0.06381316483020782, 0.00026832660660147667, 0.020339956507086754, -0.00011049646855099127, -0.07093411684036255, -0.004662059247493744, 0.006668515503406525, 0.009481487795710564, 0.029152624309062958, 0.036785025149583817, 0.01601230539381504, -0.02250378020107746, 0.06912437826395035, 0.04500756040215492, -0.06629173457622528, 0.0331852063536644, -0.007071773987263441, -0.013317359611392021, 0.024844646453857422, 0.006722610909491777, -0.018776100128889084, -0.022031674161553383, -0.004376828204840422, -0.031965598464012146, 0.015471349470317364, 0.024038128554821014, 0.0004776397836394608, -0.021028446033596992, -0.0028301847632974386, -0.043748609721660614, 0.028051041066646576, 0.06534751504659653, -0.02384141832590103, 0.025041356682777405, -0.044102687388658524, 0.05263996124267578, 0.02014324441552162, 0.03172954544425011, -0.0688096359372139, 0.02138252556324005, -0.027933014556765556, 0.0005249734967947006, -0.01131090335547924, 0.0008741361671127379, 0.0005947445170022547, -0.037906281650066376, -0.025788860395550728, 0.03269343078136444, -0.03682436794042587, -0.03349994495511055, 0.02486431784927845, -0.020871076732873917, -0.03495560958981514, -0.023054571822285652, -0.009132325649261475, -0.010661756619811058, 0.029821444302797318, 0.00996343046426773, -0.007745509967207909, 0.004927619826048613, -0.007042266894131899, -0.029211638495326042, 0.030332893133163452, -0.07636335492134094, 0.02687077224254608, -0.03918490558862686, -0.029723087325692177, 0.012717390432953835, -0.05385957285761833, 0.0038088238798081875, -0.020221928134560585, -0.0779370442032814, 0.022995559498667717, -0.022228384390473366, -0.007922550663352013, -0.007047184742987156, 0.046109143644571304, 0.007971728220582008, -0.008807751350104809, -0.04079793766140938, -0.023939773440361023, 0.0026605213060975075, 0.021579237654805183, -0.03552607446908951, 0.042174916714429855, -0.05197114497423172, 0.002232674043625593, -0.03493594005703926, 0.03584081307053566, 0.01058307196944952, -0.011950215324759483, -0.039814382791519165, -0.0020900582894682884, 0.023231612518429756, 0.012294461019337177, 0.0551578663289547, 0.0018122035544365644, 0.030942698940634727, -0.007558634504675865, 0.029821444302797318, -0.02051699534058571, 0.033755671232938766, 0.04622717201709747, 0.017064711079001427, -0.02004488930106163, -0.009343789890408516, 0.01880560629069805, 0.04780086129903793, -0.04355189576745033, 0.059524860233068466, -0.02633965201675892, 0.002232674043625593, 0.00015783014532644302, -0.007165211718529463, -0.0497286356985569, 0.016189346089959145, -0.0681801587343216, 0.01400584913790226, -0.03385402634739876, -0.004106349777430296, -0.005621027201414108, 0.04414203017950058, 0.0009349937317892909, 0.00512433098629117, -0.032772112637758255, 0.028031369671225548, -0.018215473741292953, -0.05059416592121124, -0.0439453199505806, -0.002263410249724984, 0.019012153148651123, 0.0024207793176174164, -0.024352867156267166, 0.01701553352177143, 0.0024994637351483107, 0.01668112352490425, -0.058305248618125916, -0.012569856829941273, -0.009038887917995453, -0.01276656799018383, -0.00906839407980442, 0.029428020119667053, -0.04634520038962364, -0.015648389235138893, 0.01472384575754404, 0.007106198463588953, -0.025257740169763565, -0.060547757893800735, 0.002844938077032566, 0.011065014638006687, -0.05968223139643669, -0.008222535252571106, 0.009727377444505692, -0.03312619403004646, 0.010327346622943878, 0.015097597613930702, 0.03654897212982178, 0.05354483425617218, 0.02565116249024868, -0.005670205224305391, 0.01064208522439003, -0.06046907603740692, -0.0324573777616024, -0.04067991301417351, -0.024136485531926155, 0.03306718170642853, 0.028188738971948624, 0.032654087990522385, -0.039125893265008926, -0.01035685371607542, 0.030155852437019348, 0.14525167644023895, 0.008738902397453785, -0.03786693885922432, 0.0013696028618142009, -0.03349994495511055, -0.0649147555232048, -0.0215202234685421, 0.031867243349552155, 0.049020472913980484, -0.03271310031414032, -0.03822102025151253, -0.011124027892947197, 0.04142741486430168, -0.06216079369187355, -0.027952685952186584, -0.08631695061922073, 0.0757732167840004, -0.0017421250231564045, -0.08395641297101974, -0.04134872928261757, 0.01198955811560154, -0.008871682919561863, -0.016159839928150177, 0.00442846491932869, -0.006058710161596537, 0.025238068774342537, -0.007863537408411503, 0.01770402304828167, -0.039145562797784805, -0.04894178733229637, 0.028031369671225548, 0.00789304357022047, 0.003703091526404023, -0.048233628273010254, 0.045873090624809265, -0.012451829388737679, -0.006152147892862558, -0.016504084691405296, -0.01125189010053873, -0.03731614723801613, -0.07258649915456772, 0.06857358664274216, -0.004757956136018038, -0.03706042096018791, 0.018412183970212936, 0.006501310970634222, -0.0017679434968158603, -0.03393271192908287, -0.023546351119875908, -0.010730605572462082, -0.0028178903739899397, 0.025729848071932793, -0.0026162611320614815, 0.0036662081256508827, -0.06298697739839554, 0.020812062546610832, -0.008389740251004696, 0.0427650511264801, -0.023821746930480003, 0.029034597799181938, -0.0231922697275877, -0.025395438075065613, 0.0365293025970459, -0.09237565845251083, 0.020221928134560585, -0.004042418673634529, -0.0031301695853471756, 0.032673757523298264, 0.07679612189531326, 0.021913645789027214, 0.04504690319299698, -0.06263290345668793, 0.027834659442305565, 0.04477150738239288, 0.005104660056531429, -0.023900430649518967, 0.0011802682420238853, 0.03839806094765663, 0.019238371402025223, 0.014418943785130978, 0.038830824196338654, -0.10779783129692078, 0.06703923642635345, -0.0454796701669693, -0.07671743631362915, 0.02533642388880253, 0.06605567783117294, 0.032103296369314194, 0.015618883073329926, -0.028739530593156815, 0.005640698596835136, -0.06436396390199661, -0.03127710893750191, 0.029487034305930138, 0.020320285111665726, 0.021480882540345192, -0.03696206584572792, -0.03224099427461624, -0.026241296902298927, -0.05421365424990654, -0.016071319580078125, 0.04178149625658989, 0.031296778470277786, 0.012471500784158707, 0.008679889142513275, -0.012078078463673592, -0.012461665086448193, -0.005055482033640146, 0.007101280614733696, -0.020635021850466728, -0.05173509195446968, 0.029703417792916298, -0.03070664405822754, -0.006196408066898584, -0.022661149501800537, 0.005547260865569115, 0.026949457824230194, 0.007391429506242275, -0.027401894330978394, 0.07207504659891129, -0.025788860395550728, -0.0645606741309166, 0.016425399109721184, 0.005257111508399248, -0.005276782438158989, -0.016307372599840164, 0.00783894769847393, 0.013238674961030483, -0.002031044801697135, 0.012078078463673592, 0.03648995980620384, 0.010160142555832863, -0.02386108972132206, -0.08301220089197159, 0.011576464399695396, -0.0014433696633204818, -0.021559566259384155, 0.020871076732873917, -0.007199636194854975, 0.04264702647924423, -0.03212296590209007, -0.031768884509801865, 0.03867345675826073, -0.031768884509801865, 0.028385451063513756, -0.030745986849069595, 0.0409553088247776, -0.000045297401811694726, -0.0074209365993738174, 0.035565417259931564, 0.024234840646386147, -0.020074395462870598, 0.019356397911906242, -0.05956420302391052, 0.023349639028310776, 0.004138315562158823, 0.03582113981246948, -0.002653144532814622, -0.036804698407649994, 0.08403509855270386, 0.013651768676936626, -0.027696961537003517, 0.012245282530784607, 0.011114192195236683, 0.009894581511616707, 0.008979873731732368, 0.03351961821317673, 0.037237461656332016, 0.038712795823812485, 0.012235446833074093, 0.006294763647019863, -0.018717085942626, -0.01924820803105831, -0.03469988703727722, -0.08080903440713882, 0.008325808681547642, -0.020123573020100594, 0.013799302279949188, -0.05799051374197006, -0.002945752814412117, -0.024569250643253326, 0.017900735139846802, -0.018431855365633965, 0.03548673167824745, 0.020792391151189804, -0.06869161128997803, 0.07262583822011948, -0.03627357631921768, -0.02586754597723484, -0.01735977828502655, 0.03464087098836899, 0.01076011173427105, -0.015658225864171982, 0.007770099211484194, -0.01825481466948986, -0.017625339329242706, -0.024274183437228203, 0.024687277153134346, 0.0028990337159484625, 0.009791308082640171, 0.02710682712495327, 0.07290123403072357, 0.04319781810045242, 0.034994952380657196, 0.04544032737612724, -0.04052254185080528, -0.02966407500207424, 0.07864520698785782, -0.0048956540413200855, -0.05531523749232292, 0.059092096984386444, -0.04992534592747688, -0.018067939206957817, -0.010228991508483887, 0.020339956507086754, 0.0022080850321799517, -0.05016139894723892, 0.00025818365975283086, 0.012953443452715874, -0.024510236456990242, 0.02028094232082367, 0.03778825327754021, -0.036804698407649994, -0.00557676749303937, 0.010661756619811058, -0.029998483136296272, -0.029093611985445023, -0.03361797332763672, -0.0292509812861681, -0.05421365424990654, -0.005055482033640146, 0.012038735672831535, -0.06558357179164886, -0.0490991584956646, 0.032319679856300354, -0.015422170981764793, 0.03013618104159832, 0.09505093097686768, -0.0730586051940918, 0.07593058794736862, 0.10441439598798752, -0.004426005762070417, -0.005242357961833477, 0.03127710893750191, 0.03450317308306694, -0.02665439061820507, 0.02352667972445488, 0.04221425950527191, -0.055944714695215225, 0.07797639071941376, 0.0055718496441841125, -0.065465547144413, -0.018756428733468056, 0.02230706997215748, 0.04264702647924423, -0.016976190730929375, -0.012619034387171268, -0.005807903129607439, 0.039145562797784805, 0.07172096520662308, -0.001583526493050158, -0.04784020408987999, -0.03975536674261093, 0.03995208069682121, -0.033893369138240814, -0.020989103242754936, -0.03818167746067047, 0.01646474190056324, 0.026615047827363014, -0.06393119692802429, -0.03574245423078537, -0.013868151232600212, 0.046777963638305664, -0.01647457666695118, -0.009343789890408516, 0.05043679475784302, 0.023802075535058975, 0.061216577887535095, -0.04748612642288208, 0.08198929578065872, 0.010887973941862583, -0.02138252556324005, 0.006073463708162308, -0.005335795693099499, 0.058069195598363876, -0.009314283728599548, -0.06983253359794617, -0.05507918447256088, 0.06345909088850021, -0.0016745055327191949, -0.031316451728343964, 0.03115908056497574, -0.01282558124512434, -0.007912714965641499, -0.007578305434435606, 0.00011487636948004365, 0.040050435811281204, -0.005070235580205917, -0.01231413148343563, 0.01973015069961548, 0.004890736658126116, 0.004883359652012587, 0.02376273274421692, 0.005222687032073736, 0.01311081275343895, -0.013612426817417145, 0.027264196425676346, 0.06408856809139252, 0.02264147810637951, 0.010681427083909512, 0.07238978147506714, 0.04398466274142265, -0.009678198955953121, -0.02016291581094265, -0.04803691804409027, 0.07699283212423325, -0.0409553088247776, 0.013287853449583054, -0.01423206739127636, 0.04595177620649338, -0.0038309539668262005, 0.009250352159142494, 0.05484313145279884, 0.03104105405509472, -0.0049964687786996365, 0.02966407500207424, 0.029506705701351166, -0.042174916714429855, 0.02376273274421692, -0.06715726107358932, -0.018903963267803192, -0.06865226477384567, -0.0034080245532095432, -0.04280439391732216, 0.008276631124317646, 0.015510691329836845, 0.06452132761478424, 0.009255269542336464, 0.062003422528505325, -0.044850192964076996, -0.009815897792577744, 0.03989306464791298, -0.004128479864448309, 0.021008774638175964, -0.027933014556765556, -0.05020074173808098, 0.03906687721610069, -0.05901341140270233, 0.02171693556010723, 0.053820230066776276, 0.010366689413785934, 0.062003422528505325, -0.04662059620022774, -0.06023302301764488, -0.02868051826953888, 0.02911328338086605, 0.042056892067193985, -0.028503477573394775, -0.050004031509160995, 0.009614268317818642, -0.026634719222784042, -0.028877228498458862, -0.051931802183389664, -0.019572781398892403, -0.009678198955953121, 0.012382980436086655, 0.039027534425258636, -0.07715019583702087, -0.015550034120678902, 0.003167052986100316, -0.04941389709711075, 0.038122665137052536, -0.04752546548843384, 0.05220719799399376, 0.004278472159057856, -0.00863071158528328, 0.013514070771634579, -0.017989255487918854, 0.02429385483264923, 0.07042267173528671, -0.026910115033388138, 0.0043350267224013805, 0.043866634368896484, 0.016769643872976303, -0.05287601798772812, 0.015510691329836845, -0.005242357961833477, -0.04437808692455292, 0.08112376928329468, -0.028857557103037834, -0.033440932631492615, 0.011222383938729763, -0.028739530593156815, -0.002015062142163515, 0.02598557248711586, 0.09874910861253738, 0.03820134699344635, 0.007504538632929325, 0.10299807041883469, 0.02374306321144104, -0.019071167334914207, -0.033322904258966446, 0.04528295621275902, -0.07817310094833374, -0.01981867104768753, 0.060193680226802826, 0.009717541746795177, 0.018549881875514984, -0.03639160469174385, 0.05299404263496399, -0.059210121631622314, 0.007681578863412142, -0.018520375713706017, -0.025493793189525604, -0.0026482269167900085, -0.07632400840520859, 0.09450013935565948, 0.008320891298353672, -0.020359626039862633, 0.014438614249229431, 0.05421365424990654, -0.004322732333093882, -0.045991118997335434, -0.0008366380352526903, 0.030391907319426537, -0.03595883771777153, 0.017861392349004745, 0.027952685952186584, -0.03204428404569626, -0.006147230509668589, -0.03529002144932747, 0.005139084532856941, -0.04626651480793953, 0.03786693885922432, -0.055826686322689056, -0.031316451728343964, -0.0219726599752903, -0.044181372970342636, 0.040837280452251434, 0.028857557103037834, 0.0029777183663100004, -0.01540250051766634, 0.018077775835990906, 0.0054784114472568035, -0.0031449231319129467, 0.0006181040080264211, 0.05991828441619873, 0.07962876558303833, -0.034994952380657196, 0.031867243349552155, -0.026497021317481995, 0.006707857828587294, 0.0752224251627922, 0.026123270392417908, 0.06735397130250931, 0.04591243341565132, 0.018323663622140884, 0.01924820803105831, -0.009924088604748249, -0.019749822095036507, -0.0378866083920002, 0.01870725117623806, -0.06503278017044067, -0.010455209761857986, 0.004460430238395929, 0.01757616177201271, 0.015510691329836845, 0.008660217747092247, 0.024569250643253326, -0.032654087990522385, 0.011428930796682835, 0.001972031546756625, -0.04626651480793953, -0.06027236208319664, 0.015304144471883774, -0.04209623485803604, 0.0008925778674893081, -0.07093411684036255, 0.01159613486379385, 0.012530514039099216, -0.02317260019481182, -0.011901037767529488, 0.056416820734739304, 0.010622413828969002, 0.0011778093175962567, 0.05653484910726547, 0.00391701515763998, 0.01759583130478859, 0.04178149625658989, 0.02655603550374508, -0.009265105240046978, 0.020005546510219574, 0.0682588443160057, -0.05889538303017616, -0.002457662718370557, -0.009624104015529156, 0.004398957826197147, 0.04705335944890976, -0.02238575369119644, 0.008453670889139175, 0.00038143564597703516, -0.0012521907920017838, 0.011133863590657711, 0.009363461285829544, 0.002606425667181611, -0.034778568893671036, 0.03770957142114639, -0.036352261900901794, -0.008625793270766735, 0.012855088338255882, 0.03147381916642189, 0.018962975591421127, 0.04256834089756012, -0.025139713659882545, -0.013120648451149464, 0.006914404686540365, -0.00004656527016777545, 0.0394209586083889, 0.03080500103533268, -0.03650962933897972, -0.020812062546610832, -0.022484108805656433, 0.01645490527153015, 0.02329062670469284, -0.04874507710337639, -0.02620195411145687, -0.05240390822291374, -0.04111267626285553, -0.006152147892862558, 0.04662059620022774, 0.00594068318605423, -0.035919494926929474, -0.002958047203719616, -0.007111115846782923, 0.012038735672831535, -0.040601227432489395, 0.006491475272923708, 0.017064711079001427, -0.0015982799232006073, 0.03595883771777153, 0.022031674161553383, -0.013730453327298164, 0.004669436253607273, -0.02397911623120308, 0.042843736708164215, 0.01782204955816269, 0.045086245983839035, -0.013287853449583054, 0.04040451720356941, 0.024274183437228203, -0.0369817391037941, 0.015136939473450184 ]
20,543
pyratings.consolidate
get_best_ratings
Compute the best rating on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. rating_provider_output Indicates which rating scale will be used for output results. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Best ratings on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_best_ratings(ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"]) 0 AAA 1 AA- 2 AA+ 3 BB- 4 CC Name: best_rtg, dtype: object
def get_best_ratings( ratings: pd.DataFrame, rating_provider_input: list[str] = None, rating_provider_output: Literal[ "Fitch", "Moody", "S&P", "Bloomberg", "DBRS" ] = "S&P", tenor: Literal["long-term", "short-term"] = "long-term", ) -> pd.Series: """Compute the best rating on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. rating_provider_output Indicates which rating scale will be used for output results. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Best ratings on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_best_ratings(ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"]) 0 AAA 1 AA- 2 AA+ 3 BB- 4 CC Name: best_rtg, dtype: object """ ratings_series = consolidate_ratings( method="best", ratings=ratings, rating_provider_input=rating_provider_input, rating_provider_output=rating_provider_output, tenor=tenor, ) return ratings_series
(ratings: pandas.core.frame.DataFrame, rating_provider_input: Optional[list[str]] = None, rating_provider_output: Literal['Fitch', 'Moody', 'S&P', 'Bloomberg', 'DBRS'] = 'S&P', tenor: Literal['long-term', 'short-term'] = 'long-term') -> pandas.core.series.Series
[ 0.013986203819513321, -0.05508007854223251, 0.0230659581720829, -0.011326193809509277, 0.013694824650883675, -0.05079398304224014, -0.00724218413233757, 0.012360120192170143, 0.06376505643129349, -0.002312235301360488, -0.020941708236932755, 0.07011900842189789, -0.03145015984773636, 0.030359838157892227, 0.028912341222167015, 0.02064093016088009, -0.01153297908604145, -0.011373190209269524, 0.056433580815792084, 0.005376417189836502, -0.027352051809430122, 0.006819214206188917, 0.012078139930963516, -0.02175005152821541, 0.002353357383981347, 0.06297551840543747, 0.014080197550356388, -0.00371273560449481, -0.086398646235466, 0.04910210147500038, 0.09497083723545074, -0.005865182261914015, -0.04774859920144081, 0.011617572978138924, -0.00810692273080349, -0.022069627419114113, 0.015020130202174187, 0.039589982479810715, 0.01890205405652523, -0.027972407639026642, -0.05079398304224014, -0.04477841034531593, 0.03385638818144798, -0.06323869526386261, -0.058764614164829254, 0.06628408282995224, -0.002036130055785179, 0.031882528215646744, 0.015424301847815514, -0.03962757810950279, 0.02075372263789177, 0.013704224489629269, -0.023780306801199913, 0.010057283565402031, 0.0009446327458135784, 0.020283754914999008, 0.011617572978138924, 0.058012668043375015, 0.04703424870967865, -0.06658485531806946, 0.0295890923589468, 0.002457924885675311, -0.011250998824834824, 0.040078744292259216, -0.0027845515869557858, -0.012519908137619495, 0.0073549761436879635, -0.026957280933856964, -0.03280366212129593, 0.024344265460968018, 0.02175005152821541, 0.0014181239530444145, -0.04823736473917961, -0.0015238664345815778, -0.031374964863061905, 0.04383847862482071, 0.026092542335391045, -0.029645489528775215, 0.001156117650680244, -0.027295656502246857, 0.06925427168607712, 0.0010116029297932982, 0.03821767866611481, -0.06673524528741837, 0.0254345890134573, -0.036281418055295944, 0.017257170751690865, 0.004798358306288719, 0.02297196350991726, 0.02370511181652546, -0.0658705085515976, 0.0006697023054584861, 0.02994626760482788, -0.031092986464500427, -0.012867683544754982, 0.040680304169654846, -0.02222001738846302, -0.033818792551755905, 0.02049054019153118, 0.0011243949411436915, 0.006979003082960844, 0.03876284137368202, -0.004798358306288719, 0.02530299872159958, 0.006419742945581675, -0.0006191809079609811, -0.002315760124474764, 0.03152535483241081, -0.049177296459674835, -0.011204002425074577, -0.022126024588942528, -0.06165960803627968, 0.016599217429757118, -0.032371293753385544, -0.005808786489069462, -0.008675581775605679, -0.062298763543367386, 0.01926862820982933, 0.028761951252818108, -0.011495381593704224, -0.0152833117172122, 0.035191092640161514, -0.018441487103700638, -0.027652829885482788, -0.025359394028782845, -0.013995603658258915, 0.018103111535310745, -0.033217232674360275, -0.014371576718986034, 0.05583202466368675, 0.0002310179261257872, 0.028461173176765442, -0.046470291912555695, 0.053237807005643845, 0.013422244228422642, 0.007383174262940884, -0.0538017675280571, -0.0018739915685728192, 0.02957029454410076, -0.029513897374272346, 0.04432724416255951, -0.028912341222167015, 0.03656339645385742, -0.018582476302981377, 0.032841261476278305, 0.0047278632409870625, 0.06124603748321533, 0.04233458638191223, 0.04714704304933548, 0.003705686191096902, 0.008901165798306465, 0.017040986567735672, -0.006029670592397451, -0.032484088093042374, 0.03425116091966629, -0.009493323974311352, 0.008501694537699223, -0.057523902505636215, -0.004892351571470499, -0.007881338708102703, 0.029269516468048096, -0.08474436402320862, -0.006170660723000765, -0.02923191897571087, 0.010508451610803604, -0.012989874929189682, 0.04150744527578354, 0.009394630789756775, 0.03772891312837601, -0.006424442399293184, 0.029551494866609573, -0.0058745816349983215, -0.05504247918725014, -0.05782468244433403, -0.010160676203668118, 0.022050829604268074, -0.020208561792969704, -0.0461319163441658, -0.010113679803907871, 0.002495522378012538, 0.01803731545805931, -0.0552680641412735, -0.012848884798586369, -0.04489120468497276, -0.012087538838386536, -0.014747549779713154, 0.010170076042413712, 0.0030312840826809406, -0.01780233159661293, 0.03868764638900757, -0.01975739374756813, -0.0319577232003212, -0.038988422602415085, -0.013262455351650715, -0.012707894667983055, -0.022539595142006874, -0.01560288853943348, 0.031600549817085266, -0.03857485204935074, -0.004095758311450481, -0.00804112758487463, 0.04985405132174492, 0.005738291423767805, 0.012435314245522022, -0.005681895185261965, 0.015424301847815514, -0.04729743301868439, -0.04237218201160431, -0.06523135304450989, -0.054328132420778275, -0.0010509626008570194, 0.010282867588102818, -0.006509036291390657, -0.04534237086772919, -0.0029842874500900507, 0.04410165920853615, 0.08068385720252991, 0.011063012294471264, -0.03853725641965866, 0.0007196362712420523, -0.01708798296749592, -0.06628408282995224, 0.03254048153758049, 0.03648820146918297, 0.0639154464006424, -0.005343519616872072, -0.02921311929821968, -0.008492295630276203, 0.0006368046742863953, -0.04616951197385788, -0.035792652517557144, -0.08316528052091599, 0.08000710606575012, -0.008200915530323982, -0.04225939139723778, -0.027464844286441803, 0.038612451404333115, -0.019700996577739716, -0.05327540636062622, 0.0031840233132243156, -0.005761789623647928, 0.019090039655566216, -0.0057523902505636215, -0.03158175200223923, -0.04274815693497658, -0.03581145033240318, 0.010668240487575531, -0.01136379037052393, -0.006071967538446188, -0.025359394028782845, 0.037258945405483246, -0.015236315317451954, 0.0017353513976559043, -0.024607447907328606, -0.001896314905025065, -0.045116785913705826, -0.06026850640773773, 0.021392876282334328, 0.007072996348142624, -0.03992835804820061, -0.01680600270628929, 0.004934648517519236, -0.03141256421804428, -0.03227730095386505, -0.034927912056446075, -0.02505861595273018, -0.04162023589015007, 0.0044881803914904594, -0.00730327982455492, -0.019437815994024277, -0.006288152188062668, 0.028931139037013054, -0.015330308116972446, 0.013845213688910007, -0.027427246794104576, -0.0026341623160988092, 0.00730327982455492, -0.0161010529845953, 0.05338819697499275, -0.030228247866034508, -0.010010287165641785, -0.01990778185427189, -0.047936584800481796, 0.07714970409870148, 0.08241333067417145, 0.02223881706595421, 0.02577296458184719, -0.09948251396417618, 0.01792452298104763, 0.03498430922627449, -0.013347049243748188, -0.013318851590156555, 0.0075946589931845665, 0.0152833117172122, -0.02381790429353714, 0.0017529751639813185, 0.059478964656591415, -0.09940732270479202, 0.10143757611513138, -0.0173229668289423, -0.06508096307516098, 0.00427199574187398, 0.08136060833930969, 0.030115455389022827, 0.00011675731366267428, -0.03607463091611862, 0.01031106524169445, -0.08241333067417145, -0.06395304203033447, 0.04289854317903519, 0.02908152900636196, 0.0172007754445076, -0.026788093149662018, -0.029438704252243042, -0.026844488456845284, -0.014258784241974354, -0.010959619656205177, 0.03680777922272682, 0.038988422602415085, 0.026111340150237083, 0.008426499553024769, -0.020058171823620796, -0.016674412414431572, -0.012877083383500576, -0.013835814781486988, -0.049666061997413635, -0.07782645523548126, 0.05158352479338646, -0.014145992696285248, -0.016665013507008553, -0.015189317986369133, -0.059478964656591415, 0.02847997099161148, -0.0010180650278925896, -0.02332913875579834, 0.07184848189353943, -0.013638428412377834, -0.04432724416255951, 0.028085200116038322, -0.0010914972517639399, -0.005663096904754639, 0.005362317897379398, -0.0010920846834778786, 0.05056839808821678, -0.010254669934511185, 0.0070588975213468075, 0.06932946294546127, 0.002650611335411668, -0.010198273696005344, -0.08564670383930206, 0.00011749163240892813, 0.031995322555303574, -0.01620444655418396, 0.005047440528869629, 0.00006344548455672339, 0.0644042119383812, -0.029307112097740173, 0.022915568202733994, 0.019945379346609116, 0.0052683246321976185, 0.04135705530643463, -0.05853903293609619, 0.023723909631371498, 0.0029772380366921425, -0.06643446534872055, 0.04188341647386551, 0.042560167610645294, -0.0017588497139513493, 0.03695816919207573, -0.04380087926983833, -0.005437512882053852, -0.0020008825231343508, 0.04357529804110527, 0.01160817313939333, -0.02688208594918251, 0.0689534917473793, -0.02665650099515915, -0.018949050456285477, 0.020302554592490196, -0.02908152900636196, -0.015208116732537746, 0.040341928601264954, 0.007213986478745937, 0.02481423318386078, 0.01669321209192276, 0.012068740092217922, -0.039853163063526154, -0.019437815994024277, 0.0007431345875374973, -0.03699576482176781, -0.07166049629449844, -0.013036871328949928, 0.010010287165641785, 0.023742709308862686, -0.0363566093146801, 0.0005199004663154483, 0.005945076700299978, 0.007350276689976454, -0.02750244177877903, 0.015208116732537746, 0.04703424870967865, -0.05440332740545273, 0.012519908137619495, -0.031732141971588135, -0.03588664531707764, -0.0061142644844949245, 0.056283190846443176, 0.03951478749513626, -0.03656339645385742, 0.030491428449749947, -0.053087420761585236, -0.008276110514998436, -0.025603776797652245, -0.014879140071570873, -0.03201412037014961, 0.02492702566087246, 0.014653556048870087, 0.0684647262096405, 0.02468264289200306, 0.009972689673304558, 0.016063455492258072, -0.05289943143725395, 0.0042109000496566296, 0.05560643970966339, -0.00012813930516131222, -0.06184759736061096, 0.035924240946769714, -0.04428964480757713, -0.0020396546460688114, -0.03398798033595085, 0.004147454630583525, -0.0013946256367489696, -0.02126128599047661, -0.029269516468048096, 0.028686756268143654, -0.014578361995518208, 0.020208561792969704, 0.050530802458524704, -0.07636015862226486, -0.026919683441519737, 0.040078744292259216, -0.0017564998706802726, -0.01951301097869873, 0.03656339645385742, -0.01522691547870636, -0.03167574480175972, -0.010536649264395237, 0.03814248368144035, -0.06515616178512573, -0.039853163063526154, 0.04334971308708191, -0.05583202466368675, 0.041206665337085724, 0.08481956273317337, -0.049064505845308304, 0.06534414738416672, 0.08888006955385208, -0.004615071229636669, -0.03545427694916725, 0.022013232111930847, 0.0014733450952917337, -0.01392980758100748, 0.07327718287706375, 0.040567509829998016, -0.03769131749868393, 0.06970543414354324, 0.015320909209549427, -0.09346694499254227, -0.0027140567544847727, 0.020415347069501877, 0.049553271383047104, -0.004107507411390543, 0.0037550325505435467, -0.014268184080719948, 0.030171850696206093, 0.025942152366042137, -0.012172132730484009, -0.022163622081279755, 0.014192989096045494, 0.012378918007016182, -0.025453386828303337, -0.02665650099515915, -0.023385534062981606, 0.02836718037724495, 0.013732422143220901, -0.07064536958932877, -0.03838686645030975, -0.012425915338099003, 0.03865004703402519, 0.008877667598426342, -0.0033931583166122437, 0.053952157497406006, 0.036168623715639114, 0.04692145809531212, -0.04530477523803711, 0.04936528578400612, 0.03754092752933502, -0.03740933537483215, 0.02370511181652546, 0.0034002079628407955, 0.045116785913705826, 0.03082980401813984, -0.10218952596187592, -0.08895526826381683, 0.05748630687594414, -0.037616122514009476, -0.03067941591143608, -0.009070354513823986, -0.0037667816504836082, 0.014080197550356388, -0.01975739374756813, 0.004314292687922716, 0.060945261269807816, -0.014446770772337914, -0.037014562636613846, 0.0363566093146801, 0.055456049740314484, 0.023517124354839325, 0.028630360960960388, -0.015330308116972446, 0.032615676522254944, 0.011128807440400124, 0.00739257363602519, 0.006476138718426228, 0.04398886859416962, 0.007134092040359974, 0.08309008181095123, 0.04741022363305092, -0.007773246616125107, -0.006081366911530495, -0.0757962018251419, 0.04421444982290268, -0.0513579435646534, -0.001730651711113751, -0.03156295046210289, 0.025866957381367683, -0.0009851673385128379, 0.04932768642902374, 0.017708338797092438, -0.002133648144081235, -0.021280083805322647, 0.013497439213097095, 0.07263802736997604, -0.021280083805322647, 0.06681044399738312, -0.0679759606719017, -0.03131857141852379, -0.009150248020887375, -0.01110060978680849, -0.03829287365078926, 0.0220884270966053, 0.00210310029797256, 0.08211255073547363, 0.04361289367079735, 0.025472186505794525, -0.04342490807175636, 0.008652083575725555, 0.04883892089128494, -0.018826859071850777, 0.0407554991543293, 0.005738291423767805, -0.01878926157951355, 0.07354035973548889, -0.026111340150237083, 0.03225850313901901, 0.023554721847176552, -0.0015508895739912987, 0.038010891526937485, -0.02810399793088436, -0.009089152328670025, -0.013939207419753075, 0.0331796370446682, 0.03156295046210289, 0.0002824205148499459, -0.04703424870967865, 0.008083424530923367, -0.014117795042693615, -0.0006174185546115041, -0.02737085148692131, -0.0006902633467689157, 0.009263040497899055, -0.0026224132161587477, 0.020114567130804062, -0.06056928634643555, 0.01840388961136341, -0.010141877457499504, -0.06327629089355469, 0.018949050456285477, -0.07508185505867004, 0.04139465093612671, 0.014465569518506527, -0.016759006306529045, 0.011579975485801697, 0.002751654013991356, 0.02443826012313366, 0.05075638368725777, -0.04865093529224396, 0.007843741215765476, 0.08196216076612473, 0.013309451751410961, -0.04910210147500038, 0.030040260404348373, -0.012820687144994736, -0.05274904519319534, 0.10617484152317047, -0.02394949458539486, -0.005019242409616709, -0.01559348963201046, -0.028066400438547134, -0.011063012294471264, 0.021938037127256393, 0.086398646235466, -0.006800415925681591, 0.004530477337539196, 0.08324047178030014, 0.005052140448242426, -0.018385089933872223, -0.021167293190956116, 0.017022186890244484, -0.09301577508449554, 0.02332913875579834, 0.10218952596187592, 0.01891145296394825, 0.027107669040560722, -0.0030477328691631556, 0.01067763939499855, -0.04985405132174492, 0.008008229546248913, 0.008360704407095909, -0.0020819518249481916, 0.014747549779713154, -0.06241155415773392, 0.07970632612705231, 0.016007060185074806, -0.023141151294112206, 0.03522869199514389, 0.07745048403739929, -0.005860482808202505, -0.03515349701046944, 0.014042600058019161, -0.02799120731651783, 0.0019562356173992157, 0.035792652517557144, 0.001521516591310501, -0.002504921518266201, -0.0026036144699901342, -0.02872435376048088, 0.04086828976869583, -0.04350010305643082, 0.04496639594435692, -0.05105716362595558, -0.035303886979818344, 0.03588664531707764, -0.048049379140138626, 0.03274726867675781, 0.01757674850523472, 0.0329352542757988, -0.016270240768790245, 0.011204002425074577, 0.010339263826608658, -0.011034813709557056, -0.01043325662612915, 0.057411111891269684, 0.08218774944543839, -0.01656161993741989, 0.006509036291390657, -0.039214007556438446, 0.006983702536672354, 0.01546189934015274, 0.02122368849813938, 0.04244737699627876, 0.013112066313624382, 0.026600105687975883, -0.00027610533288680017, -0.012642099522054195, -0.04985405132174492, -0.024983420968055725, 0.032615676522254944, -0.047711003571748734, -0.015884868800640106, 0.060832466930150986, -0.0013723023002967238, 0.032578080892562866, 0.03581145033240318, 0.04308653250336647, -0.031374964863061905, -0.01718197576701641, -0.0018810410983860493, -0.024344265460968018, -0.06658485531806946, 0.027709227055311203, -0.06399064511060715, 0.016862399876117706, -0.08797773718833923, -0.02812279760837555, -0.004199150949716568, -0.03917641192674637, 0.02883714623749256, 0.04959086701273918, 0.015001331456005573, -0.009535620920360088, 0.08805292844772339, -0.010170076042413712, 0.0022875620052218437, 0.030886201187968254, 0.02124248631298542, -0.015941264107823372, 0.027164066210389137, 0.06632167845964432, -0.09136149287223816, -0.00385372550226748, -0.014305781573057175, 0.005113235674798489, 0.05049320310354233, -0.03274726867675781, -0.01036746148020029, -0.0007431345875374973, 0.009624914266169071, 0.026788093149662018, -0.009263040497899055, 0.007228085305541754, -0.029119126498699188, 0.030115455389022827, 0.0007078871130943298, -0.040191538631916046, -0.00028315483359619975, 0.0009258340578526258, -0.02297196350991726, 0.05109476298093796, -0.003628141712397337, -0.012632700614631176, 0.00773564912378788, 0.026919683441519737, 0.006410343572497368, 0.024739038199186325, -0.03242769092321396, 0.007745048496872187, -0.020170964300632477, 0.016054056584835052, 0.00021251299767754972, -0.03724014759063721, 0.005602001212537289, -0.05932857468724251, -0.04383847862482071, 0.029137924313545227, 0.07098374515771866, -0.02541578933596611, -0.04579353705048561, -0.0179339237511158, 0.021449271589517593, -0.002580116270110011, -0.06654725968837738, 0.013112066313624382, 0.023987092077732086, 0.015386704355478287, 0.042409781366586685, -0.006786316633224487, -0.009272439405322075, -0.05079398304224014, -0.015612288378179073, 0.01904304325580597, 0.025265401229262352, 0.03340522199869156, -0.01890205405652523, -0.01891145296394825, 0.029683087021112442, -0.05034281313419342, 0.011335592716932297 ]
20,544
pyratings.consolidate
get_best_scores
Compute the best rating scores on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Best rating scores on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_best_scores( ... ratings=ratings_df, ... rating_provider_input=["S&P", "Moody", "Fitch"] ... ) 0 1 1 4 2 2 3 13 4 20 Name: best_scores, dtype: int64
def get_best_scores( ratings: pd.DataFrame, rating_provider_input: list[str] = None, tenor: Literal["long-term", "short-term"] = "long-term", ) -> pd.Series: """Compute the best rating scores on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Best rating scores on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_best_scores( ... ratings=ratings_df, ... rating_provider_input=["S&P", "Moody", "Fitch"] ... ) 0 1 1 4 2 2 3 13 4 20 Name: best_scores, dtype: int64 """ rating_scores_df = get_scores_from_ratings( ratings=ratings, rating_provider=rating_provider_input, tenor=tenor ) rating_scores_series = rating_scores_df.min(axis=1) rating_scores_series.name = "best_scores" return rating_scores_series
(ratings: pandas.core.frame.DataFrame, rating_provider_input: Optional[list[str]] = None, tenor: Literal['long-term', 'short-term'] = 'long-term') -> pandas.core.series.Series
[ 0.019841035827994347, -0.025759203359484673, -0.000544158392585814, 0.002852385863661766, 0.044386256486177444, -0.022022411227226257, 0.004682844504714012, 0.017024215310811996, 0.05755038186907768, 0.02784573659300804, -0.02545570582151413, 0.05345319211483002, -0.031260062009096146, 0.006928239017724991, 0.022857023403048515, 0.013202065601944923, -0.005922909360378981, -0.013164128176867962, 0.03753863275051117, 0.024089975282549858, -0.028623443096876144, 0.004725523758679628, 0.01416945829987526, -0.016341349110007286, -0.008459944278001785, 0.06487222015857697, 0.02096017636358738, -0.004585631191730499, -0.0910487249493599, 0.037254102528095245, 0.07522901147603989, -0.005657350644469261, -0.05607084184885025, 0.01467212289571762, -0.007544714957475662, -0.02465903013944626, 0.006278568413108587, 0.02094120718538761, 0.018721895292401314, -0.031184189021587372, -0.06430316716432571, -0.03359318524599075, 0.029287340119481087, -0.06411347538232803, -0.056146714836359024, 0.05770213156938553, 0.024393470957875252, -0.015269630588591099, 0.03571765869855881, -0.050152674317359924, 0.02657484821975231, 0.012433841824531555, -0.016341349110007286, -0.0062643419951200485, -0.023672668263316154, 0.042754966765642166, 0.005662092939019203, 0.0562225878238678, 0.021586135029792786, -0.0690452829003334, 0.03478820249438286, -0.002426780527457595, -0.024810777977108955, 0.026461036875844002, 0.01122934278100729, -0.026062699034810066, 0.025929918512701988, -0.01832355558872223, -0.03994762897491455, -0.00722699286416173, 0.0001241842983290553, -0.0074830674566328526, -0.043361958116292953, -0.019860003143548965, -0.04339989274740219, 0.048749007284641266, 0.013420202769339085, -0.019746193662285805, -0.001002958626486361, -0.012708884663879871, 0.06927290558815002, -0.01934785395860672, 0.053832560777664185, -0.04616929218173027, 0.02511427365243435, -0.04366545379161835, 0.028054388239979744, 0.017877796664834023, 0.02534189634025097, 0.029514962807297707, -0.05432574078440666, 0.018456336110830307, 0.019727224484086037, -0.03387771546840668, -0.03784212842583656, 0.03968207165598869, -0.008417265489697456, -0.02450728230178356, 0.02649897336959839, 0.006065173074603081, 0.013998742215335369, 0.06259600073099136, -0.0021398821845650673, 0.04616929218173027, -0.0053538549691438675, 0.035186540335416794, -0.00696143414825201, 0.012765790335834026, -0.028832096606492996, 0.024089975282549858, -0.022743213921785355, -0.04616929218173027, 0.007411935366690159, -0.024317597970366478, -0.041275423020124435, -0.009360947646200657, -0.04468975216150284, 0.0412374846637249, 0.024677999317646027, -0.005287465173751116, -0.0036893703509122133, 0.05701926723122597, -0.015791263431310654, -0.0266127847135067, -0.029230434447526932, -0.028528600931167603, 0.021718915551900864, -0.032189518213272095, -0.03226539120078087, 0.04711771756410599, 0.031108316034078598, 0.01376163586974144, -0.024108944460749626, 0.054060183465480804, 0.030577197670936584, 0.003144026268273592, -0.02037215232849121, 0.006098367739468813, 0.01723286882042885, -0.04711771756410599, 0.051176972687244415, -0.007151118945330381, 0.007421419490128756, -0.029856394976377487, -0.0004383498162496835, -0.002997020725160837, 0.0412374846637249, 0.05929548293352127, 0.04188241437077522, 0.003921734169125557, -0.010328340344130993, 0.016654329374432564, 0.008602207526564598, -0.020903270691633224, 0.038297370076179504, -0.02336917258799076, 0.026423100382089615, -0.08057812601327896, 0.018617568537592888, -0.004960258956998587, 0.031392842531204224, -0.06244425103068352, 0.0026911539025604725, -0.06620001047849655, -0.008772924542427063, -0.011902724392712116, 0.007179571315646172, 0.002940115053206682, 0.004597486462444067, -0.005396533757448196, 0.04374132677912712, 0.0020699359010905027, -0.03211364522576332, -0.05686751753091812, -0.017156993970274925, 0.003144026268273592, -0.022477654740214348, -0.0330241322517395, -0.010034328326582909, -0.0016941227950155735, 0.015525705181062222, -0.05307381972670555, -0.011997566558420658, -0.05504654347896576, -0.006890302058309317, 0.005624155979603529, -0.00006227738776942715, -0.0049223219975829124, -0.03492097929120064, 0.03822149708867073, -0.023236393928527832, -0.04203416407108307, -0.04199622571468353, -0.011314701288938522, -0.01846582069993019, -0.014103068970143795, -0.013439171947538853, 0.02498149499297142, -0.05720895156264305, -0.000774744083173573, 0.0028452726546674967, 0.06411347538232803, 0.0067575229331851006, 0.018560662865638733, -0.01127676386386156, 0.03412430360913277, -0.05811943858861923, -0.029780521988868713, -0.05770213156938553, -0.06388586014509201, -0.007459356915205717, -0.005960846319794655, -0.010186076164245605, -0.035072728991508484, 0.0027931095100939274, 0.04541055113077164, 0.06817273795604706, -0.012756305746734142, -0.0038980236276984215, -0.014975618571043015, 0.014710060320794582, -0.06339267641305923, 0.02648000419139862, 0.017545849084854126, 0.07166293263435364, -0.009232910349965096, -0.023881321772933006, -0.012111377902328968, -0.0006769378087483346, -0.025247054174542427, -0.03774728626012802, -0.09651165455579758, 0.054401613771915436, -0.024241723120212555, -0.03780419006943703, -0.01869344152510166, 0.04973536729812622, -0.00450738612562418, -0.04799026623368263, -0.0006964990752749145, -0.006231147330254316, 0.038506023585796356, 0.008056864142417908, -0.023084646090865135, -0.06138201802968979, -0.03027370199561119, 0.0012293949257582426, -0.014520375058054924, -0.019518570974469185, -0.030823787674307823, 0.04666247218847275, -0.015051492489874363, 0.025835076346993446, -0.0107740992680192, 0.01873137801885605, -0.03856293112039566, -0.05182190239429474, 0.028699317947030067, 0.003611125284805894, -0.0374627560377121, -0.03353628143668175, 0.003347937483340502, -0.021036049351096153, -0.03812665492296219, -0.02166200987994671, -0.0198979414999485, -0.04575198516249657, 0.008336649276316166, 0.012689916417002678, -0.010555962100625038, -0.008540560491383076, 0.02141541987657547, -0.003969155251979828, 0.009977422654628754, -0.009294557385146618, -0.017024215310811996, -0.008791892789304256, -0.006302278954535723, 0.046814221888780594, 0.0007332505192607641, -0.023179488256573677, -0.01871241070330143, -0.051746025681495667, 0.06601032614707947, 0.08975887298583984, 0.033005163073539734, 0.03347937762737274, -0.09810500591993332, 0.019841035827994347, 0.023293299600481987, -0.012063956819474697, 0.00961702223867178, 0.006401863880455494, 0.002942486200481653, -0.02488665282726288, 0.0026010535657405853, 0.04468975216150284, -0.07424265146255493, 0.08679978549480438, -0.005899198818951845, -0.03729204088449478, -0.006065173074603081, 0.05535003915429115, 0.02350195311009884, -0.01473851315677166, -0.016559487208724022, 0.002426780527457595, -0.05455336347222328, -0.06031978130340576, 0.03926476463675499, 0.03727307170629501, 0.040933988988399506, -0.0356038473546505, -0.044044822454452515, -0.039188891649246216, -0.011200889945030212, -0.012547653168439865, 0.00757316779345274, 0.02039112150669098, 0.018200261518359184, 0.017337195575237274, -0.009038482792675495, -0.010442150756716728, -0.024317597970366478, -0.012007051147520542, -0.03418121114373207, -0.08558580279350281, 0.03573662415146828, -0.020751522853970528, -0.016407739371061325, -0.003385874442756176, -0.05686751753091812, 0.03040648065507412, -0.014254816807806492, 0.0026721854228526354, 0.07181468605995178, -0.013287424109876156, -0.003359792986884713, 0.012414873577654362, 0.005922909360378981, -0.017308741807937622, -0.03074791468679905, 0.014700575731694698, 0.0547809861600399, -0.02879416011273861, -0.005932393483817577, 0.0810333639383316, 0.006202694494277239, 0.006382895167917013, -0.10440254211425781, -0.020106593146920204, 0.023217424750328064, -0.010015360079705715, 0.008986319415271282, 0.00232482491992414, 0.0671863704919815, -0.0187598317861557, 0.017726048827171326, 0.0198979414999485, -0.00645402679219842, 0.0330241322517395, -0.05633639916777611, 0.02152923122048378, -0.006876075640320778, -0.07473582774400711, 0.0525047667324543, 0.04457594081759453, -0.028168199583888054, 0.037235137075185776, -0.03535725548863411, -0.002612908836454153, -0.012244156561791897, 0.03319484740495682, 0.031146252527832985, -0.02960980497300625, 0.06570683419704437, -0.03243611007928848, -0.02786470390856266, 0.01873137801885605, -0.03676092252135277, -0.002873725490644574, 0.03522447496652603, 0.0271818395704031, 0.003457006299868226, 0.017251836135983467, 0.02372957393527031, -0.06638969480991364, -0.024089975282549858, -0.006359184626489878, -0.027011122554540634, -0.05538797751069069, -0.01250023115426302, -0.006397121585905552, 0.01780192367732525, -0.02866138145327568, 0.008587981574237347, 0.010442150756716728, 0.007848210632801056, -0.005562508013099432, 0.002629506168887019, 0.04063049331307411, -0.05827118456363678, 0.017678627744317055, -0.028604475781321526, -0.026100635528564453, -0.020580805838108063, 0.05535003915429115, 0.028585506603121758, -0.031620465219020844, 0.035053759813308716, -0.03382080793380737, 0.0016656700754538178, 0.006112594157457352, 0.003475974779576063, -0.050038862973451614, 0.027485335245728493, 0.025247054174542427, 0.06058534234762192, 0.029097655788064003, -0.0014830983709543943, 0.015810232609510422, -0.062102820724248886, -0.023122582584619522, 0.0716250017285347, 0.013116707094013691, -0.05557766184210777, 0.02752327173948288, -0.06001628562808037, 0.0012744450941681862, -0.041958287358284, -0.003471232717856765, -0.014729028567671776, -0.01012917049229145, -0.028187168762087822, 0.01703369989991188, -0.009635990485548973, -0.015421378426253796, 0.0724596157670021, -0.07572219520807266, -0.03903714194893837, 0.06445491313934326, -0.011295733042061329, 0.010717193596065044, 0.03848705440759659, -0.020239373669028282, -0.031241094693541527, 0.008621176704764366, 0.04946980997920036, -0.08900012820959091, -0.04833170026540756, 0.0023912147153168917, -0.07481170445680618, 0.051404595375061035, 0.1035679280757904, -0.04108573868870735, 0.07340803742408752, 0.05686751753091812, -0.00889147724956274, -0.026423100382089615, 0.01703369989991188, 0.017062151804566383, -0.006890302058309317, 0.07913652062416077, 0.011286248452961445, -0.0517839640378952, 0.08543405681848526, 0.0100248446688056, -0.08740677684545517, 0.0066152592189610004, 0.012386420741677284, 0.06582064181566238, 0.012320030480623245, -0.00970712210983038, -0.03249301388859749, 0.024336565285921097, 0.04689009487628937, -0.0025844560004770756, -0.026442067697644234, 0.013780604116618633, 0.03526241332292557, -0.0215481985360384, -0.027826767414808273, -0.0018138614250347018, 0.012348483316600323, 0.024677999317646027, -0.0641893520951271, -0.07063863426446915, -0.022079316899180412, 0.030804820358753204, 0.012936506420373917, 0.0075352308340370655, 0.05288413539528847, 0.044500064104795456, 0.05470510944724083, -0.04965949431061745, 0.03387771546840668, 0.06297536939382553, -0.014264300465583801, 0.007668009959161282, 0.015136850997805595, 0.034712325781583786, 0.037140294909477234, -0.10667876154184341, -0.06399966776371002, 0.06877972930669785, -0.03727307170629501, -0.02405203878879547, 0.015724873170256615, -0.007625330705195665, 0.009204457513988018, -0.02232590690255165, 0.013467623852193356, 0.060395654290914536, -0.013628856278955936, -0.03531931713223457, 0.04377926141023636, 0.05629846453666687, 0.027826767414808273, 0.03554693982005119, 0.0030491838697344065, 0.040706370025873184, 0.0064729955047369, 0.01923404447734356, 0.010157623328268528, 0.04298258572816849, 0.010906878858804703, 0.046131353825330734, 0.03084275685250759, 0.005756935104727745, 0.021130891516804695, -0.044727686792612076, 0.033232785761356354, -0.04791439324617386, -0.016199085861444473, -0.02175685204565525, 0.05273238942027092, 0.021358514204621315, 0.021111924201250076, 0.04468975216150284, 0.018285619094967842, -0.022041378542780876, 0.01659742370247841, 0.07098007202148438, -0.0015483025927096605, 0.0724596157670021, -0.06969021260738373, -0.05557766184210777, -0.0038577155210077763, -0.007976247929036617, -0.036457426846027374, 0.05781594291329384, 0.010148139670491219, 0.0918833389878273, 0.04567611217498779, 0.006122078280895948, -0.02659381553530693, -0.017270805314183235, 0.029894331470131874, -0.01802954450249672, 0.027200806885957718, 0.02820613794028759, -0.029894331470131874, 0.07769491523504257, 0.0019691658671945333, 0.006866591516882181, 0.015838684514164925, -0.009261363185942173, 0.006567837670445442, -0.02291392907500267, -0.003146397415548563, -0.008388812653720379, 0.028187168762087822, 0.029287340119481087, 0.00622166320681572, -0.02649897336959839, -0.0003215750912204385, -0.0202583409845829, -0.026669690385460854, -0.04066843166947365, -0.004277393221855164, 0.023634731769561768, -0.010574930347502232, 0.01696730963885784, -0.07257342338562012, -0.012016534805297852, 0.015288598835468292, -0.08148860931396484, 0.009043225087225437, -0.07215611636638641, 0.028244074434041977, 0.015269630588591099, -0.02302774041891098, -0.008502623066306114, 0.008938898332417011, 0.03108934685587883, 0.04666247218847275, -0.06365823745727539, 0.0002168038481613621, 0.07302866876125336, 0.03052029199898243, -0.07185262441635132, 0.020125562325119972, -0.029040750116109848, -0.05652608349919319, 0.10053297132253647, -0.05193571001291275, 0.0014985103625804186, 0.01757430098950863, -0.01708112098276615, -0.0129459910094738, 0.023653700947761536, 0.05314969643950462, -0.00912858359515667, 0.014435016550123692, 0.09226270765066147, 0.011551807634532452, -0.017289774492383003, -0.012860632501542568, 0.03926476463675499, -0.07283898442983627, 0.023407110944390297, 0.07890889793634415, 0.030804820358753204, 0.012756305746734142, -0.0024066264741122723, 0.006164757534861565, -0.01710008829832077, 0.011125016026198864, 0.001849427237175405, -0.014596248976886272, 0.028623443096876144, -0.046700410544872284, 0.09317319840192795, -0.010280919261276722, -0.03203777223825455, 0.02071358636021614, 0.08862075954675674, -0.024715935811400414, -0.030027111992239952, -0.005823324900120497, -0.031620465219020844, -0.00667690671980381, 0.020675648003816605, -0.015905074775218964, 0.012737337499856949, -0.011191406287252903, -0.03742482140660286, 0.04328608140349388, -0.010214529000222683, 0.05690545588731766, -0.04131336137652397, -0.04996298998594284, 0.014188426546752453, -0.033801838755607605, 0.0386008657515049, 0.012746822088956833, 0.025740234181284904, -0.026062699034810066, 0.00612682057544589, 0.017991608008742332, -0.007596878334879875, -0.01912023313343525, 0.06870385259389877, 0.07522901147603989, -0.02175685204565525, -0.0017605124739930034, -0.047610897570848465, 0.013107223436236382, 0.014605733565986156, 0.029514962807297707, 0.05542591214179993, 0.015307567082345486, 0.01796315610408783, -0.00329814525321126, 0.003042070660740137, -0.016815561801195145, -0.025721265003085136, 0.01594301126897335, -0.049811240285634995, -0.027124933898448944, 0.040592558681964874, 0.013771120458841324, 0.03165839985013008, 0.024431409314274788, 0.03522447496652603, -0.043134335428476334, -0.010688741691410542, 0.009493726305663586, -0.015449831262230873, -0.0671863704919815, 0.021851694211363792, -0.0704868882894516, 0.028244074434041977, -0.08300609141588211, -0.057512447237968445, -0.009019514545798302, -0.05398430675268173, 0.04063049331307411, 0.05307381972670555, 0.02245868556201458, -0.019973814487457275, 0.10447841137647629, -0.003004133701324463, 0.018854673951864243, 0.023824417963624, 0.026214446872472763, -0.005496118683367968, 0.023653700947761536, 0.06255806237459183, -0.09112460166215897, -0.01980309747159481, -0.03017885982990265, 0.004661505110561848, 0.04901456460356712, -0.026081666350364685, 0.025512611493468285, 0.008493139408528805, 0.020353185012936592, 0.034029461443424225, -0.00926610454916954, 0.024393470957875252, -0.03220848739147186, 0.04100986570119858, 0.010897394269704819, -0.020466994494199753, -0.016635362058877945, 0.014112552627921104, -0.025835076346993446, 0.047269463539123535, -0.01093533169478178, -0.013752151280641556, -0.01236745249480009, 0.01578177884221077, -0.03704545274376869, 0.009375173598527908, -0.007990473881363869, 0.024677999317646027, -0.027580177411437035, 0.031241094693541527, -0.002280960325151682, -0.042299721390008926, -0.0006846437463536859, -0.05929548293352127, -0.051176972687244415, 0.05148046836256981, 0.060395654290914536, -0.033118974417448044, -0.05884024128317833, -0.018797768279910088, 0.037367913872003555, 0.006430316250771284, -0.06540333479642868, 0.0247538723051548, 0.023407110944390297, -0.02693524770438671, 0.03467439115047455, -0.008635402657091618, -0.019309917464852333, -0.047269463539123535, -0.014226363971829414, 0.025057367980480194, 0.009621763601899147, 0.01525066141039133, -0.029989175498485565, -0.018977969884872437, 0.017745018005371094, -0.0442345067858696, -0.010783583857119083 ]
20,545
pyratings.clean
get_pure_ratings
Remove rating watches/outlooks and other non-actual-rating related information. Ratings may contain watch, such as 'AA- *+', 'BBB+ (CwNegative)'. Outlook/watch should be seperated by a blank from the actual rating. Also, ratings may also contain the letter 'u' (unsolicited) or be prefixed by '(P)' (public information only). This kind of information will be removed to retrieve the actual rating(s). Parameters ---------- ratings Uncleaned rating(s). Returns ------- Union[str, pd.Series, pd.DataFrame] Regular ratings stripped off of watches. The name of the resulting Series or the columns of the returning DataFrame will be suffixed with `_clean`. Examples -------- Cleaning a single rating: >>> get_pure_ratings("AA- *+") 'AA-' >>> get_pure_ratings("Au") 'A' >>> get_pure_ratings("(P)P-2") 'P-2' Cleaning a `pd.Series`: >>> import numpy as np >>> import pandas as pd >>> rating_series=pd.Series( ... data=[ ... "BB+ *-", ... "(P)BBB *+", ... np.nan, ... "AA- (Developing)", ... np.nan, ... "CCC+ (CwPositive)", ... "BB+u", ... ], ... name="rtg_SP", ... ) >>> get_pure_ratings(rating_series) 0 BB+ 1 BBB 2 NaN 3 AA- 4 NaN 5 CCC+ 6 BB+ Name: rtg_SP_clean, dtype: object Cleaning a `pd.DataFrame`: >>> rtg_df = pd.DataFrame( ... data={ ... "rtg_SP": [ ... "BB+ *-", ... "BBB *+", ... np.nan, ... "AA- (Developing)", ... np.nan, ... "CCC+ (CwPositive)", ... "BB+u", ... ], ... "rtg_Fitch": [ ... "BB+ *-", ... "BBB *+", ... pd.NA, ... "AA- (Developing)", ... np.nan, ... "CCC+ (CwPositive)", ... "BB+u", ... ], ... }, ... ) >>> get_pure_ratings(rtg_df) rtg_SP_clean rtg_Fitch_clean 0 BB+ BB+ 1 BBB BBB 2 NaN <NA> 3 AA- AA- 4 NaN NaN 5 CCC+ CCC+ 6 BB+ BB+
def get_pure_ratings( ratings: str | pd.Series | pd.DataFrame, ) -> str | pd.Series | pd.DataFrame: """Remove rating watches/outlooks and other non-actual-rating related information. Ratings may contain watch, such as 'AA- *+', 'BBB+ (CwNegative)'. Outlook/watch should be seperated by a blank from the actual rating. Also, ratings may also contain the letter 'u' (unsolicited) or be prefixed by '(P)' (public information only). This kind of information will be removed to retrieve the actual rating(s). Parameters ---------- ratings Uncleaned rating(s). Returns ------- Union[str, pd.Series, pd.DataFrame] Regular ratings stripped off of watches. The name of the resulting Series or the columns of the returning DataFrame will be suffixed with `_clean`. Examples -------- Cleaning a single rating: >>> get_pure_ratings("AA- *+") 'AA-' >>> get_pure_ratings("Au") 'A' >>> get_pure_ratings("(P)P-2") 'P-2' Cleaning a `pd.Series`: >>> import numpy as np >>> import pandas as pd >>> rating_series=pd.Series( ... data=[ ... "BB+ *-", ... "(P)BBB *+", ... np.nan, ... "AA- (Developing)", ... np.nan, ... "CCC+ (CwPositive)", ... "BB+u", ... ], ... name="rtg_SP", ... ) >>> get_pure_ratings(rating_series) 0 BB+ 1 BBB 2 NaN 3 AA- 4 NaN 5 CCC+ 6 BB+ Name: rtg_SP_clean, dtype: object Cleaning a `pd.DataFrame`: >>> rtg_df = pd.DataFrame( ... data={ ... "rtg_SP": [ ... "BB+ *-", ... "BBB *+", ... np.nan, ... "AA- (Developing)", ... np.nan, ... "CCC+ (CwPositive)", ... "BB+u", ... ], ... "rtg_Fitch": [ ... "BB+ *-", ... "BBB *+", ... pd.NA, ... "AA- (Developing)", ... np.nan, ... "CCC+ (CwPositive)", ... "BB+u", ... ], ... }, ... ) >>> get_pure_ratings(rtg_df) rtg_SP_clean rtg_Fitch_clean 0 BB+ BB+ 1 BBB BBB 2 NaN <NA> 3 AA- AA- 4 NaN NaN 5 CCC+ CCC+ 6 BB+ BB+ """ if isinstance(ratings, str): ratings = ( ratings.split()[0].rstrip("uU").removeprefix("(p)").removeprefix("(P)") ) return ratings elif isinstance(ratings, pd.Series): # identify string occurrences isstring = ratings.apply(type).eq(str) # strip string after occurrence of very first blank and strip character 'u', # which has usually been added without a blank; # also remove suffix '(p)' and '(P)' ratings[isstring] = ratings[isstring].str.split().str[0] ratings[isstring] = ratings[isstring].str.rstrip("uU") ratings[isstring] = ratings[isstring].str.removeprefix("(p)") ratings[isstring] = ratings[isstring].str.removeprefix("(P)") ratings.name = f"{ratings.name}_clean" return ratings elif isinstance(ratings, pd.DataFrame): # Recursive call of `get_pure_ratings` return pd.concat( [get_pure_ratings(ratings=ratings[col]) for col in ratings.columns], axis=1 )
(ratings: str | pandas.core.series.Series | pandas.core.frame.DataFrame) -> str | pandas.core.series.Series | pandas.core.frame.DataFrame
[ 0.03642652928829193, 0.006658721249550581, 0.04077836871147156, 0.01063783559948206, 0.028428005054593086, -0.08151644468307495, -0.024922354146838188, 0.006427025888115168, 0.13547122478485107, 0.02820638194680214, 0.018465107306838036, 0.06793708354234695, -0.024599995464086533, 0.04468696936964989, 0.009967934340238571, -0.008950489573180676, -0.018666580319404602, 0.05778278782963753, 0.03757493197917938, 0.012803683057427406, -0.008713757619261742, 0.04525109753012657, -0.00881953164935112, 0.04637935012578964, -0.009499507024884224, 0.025486482307314873, -0.000006187854069139576, -0.006683905143290758, -0.04448549449443817, 0.026231935247778893, 0.1007370799779892, 0.009947787038981915, -0.030523335561156273, 0.001228992361575365, -0.00876412633806467, -0.03177247568964958, -0.0248014684766531, 0.005308844149112701, -0.020248152315616608, -0.01046658307313919, -0.0659223422408104, -0.012471250258386135, 0.01939188875257969, -0.08062995970249176, -0.024096310138702393, 0.03896510228514671, 0.03878377750515938, 0.002502057235687971, -0.0018397109815850854, 0.0019769652280956507, 0.03062407299876213, 0.10468597710132599, -0.03654741123318672, 0.04291399568319321, 0.02455970086157322, 0.03570122271776199, -0.0483940951526165, 0.057621609419584274, 0.03541915863752365, -0.0619734525680542, -0.006709089502692223, 0.010899752378463745, -0.004099999088793993, -0.002916338387876749, 0.05226239562034607, -0.019210562109947205, 0.05052971839904785, -0.005439802538603544, -0.029435375705361366, -0.004180588759481907, -0.023411298170685768, -0.03364618495106697, -0.03568107262253761, 0.0017830462893471122, -0.0061298515647649765, 0.00018478957645129412, 0.07063683867454529, -0.012894346378743649, 0.022504663094878197, -0.0518997423350811, 0.050328247249126434, 0.03878377750515938, 0.06588204950094223, -0.033303678035736084, 0.046298760920763016, 0.01951277256011963, -0.005726903211325407, 0.021195081993937492, -0.02216215804219246, 0.03928746283054352, -0.023270266130566597, -0.019472477957606316, 0.027239305898547173, -0.031188199296593666, -0.049199990928173065, 0.024096310138702393, -0.0012825089506804943, -0.03954937681555748, 0.01989557407796383, -0.01812260039150715, 0.009418916888535023, 0.010567319579422474, -0.05238328129053116, -0.004973893519490957, 0.002541092922911048, 0.03034200891852379, -0.019825058057904243, 0.0013146188575774431, -0.036849625408649445, -0.0020625917240977287, -0.03767566755414009, -0.026735620573163033, -0.008834642358124256, -0.0433572381734848, 0.003223586594685912, 0.007363880518823862, -0.10283241420984268, -0.02268598973751068, 0.0007158629014156759, -0.018293853849172592, -0.019754542037844658, 0.04597640410065651, -0.03342456370592117, 0.024499258026480675, 0.009172110818326473, -0.011050857603549957, -0.012299997732043266, -0.011131447739899158, -0.0031581073999404907, 0.06261816620826721, -0.03995232656598091, 0.02895183674991131, -0.001862376811914146, 0.039126280695199966, -0.019170265644788742, 0.03751448914408684, -0.014314739033579826, -0.01599704846739769, 0.052584756165742874, -0.034834884107112885, 0.0197646152228117, -0.018988939002156258, 0.01827370561659336, 0.004606203176081181, -0.00500915152952075, -0.005943487863987684, 0.01177616510540247, 0.06455232203006744, 0.011997786350548267, -0.038622595369815826, -0.022726286202669144, 0.03036215528845787, 0.053350359201431274, -0.03882407024502754, 0.055002447217702866, -0.019361667335033417, -0.001822081976570189, -0.018072232604026794, 0.01649066060781479, -0.02218230441212654, 0.031047169119119644, -0.09533756971359253, 0.02038918435573578, -0.05169827118515968, -0.02621178887784481, -0.01876731775701046, 0.08469973504543304, -0.020812280476093292, 0.03594299033284187, 0.04065748676657677, 0.056009817868471146, 0.02987861819565296, -0.03537886217236519, -0.033827513456344604, -0.016551101580262184, 0.051335617899894714, -0.029314490035176277, -0.029576407745480537, 0.010345698334276676, 0.011876901611685753, 0.011131447739899158, -0.027158716693520546, -0.029636848717927933, 0.023834392428398132, 0.04952234774827957, 0.006432062480598688, -0.005580834113061428, -0.03253807872533798, -0.010028376244008541, 0.04134249687194824, -0.01600712165236473, 0.002840785775333643, -0.03707124665379524, 0.047547902911901474, 0.04033512622117996, -0.03529827296733856, 0.03825994208455086, -0.0086230942979455, -0.04400195553898811, -0.05798426270484924, -0.014818424358963966, -0.0066939787939190865, 0.009197295643389225, 0.03336412087082863, -0.030160682275891304, 0.00013292572111822665, -0.04911940172314644, -0.0018523030448704958, -0.05778278782963753, -0.03676903620362282, 0.033827513456344604, 0.018606139346957207, 0.027642255648970604, -0.02657444216310978, -0.027380337938666344, 0.01342825312167406, 0.09235575795173645, 0.04110072925686836, -0.017155524343252182, -0.0017137895338237286, -0.07567369192838669, -0.024237342178821564, -0.022524811327457428, 0.006079482845962048, 0.021698767319321632, -0.01468746643513441, -0.028286973014473915, 0.02633267268538475, 0.030039796605706215, -0.046661414206027985, -0.011242258362472057, -0.0879233255982399, 0.07853462547063828, -0.010486730374395847, -0.010436361655592918, -0.044042252004146576, 0.022867316380143166, -0.029798028990626335, 0.045774929225444794, -0.036345940083265305, -0.021577883511781693, -0.04069777950644493, -0.014878867194056511, 0.02570810355246067, 0.0057621612213552, -0.017699504271149635, 0.0021784394048154354, 0.033706627786159515, 0.017215967178344727, -0.06193315610289574, 0.07809138298034668, -0.00006839103298261762, 0.022021126002073288, 0.007237959187477827, 0.03650711849331856, 0.0164805855602026, -0.030140534043312073, 0.045049622654914856, -0.0032538077794015408, -0.018344221636652946, 0.028286973014473915, -0.00261160871013999, -0.02681621164083481, -0.02093316614627838, -0.006079482845962048, -0.015694838017225266, -0.009605281054973602, 0.008346066810190678, -0.02844815142452717, 0.015463141724467278, -0.09614346921443939, 0.017064861953258514, -0.006401841528713703, 0.027057979255914688, -0.044807855039834976, 0.020228005945682526, -0.02192038856446743, 0.0034426897764205933, 0.0335051529109478, -0.06148991361260414, -0.03213512897491455, -0.007943118922412395, 0.06362553685903549, 0.05012677237391472, 0.05242357775568962, -0.012138818390667439, 0.0468628890812397, -0.12233511358499527, 0.0018082306487485766, 0.021638324484229088, 0.018616212531924248, -0.017608841881155968, 0.015019898302853107, 0.02040933258831501, 0.011463879607617855, 0.029012279585003853, 0.028629478067159653, -0.09751349687576294, 0.026876652613282204, -0.038844216614961624, -0.030080093070864677, -0.0049764118157327175, 0.06608352810144424, 0.040758222341537476, 0.024338077753782272, -0.013901717029511929, -0.005490170791745186, -0.03300146758556366, -0.0026292377151548862, 0.02103390172123909, -0.007922971621155739, -0.007711423560976982, -0.04017394781112671, 0.03185306489467621, -0.02141670323908329, -0.014022601768374443, 0.008245330303907394, 0.01914004608988762, 0.029757734388113022, 0.018837833777070045, 0.014475918374955654, 0.006205404177308083, 0.007958229631185532, 0.017981568351387978, -0.012179112993180752, -0.03564077988266945, -0.0654790997505188, -0.00582260312512517, -0.029677143320441246, 0.01912997104227543, 0.02117493376135826, -0.0016029787948355079, 0.003598832292482257, -0.04043586552143097, 0.03084569424390793, 0.040617190301418304, -0.01348869502544403, -0.04291399568319321, 0.015543731860816479, -0.025768544524908066, 0.0021028865594416857, 0.004281325731426477, 0.019754542037844658, 0.03342456370592117, 0.030019650235772133, 0.010819162242114544, 0.03362603858113289, -0.0222830418497324, 0.02367321401834488, -0.04585551843047142, 0.02117493376135826, 0.011161668226122856, -0.0549621507525444, 0.01214889157563448, 0.039871737360954285, 0.01007874496281147, -0.058387212455272675, 0.05669482797384262, -0.028891393914818764, 0.009272848255932331, 0.030885988846421242, 0.010668057017028332, 0.07365895062685013, -0.008033782243728638, 0.01736707240343094, 0.016964124515652657, 0.03241719305515289, 0.014153559692203999, -0.06995183229446411, -0.043397534638643265, -0.02530515380203724, -0.005059519782662392, 0.020328743383288383, -0.07103978842496872, -0.016208596527576447, 0.04388107359409332, 0.018797539174556732, -0.03779655322432518, 0.02558721788227558, 0.020449627190828323, -0.001144625130109489, -0.003092628438025713, 0.003349507926031947, 0.03668844327330589, 0.03410957381129265, 0.017215967178344727, -0.031671736389398575, 0.007731570862233639, -0.03864274546504021, -0.011876901611685753, -0.080146424472332, -0.018706876784563065, -0.028911542147397995, 0.017659209668636322, -0.03012038767337799, -0.0057823085226118565, -0.01902923360466957, 0.016097785905003548, -0.05673512443900108, 0.022907612845301628, 0.039851587265729904, -0.08260440826416016, 0.032336603850126266, -0.013277146965265274, -0.004475244786590338, 0.027803434059023857, 0.03511694446206093, -0.02455970086157322, -0.0483940951526165, 0.02947567030787468, 0.03737345710396767, 0.013569285161793232, -0.036345940083265305, 0.008058966137468815, 0.018475180491805077, 0.014465845189988613, 0.02494250051677227, 0.033082056790590286, 0.03110761009156704, 0.02532530203461647, 0.010375919751822948, -0.022021126002073288, -0.006104667205363512, 0.0937257781624794, 0.011353068985044956, -0.006653684191405773, 0.0549621507525444, -0.01875724457204342, 0.038602448999881744, 0.029636848717927933, 0.009937712922692299, 0.010229850187897682, -0.055405393242836, -0.01088967826217413, 0.03789728879928589, -0.01914004608988762, 0.021880093961954117, 0.0003152755962219089, -0.08038818836212158, 0.004533168859779835, -0.017316704615950584, -0.01689360849559307, 0.022021126002073288, -0.004873156081885099, 0.013508842326700687, -0.018344221636652946, -0.003518242621794343, 0.006784642580896616, -0.07748696208000183, -0.025788692757487297, -0.0167525764554739, -0.011292627081274986, 0.03989188373088837, 0.03819949924945831, -0.07047566026449203, 0.10025354474782944, 0.030080093070864677, 0.011302700266242027, -0.04972382262349129, 0.00036548671778291464, 0.018092378973960876, 0.010249997489154339, -0.02508353255689144, 0.00868857279419899, -0.01454643439501524, 0.10178474336862564, -0.0015085377963259816, -0.06797738373279572, -0.06390760093927383, 0.060401953756809235, 0.07809138298034668, -0.03852185979485512, 0.01813267543911934, -0.009464249014854431, 0.013367810286581516, 0.02329041250050068, -0.056493353098630905, 0.0006078853039070964, 0.009423953481018543, 0.010476656258106232, -0.04218868911266327, 0.0016470513073727489, -0.05673512443900108, 0.02736019156873226, 0.010859456844627857, -0.07124126702547073, -0.04537197947502136, -0.015221373178064823, 0.02417689934372902, -0.011705649085342884, 0.011886975727975368, 0.02177935652434826, 0.007343733217567205, 0.025506628677248955, -0.07857492566108704, 0.06596264243125916, 0.0335051529109478, -0.016349628567695618, 0.024398520588874817, 0.0025209453888237476, 0.020600732415914536, -0.009192259050905704, -0.07567369192838669, -0.02153758704662323, 0.08623094111680984, -0.038481563329696655, -0.040516454726457596, 0.03050318732857704, -0.01638992317020893, -0.05443831905722618, -0.021880093961954117, -0.007142258808016777, 0.0385420061647892, -0.003641645424067974, -0.02921375259757042, 0.0010835531866177917, 0.022202452644705772, -0.013972233049571514, 0.004709458444267511, -0.023250117897987366, -0.014526287093758583, 0.0037877142895013094, -0.022605400532484055, 0.024882059544324875, -0.0043090288527309895, 0.010305403731763363, 0.039629966020584106, 0.029395079240202904, 0.03314249962568283, -0.062174927443265915, -0.03147026523947716, 0.0627390518784523, -0.01840466447174549, 0.0005317028844729066, 0.01777002029120922, -0.007968302816152573, -0.015342256985604763, -0.026272229850292206, 0.012702945619821548, 0.062174927443265915, 0.006155035458505154, 0.024277636781334877, 0.04795084893703461, -0.047789670526981354, 0.008834642358124256, -0.06144962087273598, 0.008925305679440498, 0.003299139440059662, -0.014072970487177372, -0.009670759551227093, -0.03277984634041786, -0.05492185801267624, 0.05818573758006096, 0.011453806422650814, 0.036486972123384476, -0.006850121542811394, 0.03215527534484863, 0.07946141064167023, -0.01839459128677845, -0.01292456779628992, -0.0352579765021801, -0.07269188016653061, 0.08413560688495636, -0.05689630284905434, 0.012330218218266964, 0.044767558574676514, -0.029556259512901306, 0.05242357775568962, -0.04738672450184822, -0.03036215528845787, -0.05165797472000122, 0.053833894431591034, 0.04585551843047142, -0.00036202388582751155, -0.03741375356912613, -0.02683635801076889, -0.01701449230313301, -0.021698767319321632, -0.02393512986600399, -0.020358964800834656, 0.02468058466911316, 0.03419016674160957, 0.022222600877285004, -0.040516454726457596, -0.001995853381231427, -0.0245798472315073, -0.009051227010786533, 0.0638270154595375, -0.0362452007830143, 0.001438021776266396, 0.040012769401073456, 0.005349138751626015, 0.017991643399000168, -0.030805399641394615, 0.0342707559466362, 0.03477444127202034, 0.006336362566798925, 0.006165109109133482, 0.04166485741734505, 0.04392136633396149, -0.0453316867351532, 0.05242357775568962, 0.0033318789210170507, -0.06874298304319382, 0.05556657537817955, -0.040516454726457596, 0.012864124961197376, 0.051980335265398026, -0.018293853849172592, -0.03398869186639786, 0.016279112547636032, 0.11435673385858536, 0.009947787038981915, -0.00787260290235281, 0.08341030031442642, 0.02194053679704666, -0.06157050281763077, -0.020872723311185837, -0.03475429117679596, -0.06386730819940567, -0.03805846720933914, -0.012823830358684063, -0.0139319384470582, 0.006346436217427254, -0.00963046494871378, 0.02355233021080494, -0.02734004333615303, 0.029012279585003853, -0.041503679007291794, -0.03165159001946449, 0.04234986752271652, -0.07216804474592209, 0.04210809990763664, 0.01454643439501524, -0.0468628890812397, 0.033444710075855255, 0.002667014254257083, -0.025607366114854813, -0.035721369087696075, 0.06612382084131241, 0.041624560952186584, -0.03535871580243111, 0.019240781664848328, -0.0041327388025820255, -0.004691829439252615, -0.03225601464509964, -0.025506628677248955, -0.015795573592185974, -0.043518420308828354, 0.05673512443900108, -0.0688638687133789, 0.0020865167025476694, 0.020086973905563354, -0.05363242328166962, -0.02141670323908329, 0.06882357597351074, 0.006643610540777445, -0.04255134239792824, -0.04194692149758339, 0.0006082001491449773, -0.01687346026301384, -0.024479109793901443, 0.029576407745480537, 0.07450514286756516, 0.05214151367545128, 0.048192620277404785, -0.005590907763689756, 0.0075653549283742905, 0.09783585369586945, -0.004875674843788147, 0.04847468435764313, 0.09090514481067657, 0.017477883026003838, 0.007520023267716169, -0.0015437958063557744, -0.008602946996688843, -0.00806400366127491, 0.059394583106040955, -0.01304545160382986, -0.012914493680000305, 0.017820389941334724, -0.00406222278252244, 0.014778129756450653, -0.046177878975868225, -0.003931264393031597, -0.06829974055290222, -0.03670859336853027, 0.008517320267856121, -0.03400883823633194, -0.045815225690603256, -0.002285472583025694, -0.05685601010918617, -0.0014770574634894729, -0.017669284716248512, -0.004387099761515856, -0.02782358229160309, -0.014072970487177372, 0.02683635801076889, 0.06612382084131241, -0.012128744274377823, -0.024398520588874817, 0.05685601010918617, 0.006840047892183065, -0.0010759979486465454, 0.060039300471544266, 0.03171203285455704, -0.056130699813365936, 0.013448400422930717, -0.0377764068543911, -0.053874190896749496, -0.016792871057987213, 0.03556019067764282, -0.03417001664638519, 0.0030221124179661274, -0.04444520175457001, -0.007142258808016777, -0.03721227869391441, -0.04468696936964989, 0.03074495680630207, 0.012813756242394447, -0.008023708127439022, 0.020338816568255424, -0.009529727511107922, 0.03771596401929855, -0.017941273748874664, 0.05516362562775612, -0.05238328129053116, -0.013770759105682373, 0.029133163392543793, -0.008290661498904228, -0.027541518211364746, 0.04972382262349129, 0.022706137970089912, -0.006981079466640949, 0.013559211045503616, -0.04500932618975639, 0.011967564933001995, -0.011302700266242027, 0.0012522878823801875, 0.0007744163158349693, -0.0448884442448616, -0.04791055619716644, -0.061812274158000946, 0.009449138306081295, -0.003807861590757966, 0.02911301702260971, -0.005842750892043114, 0.005192996468394995, -0.03725257143378258, 0.01254176627844572, 0.04041571542620659, -0.029415227472782135, -0.06161079928278923, -0.026372967287898064, 0.012874199077486992, 0.048434387892484665, 0.011131447739899158, -0.000025420373276574537, -0.04537197947502136, -0.003087591612711549, 0.01626903936266899, 0.03147026523947716, 0.009559948928654194, 0.03668844327330589, -0.0012516581919044256, 0.020439554005861282, -0.04247075319290161, 0.020379111170768738 ]
20,547
pyratings.get_ratings
get_ratings_from_scores
Convert numerical rating scores into regular ratings. Parameters ---------- rating_scores Numerical rating score(s). rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider` will be inferred from the series name or dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"}. short_term_strategy Will only be used, if `tenor` is "short-term". Choose between three distinct strategies in order to translate a long-term rating score into a short-term rating. Must be in {"best", "base", "worst"}. Compare https://hsbc.github.io/pyratings/short-term-rating/#there's-one-more-catch... - Strategy 1 (best): Always choose the best possible short-term rating. That's the optimistic approach. - Strategy 2 (base-case): Always choose the short-term rating that a rating agency would usually assign if there aren't any special liquidity issues (positive or negative). That's the base-case approach. - Strategy 3 (worst): Always choose the worst possible short-term rating. That's the conservative approach. Returns ------- Union[str, pd.Series, pd.DataFrame] Regular ratings according to `rating_provider`'s rating scale. Raises ------ ValueError If providing a single rating score and `rating_provider` is None. Examples -------- Converting a single long-term rating score: >>> get_ratings_from_scores(rating_scores=9, rating_provider="Fitch") 'BBB' Converting a single short-term rating score with different `short_term_strategy` arguments: >>> get_ratings_from_scores( ... rating_scores=10, ... rating_provider="DBRS", ... tenor="short-term", ... short_term_strategy="best", ... ) 'R-2M' >>> get_ratings_from_scores( ... rating_scores=10, ... rating_provider="DBRS", ... tenor="short-term", ... short_term_strategy="base", ... ) 'R-3' >>> get_ratings_from_scores( ... rating_scores=10, ... rating_provider="DBRS", ... tenor="short-term", ... short_term_strategy="worst", ... ) 'R-3' Converting a ``pd.Series`` with scores: >>> import pandas as pd >>> rating_scores_series = pd.Series(data=[5, 7, 1, np.nan, 22, pd.NA]) >>> get_ratings_from_scores( ... rating_scores=rating_scores_series, ... rating_provider="Moody's", ... tenor="long-term", ... ) 0 A1 1 A3 2 Aaa 3 NaN 4 D 5 NaN Name: rtg_Moody, dtype: object Providing a ``pd.Series`` without specifying a `rating_provider`: >>> rating_scores_series = pd.Series( ... data=[5, 7, 1, np.nan, 22, pd.NA], ... name="Moody", ... ) >>> get_ratings_from_scores(rating_scores=rating_scores_series) 0 A1 1 A3 2 Aaa 3 NaN 4 D 5 NaN Name: rtg_Moody, dtype: object Converting a ``pd.DataFrame`` with scores: >>> rating_scores_df = pd.DataFrame( ... data=[[11, 16, "foo"], [4, 2, 1], [22, "bar", 22]] ... ) >>> get_ratings_from_scores( ... rating_scores=rating_scores_df, ... rating_provider=["Fitch", "Bloomberg", "DBRS"], ... tenor="long-term", ... ) rtg_Fitch rtg_Bloomberg rtg_DBRS 0 BB+ B- NaN 1 AA- AA+ AAA 2 D NaN D When providing a ``pd.DataFrame`` without explicitly providing the `rating_provider`, they will be inferred by the dataframe's columns. >>> rating_scores_df = pd.DataFrame( ... data={ ... "rtg_fitch": [11, 4, 22], ... "rtg_Bloomberg": [16, 2, "foo"], ... "DBRS Ratings": ["bar", 1, 22], ... } ... ) >>> get_ratings_from_scores(rating_scores=rating_scores_df) rtg_Fitch rtg_Bloomberg rtg_DBRS 0 BB+ B- NaN 1 AA- AA+ AAA 2 D NaN D
def get_ratings_from_scores( rating_scores: int | float | pd.Series | pd.DataFrame, rating_provider: str | list[str] | None = None, tenor: str = "long-term", short_term_strategy: str | None = None, ) -> str | pd.Series | pd.DataFrame: """Convert numerical rating scores into regular ratings. Parameters ---------- rating_scores Numerical rating score(s). rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider` will be inferred from the series name or dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"}. short_term_strategy Will only be used, if `tenor` is "short-term". Choose between three distinct strategies in order to translate a long-term rating score into a short-term rating. Must be in {"best", "base", "worst"}. Compare https://hsbc.github.io/pyratings/short-term-rating/#there's-one-more-catch... - Strategy 1 (best): Always choose the best possible short-term rating. That's the optimistic approach. - Strategy 2 (base-case): Always choose the short-term rating that a rating agency would usually assign if there aren't any special liquidity issues (positive or negative). That's the base-case approach. - Strategy 3 (worst): Always choose the worst possible short-term rating. That's the conservative approach. Returns ------- Union[str, pd.Series, pd.DataFrame] Regular ratings according to `rating_provider`'s rating scale. Raises ------ ValueError If providing a single rating score and `rating_provider` is None. Examples -------- Converting a single long-term rating score: >>> get_ratings_from_scores(rating_scores=9, rating_provider="Fitch") 'BBB' Converting a single short-term rating score with different `short_term_strategy` arguments: >>> get_ratings_from_scores( ... rating_scores=10, ... rating_provider="DBRS", ... tenor="short-term", ... short_term_strategy="best", ... ) 'R-2M' >>> get_ratings_from_scores( ... rating_scores=10, ... rating_provider="DBRS", ... tenor="short-term", ... short_term_strategy="base", ... ) 'R-3' >>> get_ratings_from_scores( ... rating_scores=10, ... rating_provider="DBRS", ... tenor="short-term", ... short_term_strategy="worst", ... ) 'R-3' Converting a ``pd.Series`` with scores: >>> import pandas as pd >>> rating_scores_series = pd.Series(data=[5, 7, 1, np.nan, 22, pd.NA]) >>> get_ratings_from_scores( ... rating_scores=rating_scores_series, ... rating_provider="Moody's", ... tenor="long-term", ... ) 0 A1 1 A3 2 Aaa 3 NaN 4 D 5 NaN Name: rtg_Moody, dtype: object Providing a ``pd.Series`` without specifying a `rating_provider`: >>> rating_scores_series = pd.Series( ... data=[5, 7, 1, np.nan, 22, pd.NA], ... name="Moody", ... ) >>> get_ratings_from_scores(rating_scores=rating_scores_series) 0 A1 1 A3 2 Aaa 3 NaN 4 D 5 NaN Name: rtg_Moody, dtype: object Converting a ``pd.DataFrame`` with scores: >>> rating_scores_df = pd.DataFrame( ... data=[[11, 16, "foo"], [4, 2, 1], [22, "bar", 22]] ... ) >>> get_ratings_from_scores( ... rating_scores=rating_scores_df, ... rating_provider=["Fitch", "Bloomberg", "DBRS"], ... tenor="long-term", ... ) rtg_Fitch rtg_Bloomberg rtg_DBRS 0 BB+ B- NaN 1 AA- AA+ AAA 2 D NaN D When providing a ``pd.DataFrame`` without explicitly providing the `rating_provider`, they will be inferred by the dataframe's columns. >>> rating_scores_df = pd.DataFrame( ... data={ ... "rtg_fitch": [11, 4, 22], ... "rtg_Bloomberg": [16, 2, "foo"], ... "DBRS Ratings": ["bar", 1, 22], ... } ... ) >>> get_ratings_from_scores(rating_scores=rating_scores_df) rtg_Fitch rtg_Bloomberg rtg_DBRS 0 BB+ B- NaN 1 AA- AA+ AAA 2 D NaN D """ if tenor == "short-term" and short_term_strategy is None: short_term_strategy = "base" if tenor == "short-term" and short_term_strategy not in ["best", "base", "worst"]: raise ValueError( "Invalid short_term_strategy. Must be in ['best', 'base', 'worst']." ) if isinstance(rating_scores, (int, float, np.number)): if rating_provider is None: raise ValueError(VALUE_ERROR_PROVIDER_MANDATORY) rating_provider = _extract_rating_provider( rating_provider=rating_provider, valid_rtg_provider=valid_rtg_agncy[tenor], ) rtg_dict = _get_translation_dict( "scores_to_rtg", rating_provider=rating_provider, tenor=tenor, st_rtg_strategy=short_term_strategy, ) if not np.isnan(rating_scores): rating_scores = int(Decimal(f"{rating_scores}").quantize(0, ROUND_HALF_UP)) if tenor == "long-term": return rtg_dict.get(rating_scores, pd.NA) else: try: return rtg_dict.loc[ (rating_scores >= rtg_dict["MinScore"]) & (rating_scores <= rtg_dict["MaxScore"]), "Rating", ].iloc[0] except IndexError: return np.nan elif isinstance(rating_scores, pd.Series): if rating_provider is None: rating_provider = _extract_rating_provider( rating_provider=rating_scores.name, valid_rtg_provider=valid_rtg_agncy[tenor], ) else: rating_provider = _extract_rating_provider( rating_provider=rating_provider, valid_rtg_provider=valid_rtg_agncy[tenor], ) rtg_dict = _get_translation_dict( "scores_to_rtg", rating_provider, tenor=tenor, st_rtg_strategy=short_term_strategy, ) # round element to full integer, if element is number rating_scores = rating_scores.apply( lambda x: np.round(x, 0) if isinstance(x, (int, float, np.number)) else x ) if tenor == "long-term": return pd.Series( data=rating_scores.map(rtg_dict), name=f"rtg_{rating_provider}" ) else: out = [] for score in rating_scores: try: out.append( rtg_dict.loc[ (score >= rtg_dict["MinScore"]) & (score <= rtg_dict["MaxScore"]), "Rating", ].iloc[0] ) except (IndexError, TypeError): out.append(pd.NA) return pd.Series(data=out, name=f"rtg_{rating_provider}") elif isinstance(rating_scores, pd.DataFrame): if rating_provider is None: rating_provider = _extract_rating_provider( rating_provider=rating_scores.columns.to_list(), valid_rtg_provider=valid_rtg_agncy[tenor], ) else: rating_provider = _extract_rating_provider( rating_provider=rating_provider, valid_rtg_provider=valid_rtg_agncy[tenor], ) # Recursive call of 'get_ratings_from_score' for every column in dataframe return pd.concat( [ get_ratings_from_scores( rating_scores=rating_scores[c
(rating_scores: int | float | pandas.core.series.Series | pandas.core.frame.DataFrame, rating_provider: Union[str, list[str], NoneType] = None, tenor: str = 'long-term', short_term_strategy: Optional[str] = None) -> str | pandas.core.series.Series | pandas.core.frame.DataFrame
[ 0.036305006593465805, 0.006471175700426102, -0.011188335716724396, -0.007488297298550606, 0.031177885830402374, -0.041951071470975876, -0.017405230551958084, 0.008515797555446625, 0.07360637933015823, 0.006549016572535038, -0.018785610795021057, 0.07065880298614502, -0.007410455960780382, 0.04807455465197563, -0.009045115672051907, 0.017581669613718987, -0.013990608975291252, 0.057373952120542526, 0.029807886108756065, 0.0238504596054554, -0.018007200211286545, -0.005993751343339682, -0.014322730712592602, 0.0211934894323349, -0.03285925090312958, 0.007208069786429405, 0.014748260378837585, -0.015609700232744217, -0.07784092426300049, 0.04687061533331871, 0.0554642528295517, -0.04450425133109093, -0.01819401979446411, 0.01773735322058201, -0.07061728835105896, -0.06098577007651329, -0.046621523797512054, 0.021463338285684586, -0.016543790698051453, -0.013679245486855507, -0.038276977837085724, 0.009647085331380367, -0.004592614714056253, -0.08207546919584274, -0.04674607142806053, 0.04367394745349884, 0.03979228064417839, -0.06418243795633316, 0.0018110988894477487, -0.054260313510894775, 0.025282733142375946, 0.01283856388181448, -0.0325271300971508, 0.024182580411434174, -0.011022275313735008, 0.04819910228252411, -0.03655409812927246, 0.06928880512714386, 0.013409396633505821, -0.09050305187702179, 0.02364288456737995, 0.022272882983088493, -0.060030922293663025, 0.04425515979528427, 0.028666218742728233, -0.026507429778575897, 0.013035760261118412, -0.031219400465488434, -0.03663713112473488, -0.0027918945997953415, -0.02189924754202366, 0.010825078003108501, 0.0009055494447238743, -0.04641395062208176, -0.03838076442480087, 0.05820425599813461, 0.03312909975647926, -0.03134394809603691, 0.010051858611404896, -0.03609743341803551, 0.06360122561454773, 0.017872275784611702, 0.08311334997415543, -0.029932430014014244, 0.011779926717281342, -0.01160348765552044, 0.0005448865122161806, 0.021421823650598526, -0.014478412456810474, 0.003585872007533908, -0.029828643426299095, -0.03410470485687256, 0.0437154658138752, -0.019335685297846794, -0.04666304215788841, 0.015101139433681965, 0.0045640729367733, -0.0501503124833107, -0.017882656306028366, -0.01829780638217926, 0.008136971853673458, 0.006886327173560858, -0.04122455418109894, 0.04670455679297447, -0.007067956030368805, 0.01157235074788332, -0.0015114112757146358, 0.029745612293481827, -0.01924227736890316, 0.01504924613982439, -0.06982850283384323, -0.033046066761016846, 0.009880607947707176, -0.027835914865136147, -0.052350617945194244, -0.02833409793674946, -0.05160334333777428, 0.03341970592737198, 0.006299925502389669, -0.0021808433812111616, 0.02382970228791237, 0.061234861612319946, 0.00008521959534846246, 0.02059151977300644, -0.030575916171073914, -0.05048243701457977, 0.008017615415155888, 0.020383944734930992, -0.013066897168755531, 0.021608641371130943, -0.005459243431687355, 0.006325872614979744, -0.0038193948566913605, 0.060030922293663025, 0.013409396633505821, -0.0006311601609922945, -0.03142697736620903, 0.013471669517457485, 0.025469550862908363, -0.03545394539833069, 0.0705757737159729, -0.02449394389986992, 0.013876442797482014, -0.06766971200704575, 0.016419246792793274, -0.03279697522521019, 0.012091290205717087, 0.08842729032039642, 0.005303561687469482, -0.015972958877682686, -0.013668866828083992, 0.02557333931326866, 0.03387637063860893, -0.0185365192592144, 0.043341826647520065, -0.04062258452177048, 0.05758152902126312, -0.06214819476008415, 0.041432131081819534, -0.007996858097612858, 0.03964697942137718, -0.08286426216363907, 0.020518867298960686, -0.061899103224277496, -0.022231368348002434, -0.0011825334513559937, 0.00815253984183073, -0.014519927091896534, 0.003809015965089202, -0.0011728033423423767, 0.04230394959449768, -0.017498640343546867, -0.06044607236981392, -0.049859706312417984, -0.008168107829988003, 0.025220459327101707, -0.015173790976405144, -0.019512126222252846, -0.011748790740966797, 0.028022732585668564, 0.0301815215498209, -0.0741460770368576, -0.01833932287991047, -0.019138488918542862, -0.012942351400852203, 0.022771066054701805, 0.02243894524872303, -0.015578564256429672, -0.03838076442480087, 0.04095470532774925, 0.006248031742870808, -0.038795918226242065, -0.06874910742044449, 0.013917957432568073, 0.029953189194202423, -0.020716065540909767, 0.012381896376609802, 0.005228315480053425, -0.02569788508117199, 0.013565078377723694, 0.0237466711550951, 0.01699007861316204, 0.00523869413882494, 0.018183641135692596, -0.00962113868445158, 0.035038795322179794, -0.07173819839954376, -0.025448793545365334, -0.02250121720135212, -0.0616915300488472, -0.02509591542184353, -0.0008445740677416325, 0.006632046774029732, 0.0031006636563688517, -0.0038868568371981382, 0.03016076423227787, 0.08253213763237, 0.003863504622131586, 0.012049775570631027, -0.02503364160656929, -0.002097812946885824, -0.0525997094810009, -0.03769576549530029, 0.014322730712592602, 0.053513042628765106, -0.0008108429610729218, -0.0070939031429588795, 0.0073793199844658375, 0.027898188680410385, -0.0012344273272901773, -0.009766441769897938, -0.09606608003377914, 0.02445242926478386, -0.0061286757700145245, -0.014125533401966095, -0.04620637372136116, 0.0579136498272419, 0.0036689022090286016, -0.022937126457691193, 0.0036533342208713293, -0.01819401979446411, 0.02171242982149124, -0.017208034172654152, 0.01831856556236744, -0.0463724359869957, -0.03771652281284332, -0.0038427470717579126, 0.03454061225056648, -0.011032653972506523, -0.04384000971913338, 0.04774243384599686, -0.022003035992383957, 0.036948494613170624, 0.003162936307489872, -0.010586366057395935, -0.03126091510057449, -0.05824577063322067, 0.052392132580280304, -0.020716065540909767, -0.026611218228936195, -0.0025946975219994783, -0.005153069272637367, -0.0667978972196579, -0.042158644646406174, -0.011001517996191978, 0.0006373226060532033, -0.023580610752105713, 0.013710381463170052, 0.021691670641303062, -0.009813145734369755, -0.010420305654406548, 0.031821370124816895, -0.02316545881330967, 0.03790334239602089, -0.0071250395849347115, 0.01711462438106537, 0.0013751897495239973, -0.0068603805266320705, 0.05156182870268822, -0.028147278353571892, -0.012496063485741615, -0.01954326219856739, 0.01057598739862442, 0.05633607134222984, 0.08398517221212387, 0.003313428722321987, 0.033648036420345306, -0.06654880195856094, 0.03285925090312958, 0.0397300086915493, -0.014582199975848198, 0.0022145742550492287, 0.04408910125494003, 0.04051879793405533, 0.04641395062208176, 0.028437884524464607, 0.01481053326278925, -0.06443152576684952, 0.051686376333236694, 0.0019940249621868134, 0.00590553181245923, -0.0041541107930243015, 0.08809517323970795, 0.042075615376234055, -0.018650686368346214, -0.011032653972506523, 0.03126091510057449, -0.04107925295829773, -0.01353394240140915, 0.043383341282606125, 0.0154228825122118, 0.020477352663874626, -0.023580610752105713, -0.0018435325473546982, 0.020456595346331596, -0.06634122878313065, -0.014063260518014431, -0.016761746257543564, 0.02823030948638916, 0.0000402178120566532, -0.01757129095494747, -0.003344565164297819, 0.04475334286689758, 0.0060975393280386925, 0.005080417729914188, -0.03485197573900223, -0.0728175938129425, 0.008759698830544949, -0.03321212902665138, -0.005620114970952272, 0.007758145686239004, -0.045957282185554504, 0.008531365543603897, -0.009865039959549904, 0.04087167605757713, 0.07065880298614502, -0.03914879634976387, -0.03586909919977188, -0.02241818606853485, -0.017176898196339607, -0.018993185833096504, -0.03416697680950165, 0.03256864473223686, 0.04475334286689758, 0.04628940299153328, 0.013502806425094604, 0.043258797377347946, -0.04898788779973984, -0.011323260143399239, -0.03642955422401428, -0.03852606937289238, -0.02020750381052494, 0.01127136591821909, 0.03420849144458771, 0.008391251787543297, 0.02113121747970581, 0.02310318686068058, -0.017986442893743515, 0.017581669613718987, -0.01757129095494747, -0.018775232136249542, -0.010249054990708828, 0.06750365346670151, 0.01122985128313303, -0.01855727657675743, 0.031717583537101746, -0.012267730198800564, -0.03852606937289238, -0.00542810745537281, -0.02187849022448063, 0.031759098172187805, -0.038899704813957214, 0.005848448257893324, 0.008676668629050255, -0.028541672974824905, 0.022169096395373344, -0.0035573302302509546, -0.02897758223116398, 0.03389712795615196, -0.01353394240140915, 0.016273943707346916, 0.024265611544251442, 0.027109399437904358, 0.053097888827323914, 0.004084053914994001, -0.022916369140148163, 0.008837539702653885, -0.016481518745422363, -0.02953803725540638, -0.04421364516019821, -0.06870759278535843, 0.01904507912695408, 0.027337733656167984, 0.004374660085886717, -0.04612334445118904, 0.015142655000090599, 0.0007206772570498288, 0.008111024275422096, -0.012848942540585995, 0.022999398410320282, 0.0032407771795988083, -0.07173819839954376, 0.035038795322179794, -0.02237667143344879, -0.00183964055031538, -0.0035313833504915237, 0.060570620000362396, 0.024514703080058098, -0.057498496025800705, 0.04961061850190163, -0.044670313596725464, -0.008328978903591633, -0.009081440977752209, 0.027877429500222206, -0.011956366710364819, 0.013243336230516434, 0.049859706312417984, 0.07800699025392532, 0.024784550070762634, 0.03481046110391617, 0.02022826112806797, -0.0685415267944336, -0.031406220048666, 0.11026426404714584, 0.009932502172887325, -0.055547285825014114, 0.03580682724714279, -0.03485197573900223, -0.000279903004411608, -0.01662682183086872, 0.0137622756883502, -0.02449394389986992, -0.005339887458831072, -0.037612736225128174, 0.029205916449427605, -0.011416669003665447, -0.022688034921884537, 0.07518395781517029, -0.060113951563835144, -0.038899704813957214, 0.05895152688026428, -0.0017877465579658747, 0.05837031453847885, -0.016055988147854805, 0.0023494986817240715, -0.015651214867830276, 0.009890986606478691, 0.04107925295829773, -0.11018123477697372, -0.06592607498168945, -0.03072121925652027, -0.03267243131995201, 0.05712486058473587, 0.1375812441110611, -0.07514244318008423, 0.04620637372136116, 0.01351318508386612, -0.016035230830311775, -0.024763792753219604, 0.013845305889844894, -0.0031525574158877134, 0.0010742048034444451, -0.002836004365235567, 0.026548944413661957, -0.01252719946205616, 0.10063274949789047, 0.013502806425094604, -0.06355971097946167, -0.0630200132727623, 0.005249073263257742, 0.07505941390991211, -0.00048196507850661874, 0.031115612015128136, -0.027192430570721626, 0.020176367834210396, 0.0663827434182167, -0.004527747165411711, -0.04375698044896126, -0.014260457828640938, 0.06102728471159935, 0.0027737317141145468, 0.0008328979020006955, 0.00016670931654516608, 0.020819853991270065, 0.03157227858901024, -0.04446273669600487, -0.05899304151535034, -0.0014413545140996575, -0.02378818765282631, 0.006056024227291346, -0.0171353816986084, 0.04107925295829773, 0.04558364674448967, 0.03661637008190155, -0.07696910947561264, 0.06293698400259018, 0.0450439490377903, 0.036865461617708206, 0.0019148867577314377, -0.006689130328595638, 0.020518867298960686, -0.0016229832544922829, -0.11059638857841492, -0.022688034921884537, 0.08626850694417953, -0.025926217436790466, -0.06218970939517021, 0.04865576699376106, -0.023476824164390564, -0.012319623492658138, -0.018432730808854103, 0.00296314456500113, 0.07103244215250015, -0.0014828696148470044, -0.021484095603227615, 0.034914251416921616, 0.021546367555856705, -0.004688618239015341, -0.014032124541699886, -0.022148339077830315, 0.008801214396953583, -0.01481053326278925, 0.03663713112473488, 0.005391781684011221, 0.035536978393793106, 0.024826066568493843, 0.026528187096118927, 0.05853637680411339, 0.04774243384599686, -0.006652804557234049, -0.007618031930178404, 0.05567182973027229, -0.003059148322790861, -0.021670913323760033, -0.01481053326278925, 0.031053340062499046, 0.060113951563835144, -0.004595209378749132, 0.03802788630127907, 0.04305122047662735, -0.003487273585051298, 0.03678243234753609, 0.021608641371130943, -0.051686376333236694, 0.03416697680950165, -0.03410470485687256, -0.046496979892253876, -0.013980230316519737, 0.016699474304914474, -0.05542273819446564, 0.03723910078406334, -0.01047738827764988, 0.08286426216363907, 0.020975535735487938, 0.0038297735154628754, -0.015838034451007843, -0.017924170941114426, 0.02885303646326065, 0.024805309250950813, -0.0022612789180129766, 0.014540685340762138, -0.04062258452177048, 0.07198728621006012, -0.02634136937558651, -0.000552021898329258, 0.01596257835626602, -0.019512126222252846, 0.035516221076250076, -0.03400091826915741, -0.02434864081442356, -0.03088727965950966, -0.0007038117037154734, 0.024597732350230217, -0.0006609992124140263, -0.04508546367287636, -0.01413591206073761, -0.043383341282606125, -0.06663183122873306, -0.04670455679297447, -0.005345076788216829, 0.027752885594964027, 0.003347159828990698, 0.043964553624391556, -0.0652618333697319, -0.009771631099283695, 0.00934091117233038, -0.058121226727962494, 0.048614252358675, -0.026611218228936195, 0.01313954871147871, 0.012444169260561466, 0.03142697736620903, -0.006445228587836027, -0.04608182981610298, 0.038131676614284515, 0.02320697531104088, -0.030492885038256645, 0.004026970360428095, 0.04936152696609497, 0.00022752254153601825, -0.03634652495384216, 0.04002061486244202, -0.053513042628765106, -0.043300312012434006, 0.07385546714067459, -0.027358490973711014, 0.040165916085243225, 0.028479401022195816, -0.0159833375364542, -0.030555158853530884, -0.002284631133079529, 0.06862456351518631, 0.030575916171073914, -0.02192000485956669, 0.11217396706342697, 0.003354943823069334, -0.035495463758707047, 0.006896705832332373, 0.016803260892629623, -0.058743953704833984, -0.013710381463170052, 0.05189394950866699, 0.02065379172563553, 0.029039854183793068, -0.008500229567289352, 0.008884244598448277, 0.007638789713382721, -0.013772654347121716, -0.009854661300778389, -0.06277092546224594, 0.025220459327101707, -0.04703667759895325, 0.07672001421451569, -0.04058106988668442, -0.059325166046619415, 0.020477352663874626, 0.05828728526830673, -0.019761215895414352, -0.014343488030135632, 0.034291524440050125, -0.009013979695737362, -0.010098562575876713, 0.0028048681560903788, 0.01840159483253956, 0.027192430570721626, -0.05052395164966583, -0.01922152005136013, 0.007462350185960531, -0.008557312190532684, 0.08149425685405731, -0.04757637530565262, -0.006787728983908892, -0.013492426835000515, -0.044006071984767914, -0.009652274660766125, 0.0756821408867836, -0.0006269437726587057, -0.0386090986430645, -0.009709358215332031, 0.03269318863749504, -0.02368439920246601, -0.027296219021081924, 0.05131273716688156, 0.04058106988668442, -0.011219472624361515, 0.05974031612277031, -0.04367394745349884, 0.0077737136743962765, 0.07970910519361496, 0.025967732071876526, 0.019958414137363434, 0.048614252358675, 0.02239742875099182, 0.004019186366349459, -0.019128110259771347, 0.0021782484836876392, -0.03225728124380112, 0.0296210665255785, -0.03640879690647125, -0.031157128512859344, 0.014125533401966095, 0.04058106988668442, 0.008027994073927402, -0.006590531673282385, 0.014903943054378033, -0.059906378388404846, -0.025905460119247437, -0.005983372684568167, -0.013990608975291252, -0.02366364188492298, 0.02181621640920639, -0.04446273669600487, 0.002608968410640955, -0.05982334539294243, -0.04541758447885513, -0.03420849144458771, -0.06156698241829872, 0.06214819476008415, 0.04516849294304848, -0.013658488169312477, -0.028707733377814293, 0.03929410129785538, 0.010814699344336987, 0.03420849144458771, 0.025967732071876526, 0.010280191898345947, -0.03838076442480087, -0.0052931830286979675, 0.02248045988380909, -0.10677698999643326, -0.04190955311059952, -0.015412503853440285, -0.013274472206830978, 0.03844304010272026, -0.0736478939652443, 0.00011627488129306585, -0.0034691106993705034, 0.013222578912973404, 0.024763792753219604, -0.007799660786986351, 0.027835914865136147, -0.02686030976474285, 0.026465915143489838, 0.03867137059569359, 0.0005766715039499104, 0.02250121720135212, -0.0023261462338268757, -0.015308715403079987, 0.03869212791323662, -0.04803304001688957, -0.0051193381659686565, 0.0034353795927017927, 0.013689624145627022, -0.05093910172581673, -0.009989585727453232, -0.030451370403170586, 0.025324247777462006, -0.020363185554742813, 0.039418645203113556, 0.04624788835644722, -0.029870158061385155, -0.0348312184214592, -0.04550061747431755, -0.04454576596617699, -0.0017527182353660464, 0.06385031342506409, -0.02773212641477585, -0.03771652281284332, -0.01094962377101183, 0.023995762690901756, 0.07074183225631714, -0.06542789191007614, -0.00290087191388011, -0.005853637587279081, -0.007026440929621458, 0.05343001335859299, -0.006984925828874111, 0.006159811746329069, -0.011115684174001217, -0.008427578024566174, 0.027192430570721626, 0.020736822858452797, 0.0025376142002642155, -0.0013985419645905495, 0.0016632011393085122, 0.019979171454906464, -0.04288516193628311, 0.0006541881011798978 ]
20,548
pyratings.get_ratings
get_ratings_from_warf
Convert WARFs into regular ratings. Parameters ---------- warf Numerical WARF(s). rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. Returns ------- Union[str, pd.Series, pd.DataFrame] Regular rating(s) according to `rating_provider`'s rating scale. Examples -------- Converting a single WARF: >>> get_ratings_from_warf(warf=610, rating_provider="DBRS") 'BBBL' >>> get_ratings_from_warf(warf=1234.5678, rating_provider="SP") 'BB' Converting a ``pd.Series`` with WARFs: >>> import pandas as pd >>> warf_series = pd.Series(data=[90, 218.999, 1, np.nan, 10000, pd.NA]) >>> get_ratings_from_warf( ... warf=warf_series, ... rating_provider="Moody's", ... ) 0 A1 1 A3 2 Aaa 3 NaN 4 D 5 NaN Name: rtg_Moody, dtype: object Converting a ``pd.DataFrame`` with WARFs: >>> warf_df = pd.DataFrame( ... data=[[940, 4000, "foo"], [54, 13.5, 1], [10000, "bar", 9999]] ... ) >>> get_ratings_from_warf( ... warf=warf_df, ... rating_provider=["Fitch", "Bloomberg", "DBRS"], ... ) rtg_Fitch rtg_Bloomberg rtg_DBRS 0 BB+ B- NaN 1 AA- AA+ AAA 2 D NaN C
def get_ratings_from_warf( warf: int | float | pd.Series | pd.DataFrame, rating_provider: str | list[str] | None = None, ) -> str | pd.Series | pd.DataFrame: """Convert WARFs into regular ratings. Parameters ---------- warf Numerical WARF(s). rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. Returns ------- Union[str, pd.Series, pd.DataFrame] Regular rating(s) according to `rating_provider`'s rating scale. Examples -------- Converting a single WARF: >>> get_ratings_from_warf(warf=610, rating_provider="DBRS") 'BBBL' >>> get_ratings_from_warf(warf=1234.5678, rating_provider="SP") 'BB' Converting a ``pd.Series`` with WARFs: >>> import pandas as pd >>> warf_series = pd.Series(data=[90, 218.999, 1, np.nan, 10000, pd.NA]) >>> get_ratings_from_warf( ... warf=warf_series, ... rating_provider="Moody's", ... ) 0 A1 1 A3 2 Aaa 3 NaN 4 D 5 NaN Name: rtg_Moody, dtype: object Converting a ``pd.DataFrame`` with WARFs: >>> warf_df = pd.DataFrame( ... data=[[940, 4000, "foo"], [54, 13.5, 1], [10000, "bar", 9999]] ... ) >>> get_ratings_from_warf( ... warf=warf_df, ... rating_provider=["Fitch", "Bloomberg", "DBRS"], ... ) rtg_Fitch rtg_Bloomberg rtg_DBRS 0 BB+ B- NaN 1 AA- AA+ AAA 2 D NaN C """ if isinstance(warf, (int, float, np.number)): if rating_provider is None: raise ValueError(VALUE_ERROR_PROVIDER_MANDATORY) rating_provider = _extract_rating_provider( rating_provider=rating_provider, valid_rtg_provider=valid_rtg_agncy["long-term"], ) rating_scores = get_scores_from_warf(warf=warf) return get_ratings_from_scores( rating_scores=rating_scores, rating_provider=rating_provider, tenor="long-term", ) elif isinstance(warf, (pd.Series, pd.DataFrame)): rating_scores = get_scores_from_warf(warf=warf) return get_ratings_from_scores( rating_scores=rating_scores, rating_provider=rating_provider, tenor="long-term", )
(warf: int | float | pandas.core.series.Series | pandas.core.frame.DataFrame, rating_provider: Union[str, list[str], NoneType] = None) -> str | pandas.core.series.Series | pandas.core.frame.DataFrame
[ 0.06872006505727768, -0.007299581076949835, -0.011989417485892773, -0.0000531157675141003, 0.020203853026032448, -0.0600530169904232, -0.015148075297474861, 0.013876907527446747, -0.022977309301495552, 0.04179443418979645, -0.03603566065430641, 0.07499886304140091, 0.007665522862225771, 0.046031657606363297, 0.024903319776058197, -0.00341626163572073, -0.0844363123178482, 0.07106979936361313, 0.03767276927828789, 0.0036136778071522713, -0.008907799609005451, -0.006914378609508276, -0.005850257817655802, 0.021166859194636345, -0.028216058388352394, 0.003490894567221403, -0.0015167335513979197, 0.014888063073158264, -0.06814226508140564, 0.04637834057211876, 0.10870404541492462, -0.05935965105891228, -0.009264111518859863, -0.03183695673942566, -0.016419241204857826, -0.03921357914805412, -0.04630129784345627, 0.0018537853611633182, -0.023632152006030083, 0.00305031961761415, -0.0469176210463047, -0.007198465522378683, 0.035515639930963516, -0.059667814522981644, -0.055045388638973236, 0.06979863345623016, 0.029159802943468094, -0.04283447936177254, -0.04526125267148018, 0.010978261940181255, -0.0076270028948783875, 0.04487605020403862, -0.01328947488218546, 0.027811596170067787, 0.05516095086932182, 0.06972158700227737, -0.04429824650287628, 0.043990086764097214, 0.058358125388622284, -0.07973684370517731, -0.0014553419314324856, -0.0051905992440879345, -0.02677154913544655, 0.01630368083715439, 0.0441441684961319, -0.018672674894332886, 0.034687455743551254, -0.0019308257615193725, -0.02883238159120083, 0.015860699117183685, 0.0450686514377594, 0.0036497905384749174, -0.03705644607543945, 0.0015058997087180614, -0.027349352836608887, 0.031413234770298004, 0.02553890272974968, -0.015687357634305954, 0.026347827166318893, -0.0021113893017172813, 0.07842715829610825, 0.0201845932751894, 0.0333392471075058, -0.0450301319360733, 0.0003508951049298048, 0.011758295819163322, -0.04356636479496956, 0.007915904745459557, 0.007275505922734737, -0.03079691343009472, -0.028100498020648956, -0.018229691311717033, 0.03389779105782509, -0.04102402925491333, -0.04938291758298874, -0.006967343855649233, -0.030488749966025352, -0.011286423541605473, 0.0197223499417305, 0.019857171922922134, 0.02064683474600315, 0.003957952372729778, -0.01930825784802437, 0.04607017710804939, -0.02045423537492752, 0.012557590380311012, -0.007236985489726067, -0.006909563671797514, -0.05011479929089546, 0.028312359005212784, -0.0211283378303051, -0.04283447936177254, 0.005291714798659086, -0.04911327362060547, -0.04722578451037407, 0.027830855920910835, -0.030835432931780815, 0.0066977026872336864, 0.045762017369270325, -0.02469145879149437, 0.023766973987221718, 0.045376814901828766, -0.004360007122159004, -0.026983411982655525, 0.03952174261212349, -0.03493783622980118, -0.018749715760350227, -0.08058429509401321, 0.0028625335544347763, 0.05311937630176544, 0.008671863935887814, 0.04938291758298874, -0.06066934019327164, 0.026116706430912018, -0.014156179502606392, 0.017478547990322113, -0.04006102308630943, -0.007757008541375399, 0.014050249010324478, -0.039483219385147095, 0.01756521873176098, -0.012952422723174095, 0.04333524405956268, -0.012413139455020428, -0.03774981200695038, 0.044644929468631744, -0.031297676265239716, 0.04383600503206253, -0.00023819335910957307, 0.008411851711571217, -0.01098789181560278, 0.005489130970090628, 0.05473722517490387, -0.0028095683082938194, 0.05269565433263779, -0.06120862439274788, 0.014647312462329865, -0.035823799669742584, 0.02365141175687313, 0.0002858922234736383, 0.03697940707206726, -0.06721777468919754, 0.01633257232606411, -0.021436499431729317, -0.04684058204293251, 0.05123188719153404, 0.022958049550652504, 0.0380001924932003, 0.055546149611473083, 0.029622046276926994, 0.04930587485432625, 0.004798174370080233, -0.04757246747612953, -0.04402860626578331, -0.016448132693767548, 0.0788508802652359, -0.021166859194636345, -0.05670175701379776, 0.0007475329330191016, 0.025018880143761635, -0.02561594359576702, -0.040985509753227234, -0.014416190795600414, -0.0300265084952116, 0.010612319223582745, -0.001787578803487122, -0.021609840914607048, -0.009683019481599331, 0.015658468008041382, 0.04926735535264015, 0.006042859051376581, -0.007574037648737431, -0.06090046092867851, 0.030546531081199646, 0.0005468064919114113, -0.04333524405956268, -0.003539044875651598, -0.01662147231400013, -0.016823703423142433, -0.011228643357753754, -0.024383297190070152, 0.034109652042388916, -0.008122950792312622, 0.008927060291171074, -0.023420291021466255, 0.03249180316925049, -0.05273417383432388, -0.027002671733498573, -0.06167086586356163, -0.04063882678747177, 0.04244927689433098, 0.020492754876613617, -0.02769603580236435, -0.024267736822366714, 0.007559592369943857, -0.005859887693077326, 0.05558467283844948, 0.0016467391978949308, 0.009658943861722946, -0.006586956791579723, -0.027946416288614273, 0.006461766082793474, -0.040407706052064896, -0.0065339915454387665, 0.0582040473818779, -0.0030310594011098146, -0.023131389170885086, -0.026733029633760452, 0.02966056577861309, -0.0194815993309021, -0.06321167200803757, -0.06109306216239929, 0.026347827166318893, -0.009658943861722946, 0.006827708333730698, -0.025750763714313507, 0.05358162149786949, 0.010073036886751652, -0.001639516674913466, -0.03012280911207199, 0.003019021824002266, -0.006153604481369257, -0.06613921374082565, 0.03172139823436737, -0.05023036152124405, -0.019317887723445892, -0.03451411426067352, 0.03697940707206726, -0.016217010095715523, -0.01962604932487011, 0.020338673144578934, 0.013886537402868271, 0.03407113254070282, 0.014050249010324478, -0.006856598425656557, -0.017170386388897896, -0.03971434384584427, 0.002246210118755698, 0.009928585961461067, -0.03576602041721344, 0.02457589842379093, -0.042372237890958786, -0.034398552030324936, -0.01633257232606411, -0.04526125267148018, -0.005388015415519476, -0.02563520334661007, -0.02573150396347046, 0.00699623441323638, -0.01829710230231285, -0.04121663048863411, 0.012037567794322968, -0.022168384864926338, 0.017757819965481758, -0.017988940700888634, 0.011026411317288876, 0.03971434384584427, 0.011276792734861374, 0.04422120749950409, -0.012952422723174095, -0.054120901972055435, -0.039868421852588654, 0.029333144426345825, 0.04841991141438484, 0.039194319397211075, 0.02243802510201931, 0.011575324460864067, 0.01507103443145752, 0.01928899809718132, 0.010073036886751652, 0.02357437275350094, -0.01050638873130083, 0.044644929468631744, -0.016361461952328682, 0.05061556398868561, 0.04934439808130264, -0.0015745138516649604, -0.08335774391889572, 0.048304349184036255, -0.048188790678977966, 0.01177755557000637, 0.009249666705727577, 0.07465218007564545, 0.05415942519903183, -0.012547960504889488, -0.009856360033154488, 0.030546531081199646, -0.05030740052461624, -0.03191399946808815, 0.03424447029829025, 0.014926583506166935, 0.008570748381316662, -0.03372444957494736, -0.0011893116170540452, 0.031143594533205032, -0.0798138901591301, -0.03451411426067352, 0.022669147700071335, 0.0030455044470727444, -0.019404558464884758, 0.05076964572072029, 0.017112605273723602, 0.028967201709747314, 0.0016467391978949308, 0.04718726500868797, 0.0002705443184822798, -0.07561518251895905, 0.011999047361314297, -0.02347807213664055, 0.0009696260676719248, -0.012547960504889488, -0.011700515635311604, 0.020069032907485962, 0.03401334956288338, 0.03647864609956741, 0.0760003849864006, -0.019452709704637527, -0.021552061662077904, -0.02403661422431469, -0.024807019159197807, -0.02852421998977661, 0.030199849978089333, 0.03632456436753273, 0.04803470894694328, 0.05492982640862465, -0.007843678817152977, 0.040792908519506454, -0.04345080256462097, 0.010169336572289467, -0.030912473797798157, -0.017112605273723602, -0.013732456602156162, -0.02430625632405281, 0.011739036068320274, 0.04241075739264488, 0.06271091103553772, -0.020030511543154716, 0.021359460428357124, -0.045762017369270325, 0.0337822288274765, -0.007578852586448193, -0.015456236898899078, 0.02037719450891018, -0.012634631246328354, -0.062287189066410065, 0.008739273995161057, -0.006341390311717987, -0.039752863347530365, -0.04741838574409485, -0.011719775386154652, 0.028042716905474663, -0.000021987369109410793, 0.005248379427939653, -0.04075438901782036, 0.011450134217739105, 0.03886689618229866, 0.07499886304140091, -0.014926583506166935, -0.010516018606722355, 0.008898169733583927, -0.01347244530916214, 0.04333524405956268, 0.011113082058727741, 0.028023457154631615, 0.06402059644460678, -0.01404061820358038, -0.03738386929035187, -0.04048474505543709, -0.051116324961185455, -0.020319413393735886, -0.09221739321947098, -0.012586480937898159, 0.013453185558319092, 0.05076964572072029, -0.0037292384076863527, -0.021166859194636345, -0.06167086586356163, 0.01759410835802555, -0.02646338753402233, 0.015331045724451542, 0.05100076645612717, -0.09083066880702972, 0.007757008541375399, -0.0012200074270367622, -0.03855873644351959, -0.02280396781861782, 0.026964150369167328, -0.012913902290165424, -0.03832761570811272, 0.024479597806930542, 0.018643785268068314, -0.012952422723174095, -0.0046826135367155075, -0.0027084527537226677, 0.016852594912052155, 0.014830282889306545, 0.020434973761439323, 0.050538524985313416, 0.030296150594949722, 0.05304233729839325, 0.014955474063754082, -0.027753815054893494, 0.003454781835898757, 0.12611518800258636, 0.005248379427939653, -0.022938787937164307, 0.06147826462984085, -0.0333007276058197, 0.03557341918349266, -0.018354883417487144, 0.00011307789827696979, 0.005753957200795412, -0.041909996420145035, 0.004778914153575897, 0.03867429494857788, -0.02355511114001274, 0.0020054588094353676, 0.04206407442688942, -0.08328070491552353, -0.025692984461784363, 0.023863274604082108, -0.045492373406887054, 0.024845538660883904, 0.03513043746352196, -0.03152879700064659, -0.0806613340973854, 0.0211283378303051, 0.024729978293180466, -0.05019184201955795, -0.0450301319360733, 0.029333144426345825, -0.05273417383432388, -0.023689933121204376, 0.07958276569843292, -0.004901697393506765, 0.08590008318424225, 0.09052250534296036, -0.006249905098229647, -0.041062548756599426, -0.006322130560874939, 0.016390351578593254, 0.008488892577588558, 0.015889588743448257, -0.03489931672811508, 0.0009347171289846301, 0.10808772593736649, 0.01725705713033676, -0.05358162149786949, -0.021455761045217514, 0.0007258653058670461, 0.06791114062070847, 0.019452709704637527, 0.01911565661430359, -0.031971778720617294, 0.06656293570995331, 0.07026087492704391, -0.02515370026230812, -0.015571797266602516, 0.0005805116961710155, -0.01474361214786768, -0.02648264914751053, 0.01548512652516365, 0.006066934205591679, 0.014069508761167526, 0.0031105075031518936, -0.060592301189899445, -0.024633677676320076, -0.04645537957549095, 0.02515370026230812, 0.036748286336660385, 0.02261136658489704, 0.06371244043111801, 0.03183695673942566, 0.046031657606363297, -0.05435202270746231, 0.086362324655056, 0.06540732830762863, 0.005893593188375235, 0.0014493231428787112, 0.01778670959174633, 0.048304349184036255, -0.02336251176893711, -0.08690160512924194, -0.03541933745145798, 0.03605492040514946, -0.06644736975431442, -0.021802442148327827, 0.025288522243499756, 0.007318840827792883, 0.017054826021194458, -0.015186594799160957, 0.0150132542476058, 0.05304233729839325, -0.014252480119466782, -0.03077765181660652, 0.04233371838927269, 0.014483600854873657, -0.004771691747009754, -0.0005790069699287415, 0.029718346893787384, 0.012133868411183357, -0.017411136999726295, 0.034417811781167984, 0.005855072755366564, -0.006351020652800798, -0.018133390694856644, 0.028139017522335052, 0.03617048263549805, 0.03349332883954048, -0.030719872564077377, -0.058165524154901505, 0.05385126173496246, -0.025962624698877335, -0.04279595986008644, 0.007097349967807531, -0.003948322031646967, -0.0019524934468790889, -0.013963578268885612, 0.046609461307525635, -0.005802107509225607, -0.007472922094166279, 0.013886537402868271, 0.021609840914607048, -0.03763424977660179, 0.024518117308616638, -0.10577651113271713, -0.04460640996694565, -0.03418669104576111, 0.028947941958904266, -0.03884763643145561, 0.006009153556078672, -0.04487605020403862, 0.07241800427436829, 0.026598209515213966, -0.02110907807946205, -0.011922006495296955, 0.034957095980644226, 0.048689551651477814, -0.02187948301434517, 0.014396931044757366, -0.02205282263457775, -0.0779263973236084, 0.09075362980365753, -0.029506485909223557, 0.004468345083296299, 0.00549394590780139, 0.014117659069597721, 0.02384401299059391, -0.04626277834177017, -0.04672502353787422, -0.010217486880719662, 0.01257685013115406, 0.016496282070875168, -0.016322940587997437, -0.04872807115316391, 0.007126240059733391, -0.05620099604129791, -0.014753242954611778, 0.011565694585442543, -0.07241800427436829, 0.03592010214924812, 0.017988940700888634, 0.0023364918306469917, -0.06544584780931473, -0.029718346893787384, -0.009784135036170483, -0.013761347159743309, 0.020126812160015106, -0.07896643877029419, 0.05134744942188263, 0.044529370963573456, -0.01257685013115406, 0.007679968141019344, -0.005359124857932329, 0.04969107732176781, 0.00843111239373684, -0.024344775825738907, 0.021166859194636345, 0.051193367689847946, 0.008797054179012775, -0.008402221836149693, 0.02016533352434635, -0.01604367047548294, -0.10153929144144058, 0.08505263924598694, -0.007256245706230402, 0.02476849965751171, 0.007179205305874348, -0.017988940700888634, -0.06533028930425644, 0.022784708067774773, 0.07723303139209747, 0.005180968903005123, -0.01679481379687786, 0.09961327910423279, 0.03669050708413124, -0.047842107713222504, -0.04167887195944786, -0.017902269959449768, -0.0741128921508789, 0.0122012784704566, 0.004456307273358107, -0.02854347974061966, -0.0028553109150379896, 0.009567458182573318, -0.034398552030324936, 0.005002812948077917, 0.018701564520597458, -0.008854834362864494, -0.021436499431729317, 0.039752863347530365, -0.03744164854288101, 0.05874332785606384, -0.03499561548233032, -0.05146300792694092, 0.027657514438033104, 0.014551011845469475, -0.01136346347630024, -0.01979939080774784, 0.028620520606637, 0.04630129784345627, 0.03565045818686485, -0.019086766988039017, -0.004251668695360422, 0.01946233958005905, -0.06602364778518677, -0.027176011353731155, -0.025673724710941315, -0.014348780736327171, 0.03191399946808815, -0.04737986624240875, -0.0190193559974432, -0.012499810196459293, -0.007444031536579132, -0.01351096574217081, 0.050345923751592636, 0.01249018032103777, -0.025866324082016945, -0.011382724158465862, 0.04264187812805176, 0.005296529736369848, -0.0003238105564378202, 0.05781884491443634, 0.0553920716047287, 0.017025934532284737, 0.03645938262343407, -0.03511117771267891, -0.004574275575578213, 0.08050724864006042, -0.008402221836149693, 0.022457286715507507, 0.037980932742357254, 0.05855072662234306, 0.0032573656644672155, -0.031779177486896515, 0.00085045414743945, -0.03343554586172104, 0.057587724179029465, 0.00989969540387392, 0.013058353215456009, 0.017507437616586685, 0.007651078049093485, 0.007901459001004696, -0.006192124914377928, 0.022746186703443527, -0.01655406318604946, -0.05180969089269638, 0.011064931750297546, 0.010910850949585438, -0.012133868411183357, 0.05057704448699951, -0.09930511564016342, -0.011247903108596802, 0.0018369328463450074, -0.023054348304867744, -0.03884763643145561, -0.031490277498960495, -0.0029925392009317875, 0.051501527428627014, 0.04156331345438957, -0.03343554586172104, 0.08043020963668823, 0.011122711934149265, 0.029622046276926994, 0.02476849965751171, -0.03220289945602417, -0.006379910744726658, 0.022861748933792114, 0.005696177016943693, -0.10123112797737122, -0.048188790678977966, 0.04999924078583717, -0.010265637189149857, 0.03861651569604874, -0.022168384864926338, -0.008546672761440277, -0.021802442148327827, -0.008642973378300667, 0.004302226472645998, -0.03855873644351959, 0.02684859000146389, -0.024999620392918587, 0.01778670959174633, 0.044067125767469406, -0.004213148728013039, 0.027060450986027718, -0.012268688529729843, -0.0006142169004306197, 0.01788301020860672, -0.01844155415892601, 0.030007248744368553, 0.029968727380037308, 0.030546531081199646, -0.015225115232169628, 0.03971434384584427, -0.018836384639143944, -0.008354071527719498, 0.018499333411455154, 0.011719775386154652, 0.0086863087490201, -0.01676592417061329, 0.019452709704637527, -0.08089245110750198, -0.052233412861824036, -0.02617448754608631, 0.06066934019327164, 0.013048723340034485, -0.036921627819538116, -0.02796567603945732, 0.04429824650287628, 0.00800738949328661, -0.06178642436861992, -0.007304396014660597, 0.034957095980644226, 0.004376859404146671, 0.05231045186519623, -0.0187786053866148, 0.004993183072656393, -0.030835432931780815, -0.02505739964544773, -0.000538380176294595, 0.05362014099955559, -0.014117659069597721, -0.006307685282081366, -0.017285946756601334, 0.01018859725445509, -0.03370518982410431, 0.023863274604082108 ]
20,550
pyratings.get_scores
get_scores_from_ratings
Convert regular ratings into numerical rating scores. Parameters ---------- ratings Rating(s) to be translated into rating score(s). rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider` will be inferred from the series name or dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- Union[int, pd.Series, pd.DataFrame] Numerical rating score(s) If returns a ``pd.Series``, the series name will be `rtg_score` suffixed by `ratings.name`. If return a ``pd.DataFrame``, the column names will be `rtg_score` suffixed by the respective `ratings.columns`. Raises ------ ValueError If providing a single rating and `rating_provider` is None. Examples -------- Converting a single long-term rating: >>> get_scores_from_ratings( ... ratings="BBB-", rating_provider="S&P", tenor="long-term" ... ) 10 Converting a single short-term rating score: >>> get_scores_from_ratings( ... ratings="P-1", rating_provider="Moody", tenor="short-term" ... ) 3.5 Converting a ``pd.Series`` of ratings: >>> import pandas as pd >>> ratings_series = pd.Series( ... data=["Baa1", "C", "NR", "WD", "D", "B1", "SD"], name='Moody' ... ) >>> get_scores_from_ratings( ... ratings=ratings_series, rating_provider="Moody's", tenor="long-term" ... ) 0 8.0 1 21.0 2 NaN 3 NaN 4 22.0 5 14.0 6 22.0 Name: rtg_score_Moody, dtype: float64 Providing a ``pd.Series`` without specifying a `rating_provider`: >>> ratings_series = pd.Series( ... data=["Baa1", "C", "NR", "WD", "D", "B1", "SD"], name="Moody" ... ) >>> get_scores_from_ratings(ratings=ratings_series) 0 8.0 1 21.0 2 NaN 3 NaN 4 22.0 5 14.0 6 22.0 Name: rtg_score_Moody, dtype: float64 Converting a ``pd.DataFrame`` with ratings: >>> ratings_df = pd.DataFrame( ... data=[["BB+", "B3", "BBB-"], ["AA-", "Aa1", "AAA"], ["D", "NR", "D"]], ... columns=["SP", "Moody", "DBRS"], ... ) >>> get_scores_from_ratings( ... ratings=ratings_df, ... rating_provider=["S&P", "Moody's", "DBRS"], ... tenor="long-term", ... ) rtg_score_SP rtg_score_Moody rtg_score_DBRS 0 11 16.0 NaN 1 4 2.0 1.0 2 22 NaN 22.0 When providing a ``pd.DataFrame`` without explicitly providing the `rating_provider`, they will be inferred from the dataframe's columns. >>> ratings_df = pd.DataFrame( ... data={ ... "rtg_fitch": ["BB+", "AA-", "D"], ... "rtg_Bloomberg": ["B-", "AA+", "NR"], ... "DBRS Ratings": ["BBB-", "AAA", "D"], ... } ... ) >>> get_scores_from_ratings(ratings=ratings_df) rtg_score_rtg_fitch rtg_score_rtg_Bloomberg rtg_score_DBRS Ratings 0 11 16.0 NaN 1 4 2.0 1.0 2 22 NaN 22.0
def get_scores_from_ratings( ratings: str | pd.Series | pd.DataFrame, rating_provider: str | list[str] | None = None, tenor: str = "long-term", ) -> int | pd.Series | pd.DataFrame: """Convert regular ratings into numerical rating scores. Parameters ---------- ratings Rating(s) to be translated into rating score(s). rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider` will be inferred from the series name or dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- Union[int, pd.Series, pd.DataFrame] Numerical rating score(s) If returns a ``pd.Series``, the series name will be `rtg_score` suffixed by `ratings.name`. If return a ``pd.DataFrame``, the column names will be `rtg_score` suffixed by the respective `ratings.columns`. Raises ------ ValueError If providing a single rating and `rating_provider` is None. Examples -------- Converting a single long-term rating: >>> get_scores_from_ratings( ... ratings="BBB-", rating_provider="S&P", tenor="long-term" ... ) 10 Converting a single short-term rating score: >>> get_scores_from_ratings( ... ratings="P-1", rating_provider="Moody", tenor="short-term" ... ) 3.5 Converting a ``pd.Series`` of ratings: >>> import pandas as pd >>> ratings_series = pd.Series( ... data=["Baa1", "C", "NR", "WD", "D", "B1", "SD"], name='Moody' ... ) >>> get_scores_from_ratings( ... ratings=ratings_series, rating_provider="Moody's", tenor="long-term" ... ) 0 8.0 1 21.0 2 NaN 3 NaN 4 22.0 5 14.0 6 22.0 Name: rtg_score_Moody, dtype: float64 Providing a ``pd.Series`` without specifying a `rating_provider`: >>> ratings_series = pd.Series( ... data=["Baa1", "C", "NR", "WD", "D", "B1", "SD"], name="Moody" ... ) >>> get_scores_from_ratings(ratings=ratings_series) 0 8.0 1 21.0 2 NaN 3 NaN 4 22.0 5 14.0 6 22.0 Name: rtg_score_Moody, dtype: float64 Converting a ``pd.DataFrame`` with ratings: >>> ratings_df = pd.DataFrame( ... data=[["BB+", "B3", "BBB-"], ["AA-", "Aa1", "AAA"], ["D", "NR", "D"]], ... columns=["SP", "Moody", "DBRS"], ... ) >>> get_scores_from_ratings( ... ratings=ratings_df, ... rating_provider=["S&P", "Moody's", "DBRS"], ... tenor="long-term", ... ) rtg_score_SP rtg_score_Moody rtg_score_DBRS 0 11 16.0 NaN 1 4 2.0 1.0 2 22 NaN 22.0 When providing a ``pd.DataFrame`` without explicitly providing the `rating_provider`, they will be inferred from the dataframe's columns. >>> ratings_df = pd.DataFrame( ... data={ ... "rtg_fitch": ["BB+", "AA-", "D"], ... "rtg_Bloomberg": ["B-", "AA+", "NR"], ... "DBRS Ratings": ["BBB-", "AAA", "D"], ... } ... ) >>> get_scores_from_ratings(ratings=ratings_df) rtg_score_rtg_fitch rtg_score_rtg_Bloomberg rtg_score_DBRS Ratings 0 11 16.0 NaN 1 4 2.0 1.0 2 22 NaN 22.0 """ if isinstance(ratings, str): if rating_provider is None: raise ValueError(VALUE_ERROR_PROVIDER_MANDATORY) rating_provider = _extract_rating_provider( rating_provider=rating_provider, valid_rtg_provider=valid_rtg_agncy[tenor], ) rtg_dict = _get_translation_dict( "rtg_to_scores", rating_provider, tenor=tenor, st_rtg_strategy="base", ) return rtg_dict.get(ratings, pd.NA) elif isinstance(ratings, pd.Series): if rating_provider is None: rating_provider = _extract_rating_provider( rating_provider=ratings.name, valid_rtg_provider=valid_rtg_agncy[tenor], ) else: rating_provider = _extract_rating_provider( rating_provider=rating_provider, valid_rtg_provider=valid_rtg_agncy[tenor], ) rtg_dict = _get_translation_dict( "rtg_to_scores", rating_provider, tenor=tenor, st_rtg_strategy="base", ) return pd.Series(data=ratings.map(rtg_dict), name=f"rtg_score_{ratings.name}") elif isinstance(ratings, pd.DataFrame): if rating_provider is None: rating_provider = _extract_rating_provider( rating_provider=ratings.columns.to_list(), valid_rtg_provider=valid_rtg_agncy[tenor], ) else: rating_provider = _extract_rating_provider( rating_provider=rating_provider, valid_rtg_provider=valid_rtg_agncy[tenor], ) # Recursive call of `get_scores_from_ratings` return pd.concat( [ get_scores_from_ratings( ratings=ratings[col], rating_provider=provider, tenor=tenor, ) for col, provider in zip(ratings.columns, rating_provider) # noqa: B905 ], axis=1, )
(ratings: str | pandas.core.series.Series | pandas.core.frame.DataFrame, rating_provider: Union[str, list[str], NoneType] = None, tenor: str = 'long-term') -> int | pandas.core.series.Series | pandas.core.frame.DataFrame
[ 0.04395590350031853, -0.005769712850451469, 0.005844774190336466, 0.011959768831729889, 0.026441598311066628, -0.03648980334401131, -0.004148388281464577, 0.03384764492511749, 0.0812663808465004, 0.03875165060162544, -0.017063938081264496, 0.0582876093685627, 0.01066871453076601, 0.0627712681889534, -0.0025946192909032106, 0.013911362737417221, -0.008737136609852314, 0.050641365349292755, 0.024259814992547035, 0.014631951227784157, -0.02928391844034195, -0.02036663517355919, -0.014371738769114017, 0.009167487733066082, -0.03352738544344902, 0.02315891534090042, 0.021937917917966843, -0.00978799443691969, -0.07085787504911423, 0.04085336998105049, 0.061850517988204956, -0.029804343357682228, -0.05152208358049393, 0.014481828548014164, -0.06161032244563103, -0.05692649632692337, -0.05244283378124237, -0.005429434590041637, -0.00945272110402584, -0.007886441424489021, -0.0266217440366745, -0.007095796056091785, 0.01928575336933136, -0.07630232721567154, -0.06469283998012543, 0.05264299735426903, 0.015602744184434414, -0.060689572244882584, 0.005669631063938141, -0.05748695507645607, -0.007586196530610323, -0.0010527349077165127, -0.025340698659420013, 0.021237347275018692, 0.01247018575668335, 0.06321163475513458, -0.0311054065823555, 0.07794366776943207, 0.029123788699507713, -0.09095428884029388, 0.029123788699507713, 0.016893798485398293, -0.04395590350031853, 0.0473586842417717, 0.029644213616847992, -0.033687517046928406, 0.04451636224985123, -0.018184853717684746, -0.04451636224985123, -0.016543513163924217, -0.02063685655593872, -0.012099883519113064, -0.03873163461685181, -0.04843956604599953, -0.022918719798326492, 0.06733500212430954, 0.03258661553263664, -0.01220997329801321, 0.01582292467355728, -0.007941486313939095, 0.07866425067186356, 0.013831296935677528, 0.06161032244563103, -0.015772882848978043, 0.0266217440366745, 0.0017426734557375312, 0.013250823132693768, 0.022338245064020157, -0.013160749338567257, 0.026081303134560585, -0.03424797207117081, -0.017814550548791885, 0.0411936454474926, -0.05192241072654724, -0.07125820219516754, 0.013871329836547375, 0.004273490514606237, -0.05348368361592293, -0.015112344175577164, -0.0008944806177169085, 0.029904425144195557, 0.030845195055007935, -0.020246537402272224, 0.037110310047864914, -0.010508582927286625, 0.02273857221007347, -0.008211707696318626, 0.023499194532632828, -0.023319046944379807, 0.02480025589466095, -0.06717486679553986, -0.014551886357367039, 0.003753065597265959, -0.016923822462558746, -0.042434658855199814, -0.033787596970796585, -0.04271489009261131, 0.028983673080801964, -0.0048639727756381035, 0.015022270381450653, 0.0030524933245033026, 0.08871246129274368, 0.00885223038494587, 0.01797468215227127, -0.024179749190807343, -0.044276162981987, -0.010898902080953121, 0.011399311013519764, -0.012660341337323189, 0.027662593871355057, 0.005449451040476561, 0.010678722523152828, -0.0073409960605204105, 0.04187420383095741, 0.022258181124925613, 0.015612752176821232, 0.0037455593701452017, 0.022098049521446228, 0.032666683197021484, -0.050321102142333984, 0.06421244889497757, -0.02484028972685337, 0.014812098816037178, -0.057046595960855484, 0.006900636479258537, -0.013180766254663467, 0.016803724691271782, 0.08050575852394104, 0.001650097779929638, -0.00017404841491952538, -0.0278827752918005, 0.01031842827796936, 0.05580558255314827, -0.014882155694067478, 0.036169543862342834, -0.0361495278775692, 0.03815116360783577, -0.06773532927036285, 0.04151390865445137, 0.002223065821453929, 0.03606946021318436, -0.08767160773277283, 0.013370920903980732, -0.06201064959168434, -0.029063738882541656, 0.015632769092917442, 0.013000618666410446, -0.019305769354104996, -0.00109714618884027, -0.014661976136267185, 0.0498807430267334, -0.002090457594022155, -0.04619773477315903, -0.062210813164711, -0.0010933930752798915, 0.013360912911593914, -0.022258181124925613, -0.0056295981630682945, 0.0028823541942983866, 0.021357445046305656, 0.03566913306713104, -0.05720672756433487, -0.0205968227237463, -0.010698738507926464, -0.010988975875079632, 0.01994629204273224, 0.008531969040632248, -0.006230088882148266, -0.027382366359233856, 0.04151390865445137, -0.0008782173390500247, -0.048679761588573456, -0.06989709287881851, 0.028243068605661392, 0.019405851140618324, -0.015672801062464714, 0.005084152799099684, 0.0030449870973825455, -0.03600941225886345, 0.009182500652968884, 0.010138280689716339, 0.015943022444844246, -0.00824173167347908, 0.018875418230891228, -0.01331087201833725, 0.014401763677597046, -0.06741506606340408, -0.0369902141392231, -0.04411603510379791, -0.07634235918521881, -0.019165653735399246, 0.003242648672312498, 0.023379096761345863, -0.010718755424022675, -0.013741224072873592, 0.03919201344251633, 0.09207520633935928, 0.006084970198571682, 0.01066871453076601, -0.02087705209851265, 0.00018843516591005027, -0.029964474961161613, -0.03717036172747612, 0.014221616089344025, 0.06505313515663147, -0.026701809838414192, -0.009112442843616009, 0.006029925309121609, 0.01592300646007061, -0.006590383127331734, -0.014982237480580807, -0.08310788124799728, 0.05084152892231941, -0.01282047200948, -0.02241831086575985, -0.05636604130268097, 0.053683847188949585, 0.013010626658797264, -0.027002055197954178, -0.0015825426671653986, -0.007931478321552277, 0.018845392391085625, -0.02946406602859497, -0.00753115164116025, -0.0526830330491066, -0.052002474665641785, 0.0050291079096496105, 0.026701809838414192, -0.03544895350933075, -0.03598939627408981, 0.0596887543797493, -0.009307602420449257, 0.04823940247297287, -0.005849778186529875, -0.001216618693433702, -0.029404016211628914, -0.06112993136048317, 0.0641724169254303, -0.0007781355525366962, -0.03442811965942383, 0.012169940397143364, -0.0012209973065182567, -0.06453271210193634, -0.04151390865445137, -0.012109891511499882, -0.008386850357055664, -0.0129605857655406, -0.0028648399747908115, 0.010628681629896164, -0.01849510706961155, -0.037430573254823685, 0.03640973940491676, -0.01966606266796589, 0.04131374508142471, -0.011179131455719471, 0.010568632744252682, -0.007596204522997141, -0.004878985229879618, 0.049200188368558884, -0.024219783022999763, -0.0034553222358226776, -0.01966606266796589, -0.00789644941687584, 0.06721489876508713, 0.09783991426229477, 0.00798652321100235, 0.027402382344007492, -0.06853598356246948, 0.02036663517355919, 0.030284736305475235, 0.003525379579514265, -0.0019503430230543017, 0.02820303663611412, 0.045276980847120285, 0.036349691450595856, 0.014441795647144318, -0.0026196397375315428, -0.06617405265569687, 0.052322737872600555, 0.006860603578388691, -0.009597839787602425, -0.0008738387259654701, 0.10664711147546768, 0.031926076859235764, -0.015382564626634121, -0.009382663294672966, 0.035328857600688934, -0.02143751084804535, -0.00592984352260828, 0.030144622549414635, 0.034448135644197464, 0.03544895350933075, -0.0566062368452549, -0.0196160227060318, 0.012500209733843803, -0.04547714442014694, -0.01700388826429844, -0.026121335104107857, 0.02466014213860035, -0.014932196587324142, 0.003995763603597879, 0.006870612036436796, 0.03520875796675682, 0.002669680630788207, 0.03831129148602486, -0.03695018216967583, -0.06689464300870895, 0.018755318596959114, -0.028122970834374428, -0.013531052507460117, 0.016423415392637253, -0.04379577189683914, 0.0121198995038867, -0.0311054065823555, 0.044676490128040314, 0.06457274407148361, -0.0465179942548275, -0.010348452255129814, -0.0203165952116251, 0.008176678791642189, -0.020296577364206314, -0.04323531314730644, 0.011919735930860043, 0.024199767038226128, 0.029263902455568314, 0.017344167456030846, 0.033267173916101456, -0.022758590057492256, 0.0026196397375315428, -0.06433254480361938, -0.05164217948913574, -0.010678722523152828, 0.004914013668894768, 0.02143751084804535, -0.009372655302286148, 0.03374756500124931, 0.003525379579514265, -0.037610720843076706, 0.0016763692256063223, -0.022378278896212578, 0.007015730254352093, 0.01368117518723011, 0.059888917952775955, 0.006074962206184864, -0.044676490128040314, 0.03534887358546257, 0.007496122736483812, -0.02596120536327362, 0.002223065821453929, -0.022938735783100128, 0.020336611196398735, -0.02297876961529255, 0.0067455098032951355, 0.019836202263832092, -0.01938583515584469, 0.040413010865449905, -0.011399311013519764, -0.03100532479584217, 0.04067322239279747, -0.005854782182723284, 0.011209155432879925, 0.013541060499846935, 0.0369902141392231, 0.023058833554387093, 0.01793464832007885, -0.01919567957520485, 0.009147471748292446, -0.02554086223244667, -0.03685009852051735, -0.027942823246121407, -0.07502127438783646, 0.02441994659602642, 0.009652884677052498, 0.015512670390307903, -0.02988440915942192, 0.005954863969236612, -0.017023904249072075, 0.00032213813392445445, -0.004135878290981054, 0.026881957426667213, 0.01625327579677105, -0.053163424134254456, 0.027282284572720528, -0.037110310047864914, -0.0026121335104107857, 0.005944855511188507, 0.052562933415174484, 0.02077697031199932, -0.0636119544506073, 0.04067322239279747, -0.022918719798326492, 0.013531052507460117, -0.009112442843616009, 0.0228386539965868, -0.015142368152737617, 0.008201698772609234, 0.034588251262903214, 0.0745408833026886, 0.043355412781238556, 0.024760223925113678, 0.012650332413613796, -0.059288427233695984, -0.017894616350531578, 0.09703925997018814, 0.041113581508398056, -0.05040116608142853, 0.023098867386579514, -0.052562933415174484, 0.00028710952028632164, -0.03478841483592987, 0.0030775137711316347, -0.0005132317310199142, 0.0143617307767272, -0.01694384030997753, 0.04223449528217316, -0.01652349717915058, -0.021137265488505363, 0.05332355573773384, -0.07386033236980438, -0.047238584607839584, 0.06173042207956314, -0.013891346752643585, 0.030284736305475235, -0.008957316167652607, 0.00006810249760746956, -0.02217811532318592, 0.013721207156777382, 0.0322263240814209, -0.10456541180610657, -0.0725792795419693, -0.04996080696582794, -0.038451407104730606, 0.06521326303482056, 0.11473371088504791, -0.07662258297204971, 0.07466097921133041, 0.03610949590802193, -0.02105719968676567, -0.030765129253268242, 0.02241831086575985, -0.009522777982056141, -0.013531052507460117, 0.002699705073609948, -0.0006195685709826648, -0.013811280950903893, 0.10456541180610657, 0.0022668514866381884, -0.07001718878746033, -0.034448135644197464, 0.013320880010724068, 0.07562176883220673, 0.0204567089676857, 0.030925258994102478, -0.02063685655593872, 0.017053930088877678, 0.0504412017762661, -0.013971411623060703, -0.0596887543797493, -0.033187106251716614, 0.04803923889994621, 0.006074962206184864, 0.0052442834712564945, 0.005659622605890036, 0.005104169249534607, 0.033267173916101456, -0.04755884408950806, -0.0560457780957222, -0.004778903443366289, -0.005139197688549757, -0.009352639317512512, -0.006220080424100161, 0.04295508563518524, 0.05348368361592293, 0.04295508563518524, -0.06104986369609833, 0.06617405265569687, 0.05812747776508331, 0.025700991973280907, -0.012229989282786846, -0.003908192273229361, 0.03212624043226242, -0.00010735331306932494, -0.09735952317714691, -0.0226985402405262, 0.07518140971660614, -0.023639308288693428, -0.0462377667427063, 0.03436807170510292, -0.007441077847033739, -0.0023844477254897356, -0.01573285087943077, 0.011399311013519764, 0.08214709907770157, -0.00901736505329609, -0.02399960346519947, 0.02203799970448017, 0.027802709490060806, 0.012930561788380146, 0.012099883519113064, 0.005006589461117983, 0.02820303663611412, -0.011399311013519764, 0.015772882848978043, 0.018795352429151535, 0.028703445568680763, 0.030464883893728256, 0.024540044367313385, 0.06693467497825623, 0.04543711245059967, -0.0035979386884719133, -0.015012262389063835, 0.044756557792425156, -0.026301482692360878, -0.017264101654291153, -0.018294943496584892, 0.029864393174648285, 0.04071325436234474, -0.0257810577750206, 0.046918321400880814, 0.060729604214429855, -0.012229989282786846, 0.0098080113530159, 0.023919537663459778, -0.04127371311187744, 0.029123788699507713, -0.05124185234308243, -0.06421244889497757, -0.026441598311066628, 0.04479658976197243, -0.04855966195464134, 0.04900002479553223, -0.025440780445933342, 0.08254742622375488, 0.024339880794286728, -0.0098080113530159, -0.01592300646007061, -0.016893798485398293, 0.023699358105659485, 0.012189956381917, 0.003775583812966943, 0.006605395115911961, -0.05208254233002663, 0.08871246129274368, -0.0280228890478611, 0.02470017410814762, 0.019786160439252853, -0.0264816302806139, 0.008316793479025364, -0.045036785304546356, -0.029203854501247406, -0.0280228890478611, -0.008712115697562695, 0.019125621765851974, 0.008712115697562695, -0.04367567598819733, -0.0055945697240531445, -0.04908008873462677, -0.06485297530889511, -0.030464883893728256, 0.0013110708678141236, 0.04143384471535683, 0.006675452459603548, 0.014341713860630989, -0.040933433920145035, -0.01890544220805168, 0.020556790754199028, -0.06261114031076431, 0.04131374508142471, -0.043035149574279785, 0.018465083092451096, -0.007160848937928677, 0.011939751915633678, 0.0058397697284817696, -0.020336611196398735, 0.04351554438471794, 0.037010230123996735, -0.04235459491610527, 0.007846408523619175, 0.051482051610946655, 0.001403646543622017, -0.046117667108774185, 0.04459642618894577, -0.036589886993169785, -0.050080906599760056, 0.0680956169962883, -0.029223870486021042, 0.03664993494749069, 0.0453970804810524, -0.020676888525485992, 0.0005520134000107646, 0.0009720439556986094, 0.05180231109261513, 0.027282284572720528, -0.02932395227253437, 0.11393305659294128, -0.014271656982600689, -0.025420764461159706, 0.006985705811530352, 0.005559540819376707, -0.06805558502674103, -0.021677706390619278, 0.04571733996272087, 0.015592736192047596, 0.025160551071166992, 0.0006302022375166416, 0.014311689883470535, -0.019916268065571785, 0.0037380531430244446, -0.006650432012975216, -0.06817568838596344, 0.03556905314326286, -0.066694475710392, 0.08703108876943588, -0.030645031481981277, -0.026401564478874207, 0.022798622027039528, 0.0664142444729805, -0.032766763120889664, 0.004633784759789705, 0.043075185269117355, 0.002223065821453929, -0.032286372035741806, 0.0017101468984037638, 0.016233259811997414, 0.020166471600532532, -0.01816483773291111, -0.03618955984711647, 0.0027572521939873695, 0.0015862956643104553, 0.09143467992544174, -0.0219979677349329, -0.041914235800504684, -0.0023819454945623875, -0.04459642618894577, -0.008046572096645832, 0.075661800801754, 0.0040207840502262115, -0.03442811965942383, -0.016053112223744392, 0.0221380814909935, -0.014021452516317368, -0.026601728051900864, 0.049480415880680084, 0.05496489629149437, -0.005759704392403364, 0.03695018216967583, -0.04319528117775917, 0.01192974392324686, 0.08422879874706268, 0.03777085244655609, 0.028943641111254692, 0.06321163475513458, 0.011819654144346714, 0.018224885687232018, -0.029524115845561028, -0.014231624081730843, -0.02512051910161972, 0.0008262999472208321, -0.025580894201993942, -0.025140535086393356, -0.03184601292014122, 0.03825124353170395, 0.011879703029990196, -0.006930660922080278, 0.023459160700440407, -0.05040116608142853, -0.020246537402272224, 0.023198949173092842, -0.0114193269982934, -0.042794954031705856, 0.001337342313490808, -0.03404780849814415, 0.0034127875696867704, -0.055765550583601, -0.0504412017762661, -0.027282284572720528, -0.050601329654455185, 0.01220997329801321, 0.02914380468428135, 0.0029023706447333097, -0.03568914905190468, 0.05724675953388214, 0.020066389814019203, 0.02554086223244667, 0.013350904919207096, 0.011049024760723114, -0.045317016541957855, 0.01727410964667797, 0.0030975299887359142, -0.0896732434630394, -0.0428750216960907, -0.03426799178123474, -0.021157281473279, 0.0395122729241848, -0.03993261605501175, 0.004886491224169731, 0.010838853195309639, 0.012490201741456985, 0.021357445046305656, -0.022758590057492256, 0.03230638802051544, -0.021957935765385628, 0.05084152892231941, 0.0383913591504097, -0.013601109385490417, 0.002079198369756341, -0.010628681629896164, -0.015442613512277603, 0.08066588640213013, -0.03534887358546257, -0.018795352429151535, -0.002199296373873949, 0.018084771931171417, -0.07406049221754074, -0.013801272958517075, -0.036349691450595856, 0.005834765732288361, -0.01998632401227951, 0.04519691690802574, 0.022638490423560143, -0.03188604488968849, -0.04015279561281204, -0.04964054748415947, -0.042794954031705856, 0.012300047092139721, 0.061250027269124985, -0.04047305881977081, -0.03941219300031662, -0.0150623032823205, 0.029103772714734077, 0.04859969764947891, -0.05672633275389671, -0.009002353064715862, -0.007761339657008648, -0.024920355528593063, 0.053964078426361084, 0.0016638590022921562, -0.027542496100068092, -0.018885426223278046, -0.017754502594470978, 0.022298213094472885, 0.029644213616847992, -0.00014722962805535644, -0.010458542965352535, 0.009858052246272564, 0.020206505432724953, -0.033547401428222656, 0.008166670799255371 ]
20,551
pyratings.get_scores
get_scores_from_warf
Convert weighted average rating factors (WARFs) into numerical rating scores. Parameters ---------- warf Weighted average rating factor (WARF). Returns ------- Union[int, float, pd.Series, pd.DataFrame] Numerical rating score(s). Examples -------- Converting a single WARF: >>> get_scores_from_warf(500) 10 >>> get_scores_from_warf(1992.9999) 13 Converting a ``pd.Series`` of WARFs: >>> import numpy as np >>> import pandas as pd >>> warf_series = pd.Series(data=[260, 9999.49, np.nan, 10000, 2469.99, 2470]) >>> get_scores_from_warf(warf=warf_series) 0 8.0 1 21.0 2 NaN 3 22.0 4 14.0 5 15.0 Name: rtg_score, dtype: float64 Converting a ``pd.DataFrame`` of WARFs: >>> warf_df = pd.DataFrame( ... data={ ... "provider1": [900, 40, 10000], ... "provider2": [3000, 10, np.nan], ... "provider3": [610, 1, 9999.49], ... } ... ) >>> get_scores_from_warf(warf=warf_df) rtg_score_provider1 rtg_score_provider2 rtg_score_provider3 0 11 15.0 10 1 4 2.0 1 2 22 NaN 21
def get_scores_from_warf( warf: int | float | pd.Series | pd.DataFrame, ) -> int | float | pd.Series | pd.DataFrame: """Convert weighted average rating factors (WARFs) into numerical rating scores. Parameters ---------- warf Weighted average rating factor (WARF). Returns ------- Union[int, float, pd.Series, pd.DataFrame] Numerical rating score(s). Examples -------- Converting a single WARF: >>> get_scores_from_warf(500) 10 >>> get_scores_from_warf(1992.9999) 13 Converting a ``pd.Series`` of WARFs: >>> import numpy as np >>> import pandas as pd >>> warf_series = pd.Series(data=[260, 9999.49, np.nan, 10000, 2469.99, 2470]) >>> get_scores_from_warf(warf=warf_series) 0 8.0 1 21.0 2 NaN 3 22.0 4 14.0 5 15.0 Name: rtg_score, dtype: float64 Converting a ``pd.DataFrame`` of WARFs: >>> warf_df = pd.DataFrame( ... data={ ... "provider1": [900, 40, 10000], ... "provider2": [3000, 10, np.nan], ... "provider3": [610, 1, 9999.49], ... } ... ) >>> get_scores_from_warf(warf=warf_df) rtg_score_provider1 rtg_score_provider2 rtg_score_provider3 0 11 15.0 10 1 4 2.0 1 2 22 NaN 21 """ def _get_scores_from_warf_db( wrf: int | float | pd.Series | pd.DataFrame, ) -> int | float: if not isinstance(wrf, (int, float, np.number) or np.isnan(wrf)) or not ( 1 <= wrf <= 10_000 ): return np.nan else: if wrf == 10_000: return 22 else: # connect to database connection = sqlite3.connect(RATINGS_DB) cursor = connection.cursor() # create SQL query sql_query = ( "SELECT RatingScore FROM WARFs WHERE ? >= MinWARF and ? < MaxWARF" ) # execute SQL query cursor.execute(sql_query, (wrf, wrf)) rtg_score = cursor.fetchall() # close database connection connection.close() return rtg_score[0][0] if isinstance(warf, (int, float, np.number)): return _get_scores_from_warf_db(warf) elif isinstance(warf, pd.Series): rating_scores = warf.apply(_get_scores_from_warf_db) rating_scores.name = "rtg_score" return rating_scores elif isinstance(warf, pd.DataFrame): return warf.applymap(_get_scores_from_warf_db).add_prefix("rtg_score_")
(warf: int | float | pandas.core.series.Series | pandas.core.frame.DataFrame) -> int | float | pandas.core.series.Series | pandas.core.frame.DataFrame
[ 0.05271317437291145, -0.009298795834183693, -0.04707390442490578, 0.021597204729914665, 0.02451682649552822, -0.03779510781168938, -0.03503546491265297, 0.030156096443533897, -0.011218547821044922, 0.02529672533273697, -0.034735504537820816, 0.05087341368198395, 0.02671654149889946, 0.008593887090682983, 0.03635529428720474, 0.05511286482214928, -0.06527154892683029, 0.065231554210186, 0.0242768581956625, -0.002224711934104562, 0.005834244657307863, -0.030376067385077477, -0.013498252257704735, 0.0469939149916172, -0.030356070026755333, -0.03403559327125549, 0.012888331897556782, 0.016427872702479362, -0.045874062925577164, 0.03911493718624115, 0.049833547323942184, -0.03599534183740616, -0.006374174728989601, -0.021877167746424675, -0.030975989997386932, -0.042314521968364716, -0.04459422826766968, -0.03615532070398331, -0.008583888411521912, 0.012528378516435623, -0.05507287010550499, -0.013038312084972858, 0.018597591668367386, -0.021697191521525383, -0.06691133975982666, 0.04415428265929222, 0.03313571214675903, -0.0850289911031723, -0.006914104800671339, -0.015527989715337753, -0.030995987355709076, -0.0021859670523554087, -0.012218418531119823, 0.02677653357386589, 0.035235438495874405, 0.07207067310810089, -0.04747385531663895, -0.0002912122872658074, 0.010063697583973408, -0.10414651781320572, 0.021417226642370224, -0.006924103479832411, -0.026896517723798752, 0.012348401360213757, 0.028956251218914986, -0.02451682649552822, 0.0236569382250309, -0.012228417210280895, -0.04183458536863327, -0.001950997393578291, 0.012658361345529556, 0.004369434434920549, -0.004959357902407646, -0.015188033692538738, -0.010548634454607964, 0.060712140053510666, 0.05427297577261925, -0.03341567516326904, 0.014028184115886688, 0.013918198645114899, 0.08662878721952438, 0.029676157981157303, 0.014798084273934364, -0.027596427127718925, -0.014758089557290077, -0.002480928786098957, 0.0038070071022957563, 0.042354516685009, 0.014008186757564545, -0.03101598471403122, -0.024096880108118057, -0.012318405322730541, 0.03453553095459938, -0.030096104368567467, -0.04635399952530861, -0.01760772056877613, -0.043114420026540756, -0.025716671720147133, 0.007419039495289326, 0.0179376769810915, 0.01157850120216608, 0.039034947752952576, -0.014648104086518288, 0.05355306714773178, -0.005609273910522461, 0.0033345683477818966, 0.010183681733906269, -0.04031478241086006, -0.022617071866989136, 0.03997482359409332, -0.0426744744181633, -0.00857388973236084, -0.017047792673110962, -0.013138298876583576, -0.07135076075792313, -0.0034095586743205786, -0.035515401512384415, 0.041394639760255814, 0.034375548362731934, 0.017347754910588264, -0.008048958145081997, 0.058432437479496, 0.028516309335827827, 0.000990496831946075, 0.024816786870360374, -0.02275705337524414, 0.006514156702905893, -0.06627142429351807, 0.0001907565601868555, 0.05031348764896393, 0.05019350349903107, -0.010708613321185112, -0.04563409090042114, 0.017587723210453987, 0.0008455155184492469, 0.02121725305914879, 0.011308535933494568, 0.005599275231361389, 0.03389561176300049, -0.054712917655706406, 0.04099469259381294, -0.00405947444960475, 0.026396583765745163, -0.02353695221245289, -0.034435540437698364, 0.0375751368701458, -0.016287891194224358, 0.051713306456804276, -0.01686781644821167, 0.010648621246218681, -0.010818599723279476, -0.0027321462985128164, 0.03913493454456329, 0.005804248619824648, 0.01952747255563736, -0.05055345594882965, 0.02257707715034485, -0.06227193772792816, 0.027196479961276054, -0.005021850112825632, 0.009583759121596813, -0.04811377078294754, 0.0360153391957283, -0.0599922351539135, -0.051593322306871414, 0.03355565667152405, -0.010918586514890194, 0.035855356603860855, 0.03643528372049332, 0.030096104368567467, 0.012028442695736885, 0.01377821620553732, -0.017407746985554695, -0.04495418071746826, 0.00010123689571628347, 0.04283445328474045, -0.014958064071834087, -0.045314133167266846, 0.01726776547729969, 0.05383303016424179, 0.012668360024690628, -0.08078954368829727, -0.01687781512737274, -0.03691522032022476, 0.014978061430156231, 0.013588241301476955, -0.041914574801921844, 0.017057791352272034, 0.021417226642370224, 0.05031348764896393, 0.01867758296430111, -0.03777511045336723, -0.06979096680879593, 0.012218418531119823, 0.02337697334587574, -0.02359694615006447, 0.018827563151717186, 0.0016585353296250105, -0.002100978046655655, -0.007973968051373959, -0.007049087435007095, 0.013858205638825893, -0.005579277873039246, 0.02099728211760521, -0.034895483404397964, 0.020307371392846107, -0.05179329589009285, -0.03833503648638725, -0.0689510777592659, -0.0282963365316391, -0.0038370033726096153, 0.009548763744533062, -0.06995094567537308, -0.03219583258032799, 0.03911493718624115, -0.015807952731847763, 0.06271187961101532, -0.019097527489066124, 0.03101598471403122, -0.012088434770703316, -0.03419557213783264, -0.0005880488897673786, -0.05695262551307678, 0.0002930870687123388, 0.05775252357125282, -0.008473902940750122, -0.009068826213479042, -0.0006064840126782656, 0.04907364770770073, 0.017537729814648628, -0.034335553646087646, -0.06367176026105881, -0.0010992327006533742, -0.04727388173341751, 0.019147520884871483, 0.002474679611623287, 0.02993612550199032, 0.021477220579981804, 0.004146963357925415, -0.034335553646087646, 0.007184070069342852, 0.0026221605949103832, -0.05011351406574249, 0.03917492926120758, -0.06931103020906448, -0.052793167531490326, -0.005799249280244112, 0.00951376836746931, -0.03351566195487976, 0.022837042808532715, 0.017557727172970772, 0.002509675221517682, 0.07207067310810089, 0.025796661153435707, -0.003392060985788703, -0.00725906016305089, -0.05835244432091713, 0.017017796635627747, 0.003996982704848051, -0.015148038975894451, 0.03171589598059654, -0.01032866258174181, 0.00741404015570879, -0.011758477427065372, -0.05831244960427284, -0.00550428731366992, -0.041634611785411835, -0.023816917091608047, 0.005904235877096653, 0.010598627850413322, -0.05927232652902603, -0.017347754910588264, -0.009643751196563244, 0.003991983365267515, -0.006784121971577406, 0.009353789500892162, 0.049273621290922165, 0.019097527489066124, 0.034675512462854385, -0.00397448567673564, -0.024656808003783226, -0.03411558270454407, -0.017927678301930428, 0.03439554572105408, 0.04815376549959183, 0.01573796197772026, -0.009953711181879044, 0.03539541736245155, 0.04093470051884651, -0.010438648983836174, 0.0414346344769001, -0.017927678301930428, 0.035455409437417984, -0.02099728211760521, 0.05367305129766464, 0.04075472429394722, -0.0051843286491930485, -0.0701909139752388, 0.05407299846410751, -0.005579277873039246, 0.017927678301930428, -0.0006711631431244314, 0.1079060286283493, 0.06083212420344353, -0.021537212654948235, 0.005559280514717102, 0.019457481801509857, -0.0333956778049469, -0.030076107010245323, 0.03453553095459938, 0.0022297112736850977, 0.005064344499260187, -0.017417745664715767, 0.0064041707664728165, -0.004421927500516176, -0.057592544704675674, -0.0367952361702919, -0.0059242332354187965, 0.0003865124599542469, -0.01414816826581955, 0.024936771020293236, 0.012458386830985546, 0.0782298743724823, 0.016107914969325066, 0.06963098794221878, -0.006964098662137985, -0.08310924470424652, 0.004396930802613497, 0.030576040968298912, -0.028176352381706238, -0.011868463829159737, -0.023816917091608047, 0.02281704545021057, 0.01052863709628582, 0.0646316334605217, 0.034895483404397964, 0.010003704577684402, 0.02965616062283516, -0.013198291882872581, -0.019277503713965416, -0.028656290844082832, 0.009943712502717972, 0.045994047075510025, 0.050513461232185364, 0.04539412260055542, -0.0012310906313359737, -0.00251842406578362, -0.033195704221725464, -0.002555919112637639, -0.04295444115996361, -0.045034170150756836, -0.036095328629016876, -0.04279445856809616, 0.040334779769182205, 0.009773734956979752, 0.0671113133430481, -0.005069343838840723, -0.0457540787756443, 0.002365943742915988, 0.01794767752289772, -0.04535412788391113, 0.0034870486706495285, -0.0017022796673700213, 0.003894495777785778, -0.048033781349658966, 0.010183681733906269, -0.013908199965953827, -0.04371434077620506, -0.07075084000825882, 0.010163684375584126, 0.018327627331018448, 0.011388525366783142, -0.003319570329040289, -0.04439425468444824, -0.004164461046457291, 0.05275316908955574, 0.07922974228858948, -0.011448518373072147, 0.021097268909215927, -0.01714777946472168, 0.005559280514717102, -0.0014185663312673569, -0.038854971528053284, 0.018087659031152725, 0.06951100379228592, -0.02105727419257164, -0.031895872205495834, -0.07938972115516663, -0.042354516685009, -0.008788862265646458, -0.06267188489437103, 0.029636163264513016, 0.027816399931907654, -0.0046493979170918465, -0.02353695221245289, 0.005209325812757015, -0.04025479033589363, 0.013808212243020535, -0.005209325812757015, 0.017587723210453987, 0.015747960656881332, -0.08678876608610153, 0.007344049401581287, -0.0019947418477386236, -0.05011351406574249, -0.01612791232764721, 0.01771770603954792, -0.015228028409183025, -0.020517343655228615, 0.022897036746144295, 0.007464033551514149, 0.00831892341375351, -0.02547670155763626, 0.018577594310045242, 0.002087229862809181, 0.02359694615006447, 0.029916128143668175, 0.048193760216236115, 0.001522302976809442, 0.06271187961101532, 0.000571176060475409, -0.025256730616092682, 0.024296855553984642, 0.10614626109600067, 0.02371693029999733, -0.054033003747463226, 0.03617531806230545, -0.01194845326244831, 0.00006479630246758461, 0.011368528008460999, -0.020117396488785744, -0.013598239980638027, -0.03107597678899765, -0.017537729814648628, 0.03377562761306763, -0.006299184635281563, -0.021357234567403793, 0.06487160176038742, -0.05871240049600601, -0.03445553779602051, 0.06867110729217529, -0.02145722322165966, 0.045314133167266846, 0.025116749107837677, -0.025436706840991974, -0.07938972115516663, 0.012278410606086254, -0.0020109897013753653, -0.08806859701871872, -0.03549540415406227, -0.007728999480605125, -0.0531931146979332, 0.0025009261444211006, 0.07567020505666733, 0.0074290381744503975, 0.06595145910978317, 0.005904235877096653, -0.02881626971065998, 0.0038370033726096153, 0.0013860706239938736, 0.004654397256672382, 0.006639140658080578, 0.0451541543006897, -0.06499158591032028, -0.04563409090042114, 0.06651139259338379, 0.006219194736331701, -0.05931232124567032, -0.01619790308177471, -0.0129883186891675, 0.07311053574085236, 0.034955475479364395, 0.025656677782535553, -0.06907106190919876, 0.0639917179942131, 0.055672794580459595, -0.027776403352618217, -0.024236861616373062, 0.032075848430395126, -0.00055524060735479, 0.0011717233574017882, 0.03151591867208481, 0.010028702206909657, -0.009738739579916, 0.027656419202685356, -0.025856653228402138, -0.04195456951856613, -0.04883367940783501, 0.008583888411521912, -0.006064214743673801, 0.0380350761115551, 0.05395301431417465, 0.05271317437291145, 0.028996245935559273, -0.07503028959035873, 0.040954697877168655, 0.07659008353948593, 0.010308665223419666, -0.013288279995322227, 0.01709778606891632, 0.0313759371638298, -0.0234969574958086, -0.10486642271280289, 0.0029571172781288624, 0.03453553095459938, -0.050793424248695374, -0.019947417080402374, 0.023876909166574478, 0.031155966222286224, 0.006044217385351658, -0.03769512102007866, 0.02405688539147377, 0.04603404179215431, -0.00267465366050601, -0.021017279475927353, 0.027076493948698044, -0.0007686504977755249, 0.01420816034078598, 0.010008703917264938, 0.029676157981157303, 0.010798602364957333, -0.040894705802202225, 0.004334439057856798, 0.019737444818019867, -0.01765771396458149, 0.004136964678764343, 0.027636421844363213, 0.04651397839188576, 0.05639269948005676, -0.009573760442435741, -0.0451541543006897, 0.040954697877168655, -0.019457481801509857, -0.04119466617703438, 0.017627717927098274, -0.010458646342158318, 0.018037665635347366, -0.03205585107207298, 0.021237250417470932, 0.0073840441182255745, 0.024236861616373062, 0.05507287010550499, 0.011818470433354378, -0.038355033844709396, 0.033475667238235474, -0.09046828746795654, -0.08438907563686371, -0.013638234697282314, 0.05519285425543785, -0.03933490812778473, 0.02127724513411522, -0.03151591867208481, 0.08438907563686371, 0.00815394427627325, -0.036995209753513336, 0.04583406820893288, 0.00018825687584467232, 0.02275705337524414, -0.0007961469236761332, -0.013758218847215176, -0.00794897135347128, -0.09230805188417435, 0.10750608146190643, -0.02847631275653839, -0.06351178139448166, -0.013938196003437042, 0.03023608587682247, 0.03231581673026085, -0.060992103070020676, -0.0541129931807518, -0.02377692237496376, 0.035455409437417984, 0.0341755747795105, -0.02791638672351837, -0.01273835077881813, 0.010908587835729122, -0.048193760216236115, -0.05871240049600601, 0.004579407162964344, -0.050233498215675354, 0.03289574012160301, 0.016667842864990234, 0.010498641058802605, -0.03643528372049332, -0.027756405994296074, 0.02603662945330143, -0.042474500834941864, 0.01361823733896017, -0.043394383043050766, 0.02677653357386589, 0.02519673854112625, -0.012338402681052685, -0.006319181993603706, -0.006634141318500042, 0.05559280514717102, 0.021157260984182358, -0.04615402594208717, 0.03963486850261688, 0.03797508403658867, -0.011558503843843937, -0.034675512462854385, 0.02433685027062893, -0.03983484208583832, -0.09054827690124512, 0.0695909932255745, -0.0026671546511352062, 0.05059345066547394, 0.009088823571801186, -0.021977154538035393, -0.052433211356401443, 0.008723870851099491, 0.03807507082819939, 0.0079239746555686, -0.012968321330845356, 0.10334662348031998, -0.00013013940770179033, -0.030156096443533897, -0.021137263625860214, -0.0194074884057045, -0.06935102492570877, 0.017557727172970772, -0.030496051535010338, -0.00910882093012333, 0.01601792685687542, 0.059912245720624924, -0.0008336420869454741, 0.05291315168142319, 0.0142981493845582, -0.008013962768018246, -0.023796919733285904, 0.04017480090260506, -0.014768088236451149, 0.050353482365608215, -0.06683135032653809, -0.053633056581020355, 0.032355811446905136, 0.019267505034804344, 0.00009436278196517378, -0.020577335730195045, 0.03487548604607582, 0.04663396254181862, 0.04615402594208717, 0.010758607648313046, 0.004244450479745865, 0.04883367940783501, -0.06735128164291382, -0.015807952731847763, -0.023396970704197884, 0.02201714925467968, 0.029676157981157303, -0.042194537818431854, -0.0531931146979332, -0.03933490812778473, 0.004061974119395018, -0.016267893835902214, 0.05559280514717102, 0.03275575861334801, -0.05859241634607315, -0.020397359505295753, 0.03351566195487976, -0.03219583258032799, 0.01089858915656805, 0.012038441374897957, 0.01760772056877613, 0.0313759371638298, 0.04839373379945755, -0.047353871166706085, 0.025896647945046425, 0.09566761553287506, -0.022937031462788582, 0.022437095642089844, 0.060312192887067795, 0.024096880108118057, 0.04271446913480759, -0.053073130548000336, 0.02059733308851719, -0.03303572162985802, 0.03813506290316582, 0.014748090878129005, -0.030596038326621056, 0.024976767599582672, 0.03779510781168938, -0.02489677630364895, 0.014028184115886688, 0.03655526787042618, -0.05475291237235069, -0.0426744744181633, 0.020007409155368805, 0.012498382478952408, -0.0010211177868768573, 0.006114208605140448, -0.05399300903081894, -0.009463774971663952, 0.016947805881500244, -0.04179459065198898, -0.03403559327125549, -0.04495418071746826, 0.005764253903180361, 0.06539153307676315, 0.03827504441142082, -0.03905494511127472, 0.06819117069244385, 0.015757959336042404, 0.061552032828330994, 0.03515544906258583, -0.022597074508666992, -0.021717188879847527, 0.020977284759283066, 0.0064641633071005344, -0.07695003598928452, -0.0729905515909195, 0.03487548604607582, -0.026636552065610886, 0.0646316334605217, -0.01567796990275383, 0.0057342578656971455, 0.010008703917264938, -0.0010986077832058072, -0.02291703410446644, -0.01952747255563736, 0.012558374553918839, 0.0017310258699581027, 0.03177588805556297, 0.01839761808514595, 0.002774640917778015, 0.004809377249330282, 0.03101598471403122, -0.011438519693911076, -0.0027296466287225485, 0.025216735899448395, 0.026616554707288742, -0.01783769018948078, 0.018527600914239883, -0.03589535504579544, 0.032635774463415146, 0.005564279854297638, 0.02359694615006447, -0.015288020484149456, 0.03577536717057228, 0.012458386830985546, -0.00976373627781868, -0.009603756479918957, -0.06599145382642746, -0.05803248658776283, -0.028856264427304268, 0.04615402594208717, 0.005174329970031977, -0.00725906016305089, -0.03447553887963295, 0.04215454310178757, 0.0497935526072979, -0.05179329589009285, 0.02569667436182499, 0.030016114935278893, -0.008223935030400753, 0.07734998315572739, -0.019457481801509857, -0.04571408033370972, 0.013568243943154812, -0.01963745802640915, 0.02513674646615982, 0.0503934770822525, -0.045194149017333984, 0.031835880130529404, -0.04615402594208717, 0.02014739252626896, -0.02875627763569355, 0.021537212654948235 ]
20,552
pyratings.consolidate
get_second_best_ratings
Compute the second-best rating on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. rating_provider_output Indicates which rating scale will be used for output results. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Second-best ratings on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_second_best_ratings( ... ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"] ... ) 0 AA+ 1 AA- 2 AA 3 BB- 4 C Name: second_best_rtg, dtype: object
def get_second_best_ratings( ratings: pd.DataFrame, rating_provider_input: list[str] = None, rating_provider_output: Literal[ "Fitch", "Moody", "S&P", "Bloomberg", "DBRS" ] = "S&P", tenor: Literal["long-term", "short-term"] = "long-term", ) -> pd.Series: """Compute the second-best rating on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. rating_provider_output Indicates which rating scale will be used for output results. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Second-best ratings on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_second_best_ratings( ... ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"] ... ) 0 AA+ 1 AA- 2 AA 3 BB- 4 C Name: second_best_rtg, dtype: object """ ratings_series = consolidate_ratings( method="second_best", ratings=ratings, rating_provider_input=rating_provider_input, rating_provider_output=rating_provider_output, tenor=tenor, ) return ratings_series
(ratings: pandas.core.frame.DataFrame, rating_provider_input: Optional[list[str]] = None, rating_provider_output: Literal['Fitch', 'Moody', 'S&P', 'Bloomberg', 'DBRS'] = 'S&P', tenor: Literal['long-term', 'short-term'] = 'long-term') -> pandas.core.series.Series
[ 0.00709005119279027, -0.03291776403784752, 0.013995585963129997, -0.0016387382056564093, 0.01762133650481701, -0.0616285502910614, -0.006001403089612722, 0.03168150410056114, 0.06849256902933121, -0.023507418110966682, 0.0016410446260124445, 0.07450781017541885, -0.024153225123882294, 0.02730846032500267, 0.03588848188519478, 0.029190529137849808, 0.0021011829376220703, -0.0052218204364180565, 0.023119932040572166, 0.022031284868717194, -0.048490967601537704, -0.010498995892703533, 0.01679101213812828, -0.019411148503422737, -0.008727636188268661, 0.07137102633714676, -0.003621138632297516, 0.004652125295251608, -0.06557720899581909, 0.014410748146474361, 0.08126112073659897, -0.04133172333240509, -0.06723785400390625, 0.03229041025042534, 0.0033651217818260193, -0.01637585088610649, -0.001311221276409924, 0.059451255947351456, 0.024263935163617134, -0.002527877688407898, -0.018663855269551277, -0.05096349120140076, 0.017685918137431145, -0.04516967013478279, -0.051258716732263565, 0.06797592341899872, -0.013488165102899075, 0.01616365648806095, 0.015065781772136688, -0.03944965451955795, 0.005475530866533518, -0.021182507276535034, -0.033415958285331726, 0.010268350131809711, 0.025666261091828346, 0.011338545940816402, 0.0071730837225914, 0.054764531552791595, 0.04044604301452637, -0.05059445649385452, 0.04897071048617363, -0.030998792499303818, -0.001387334312312305, 0.0816301554441452, -0.030777372419834137, 0.003270557150244713, 0.01556397695094347, -0.02324909344315529, -0.029707176610827446, 0.02974407933652401, 0.02027837559580803, 0.01529642753303051, -0.061997584998607635, -0.004257720895111561, -0.03675571084022522, 0.030629759654402733, 0.0477898046374321, -0.029725627973675728, -0.012039709836244583, 0.006937825120985508, 0.05195987969636917, 0.003192137461155653, 0.009760929271578789, -0.07303167879581451, 0.005936822388321161, -0.02083192579448223, 0.026312069967389107, -0.016643399372696877, -0.031404729932546616, 0.021809864789247513, -0.06886160373687744, -0.01583152636885643, 0.03623906522989273, -0.0375860370695591, -0.009105894714593887, 0.01627436652779579, -0.03258563578128815, -0.04070436581969261, 0.009078217670321465, -0.023728838190436363, 0.01105254516005516, 0.02931969054043293, -0.010674286633729935, 0.021108701825141907, 0.0535467229783535, -0.001575310598127544, -0.008095666766166687, 0.052513428032398224, -0.06000480428338051, -0.024799033999443054, -0.0008326312527060509, -0.060521449893713, 0.0017252303659915924, -0.02347051352262497, -0.02645968273282051, 0.0018313274485990405, -0.009331927634775639, 0.029836338013410568, 0.034043315798044205, 0.016514237970113754, -0.018359404057264328, 0.006827115081250668, -0.018405532464385033, 0.002894604578614235, -0.04686722159385681, -0.01900521107017994, 0.008418571203947067, -0.014419973827898502, -0.02420858107507229, 0.06210829317569733, -0.0016571899177506566, 0.003533493261784315, -0.024300837889313698, 0.05808583274483681, 0.006181306671351194, -0.005457079038023949, -0.03782590851187706, 0.0003416440449655056, 0.016431204974651337, -0.013063776306807995, 0.02516806684434414, -0.025887681171298027, 0.030980341136455536, -0.00716847088187933, 0.006808663252741098, -0.009105894714593887, 0.030242273584008217, 0.05111110210418701, 0.06343681365251541, 0.011772160418331623, -0.008529280312359333, 0.03751222789287567, -0.0056831119582057, -0.016394302248954773, 0.033083830028772354, -0.014041714370250702, 0.0225294791162014, -0.027179298922419548, 0.00346429948695004, 0.008460086770355701, 0.037973519414663315, -0.08642758429050446, 0.002284546382725239, -0.02051824890077114, 0.010074607096612453, -0.01913437433540821, 0.04247572645545006, 0.02337825484573841, 0.043398309499025345, -0.000014676639693789184, 0.029264336451888084, 0.015213395468890667, -0.031699955463409424, -0.06066906452178955, -0.00999157503247261, 0.021164055913686752, -0.004995787516236305, -0.06399036198854446, 0.02134857326745987, -0.010268350131809711, 0.028231043368577957, -0.05517046898603439, -0.02455916255712509, -0.04446850344538689, -0.026699554175138474, 0.020149214193224907, 0.021293217316269875, 0.014991975389420986, -0.0033512830268591642, 0.02358122356235981, 0.03151543810963631, -0.001687173848040402, -0.025979939848184586, -0.02186521887779236, 0.00709005119279027, -0.015444041229784489, -0.014576813206076622, 0.04380424693226814, -0.0011947450693696737, 0.026072198525071144, -0.015065781772136688, 0.05915602669119835, -0.0032797828316688538, 0.01658804342150688, 0.01561010628938675, 0.022880060598254204, -0.017077013850212097, -0.020555151626467705, -0.0747661367058754, -0.05350982025265694, -0.02061050571501255, 0.02007540874183178, 0.014844361692667007, -0.05070516839623451, 0.015176491811871529, 0.03684796765446663, 0.06959966570138931, 0.009096669033169746, -0.043509017676115036, -0.0032013633754104376, -0.002567087532952428, -0.06550340354442596, 0.02784355729818344, 0.03952345997095108, 0.056240666657686234, -0.008040311746299267, -0.03208744153380394, -0.01635739766061306, -0.0004958884092047811, -0.024042515084147453, -0.05365743115544319, -0.06306777894496918, 0.06709024310112, -0.017584433779120445, -0.030648211017251015, -0.03474447876214981, 0.026718007400631905, -0.04125791788101196, -0.062440425157547, 0.00546630471944809, -0.014004811644554138, 0.007620536256581545, -0.02083192579448223, -0.03345286473631859, -0.05269794538617134, -0.024466903880238533, 0.01573004201054573, -0.040003202855587006, 0.004559867084026337, 0.0031321696005761623, 0.03644203394651413, -0.003895607078447938, 0.020370634272694588, -0.003637283807620406, -0.015314879827201366, -0.03789971396327019, -0.0716293528676033, 0.022160446271300316, -0.011790611781179905, -0.019946247339248657, 0.0037087840028107166, 0.008247893303632736, -0.05576092377305031, -0.0431399866938591, -0.05812273547053337, -0.024725226685404778, -0.04694102704524994, 0.026385877281427383, 0.033212993294000626, -0.0166710764169693, -0.020352182909846306, -0.0012235757894814014, -0.040519848465919495, 0.016541915014386177, -0.004751302767544985, -0.0029960887040942907, 0.00015424436423927546, -0.007952665910124779, 0.0646546259522438, -0.047752901911735535, 0.014576813206076622, -0.01247332338243723, -0.06247732788324356, 0.06424868851900101, 0.08974888175725937, 0.0012454871321097016, 0.026312069967389107, -0.07384355366230011, 0.03433854132890701, 0.031404729932546616, -0.010157640092074871, -0.03027917817234993, 0.03496589884161949, 0.05129561945796013, -0.04066746309399605, 0.004539108835160732, 0.04140552878379822, -0.09188927710056305, 0.09772000461816788, -0.03708783909678459, -0.0743601992726326, 0.002174989553168416, 0.03524267300963402, 0.02793581597507, 0.033951058983802795, -0.039892494678497314, 0.0028530883137136698, -0.07757078856229782, -0.05871318653225899, 0.05823344364762306, 0.010877254419028759, -0.00690553430467844, -0.04502205550670624, -0.01647733338177204, -0.049671873450279236, -0.023710384964942932, -0.013275970704853535, 0.03262253850698471, 0.03684796765446663, 0.026072198525071144, 0.007274567615240812, -0.040224622935056686, -0.01380184292793274, -0.00007906825339887291, 0.009862413629889488, -0.018036499619483948, -0.0755780041217804, 0.05077897384762764, 0.0025094260927289724, -0.019521858543157578, -0.022123543545603752, -0.05343601480126381, 0.02752988040447235, 0.014392295852303505, -0.0143461674451828, 0.03304692730307579, -0.012999195605516434, -0.06181306764483452, 0.04291856661438942, -0.01775972545146942, -0.010019252076745033, -0.0597095787525177, -0.00687785679474473, 0.023452062159776688, -0.0014530683401972055, 0.01546249259263277, 0.04867548495531082, 0.004008623771369457, 0.0004382269689813256, -0.07543039321899414, 0.011190933175384998, 0.0027008620090782642, -0.02125631459057331, 0.02985478937625885, -0.012814679183065891, 0.08613235503435135, -0.04332450404763222, 0.017473723739385605, 0.024817485362291336, -0.018211789429187775, -0.0033466701861470938, -0.015001201070845127, 0.0077773756347596645, -0.010000800713896751, -0.04620296135544777, 0.04963497072458267, 0.019577212631702423, 0.027972718700766563, 0.0027908137999475002, -0.04483753815293312, -0.002120787976309657, 0.006250500679016113, 0.054875243455171585, 0.022068187594413757, -0.015361008234322071, 0.03428318724036217, -0.04601844400167465, -0.012565582059323788, 0.03391415625810623, -0.01870998553931713, -0.023636579513549805, 0.017584433779120445, -0.020850377157330513, 0.027050135657191277, 0.013552745804190636, 0.03467067331075668, -0.044985152781009674, -0.04195908084511757, 0.005927596241235733, -0.041700754314661026, -0.07624226808547974, 0.013718810863792896, 0.027253104373812675, -0.010157640092074871, -0.02081347443163395, 0.018626952543854713, 0.0023894901387393475, -0.005530885886400938, -0.00010133998875971884, 0.021164055913686752, 0.030426790937781334, -0.034781381487846375, 0.020241472870111465, -0.010720415972173214, -0.03675571084022522, -0.015803849324584007, 0.0377890020608902, 0.06487604230642319, -0.043914955109357834, 0.02729000709950924, -0.07483994215726852, -0.004686722066253424, -0.03389570116996765, -0.0333421528339386, -0.01860850118100643, 0.04952425882220268, -0.019355792552232742, 0.0813349261879921, 0.013275970704853535, 0.03332370147109032, 0.012251903302967548, -0.04897071048617363, 0.005747692659497261, 0.016302043572068214, -0.008801442570984364, -0.0794159546494484, 0.029245885089039803, -0.010342156514525414, -0.01592378504574299, -0.030223822221159935, -0.018986759707331657, 0.004363818094134331, -0.037346165627241135, -0.02603529579937458, 0.019835537299513817, -0.01721540093421936, 0.02186521887779236, 0.042549531906843185, -0.033840347081422806, -0.035943835973739624, 0.032677892595529556, 0.035316482186317444, -0.023452062159776688, 0.014087843708693981, -0.006744082551449537, -0.05225510522723198, -0.00544324005022645, 0.030777372419834137, -0.05096349120140076, -0.060410741716623306, 0.0302607249468565, -0.05723705515265465, 0.037659842520952225, 0.08022782951593399, -0.04535418376326561, 0.036275967955589294, 0.06384275108575821, -0.010545125231146812, -0.0059921774081885815, 0.019374245777726173, -0.02880304493010044, -0.009078217670321465, 0.07277335226535797, 0.038084231317043304, -0.029780982062220573, 0.04568631574511528, 0.019521858543157578, -0.09218450635671616, -0.010748093016445637, 0.03874849155545235, 0.023728838190436363, -0.013257519342005253, 0.013728036545217037, -0.039043717086315155, 0.050299230962991714, 0.02891375496983528, -0.03937584534287453, -0.035002801567316055, 0.029670272022485733, 0.012298032641410828, -0.02559245564043522, -0.013488165102899075, -0.00881989486515522, 0.01774127222597599, 0.02878459170460701, -0.08022782951593399, -0.037456873804330826, -0.015591653995215893, 0.044357795268297195, -0.00017269601812586188, -0.00424849521368742, 0.04694102704524994, 0.0329362154006958, 0.027917364612221718, -0.047974321991205215, 0.038416359573602676, 0.050742071121931076, -0.01721540093421936, 0.028507817536592484, 0.0050788200460374355, 0.029928594827651978, 0.02166225202381611, -0.07742317020893097, -0.11262894421815872, 0.048490967601537704, -0.014576813206076622, -0.06609385460615158, -0.019521858543157578, -0.013654230162501335, 0.020555151626467705, -0.018110306933522224, 0.005475530866533518, 0.06609385460615158, -0.011956676840782166, -0.017372239381074905, 0.029559561982750893, 0.054137177765369415, 0.03260408714413643, 0.030223822221159935, -0.011061771772801876, 0.026496587321162224, -0.0007046228274703026, 0.014097069390118122, 0.023655030876398087, 0.05812273547053337, -0.004647512454539537, 0.07210909575223923, 0.05350982025265694, -0.005291013978421688, -0.02847091481089592, -0.09521057456731796, 0.05531808361411095, -0.04782670736312866, -0.0012431807117536664, -0.03494744747877121, -0.01710469089448452, 0.0023941032122820616, 0.044357795268297195, 0.021754508838057518, -0.003533493261784315, -0.019706374034285545, 0.02559245564043522, 0.048601675778627396, -0.010176091454923153, 0.045317281037569046, -0.053177688270807266, -0.05026232823729515, 0.0013919472694396973, -0.0393020398914814, -0.03675571084022522, 0.022603286430239677, 0.0025509423576295376, 0.09196308255195618, 0.013349777087569237, 0.003955575171858072, -0.0477898046374321, -0.0026016843039542437, 0.03354512155056, -0.014484554529190063, 0.04815883934497833, -0.01412474736571312, -0.0036465097218751907, 0.0743601992726326, -0.015665460377931595, 0.04295546934008598, 0.03389570116996765, 0.018562372773885727, 0.017925789579749107, -0.05576092377305031, -0.01031447947025299, 0.01407861802726984, 0.02186521887779236, 0.037327710539102554, 0.007380664814263582, -0.052218202501535416, 0.01902366429567337, 0.003911752253770828, -0.013792617246508598, -0.01264861412346363, 0.00422081770375371, -0.002514038933441043, 0.03216124698519707, 0.032973118126392365, -0.05214439705014229, 0.00546630471944809, -0.018986759707331657, -0.07196148484945297, 0.0002580349682830274, -0.0646546259522438, 0.028600076213479042, 0.007260729093104601, -0.00544324005022645, -0.017399916425347328, -0.026902522891759872, 0.028600076213479042, 0.052845560014247894, -0.05129561945796013, 0.0108864801004529, 0.08465622365474701, 0.019281987100839615, -0.05845486372709274, 0.020573602989315987, -0.001003309153020382, -0.04550179839134216, 0.08635377883911133, -0.018460888415575027, -0.005590853746980429, -0.030961887910962105, -0.017888886854052544, 0.003517348086461425, 0.018304048106074333, 0.07247813045978546, 0.00866766832768917, 0.01858082413673401, 0.0794159546494484, 0.016634173691272736, 0.0081833116710186, -0.029375046491622925, 0.01860850118100643, -0.07712794840335846, -0.003648816142231226, 0.13536138832569122, 0.05594543740153313, 0.04140552878379822, 0.00004623726999852806, 0.0048112706281244755, -0.03911752253770828, -0.00690553430467844, 0.025850778445601463, 0.0005443240515887737, -0.00013204470451455563, -0.05085277929902077, 0.09225831180810928, -0.008109505288302898, -0.01902366429567337, 0.04240192100405693, 0.06653669476509094, -0.004393802024424076, -0.019152825698256493, 0.03441235050559044, -0.035205770283937454, 0.023415159434080124, 0.021809864789247513, 0.016957078129053116, -0.022141994908452034, -0.025629358366131783, -0.0012985357316210866, 0.03642357885837555, -0.035648610442876816, 0.056572794914245605, -0.055391889065504074, -0.018119532614946365, 0.037659842520952225, -0.032788604497909546, 0.006056758109480143, -0.015231846831738949, 0.05568711459636688, -0.011947451159358025, 0.013525067828595638, 0.0015049637295305729, 0.02878459170460701, -0.009493379853665829, 0.05565021187067032, 0.07210909575223923, -0.024079419672489166, -0.002334135351702571, -0.009788606315851212, 0.019632568582892418, 0.01524107251316309, 0.006328919902443886, 0.054026465862989426, 0.005101884715259075, 0.01285158284008503, 0.021108701825141907, 0.00573385413736105, -0.0724412277340889, -0.034578412771224976, 0.024909744039177895, -0.0539526604115963, 0.01731688529253006, 0.057532280683517456, 0.0008176392875611782, 0.01869153417646885, 0.00881989486515522, 0.028304848819971085, -0.0202045701444149, 0.005812273360788822, 0.003819494042545557, -0.051369428634643555, -0.07262574136257172, 0.023821095004677773, -0.07103890180587769, 0.004778980277478695, -0.08406577259302139, -0.016532689332962036, -0.0030283790547400713, -0.02922743186354637, 0.02697633020579815, 0.038822297006845474, 0.009530283510684967, -0.0070162443444132805, 0.08288486301898956, 0.007209986913949251, -0.0062458873726427555, 0.010572802275419235, 0.03206899017095566, -0.025979939848184586, -0.016698753461241722, 0.08347532153129578, -0.10687202960252762, -0.03590693324804306, -0.0217729602009058, 0.025537099689245224, 0.05044684559106827, -0.04114720597863197, -0.0030791210010647774, -0.028507817536592484, -0.00850160326808691, 0.024245483800768852, 0.017353788018226624, 0.0008891394827514887, -0.0371800996363163, 0.03188447281718254, 0.022990770637989044, -0.04760528728365898, 0.0016387382056564093, 0.012344161979854107, -0.006527275312691927, 0.04376734048128128, -0.010960287414491177, -0.03225350379943848, -0.018239468336105347, 0.019890891388058662, 0.013386680744588375, 0.009271959774196148, -0.026644200086593628, 0.0061628553085029125, -0.01913437433540821, 0.04398876056075096, -0.004456076305359602, -0.022713996469974518, 0.010508221574127674, -0.053583625704050064, -0.021699154749512672, -0.017787402495741844, 0.08539429306983948, -0.02367348223924637, -0.04649818688631058, 0.021274765953421593, 0.005720015149563551, 0.008833733387291431, -0.06066906452178955, 0.01242719404399395, 0.01105254516005516, 0.0028577011544257402, 0.04365663230419159, 0.007523665204644203, -0.015803849324584007, -0.05513356626033783, -0.005023465026170015, 0.04428398981690407, 0.05037303641438484, 0.07631607353687286, -0.020259924232959747, 0.010065381415188313, 0.04336140677332878, -0.048712387681007385, 0.019909342750906944 ]
20,553
pyratings.consolidate
get_second_best_scores
Compute the second-best scores on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Second-best scores on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_second_best_scores( ... ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"] ... ) 0 2.0 1 4.0 2 3.0 3 13.0 4 21.0 Name: second_best_scores, dtype: float64
def get_second_best_scores( ratings: pd.DataFrame, rating_provider_input: list[str] = None, tenor: Literal["long-term", "short-term"] = "long-term", ) -> pd.Series: """Compute the second-best scores on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_input` will be inferred from the dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Second-best scores on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_second_best_scores( ... ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"] ... ) 0 2.0 1 4.0 2 3.0 3 13.0 4 21.0 Name: second_best_scores, dtype: float64 """ rating_scores_df = get_scores_from_ratings( ratings=ratings, rating_provider=rating_provider_input, tenor=tenor ) # rank scores per security (axis=1) scores_ranked_df = rating_scores_df.rank(axis=1, method="first", numeric_only=False) # get column with rank of 2, if available, otherwise get column with rank 1 rating_scores_ranked_series = rating_scores_df[scores_ranked_df <= 2].max(axis=1) rating_scores_ranked_series.name = "second_best_scores" return rating_scores_ranked_series
(ratings: pandas.core.frame.DataFrame, rating_provider_input: Optional[list[str]] = None, tenor: Literal['long-term', 'short-term'] = 'long-term') -> pandas.core.series.Series
[ 0.015109510160982609, 0.00265789614059031, -0.004126488231122494, 0.013191728852689266, 0.03913763538002968, -0.04047822207212448, -0.002205215860158205, 0.021598314866423607, 0.05574599280953407, 0.005427507683634758, -0.00412416085600853, 0.06148071959614754, -0.03126169741153717, 0.003274658229202032, 0.030498309060931206, 0.03733156993985176, 0.014020285569131374, -0.011236709542572498, 0.01559361070394516, 0.03455730155110359, -0.047516293823719025, -0.018535450100898743, 0.012391101568937302, -0.023944338783621788, -0.011823215521872044, 0.07354598492383957, -0.001964329509064555, 0.01110637467354536, -0.07030623406171799, 0.014839531853795052, 0.05574599280953407, -0.05038365349173546, -0.07738155126571655, 0.03491107001900673, 0.00007898628973634914, -0.01321965828537941, -0.008639325387775898, 0.04494683817028999, 0.022957518696784973, -0.01033367682248354, -0.041595373302698135, -0.029902493581175804, 0.012940369546413422, -0.04826106131076813, -0.05894850194454193, 0.05541084706783295, 0.009384095668792725, -0.027668185532093048, 0.028878435492515564, -0.04565436765551567, 0.016478024423122406, -0.022622372955083847, -0.025806261226534843, -0.006884462665766478, 0.005190112162381411, 0.021281788125634193, 0.0026160026900470257, 0.046138469129800797, 0.0194384828209877, -0.063789501786232, 0.06144348159432411, -0.02913910523056984, -0.01833994872868061, 0.07287569344043732, -0.02111421525478363, 0.000939107732847333, 0.030144544318318367, -0.01456955261528492, -0.03448282554745674, 0.005986084695905447, 0.0012381792766973376, 0.009765789844095707, -0.045840561389923096, -0.019680533558130264, -0.05142633244395256, 0.030070066452026367, 0.03405458480119705, -0.03288157284259796, -0.015174677595496178, 0.013824783265590668, 0.05775687098503113, -0.01602185331285, 0.036475084722042084, -0.05619285628199577, 0.008341417647898197, -0.02738889679312706, 0.04040374234318733, 0.0028091773856431246, -0.023255426436662674, 0.020909402519464493, -0.06621000915765762, -0.01255867537111044, 0.03548826649785042, -0.04081336781382561, -0.02498701587319374, 0.018284089863300323, -0.02096526138484478, -0.03206232562661171, 0.006996178068220615, -0.03016316331923008, 0.019978441298007965, 0.05142633244395256, 0.0003700573288369924, 0.04230290651321411, 0.034147679805755615, 0.03317948058247566, -0.016384927555918694, 0.04669704660773277, -0.049117546528577805, 0.0008716130396351218, -0.01584497094154358, -0.033347051590681076, -0.005804547108709812, -0.012446959502995014, -0.05310206487774849, -0.0028696898370981216, -0.004957371857017279, 0.04997403174638748, 0.03161546215415001, 0.024596011266112328, -0.003628423670306802, 0.031224459409713745, -0.015221226029098034, 0.0059302267618477345, -0.060363564640283585, -0.02146797999739647, 0.009560978040099144, -0.013657210394740105, -0.03910039737820625, 0.05920917168259621, 0.01739036664366722, -0.021505217999219894, -0.012102504260838032, 0.07458866387605667, 0.03193199262022972, -0.011925620958209038, -0.010976039804518223, 0.009491155855357647, 0.012186290696263313, -0.0333842895925045, 0.03303052484989166, -0.010389533825218678, -0.0015837987884879112, -0.03198784962296486, -0.008653290569782257, -0.014578862115740776, 0.017576558515429497, 0.0578685887157917, 0.060512520372867584, 0.004989955574274063, -0.01460679154843092, 0.03074035979807377, 0.0093096187338233, -0.008322798646986485, 0.04114851355552673, -0.02213827334344387, 0.043494537472724915, -0.0577196329832077, 0.025303542613983154, 0.01559361070394516, 0.03386839106678963, -0.07362046092748642, -0.0013568769209086895, -0.05310206487774849, 0.004110196605324745, -0.01928952895104885, 0.014830222353339195, 0.020257730036973953, 0.019177813082933426, 0.0025461805053055286, 0.024931157007813454, 0.01847028359770775, -0.027109608054161072, -0.054517123848199844, -0.019755009561777115, -0.007191680371761322, -0.009435297921299934, -0.0473301000893116, 0.016431476920843124, -0.015751874074339867, 0.031149983406066895, -0.06401293724775314, -0.021225929260253906, -0.05254348739981651, -0.020574256777763367, 0.03980792686343193, 0.018749570474028587, 0.007522171828895807, -0.022883042693138123, 0.025694547221064568, 0.027351658791303635, -0.012446959502995014, -0.0281150471419096, -0.018172375857830048, 0.010324366390705109, -0.0075966487638652325, -0.006600519176572561, 0.04073888808488846, -0.01927090995013714, 0.018498212099075317, 0.0031373414676636457, 0.0777539312839508, -0.0017280979081988335, 0.019587436690926552, 0.009128080680966377, 0.0388769656419754, -0.027202704921364784, -0.011162232607603073, -0.0687049850821495, -0.050942230969667435, -0.03228575736284256, 0.011162232607603073, 0.013080013915896416, -0.04543093591928482, 0.019699152559041977, 0.04025479033589363, 0.05265520140528679, -0.006526042241603136, -0.00792248547077179, -0.009682003408670425, 0.02723994292318821, -0.067066490650177, 0.01281934417784214, 0.025955215096473694, 0.061890341341495514, -0.007429075427353382, -0.024298103526234627, -0.018135135993361473, 0.003270003478974104, -0.008960507810115814, -0.047888677567243576, -0.07101377099752426, 0.04092508181929588, -0.02723994292318821, -0.028301239013671875, -0.02424224652349949, 0.029548728838562965, -0.02483806200325489, -0.06397569924592972, 0.004352246411144733, -0.011087755672633648, 0.020574256777763367, -0.013154490850865841, -0.021952079609036446, -0.06397569924592972, -0.03401734679937363, 0.012530745938420296, -0.04118575155735016, -0.004282424226403236, -0.005232005380094051, 0.03790876641869545, -0.011879073455929756, 0.032844334840774536, 0.0029302022885531187, -0.006162967532873154, -0.03980792686343193, -0.0749238058924675, 0.028375716879963875, -0.002816159510985017, -0.025322161614894867, -0.02031358703970909, 0.006786711979657412, -0.05209662392735481, -0.05217109993100166, -0.04535645991563797, -0.015938065946102142, -0.05317654088139534, 0.023683669045567513, 0.05191043019294739, -0.015649467706680298, -0.013871331699192524, -0.004045029170811176, -0.03178303688764572, 0.01848890259861946, 0.008578813634812832, -0.019699152559041977, -0.010473320260643959, 0.0011264638742431998, 0.0655769482254982, -0.017660345882177353, 0.006149002816528082, -0.012372482568025589, -0.06937527656555176, 0.05388407036662102, 0.09250036627054214, 0.0233671423047781, 0.026178646832704544, -0.08050958067178726, 0.04222843050956726, 0.02776128239929676, -0.009644764475524426, -0.009151354432106018, 0.029027389362454414, 0.04461169242858887, -0.03578617423772812, 0.0027835757937282324, 0.027333039790391922, -0.06911460310220718, 0.09853299707174301, -0.01964329555630684, -0.057086579501628876, -0.005730070173740387, 0.02973492071032524, 0.025173207744956017, 0.026551032438874245, -0.02381400391459465, 0.0034399039577692747, -0.05228281766176224, -0.0476280078291893, 0.05645352602005005, 0.03051692806184292, 0.0043731932528316975, -0.041371945291757584, -0.01764172688126564, -0.056937627494335175, -0.018004801124334335, -0.02146797999739647, -0.0014627737691625953, 0.014010976068675518, 0.025526974350214005, 0.011907001957297325, -0.03623303398489952, -0.003391028381884098, -0.012270077131688595, 0.02526630461215973, -0.017073839902877808, -0.08788279443979263, 0.03386839106678963, 0.0039123669266700745, -0.0033072419464588165, -0.008718458004295826, -0.053064823150634766, 0.039174873381853104, 0.004463961813598871, 0.008927923627197742, 0.04222843050956726, -0.012977607548236847, -0.016198735684156418, 0.03321671858429909, -0.01095742080360651, -0.02731442078948021, -0.08929786086082458, 0.0026951346080750227, 0.022603753954172134, -0.010491940192878246, 0.0074104564264416695, 0.05232005566358566, 0.00813195202499628, 0.005311137065291405, -0.08393552154302597, -0.0055811163038015366, -0.0021039736457169056, -0.023106472566723824, 0.03498554602265358, -0.023460237309336662, 0.08758489042520523, -0.026867559179663658, 0.005576461553573608, 0.031131364405155182, -0.029846636578440666, -0.00842054933309555, -0.00839727558195591, 0.01158116478472948, -0.010715370997786522, -0.04639913886785507, 0.06017737463116646, 0.016310451552271843, 0.010538487695157528, 0.007969032973051071, -0.03951001912355423, 0.004079940263181925, 0.001133445999585092, 0.05764515697956085, 0.043420061469078064, -0.019177813082933426, 0.03461316227912903, -0.048670683056116104, -0.024577392265200615, 0.039249349385499954, -0.037145376205444336, -0.011627713218331337, 0.018274780362844467, -0.009425988420844078, 0.01804204098880291, 0.012986917980015278, 0.04323386773467064, -0.07049243152141571, -0.0393238291144371, 0.0058836787939071655, -0.02995835244655609, -0.06084766611456871, 0.013014846481382847, 0.020425302907824516, -0.012102504260838032, -0.01026850938796997, 0.036847468465566635, -0.004040374420583248, 0.005841785576194525, 0.01749277301132679, 0.01617080718278885, 0.013247586786746979, -0.03221127763390541, 0.017986182123422623, -0.012279386632144451, -0.02219413034617901, -0.010240579955279827, 0.03910039737820625, 0.04978783801198006, -0.0464363768696785, 0.030572786927223206, -0.07347150892019272, -0.011162232607603073, -0.007927140220999718, -0.019624674692749977, -0.034147679805755615, 0.05325101688504219, 0.00038460359792225063, 0.08140330016613007, 0.01941986382007599, 0.015761183574795723, 0.011720809154212475, -0.06263510882854462, -0.023795384913682938, 0.02373952604830265, 0.005655593238770962, -0.06531628221273422, 0.016785241663455963, -0.02211965247988701, -0.013377921655774117, -0.038430105894804, -0.02716546691954136, -0.0031024303752928972, -0.02489391900599003, -0.02541525848209858, 0.01811651699244976, -0.019680533558130264, -0.015658777207136154, 0.05872507393360138, -0.03481797128915787, -0.042042236775159836, 0.051538046449422836, 0.03165270388126373, -0.004971336107701063, 0.01804204098880291, -0.01454162411391735, -0.05164976418018341, 0.012065265327692032, 0.04572884365916252, -0.06267235428094864, -0.0750727653503418, -0.0013696776004508138, -0.07134891301393509, 0.0577196329832077, 0.10277818888425827, -0.03643784672021866, 0.04178156703710556, 0.02403743378818035, -0.015602920204401016, 0.0058836787939071655, 0.015332940965890884, -0.018200304359197617, -0.006823950447142124, 0.06334264576435089, 0.021225929260253906, -0.0468832366168499, 0.055485326796770096, 0.019997060298919678, -0.0945112481713295, -0.0006673832540400326, 0.025154588744044304, 0.03828115016222, -0.008080748841166496, 0.002816159510985017, -0.05209662392735481, 0.035748936235904694, 0.05205938592553139, -0.02156107686460018, -0.04040374234318733, 0.02608554996550083, 0.035246215760707855, -0.019382625818252563, -0.012996227480471134, -0.00505977775901556, 0.0018130481475964189, 0.03314224258065224, -0.07924347370862961, -0.06747611612081528, -0.0165431909263134, 0.037294331938028336, -0.0010002021444961429, 0.01062227413058281, 0.041222989559173584, 0.03673575446009636, 0.044797882437705994, -0.04725562408566475, 0.027779901400208473, 0.06997109204530716, 0.010985349304974079, 0.0041893282905220985, 0.013824783265590668, 0.028021952137351036, 0.02066735364496708, -0.08557400852441788, -0.08803175389766693, 0.05224557965993881, -0.02191484160721302, -0.05310206487774849, -0.001124136382713914, -0.011124993674457073, 0.014374050311744213, -0.009709931910037994, 0.013284825719892979, 0.062188249081373215, -0.010873634368181229, -0.01719486527144909, 0.031075505539774895, 0.04814934730529785, 0.030330736190080643, 0.0390259213745594, 0.01664559729397297, 0.03200646862387657, -0.012512126937508583, 0.027779901400208473, 0.028897054493427277, 0.06784849613904953, -0.005990739446133375, 0.04997403174638748, 0.04863344505429268, 0.01011024508625269, -0.011609094217419624, -0.07082757353782654, 0.038094956427812576, -0.043717969208955765, -0.01887059584259987, -0.02694203518331051, 0.010454701259732246, 0.016775932163000107, 0.02439120039343834, 0.037145376205444336, 0.004938752390444279, -0.017557939514517784, 0.02031358703970909, 0.04312215372920036, -0.00003451104566920549, 0.04770248383283615, -0.05254348739981651, -0.07082757353782654, -0.007587338797748089, -0.035153117030858994, -0.033775296062231064, 0.047665245831012726, 0.01354549452662468, 0.10620412975549698, 0.006549316458404064, -0.01496986672282219, -0.0239629577845335, -0.023832622915506363, 0.02264099195599556, -0.0046082609333097935, 0.033849772065877914, 0.0009850739734247327, -0.01682247966527939, 0.07969032973051071, 0.0034329218324273825, 0.022045176476240158, 0.023069234564900398, 0.013387231156229973, 0.0005600317381322384, -0.053735118359327316, -0.013238277286291122, 0.006270028185099363, 0.021672790870070457, 0.03913763538002968, 0.008229702711105347, -0.02943701297044754, 0.013433779589831829, 0.009067567996680737, -0.03051692806184292, -0.025322161614894867, 0.004496545530855656, 0.005478710401803255, 0.025005634874105453, 0.03154098615050316, -0.0581664964556694, -0.02526630461215973, -0.004147435072809458, -0.08907442539930344, -0.0061862412840127945, -0.06155519559979439, 0.025545593351125717, 0.009905434213578701, -0.007908521220088005, -0.026830319315195084, -0.030293498188257217, 0.030852075666189194, 0.04498407617211342, -0.06851878762245178, 0.007387182209640741, 0.08140330016613007, 0.041744329035282135, -0.07849869877099991, 0.006358469370752573, -0.013163800351321697, -0.059581559151411057, 0.07663677632808685, -0.03965897485613823, 0.005664902739226818, -0.005958155728876591, -0.012633152306079865, 0.004887549672275782, 0.015928756445646286, 0.05194767192006111, 0.005846440326422453, 0.024744965136051178, 0.09123425930738449, 0.02264099195599556, 0.013228967785835266, -0.01804204098880291, 0.03200646862387657, -0.06445980072021484, -0.007964378222823143, 0.12199323624372482, 0.06769954413175583, 0.029604585841298103, -0.0035446372348815203, 0.0017734823049977422, -0.006637758109718561, -0.018284089863300323, 0.023683669045567513, -0.015211916528642178, 0.004072958137840033, -0.036046843975782394, 0.10478906333446503, -0.02943701297044754, -0.03271399810910225, 0.02316232956945896, 0.08117987215518951, -0.014308883808553219, -0.018433043733239174, 0.025024253875017166, -0.03762947767972946, 0.019177813082933426, 0.02126316912472248, 0.013508256524801254, -0.009523739106953144, -0.030852075666189194, -0.003709882963448763, 0.04427654668688774, -0.005650938488543034, 0.06237444281578064, -0.051016706973314285, -0.027500612661242485, 0.01964329555630684, -0.026755843311548233, 0.0011055171489715576, -0.02534078061580658, 0.05220833793282509, -0.007401146460324526, 0.010073007084429264, 0.003283967962488532, 0.03321671858429909, -0.019810868427157402, 0.06270959228277206, 0.06896565109491348, -0.029120486229658127, -0.0006737836520187557, -0.016198735684156418, 0.02534078061580658, 0.013312754221260548, 0.01281934417784214, 0.07268950343132019, 0.010724680498242378, 0.008392620831727982, 0.018107207491993904, 0.012716938741505146, -0.04170709103345871, -0.04047822207212448, 0.012791415676474571, -0.06650791317224503, 0.00044831630657427013, 0.039621736854314804, 0.018321329727768898, 0.014476456679403782, -0.006870498415082693, 0.028506051748991013, -0.026755843311548233, 0.01475574541836977, 0.018321329727768898, -0.0387280136346817, -0.07633887231349945, 0.011897692456841469, -0.07187025249004364, 0.00882086344063282, -0.0752217173576355, -0.04140918329358101, -0.0118325250223279, -0.04047822207212448, 0.03876525163650513, 0.04312215372920036, 0.01686902903020382, -0.022585134953260422, 0.08512715250253677, 0.014811602421104908, 0.013806164264678955, 0.00743373017758131, 0.037499140948057175, -0.018703022971749306, -0.010464010760188103, 0.08542505651712418, -0.1114175096154213, -0.05016022548079491, -0.03571169450879097, 0.022920280694961548, 0.047665245831012726, -0.05559704080224037, 0.02738889679312706, -0.017837228253483772, 0.009267725050449371, 0.018135135993361473, 0.01753932051360607, 0.016124259680509567, -0.027630947530269623, 0.04360625147819519, 0.024205008521676064, -0.02804057113826275, -0.012372482568025589, 0.02219413034617901, -0.006963594350963831, 0.043643489480018616, -0.020499778911471367, -0.03310500457882881, -0.03131755441427231, 0.008415894582867622, -0.019885344430804253, -0.013657210394740105, -0.006512077990919352, 0.018572688102722168, -0.034873832017183304, 0.051091186702251434, 0.007061345502734184, -0.013638590462505817, 0.011190161108970642, -0.049117546528577805, -0.035246215760707855, -0.01200940739363432, 0.07916899770498276, -0.038467343896627426, -0.05887402594089508, 0.02694203518331051, 0.015398108400404453, 0.02007153630256653, -0.0685560330748558, 0.03435249254107475, 0.007880591787397861, -0.03623303398489952, 0.037573620676994324, 0.015574991703033447, -0.035153117030858994, -0.05704934149980545, -0.0036633347626775503, 0.05529913306236267, 0.023199569433927536, 0.05258072540163994, -0.03074035979807377, 0.005390269216150045, 0.02416776865720749, -0.045095790177583694, -0.003630751045420766 ]
20,555
pyratings.warf
get_warf_buffer
Compute WARF buffer. The WARF buffer is the distance from current WARF to the next maxWARF level. It determines the room until a further rating downgrade. Parameters ---------- warf Numerical WARF. Returns ------- Union[float, int] WARF buffer. Examples -------- >>> get_warf_buffer(warf=480) 5.0 >>> get_warf_buffer(warf=54) 1.0
def get_warf_buffer(warf: float | int) -> float | int: """Compute WARF buffer. The WARF buffer is the distance from current WARF to the next maxWARF level. It determines the room until a further rating downgrade. Parameters ---------- warf Numerical WARF. Returns ------- Union[float, int] WARF buffer. Examples -------- >>> get_warf_buffer(warf=480) 5.0 >>> get_warf_buffer(warf=54) 1.0 """ # connect to database connection = sqlite3.connect(RATINGS_DB) cursor = connection.cursor() # create SQL query sql_query = "SELECT MaxWARF FROM WARFs WHERE ? >= MinWARF and ? < MaxWARF" # execute SQL query cursor.execute(sql_query, (warf, warf)) max_warf = cursor.fetchall() # close database connection connection.close() return max_warf[0][0] - warf
(warf: float | int) -> float | int
[ 0.06974739581346512, -0.005824416875839233, -0.09646690636873245, 0.03205249458551407, 0.008490907959640026, -0.021495738998055458, -0.018729140982031822, 0.016708796843886375, -0.10884379595518112, -0.029358701780438423, -0.033290185034275055, -0.007426131516695023, -0.046231310814619064, 0.021532142534852028, 0.01993042603135109, 0.054895129054784775, -0.05707928538322449, -0.019420789554715157, 0.018619932234287262, 0.0243169404566288, 0.03807712718844414, 0.002195532200857997, -0.025518227368593216, 0.05201932415366173, -0.055113546550273895, -0.0070621054619550705, -0.012167571112513542, 0.05467671528458595, 0.0040543400682508945, 0.007116709370166063, 0.03456427529454231, -0.0797945111989975, 0.054785922169685364, -0.06625274568796158, -0.04415636137127876, 0.004750540014356375, 0.039242010563611984, 0.008245190605521202, -0.07957609742879868, -0.05944545567035675, -0.004818794783204794, -0.01925697922706604, 0.05285658314824104, 0.015216289088129997, 0.0016312918160110712, 0.002066985471174121, 0.0489979088306427, -0.07291442155838013, -0.014688451774418354, 0.05245615541934967, 0.029267694801092148, 0.003364966018125415, -0.016590487211942673, 0.01650858111679554, 0.03081480599939823, 0.05380305275321007, -0.03423665091395378, -0.023971116170287132, 0.016390273347496986, -0.07462534308433533, -0.028448637574911118, -0.01405140571296215, 0.026610305532813072, -0.02863064967095852, 0.032507527619600296, -0.0022467232774943113, -0.013823890127241611, -0.014697552658617496, -0.011503223329782486, 0.015507509931921959, 0.02691972814500332, 0.03319917619228363, 0.00008453652117168531, 0.01254979893565178, -0.04499362036585808, -0.015034276060760021, 0.04506642743945122, 0.0018781470134854317, 0.0007564916741102934, -0.004215877037495375, 0.0778287723660469, 0.020494667813181877, 0.04663173854351044, -0.024844778701663017, 0.015807831659913063, -0.009382771328091621, 0.000017125932572525926, 0.04055250436067581, -0.021532142534852028, -0.05416707694530487, -0.04149897024035454, 0.022915441542863846, 0.012012859806418419, 0.014606545679271221, -0.015434704720973969, -0.029613520950078964, -0.025645636022090912, 0.040916528552770615, -0.013296051882207394, 0.037713099271059036, -0.019384387880563736, 0.0668351873755455, -0.025227006524801254, 0.026228077709674835, -0.016909010708332062, 0.036457210779190063, 0.022223791107535362, -0.029722727835178375, -0.008518209680914879, 0.006643475499004126, -0.004161273129284382, -0.007498936727643013, -0.010447547771036625, 0.013286950998008251, -0.062175650149583817, 0.08176025003194809, -0.05638763681054115, 0.04757820814847946, 0.08540051430463791, 0.018747342750430107, 0.0596274696290493, -0.019020361825823784, -0.0029759129974991083, -0.013059435412287712, 0.06421419978141785, 0.02884906530380249, 0.004115769639611244, -0.06974739581346512, -0.006629824638366699, 0.05758892372250557, 0.017063722014427185, 0.023989317938685417, -0.046304114162921906, 0.03449146822094917, -0.014597444795072079, 0.04932553321123123, 0.00866382010281086, 0.0008435166673734784, -0.02078588865697384, -0.020804088562726974, 0.0030259666964411736, 0.021495738998055458, 0.09399153292179108, 0.00811323057860136, -0.053475428372621536, 0.028011806309223175, -0.008754827082157135, 0.017837276682257652, 0.0052237738855183125, -0.02335227280855179, 0.0008423790568485856, -0.028648851439356804, 0.026337286457419395, 0.05238335207104683, 0.04699576646089554, 0.029194889590144157, -0.04492081701755524, 0.008427203632891178, -0.003264858853071928, -0.01014722604304552, 0.012950227595865726, 0.03176127374172211, -0.012613503262400627, -0.06319492310285568, -0.00015129832900129259, 0.022806232795119286, -0.04058890417218208, 0.0767366960644722, 0.014251620508730412, 0.038004320114851, 0.030396176502108574, 0.01978481560945511, -0.013669178821146488, -0.01947539485991001, -0.006798186805099249, 0.07098507881164551, -0.0524197518825531, -0.036384403705596924, 0.0592634417116642, 0.014269821345806122, 0.0000354960975528229, -0.04564886912703514, 0.04047969728708267, -0.026410091668367386, 0.050053585320711136, -0.006238496862351894, -0.008317995816469193, -0.01715472899377346, 0.044775206595659256, 0.03256213292479515, -0.010838876478374004, 0.0036334351170808077, -0.0067572337575256824, -0.04310068488121033, -0.03412744402885437, -0.01911136880517006, 0.03347219526767731, 0.010247333906590939, 0.011721638962626457, -0.024917583912611008, -0.037421878427267075, 0.009764999151229858, -0.024844778701663017, -0.010838876478374004, -0.0010534004541113973, 0.01647217944264412, 0.021277323365211487, -0.039205607026815414, -0.0537666492164135, 0.017200231552124023, -0.020494667813181877, 0.0303051695227623, -0.026519298553466797, -0.04685015603899956, 0.022096382454037666, -0.04015207290649414, -0.015735026448965073, 0.009528381749987602, 0.025936856865882874, 0.011594230309128761, -0.00003165676025673747, -0.021441135555505753, -0.05544117093086243, -0.008386250585317612, 0.01896575838327408, -0.016463078558444977, -0.015680423006415367, -0.00474143959581852, 0.027265552431344986, -0.01271361019462347, -0.014406331814825535, -0.025936856865882874, 0.02100430428981781, -0.04346471279859543, 0.009519281797111034, 0.0007280521094799042, -0.012932025827467442, 0.0017063721315935254, -0.03483729436993599, -0.07826559990644455, 0.026628507301211357, -0.0016517682233825326, -0.01903856359422207, 0.05442189797759056, -0.046522531658411026, -0.011512324213981628, -0.019803017377853394, -0.027392961084842682, -0.013114038854837418, 0.0198576208204031, -0.05045401304960251, -0.0026460145600140095, 0.02375270053744316, -0.01171253900974989, 0.004768741317093372, -0.02506319433450699, -0.05387585610151291, -0.009309966117143631, -0.010684165172278881, 0.013296051882207394, 0.014151513576507568, -0.032143499702215195, -0.023024648427963257, -0.029267694801092148, -0.030578188598155975, 0.029904741793870926, -0.043027881532907486, -0.03869596868753433, -0.03700324892997742, 0.006980199832469225, 0.015543912537395954, -0.029285896569490433, -0.008891336619853973, -0.049835167825222015, -0.05212853103876114, -0.04379233717918396, 0.10236413031816483, 0.06352254748344421, 0.022788031026721, -0.007494386751204729, -0.05995509400963783, -0.02342507801949978, -0.007021152880042791, 0.04204501211643219, -0.01821950450539589, 0.01718202978372574, -0.011612431146204472, 0.025663837790489197, 0.04000646248459816, -0.021386532112956047, 0.05551397427916527, 0.0033285634126514196, 0.026573901996016502, -0.031397249549627304, 0.11066392064094543, 0.004036138765513897, 0.027119942009449005, -0.042845867574214935, 0.041171345859766006, 0.0026027862913906574, 0.039424020797014236, -0.03643900901079178, 0.048269856721162796, 0.04761460795998573, -0.024025719612836838, 0.013714682310819626, -0.006088335998356342, -0.033818021416664124, -0.0016153656179085374, 0.03405463695526123, -0.021877966821193695, 0.008336196653544903, 0.04583088308572769, 0.018619932234287262, -0.00634770467877388, -0.04732338711619377, -0.015516610816121101, 0.04717777669429779, -0.03398183360695839, -0.0006620723870582879, 0.06323132663965225, 0.022551415488123894, 0.07717352360486984, 0.014333526603877544, 0.020385459065437317, 0.012395087629556656, -0.02539081871509552, 0.012950227595865726, 0.04495722055435181, -0.02428053878247738, -0.06443261355161667, -0.012677207589149475, -0.02917668968439102, 0.030195962637662888, 0.06905574351549149, 0.08554612845182419, 0.015844235196709633, 0.034109242260456085, -0.023916512727737427, -0.0592634417116642, 0.05635123327374458, 0.025372616946697235, 0.04131695628166199, 0.07717352360486984, 0.05045401304960251, -0.01089347992092371, 0.024043921381235123, -0.023443277925252914, 0.00044735390110872686, 0.022988246753811836, 0.0157623291015625, -0.053366221487522125, -0.06425060331821442, 0.0014902317197993398, 0.0014777183532714844, 0.037531085312366486, 0.0068482402712106705, -0.008195136673748493, -0.023807303979992867, 0.060391925275325775, -0.11881810426712036, 0.02167775295674801, -0.024917583912611008, 0.02204177901148796, -0.07826559990644455, 0.009592087008059025, -0.03450966998934746, -0.02550002560019493, -0.04200860857963562, 0.03176127374172211, -0.0075671919621527195, 0.037676695734262466, 0.03070559911429882, 0.00955568440258503, 0.0030123156029731035, 0.0489979088306427, 0.051436882466077805, 0.015334597788751125, -0.017427748069167137, -0.002507229568436742, -0.0020248950459063053, 0.005956376437097788, -0.02417133003473282, 0.024025719612836838, 0.04553966224193573, 0.01562581956386566, -0.11932774633169174, -0.1055675595998764, -0.05387585610151291, -0.0017496002838015556, -0.017837276682257652, -0.04404715448617935, 0.001762113650329411, 0.03814993053674698, -0.01736404374241829, 0.023661693558096886, 0.00850455928593874, 0.004154447466135025, 0.025645636022090912, 0.02509959787130356, 0.01947539485991001, -0.03716706112027168, -0.03891438618302345, -0.0018474322278052568, -0.017109224572777748, -0.022405805066227913, 0.037421878427267075, -0.016171857714653015, -0.03401823714375496, -0.01180354505777359, -0.02264242060482502, -0.021022506058216095, -0.014169714413583279, 0.022587817162275314, -0.0025732091162353754, -0.05409427359700203, -0.010165427811443806, 0.010693266056478024, -0.01278641540557146, 0.020239848643541336, -0.03855035826563835, -0.012112967669963837, 0.024917583912611008, 0.023625291883945465, -0.02218738943338394, -0.027902597561478615, 0.03341759368777275, 0.023024648427963257, -0.019548200070858, 0.054931532591581345, -0.028648851439356804, -0.021695952862501144, -0.006684428546577692, -0.046340517699718475, -0.00037909901584498584, -0.022551415488123894, 0.017309438437223434, 0.004823345225304365, -0.017773572355508804, -0.010957184247672558, 0.06741762906312943, 0.0011540764244273305, 0.0739336907863617, 0.06137479469180107, -0.056970078498125076, -0.08853113651275635, -0.0009737696964293718, 0.025736643001437187, 0.009437375701963902, 0.006711730733513832, 0.030432578176259995, -0.055222753435373306, -0.03811352699995041, 0.03789511322975159, 0.020476466044783592, -0.020057836547493935, -0.02806640975177288, -0.03547434136271477, -0.00796762015670538, -0.01853802800178528, -0.014706652611494064, 0.04047969728708267, 0.030396176502108574, -0.07702791690826416, -0.03170666843652725, 0.0003665856202133, 0.02420773357152939, -0.023916512727737427, -0.017764471471309662, 0.006866441573947668, 0.053402625024318695, -0.004864298272877932, -0.040880125015974045, -0.0643962100148201, 0.11037269979715347, -0.0066935294307768345, -0.0025163302198052406, 0.017955586314201355, 0.03594757243990898, -0.03865956887602806, -0.022951843217015266, -0.0023570687044411898, -0.03880517929792404, -0.011384915560483932, -0.012850119732320309, 0.004595829173922539, -0.05464031174778938, -0.04939833655953407, -0.025336213409900665, 0.010456648655235767, 0.010638661682605743, 0.06752683222293854, -0.023370472714304924, -0.01589883863925934, -0.03993365913629532, 0.058644600212574005, 0.08336196839809418, 0.024225935339927673, 0.007021152880042791, 0.007107608951628208, -0.005019009113311768, -0.018374215811491013, -0.07469815015792847, -0.058681000024080276, -0.05660605430603027, -0.056642454117536545, -0.00042488667531870306, -0.011439519003033638, 0.028084611520171165, 0.04925272613763809, 0.01611725427210331, 0.001565312035381794, 0.011120996437966824, 0.020585672929883003, -0.051618896424770355, 0.018092095851898193, 0.020986102521419525, -0.014242519624531269, 0.02007603645324707, 0.02721094898879528, -0.0009965213248506188, 0.04943474009633064, 0.053475428372621536, -0.04186299815773964, 0.010529453866183758, -0.06308571994304657, 0.03833194449543953, -0.01918417401611805, 0.029267694801092148, 0.018692737445235252, -0.02606426551938057, 0.0544947013258934, 0.018892953172326088, 0.0003873464884236455, 0.06257607787847519, -0.051291272044181824, 0.018519826233386993, -0.017236633226275444, -0.07069385796785355, -0.028266623616218567, -0.010929882526397705, -0.02866705320775509, 0.05784374102950096, -0.04208141192793846, -0.003706240328028798, -0.030650993809103966, -0.058681000024080276, 0.0011171050136908889, 0.03887798264622688, -0.022023577243089676, -0.015735026448965073, -0.017063722014427185, 0.03461887687444687, -0.03365420922636986, -0.05908143147826195, 0.010038018226623535, 0.01586243510246277, 0.010374742560088634, 0.01137581467628479, 0.012458791956305504, -0.0113030094653368, -0.03956963121891022, 0.04157177731394768, 0.0032830601558089256, -0.04211781546473503, -0.03986085206270218, 0.04168098419904709, 0.04393794760107994, -0.002400296740233898, 0.007216816768050194, -0.03281695023179054, 0.06315851956605911, 0.020239848643541336, -0.053147803992033005, 0.005560498218983412, -0.028612447902560234, -0.07378808408975601, -0.012222175486385822, 0.023443277925252914, -0.0383683480322361, 0.029158487915992737, 0.021386532112956047, -0.04011567309498787, -0.046340517699718475, 0.012950227595865726, 0.04732338711619377, -0.019985031336545944, 0.0027324706315994263, -0.009856005199253559, 0.020986102521419525, 0.06162961199879646, -0.012822818011045456, -0.008991443552076817, -0.012722711078822613, 0.028867267072200775, 0.058717403560876846, -0.07389728724956512, 0.04204501211643219, -0.014597444795072079, 0.016453977674245834, 0.0022751628421247005, -0.015644019469618797, -0.015389202162623405, -0.03210709989070892, 0.05249255895614624, 0.0032921608071774244, 0.028466837480664253, -0.03997006267309189, -0.024735571816563606, -0.05212853103876114, -0.0023798204492777586, 0.022915441542863846, -0.0503448061645031, 0.022314798086881638, -0.04404715448617935, 0.009510180912911892, -0.004502547439187765, -0.02624627947807312, -0.0032921608071774244, -0.009009645320475101, 0.03480089083313942, 0.015334597788751125, 0.018820147961378098, -0.03609318286180496, 0.08933199942111969, -0.017700767144560814, 0.06614353507757187, 0.022733427584171295, -0.001230863155797124, 0.05274737626314163, 0.032252710312604904, -0.01230408065021038, 0.04153537377715111, -0.06337694078683853, -0.058681000024080276, 0.024480752646923065, 0.006038282532244921, -0.018692737445235252, -0.01793738454580307, 0.015671322122216225, 0.029285896569490433, 0.09821423143148422, -0.000995383714325726, -0.020694881677627563, 0.027338357642292976, -0.056897275149822235, 0.005924524273723364, 0.025154201313853264, 0.0011529388139024377, -0.023097453638911247, -0.053402625024318695, -0.02349788323044777, -0.025026792660355568, -0.00502810999751091, 0.010584058240056038, 0.0014447284629568458, 0.015462007373571396, 0.01850162446498871, -0.01537100039422512, 0.0014197016134858131, 0.008627417497336864, -0.004122595302760601, 0.001246789237484336, -0.01446093525737524, -0.04022487998008728, -0.0002310712297912687, -0.0472869873046875, -0.001276366412639618, 0.06898293644189835, -0.011029989458620548, 0.0318886823952198, 0.009228060953319073, 0.013614574447274208, -0.006288550328463316, -0.05445829778909683, 0.024790175259113312, -0.04135335981845856, 0.07032983750104904, 0.031524658203125, -0.040807321667671204, 0.04328269883990288, 0.008672920987010002, -0.00012854670058004558, 0.004641332197934389, 0.060391925275325775, 0.014269821345806122, -0.04856107756495476, 0.04685015603899956, 0.02985013648867607, 0.034036435186862946, 0.00562420254573226, -0.04200860857963562, -0.006479663774371147, 0.053293414413928986, -0.013814789243042469, -0.03887798264622688, -0.0011262056650593877, 0.057006482034921646, 0.05234694853425026, 0.0037130657583475113, -0.01808299496769905, 0.04757820814847946, -0.0031465503852814436, 0.024553557857871056, -0.04506642743945122, -0.03159746155142784, 0.0033285634126514196, -0.020130641758441925, -0.0797945111989975, -0.051509689539670944, -0.020057836547493935, 0.061920832842588425, -0.025026792660355568, 0.04211781546473503, 0.000044187931052874774, 0.04532124474644661, -0.03283515200018883, 0.015361899510025978, -0.030960416421294212, 0.011293908581137657, -0.059991493821144104, 0.06581591069698334, 0.03538333252072334, 0.02100430428981781, 0.005619652569293976, 0.0009521556785330176, 0.015671322122216225, -0.001679070177488029, -0.04761460795998573, 0.009774100035429, 0.03469168394804001, -0.044520389288663864, 0.0065115164034068584, -0.024881182238459587, 0.08860394358634949, 0.03456427529454231, 0.005901772528886795, -0.03456427529454231, 0.03119703382253647, 0.023224862292408943, 0.007903915829956532, 0.03447326645255089, -0.06829129159450531, -0.006921045482158661, -0.04907071217894554, 0.0255364291369915, -0.0185744296759367, 0.02417133003473282, -0.03354500234127045, 0.010456648655235767, 0.030468981713056564, -0.023406876251101494, 0.07964890450239182, 0.021095311269164085, 0.021532142534852028, 0.04189940169453621, -0.01405140571296215, -0.016927212476730347, 0.01082067470997572, 0.008613767102360725, 0.0027597725857049227, 0.03625699505209923, -0.039460424333810806, 0.044447582215070724, -0.09027846157550812, 0.01080247387290001, -0.06701719760894775, 0.0234614796936512 ]
20,556
pyratings.get_warf
get_warf_from_ratings
Convert regular rating(s) to numerical WARF(s). Parameters ---------- ratings Regular rating(s) to be translated into WARF(s). rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider` will be inferred from the series name or dataframe column names. Returns ------- Union[int, pd.Series, pd.DataFrame] Numerical WARF. If returns a ``pd.Series``, the series name will be `warf` suffixed by `ratings.name`. If return a ``pd.DataFrame``, the column names will be `warf` suffixed by the respective `ratings.columns`. Examples -------- Converting a single rating: >>> get_warf_from_ratings(ratings="BB-", rating_provider="Fitch") 1766 Converting a ``pd.Series`` with ratings: >>> import numpy as np >>> import pandas as pd >>> ratings_series = pd.Series(data=["A1", "A3", "Aaa", np.nan, "D", pd.NA]) >>> get_warf_from_ratings( ... ratings=ratings_series, rating_provider="Moody's" ... ) 0 70.0 1 180.0 2 1.0 3 NaN 4 10000.0 5 NaN Name: warf, dtype: float64 Providing a ``pd.Series`` without specifying a `rating_provider`: >>> ratings_series = pd.Series( ... data=["A1", "A3", "Aaa", np.nan, "D", pd.NA], ... name="Moody's" ... ) >>> get_warf_from_ratings(ratings=ratings_series) 0 70.0 1 180.0 2 1.0 3 NaN 4 10000.0 5 NaN Name: warf_Moody's, dtype: float64 Converting a ``pd.DataFrame`` with ratings: >>> ratings_df = pd.DataFrame( ... data=[["BB+", "B-", "foo"], ["AA-", "AA+", "AAA"], ["D", "bar", "C"]], ... columns=["Fitch", "Bloomberg", "DBRS"], ... ) >>> get_warf_from_ratings( ... ratings= ratings_df, rating_provider=["Fitch", "Bloomberg", "DBRS"] ... ) warf_Fitch warf_Bloomberg warf_DBRS 0 940 3490.0 NaN 1 40 10.0 1.0 2 10000 NaN 9999.0 When providing a ``pd.DataFrame`` without explicitly providing the `rating_provider`, they will be inferred by the dataframe's columns. >>> ratings_df = pd.DataFrame( ... data={ ... "rtg_fitch": ["BB+", "AA-", "D"], ... "rtg_Bloomberg": ["B-", "AA+", "bar"], ... "DBRS Ratings": ["foo", "AAA", "C"] ... } ... ) >>> get_warf_from_ratings(ratings=ratings_df) warf_rtg_fitch warf_rtg_Bloomberg warf_DBRS Ratings 0 940 3490.0 NaN 1 40 10.0 1.0 2 10000 NaN 9999.0
def get_warf_from_ratings( ratings: str | pd.Series | pd.DataFrame, rating_provider: str | list[str] | None = None, ) -> int | pd.Series | pd.DataFrame: """Convert regular rating(s) to numerical WARF(s). Parameters ---------- ratings Regular rating(s) to be translated into WARF(s). rating_provider Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider` will be inferred from the series name or dataframe column names. Returns ------- Union[int, pd.Series, pd.DataFrame] Numerical WARF. If returns a ``pd.Series``, the series name will be `warf` suffixed by `ratings.name`. If return a ``pd.DataFrame``, the column names will be `warf` suffixed by the respective `ratings.columns`. Examples -------- Converting a single rating: >>> get_warf_from_ratings(ratings="BB-", rating_provider="Fitch") 1766 Converting a ``pd.Series`` with ratings: >>> import numpy as np >>> import pandas as pd >>> ratings_series = pd.Series(data=["A1", "A3", "Aaa", np.nan, "D", pd.NA]) >>> get_warf_from_ratings( ... ratings=ratings_series, rating_provider="Moody's" ... ) 0 70.0 1 180.0 2 1.0 3 NaN 4 10000.0 5 NaN Name: warf, dtype: float64 Providing a ``pd.Series`` without specifying a `rating_provider`: >>> ratings_series = pd.Series( ... data=["A1", "A3", "Aaa", np.nan, "D", pd.NA], ... name="Moody's" ... ) >>> get_warf_from_ratings(ratings=ratings_series) 0 70.0 1 180.0 2 1.0 3 NaN 4 10000.0 5 NaN Name: warf_Moody's, dtype: float64 Converting a ``pd.DataFrame`` with ratings: >>> ratings_df = pd.DataFrame( ... data=[["BB+", "B-", "foo"], ["AA-", "AA+", "AAA"], ["D", "bar", "C"]], ... columns=["Fitch", "Bloomberg", "DBRS"], ... ) >>> get_warf_from_ratings( ... ratings= ratings_df, rating_provider=["Fitch", "Bloomberg", "DBRS"] ... ) warf_Fitch warf_Bloomberg warf_DBRS 0 940 3490.0 NaN 1 40 10.0 1.0 2 10000 NaN 9999.0 When providing a ``pd.DataFrame`` without explicitly providing the `rating_provider`, they will be inferred by the dataframe's columns. >>> ratings_df = pd.DataFrame( ... data={ ... "rtg_fitch": ["BB+", "AA-", "D"], ... "rtg_Bloomberg": ["B-", "AA+", "bar"], ... "DBRS Ratings": ["foo", "AAA", "C"] ... } ... ) >>> get_warf_from_ratings(ratings=ratings_df) warf_rtg_fitch warf_rtg_Bloomberg warf_DBRS Ratings 0 940 3490.0 NaN 1 40 10.0 1.0 2 10000 NaN 9999.0 """ if rating_provider is not None: rating_provider = _extract_rating_provider( rating_provider=rating_provider, valid_rtg_provider=valid_rtg_agncy["long-term"], ) warf_dict = _get_translation_dict("scores_to_warf") if isinstance(ratings, str): rating_scores = get_scores_from_ratings( ratings=ratings, rating_provider=rating_provider, tenor="long-term" ) return warf_dict.get(rating_scores, np.nan) elif isinstance(ratings, (pd.Series, pd.DataFrame)): rating_scores = get_scores_from_ratings( ratings=ratings, rating_provider=rating_provider, tenor="long-term" ) if isinstance(ratings, pd.Series): rating_scores.name = ratings.name elif isinstance(ratings, pd.DataFrame): rating_scores.columns = ratings.columns return get_warf_from_scores(rating_scores=rating_scores)
(ratings: str | pandas.core.series.Series | pandas.core.frame.DataFrame, rating_provider: Union[str, list[str], NoneType] = None) -> int | pandas.core.series.Series | pandas.core.frame.DataFrame
[ 0.05743231996893883, 0.0006718157092109323, 0.019088832661509514, 0.00501850014552474, 0.02696041576564312, -0.06340184807777405, -0.031993549317121506, 0.02305876463651657, 0.015011606737971306, 0.061216920614242554, -0.027448123320937157, 0.07179039716720581, -0.003935791552066803, 0.05957822874188423, 0.03778750076889992, 0.012641352601349354, -0.047756221145391464, 0.09574654698371887, 0.03205207362771034, -0.0040918574668467045, -0.00014943632413633168, -0.029711080715060234, -0.01616259478032589, 0.022473515942692757, -0.03782651945948601, 0.007076621521264315, -0.011802497319877148, 0.023390404880046844, -0.06585989147424698, 0.028501568362116814, 0.09278129041194916, -0.06344086676836014, -0.026882383972406387, -0.03244223818182945, -0.03443207964301109, -0.04315227270126343, -0.0515018068253994, -0.008442199788987637, -0.017781779170036316, -0.007330229040235281, -0.02721402421593666, -0.011373315937817097, 0.03854832425713539, -0.05005819723010063, -0.05641788989305496, 0.06582087278366089, 0.0214200709015131, -0.0653136596083641, -0.01868891343474388, 0.01111970841884613, -0.0006742542609572411, 0.022883189842104912, 0.00841781497001648, 0.01518718060106039, 0.06277758628129959, 0.07104908674955368, -0.041474562138319016, 0.040616199374198914, 0.04506408050656319, -0.09855573624372482, 0.02284417301416397, 0.00565739581361413, -0.014006931334733963, 0.030452394858002663, 0.036890119314193726, 0.006062191911041737, 0.05087754502892494, -0.023858603090047836, -0.029086817055940628, 0.005437927786260843, 0.04319128766655922, -0.004228415433317423, -0.04947295039892197, -0.014855540357530117, -0.03507585451006889, 0.03991390019655228, 0.04752212390303612, -0.027194514870643616, 0.040694233030080795, -0.002100795740261674, 0.07038580626249313, 0.005169689189642668, -0.0037650943268090487, -0.02042514830827713, 0.020366623997688293, 0.011529382318258286, -0.03597323223948479, 0.016796613112092018, -0.006198749877512455, -0.03306650370359421, -0.04256702587008476, -0.0305109191685915, 0.03464667126536369, -0.032344695180654526, -0.05431099981069565, -0.0008144698804244399, -0.0043479036539793015, -0.03741684556007385, 0.026940908282995224, 0.025380246341228485, 0.026550743728876114, -0.002975009847432375, -0.015460296534001827, 0.05942216143012047, -0.016601530835032463, 0.02592647820711136, 0.001591142499819398, -0.004301571287214756, -0.054584112018346786, 0.0018886434845626354, -0.03162289038300514, -0.05641788989305496, 0.0013521662913262844, -0.032481253147125244, -0.052633289247751236, -0.008520232513546944, -0.023351388052105904, 0.03534896671772003, 0.035114869475364685, -0.0020056930370628834, 0.02731156535446644, 0.04880966991186142, -0.0224930252879858, -0.011548890732228756, 0.025068115442991257, -0.0471709743142128, -0.027467630803585052, -0.05044836178421974, 0.02660926803946495, 0.04166964441537857, 0.0057598138228058815, 0.024346308782696724, -0.05481821298599243, 0.04408866912126541, -0.01626988872885704, 0.020893346518278122, -0.035895198583602905, -0.015548083931207657, 0.023897619917988777, -0.04365948587656021, 0.02067875675857067, -0.024346308782696724, 0.031174201518297195, -0.016133330762386322, -0.030101247131824493, 0.021088430657982826, -0.005545223131775856, 0.05829068273305893, 0.0038967751897871494, 0.0012143892236053944, 0.005735428538173437, 0.013714306987822056, 0.027760254219174385, -0.007364368531852961, 0.037631433457136154, -0.07904747128486633, 0.017284318804740906, -0.03384683281183243, 0.032305680215358734, 0.008886013180017471, 0.03365175053477287, -0.07998386770486832, -0.00015743776748422533, -0.04693687707185745, -0.04912180081009865, 0.02405368536710739, 0.03843127191066742, 0.04377653822302818, 0.06730350106954575, 0.038840945810079575, 0.056495923548936844, 0.0056427642703056335, -0.05169689282774925, -0.043815553188323975, -0.019547278061509132, 0.044634900987148285, -0.028443044051527977, -0.048887699842453, 0.004304009955376387, 0.0136265205219388, 0.005959773436188698, -0.04678080976009369, -0.02959403209388256, -0.02021055854856968, 0.021927285939455032, -0.00894941482692957, -0.025419263169169426, 0.015177426859736443, 0.011402578093111515, 0.05189197510480881, 0.012260941788554192, -0.019635064527392387, -0.04748310521245003, 0.033476173877716064, 0.005476944148540497, -0.033593226224184036, 0.0028360134456306696, -0.004282063338905573, -0.014367833733558655, -0.04096734896302223, -0.027448123320937157, 0.04049915075302124, -0.009754130616784096, 0.013509470969438553, -0.03441257029771805, 0.019849656149744987, -0.04451785236597061, -0.034549128264188766, -0.06597694009542465, -0.061294954270124435, 0.020269082859158516, 0.01138307061046362, -0.02614106982946396, -0.035544052720069885, -0.00026229466311633587, -0.005008745938539505, 0.0748336911201477, 0.0037260777316987514, 0.015070131048560143, -0.0016874645370990038, -0.05353066697716713, 0.003153022611513734, -0.04650769382715225, 0.0026360538322478533, 0.05965626239776611, -0.01772325485944748, -0.020581215620040894, -0.01365578267723322, 0.030471904203295708, -0.014894557185471058, -0.04151357710361481, -0.05965626239776611, 0.021654170006513596, -0.0259654950350523, 0.0023751307744532824, -0.03285191208124161, 0.037494875490665436, -0.005789076443761587, 0.025068115442991257, -0.03575864061713219, 0.02500959113240242, -0.021185971796512604, -0.04970704764127731, 0.019235145300626755, -0.03361273184418678, -0.03839225694537163, -0.010261344723403454, 0.03735831752419472, -0.02799435332417488, -0.025107132270932198, 0.0380801260471344, 0.000747410231269896, 0.0449860505759716, 0.03107665851712227, -0.0035041712690144777, -0.023702537640929222, -0.021537119522690773, 0.028189437463879585, 0.004125996958464384, -0.039484720677137375, 0.024346308782696724, -0.019488751888275146, -0.029691573232412338, -0.033554207533597946, -0.04912180081009865, -0.01839629001915455, -0.03119370900094509, -0.02791632153093815, 0.008432446047663689, -0.020405640825629234, -0.03843127191066742, 0.02181023545563221, -0.02102990448474884, 0.020737281069159508, -0.004513723775744438, 0.011178233660757542, 0.0378655344247818, 0.0054525588639080524, 0.04681982472538948, -0.03341764956712723, -0.03413945809006691, -0.04276210814714432, 0.010134541429579258, 0.08076419681310654, 0.04670277610421181, 0.02458040788769722, 0.018640143796801567, -0.01460193283855915, 0.05154082551598549, 0.006164610385894775, 0.03737782686948776, 0.0018374343635514379, 0.051423776894807816, -0.001993500394746661, 0.03179846331477165, 0.01936194859445095, 0.023800078779459, -0.08848947286605835, 0.05996839329600334, -0.031310759484767914, 0.00009891297668218613, -0.0017386737745255232, 0.10394001007080078, 0.044283751398324966, -0.020893346518278122, -0.00997847504913807, 0.020620232447981834, -0.029223375022411346, -0.027584681287407875, 0.03292994573712349, 0.015596854500472546, 0.003955299966037273, -0.04475194960832596, 0.003367613535374403, 0.03361273184418678, -0.0739753246307373, -0.04358145594596863, 0.011529382318258286, 0.02106892131268978, 0.007164408918470144, 0.04510309919714928, 0.013831356540322304, 0.03029632940888405, 0.013743570074439049, 0.026628775522112846, -0.026843367144465446, -0.06823989748954773, -0.0040552797727286816, -0.002125181257724762, -0.026765333488583565, 0.0003730954776983708, -0.0510726273059845, 0.0212054792791605, 0.000880919920746237, 0.04194276034832001, 0.09621474146842957, -0.01470922864973545, 0.005633010063320398, -0.004862433765083551, -0.006359693128615618, -0.022317450493574142, 0.012095121666789055, 0.021185971796512604, 0.04709294065833092, 0.033086009323596954, -0.015752920880913734, 0.04166964441537857, -0.04233292490243912, 0.003428576746955514, -0.03817766532301903, -0.034197982400655746, -0.010456427931785583, -0.028638126328587532, 0.0014204452745616436, 0.036070775240659714, 0.0497460663318634, -0.009754130616784096, 0.00551596051082015, -0.032734859734773636, 0.021439578384160995, -0.01925465278327465, 0.007847198285162449, 0.01481652446091175, 0.0058768633753061295, -0.06722546368837357, 0.006106085609644651, 0.0055062067694962025, -0.025380246341228485, -0.03380781412124634, -0.02614106982946396, 0.03076452761888504, 0.0025336353573948145, 0.00834953598678112, -0.007203425280749798, -0.0035675731487572193, 0.05157984048128128, 0.05981232598423958, -0.011334299109876156, 0.01584070734679699, -0.009300563484430313, -0.013099797070026398, 0.021693186834454536, -0.008305641822516918, 0.04323030635714531, 0.06972252577543259, -0.009242038242518902, -0.010173558257520199, -0.0506434440612793, -0.03999193385243416, -0.012924223206937313, -0.0865386426448822, -0.010671018622815609, 0.02483401633799076, 0.04393260180950165, -0.030218295753002167, -0.0015813884092494845, -0.04646867886185646, 0.020971380174160004, -0.037026677280664444, 0.03889947012066841, 0.05146279186010361, -0.0973852351307869, 0.025692379102110863, -0.012670615687966347, -0.013880127109587193, -0.029476981610059738, 0.027760254219174385, -0.00565739581361413, -0.03214961290359497, 0.04127947986125946, -0.002918923506513238, -0.019703343510627747, -0.04252800717949867, 0.008959168568253517, 0.002811628160998225, 0.005179443396627903, 0.03441257029771805, 0.04791228845715523, 0.021829742938280106, 0.03507585451006889, 0.023780569434165955, -0.04202079400420189, -0.00675961235538125, 0.12196564674377441, 0.011841514147818089, -0.027799271047115326, 0.027662713080644608, -0.016191856935620308, 0.013772832229733467, -0.010310116223990917, -0.024112209677696228, -0.012631598860025406, -0.027018941938877106, -0.010046754032373428, 0.047366056591272354, -0.02397565171122551, 0.006184118799865246, 0.019069325178861618, -0.07768189162015915, -0.019049815833568573, 0.03378830850124359, -0.03466618061065674, 0.016933171078562737, -0.00027235361631028354, -0.05922707915306091, -0.0644943118095398, 0.011753726750612259, 0.02177121862769127, -0.04053816571831703, -0.0497460663318634, 0.001380209461785853, -0.0545060820877552, 0.02266859821975231, 0.08255895972251892, -0.014611687511205673, 0.07346811145544052, 0.056144773960113525, -0.011148970574140549, -0.03304699435830116, 0.006232889369130135, -0.017752517014741898, -0.00934445671737194, 0.014738490805029869, -0.013909390196204185, 0.0036529218778014183, 0.11299184709787369, 0.009227407164871693, -0.06191921979188919, -0.019976459443569183, 0.009851671755313873, 0.0904402956366539, 0.02017154172062874, 0.027506647631525993, -0.034119948744773865, 0.05555952712893486, 0.046546708792448044, -0.036714546382427216, -0.022473515942692757, -0.002420243574306369, 0.007242441643029451, -0.018562110140919685, 0.0070327278226614, -0.0167673509567976, 0.0057549369521439075, 0.02262958325445652, -0.067498579621315, -0.03956275433301926, -0.04205980896949768, 0.021478595212101936, 0.019547278061509132, 0.040694233030080795, 0.04998016357421875, 0.05470116436481476, 0.03456863760948181, -0.05079951137304306, 0.08146649599075317, 0.058875929564237595, -0.0021020150743424892, 0.013392421416938305, 0.0018374343635514379, 0.02699943259358406, -0.02245400846004486, -0.09808753430843353, -0.028540585190057755, 0.026901891455054283, -0.04752212390303612, -0.03655847907066345, 0.02436581812798977, 0.00820810068398714, 0.002843328984454274, -0.001050397870130837, 0.0044015515595674515, 0.04272308945655823, 0.00223369593732059, -0.02582893706858158, 0.039660293608903885, 0.018318256363272667, 0.031388793140649796, -0.003133514430373907, 0.017323335632681847, 0.0015155479777604342, 0.002975009847432375, 0.011490365490317345, 0.010115033015608788, -0.01518718060106039, -0.0007199767278507352, 0.050604429095983505, 0.048653602600097656, 0.03644143044948578, -0.007798427250236273, -0.05505231022834778, 0.06453332304954529, -0.028579602017998695, -0.029145341366529465, 0.009037202224135399, -0.008651914075016975, 0.006564529612660408, -0.025282705202698708, 0.023292863741517067, 0.01188053097575903, 0.002757980255410075, 0.0029384316876530647, 0.013987422920763493, -0.06687431782484055, 0.024599917232990265, -0.11104101687669754, -0.05719821900129318, -0.0445568673312664, 0.04280112311244011, -0.0432693213224411, -0.006340184714645147, -0.04877065122127533, 0.08240289241075516, 0.03296896070241928, -0.006671824958175421, -0.00880797952413559, 0.016972186043858528, 0.05786150321364403, -0.028969766572117805, 0.03144731745123863, -0.03712422028183937, -0.07904747128486633, 0.10440821200609207, -0.03386634215712547, -0.026765333488583565, 0.015996774658560753, 0.009798023849725723, 0.020015476271510124, -0.048224419355392456, -0.031271740794181824, -0.034334540367126465, 0.037241268903017044, 0.03538798540830612, -0.0036821842659264803, -0.06585989147424698, -0.003279826370999217, -0.050916559994220734, -0.042684074491262436, 0.011002658866345882, -0.04319128766655922, 0.03560257703065872, 0.01111970841884613, -0.014914065599441528, -0.05157984048128128, -0.018708422780036926, 0.01415324304252863, -0.040304068475961685, 0.03371027484536171, -0.061021838337183, 0.04081128165125847, 0.03263732045888901, -0.033378634601831436, -0.0010589327430352569, 0.0041772061958909035, 0.051306724548339844, 0.02056170627474785, -0.026901891455054283, 0.02063973993062973, 0.06250447034835815, 0.0023861040826886892, -0.017274564132094383, 0.03579765930771828, -0.03661700710654259, -0.0882553681731224, 0.08981603384017944, -0.009524907916784286, 0.03402240574359894, 0.043425388634204865, -0.039445701986551285, -0.06644513458013535, 0.0055647315457463264, 0.06695234775543213, 0.011236757971346378, -0.004418620839715004, 0.10589084029197693, 0.019937442615628242, -0.015206689015030861, -0.020483674481511116, -0.017489155754446983, -0.05146279186010361, -0.015645625069737434, 0.016650300472974777, -0.017537927255034447, 0.0016179663361981511, 0.04689785838127136, -0.01307053491473198, 0.014055701903998852, 0.03253977745771408, -0.005725674331188202, -0.025068115442991257, 0.036890119314193726, -0.02553631365299225, 0.062036268413066864, -0.05103360861539841, -0.058953963220119476, 0.053803782910108566, 0.031349774450063705, -0.012358482927083969, -0.0166600551456213, 0.03562208265066147, 0.03558306768536568, 0.011109954677522182, -0.002614106982946396, -0.0007827689405530691, 0.026258118450641632, -0.025809429585933685, -0.028852717950940132, -0.04135751351714134, -0.01946924440562725, 0.045415230095386505, -0.05349165201187134, -0.03211059793829918, -0.033378634601831436, -0.0042040301486849785, 0.012368237599730492, 0.050175245851278305, 0.00029155705124139786, -0.0411234125494957, -0.016435708850622177, 0.03464667126536369, -0.008832365274429321, -0.020522689446806908, 0.041396528482437134, 0.04443981871008873, 0.013265617191791534, 0.03999193385243416, -0.0545060820877552, -0.00675961235538125, 0.09535637497901917, -0.001140014035627246, 0.020698264241218567, 0.037631433457136154, 0.046585727483034134, 0.010319869965314865, -0.027760254219174385, 0.003989439457654953, -0.029672063887119293, 0.07128318399190903, 0.003906529396772385, 0.0035066099371761084, 0.00017039246449712664, 0.020269082859158516, 0.028111403807997704, -0.005008745938539505, 0.030959609895944595, -0.03240321949124336, -0.040655214339494705, 0.020347116515040398, -0.0005319049232639372, 0.004411305300891399, 0.04018701612949371, -0.06851301342248917, -0.0011997580295428634, -0.009144497103989124, 0.0004386310465633869, -0.050526395440101624, -0.03328109160065651, -0.0013314387761056423, 0.048185404390096664, 0.009417613036930561, -0.030140262097120285, 0.09285932034254074, 0.0272530410438776, 0.018815716728568077, 0.02376106195151806, -0.01850358583033085, -0.02262958325445652, 0.03999193385243416, -0.0016691755736246705, -0.09457604587078094, -0.046585727483034134, 0.025477789342403412, -0.015957757830619812, 0.05821264907717705, -0.037494875490665436, -0.01172446459531784, -0.014543408527970314, -0.002540950896218419, 0.006432848982512951, -0.023078272119164467, 0.0328909270465374, -0.010436919517815113, 0.025731395930051804, 0.03897750377655029, -0.016006527468562126, 0.01118798740208149, -0.04049915075302124, -0.027877304702997208, 0.029145341366529465, -0.01651374250650406, 0.004984360653907061, 0.012153646908700466, 0.021303020417690277, -0.004957536701112986, 0.02653123438358307, -0.03591470792889595, 0.005613502115011215, 0.009183513931930065, 0.013177829794585705, 0.01170495618134737, -0.03033534623682499, 0.0111392168328166, -0.0757310688495636, -0.043893586844205856, -0.0009114015847444534, 0.06980055570602417, -0.006125594023615122, -0.045415230095386505, -0.04338637366890907, 0.04603949561715126, 0.037280287593603134, -0.05005819723010063, -0.012231679633259773, 0.029535505920648575, -0.0023836656473577023, 0.05516936257481575, 0.005828092806041241, -0.01776227168738842, -0.01415324304252863, -0.024209750816226006, -0.010271099396049976, 0.04330834001302719, -0.012143892236053944, -0.0027774886693805456, -0.0006163390935398638, 0.029652556404471397, -0.048614587634801865, 0.029457474127411842 ]
20,557
pyratings.get_warf
get_warf_from_scores
Convert numerical rating score(s) to numerical WARF(s). Parameters ---------- rating_scores Numerical rating score(s). Returns ------- Union[int, pd.Series, pd.DataFrame Numerical WARF(s). If returns a ``pd.Series``, the series name will be `warf` suffixed by `rating_scores.name`. If return a ``pd.DataFrame``, the column names will be `warf` suffixed by the respective `rating_scores.columns`. Examples -------- Converting a single rating score: >>> get_warf_from_scores(10) 610 Converting a ``pd.Series`` with rating scores: >>> import pandas as pd >>> rating_scores_series = pd.Series(data=[5, 7, 1, np.nan, 22, pd.NA]) >>> get_warf_from_scores(rating_scores=rating_scores_series) 0 70.0 1 180.0 2 1.0 3 NaN 4 10000.0 5 NaN Name: warf, dtype: float64 Converting a ``pd.DataFrame`` with rating scores: >>> rating_scores_df = pd.DataFrame( ... data=[[11, 16, "foo"], [4, 2, 1], [22, "bar", 22]], ... columns=["provider1", "provider2", "provider3"], ... ) >>> get_warf_from_scores(rating_scores=rating_scores_df) warf_provider1 warf_provider2 warf_provider3 0 940 3490.0 NaN 1 40 10.0 1.0 2 10000 NaN 10000.0
def get_warf_from_scores( rating_scores: int | float | pd.Series | pd.DataFrame, ) -> int | pd.Series | pd.DataFrame: """Convert numerical rating score(s) to numerical WARF(s). Parameters ---------- rating_scores Numerical rating score(s). Returns ------- Union[int, pd.Series, pd.DataFrame Numerical WARF(s). If returns a ``pd.Series``, the series name will be `warf` suffixed by `rating_scores.name`. If return a ``pd.DataFrame``, the column names will be `warf` suffixed by the respective `rating_scores.columns`. Examples -------- Converting a single rating score: >>> get_warf_from_scores(10) 610 Converting a ``pd.Series`` with rating scores: >>> import pandas as pd >>> rating_scores_series = pd.Series(data=[5, 7, 1, np.nan, 22, pd.NA]) >>> get_warf_from_scores(rating_scores=rating_scores_series) 0 70.0 1 180.0 2 1.0 3 NaN 4 10000.0 5 NaN Name: warf, dtype: float64 Converting a ``pd.DataFrame`` with rating scores: >>> rating_scores_df = pd.DataFrame( ... data=[[11, 16, "foo"], [4, 2, 1], [22, "bar", 22]], ... columns=["provider1", "provider2", "provider3"], ... ) >>> get_warf_from_scores(rating_scores=rating_scores_df) warf_provider1 warf_provider2 warf_provider3 0 940 3490.0 NaN 1 40 10.0 1.0 2 10000 NaN 10000.0 """ warf_dict = _get_translation_dict("scores_to_warf") if isinstance(rating_scores, (int, float, np.number)): return warf_dict.get(rating_scores, np.nan) elif isinstance(rating_scores, pd.Series): warf = pd.Series(data=rating_scores.map(warf_dict)) if rating_scores.name is not None: warf.name = "warf_" + str(rating_scores.name) else: warf.name = "warf" return warf elif isinstance(rating_scores, pd.DataFrame): return rating_scores.apply(lambda x: x.map(warf_dict)).add_prefix("warf_")
(rating_scores: int | float | pandas.core.series.Series | pandas.core.frame.DataFrame) -> int | pandas.core.series.Series | pandas.core.frame.DataFrame
[ 0.024996234104037285, 0.01478541735559702, -0.026019245386123657, -0.005674820858985186, 0.02036372758448124, -0.03289079666137695, -0.05130501091480255, 0.042194414883852005, 0.015808429569005966, 0.039646536111831665, -0.0037735626101493835, 0.04574600234627724, 0.022853698581457138, -0.006408300716429949, 0.056902624666690826, 0.03406822681427002, -0.03570890426635742, 0.07678379863500595, 0.049529217183589935, 0.0011967308819293976, 0.0213481355458498, -0.037079356610774994, 0.01339566521346569, 0.013820311985909939, -0.04840969294309616, -0.03128872066736221, -0.020614653825759888, 0.03192569315433502, -0.070761539041996, 0.03505263477563858, 0.023008115589618683, -0.05705704167485237, -0.017149925231933594, -0.010230118408799171, -0.03119221143424511, -0.012556022964417934, -0.06304069608449936, -0.002374159637838602, 0.006668879184871912, -0.011426849290728569, -0.03345055878162384, -0.003990711644291878, -0.0043622772209346294, -0.04038001596927643, -0.04238743707537651, 0.05385288968682289, 0.04358416795730591, -0.08601021021604538, -0.007291372399777174, -0.007161083165556192, 0.011610220186412334, -0.006948759779334068, -0.007884912192821503, 0.014988088980317116, 0.025555994361639023, 0.0795246958732605, -0.005805110093206167, 0.0022523151710629463, -0.004137889947742224, -0.09844076633453369, 0.01958199217915535, 0.008912749588489532, -0.04640227556228638, 0.021463947370648384, 0.035380769520998, 0.018993277102708817, 0.04180837422609329, -0.04605483636260033, -0.02322044037282467, -0.0015851858770474792, 0.028103873133659363, 0.0069728875532746315, -0.018047474324703217, -0.005481799598783255, -0.014216004870831966, 0.04304370656609535, 0.05323522165417671, -0.04489671066403389, 0.028489915654063225, 0.029821760952472687, 0.050455719232559204, -0.0012178425677120686, -0.03763911500573158, -0.014611697755753994, -0.016281330958008766, -0.0025527041871100664, -0.005964352283626795, 0.03433845564723015, -0.007522997912019491, -0.04304370656609535, -0.03416473791003227, -0.04678831622004509, 0.024282054975628853, -0.03236963972449303, -0.04833248630166054, -0.013801009394228458, -0.007214163895696402, -0.02105860225856304, 0.011484756134450436, 0.02609645389020443, 0.02003559097647667, 0.025343671441078186, -0.014322166331112385, 0.08716833591461182, -0.018887115642428398, 0.004680762067437172, 0.013434269465506077, -0.015113553032279015, -0.02615435980260372, -0.009293966926634312, -0.019823268055915833, -0.042155809700489044, 0.002994240028783679, -0.03275568410754204, -0.06914015859365463, -0.0283161960542202, -0.005805110093206167, 0.05408451333642006, 0.03956932947039604, -0.01241125725209713, 0.012556022964417934, 0.043893001973629, -0.008512230589985847, -0.036133550107479095, -0.016155866906046867, -0.03086407482624054, 0.021425344049930573, -0.04999246820807457, 0.004492566455155611, 0.033585675060749054, 0.026617610827088356, -0.006697832606732845, -0.061650943011045456, 0.05582170560956001, 0.02451368048787117, -0.00006231716542970389, -0.03561239317059517, -0.008681124076247215, 0.04099768400192261, -0.03862352296710014, -0.0025864827912300825, -0.014302864670753479, 0.016841091215610504, -0.009979191236197948, -0.025845525786280632, 0.022544866427779198, 0.013472873717546463, 0.06323371827602386, -0.012034866027534008, 0.0025309892371296883, 0.0031390057411044836, 0.03190638870000839, 0.021116510033607483, 0.001745634712278843, 0.015007391571998596, -0.06647647172212601, 0.03694424033164978, -0.04852550849318504, 0.040264204144477844, -0.006345569156110287, 0.04203999787569046, -0.04323672875761986, 0.02551739104092121, -0.07960190623998642, -0.04875713214278221, -0.011166270822286606, -0.0026540402323007584, 0.05547426640987396, 0.07508521527051926, 0.0426962710916996, 0.009009260684251785, 0.0009970746468752623, -0.030014783143997192, -0.04227162152528763, -0.006041560787707567, 0.00005726544259232469, -0.0207497701048851, -0.06277046352624893, 0.00442259619012475, 0.027254581451416016, 0.02322044037282467, -0.05755889415740967, -0.03283289074897766, -0.02901107259094715, 0.009125073440372944, 0.02870223857462406, -0.04771481826901436, 0.03302591294050217, -0.009047864936292171, 0.054933808743953705, 0.03505263477563858, -0.0334891639649868, -0.061573732644319534, 0.04261906072497368, 0.03495612367987633, -0.029551532119512558, 0.017642129212617874, -0.002394668059423566, -0.0003006907063536346, -0.01736224815249443, 0.011783938854932785, 0.059411898255348206, 0.0029990654438734055, 0.0180378220975399, -0.03142383694648743, 0.032620567828416824, -0.030690357089042664, -0.03769702464342117, -0.05883283540606499, -0.04640227556228638, 0.017169227823615074, 0.015412735752761364, -0.06655368208885193, -0.02769852988421917, 0.03848841041326523, -0.007769099902361631, 0.048911549150943756, -0.006828121840953827, 0.025324368849396706, -0.00394004350528121, -0.03976234793663025, 0.004487740807235241, -0.05836958438158035, 0.03665471076965332, 0.03059384599328041, 0.011339990422129631, -0.022100917994976044, -0.014254609122872353, 0.05408451333642006, 0.016474351286888123, -0.05261755362153053, -0.04068884998559952, -0.0379672534763813, -0.042503248900175095, 0.020286519080400467, 0.0031896738801151514, 0.04941340535879135, -0.009496638551354408, 0.021251624450087547, -0.025054140016436577, 0.014022983610630035, -0.006142897065728903, -0.041576746851205826, 0.051999885588884354, -0.031365931034088135, -0.06941039115190506, -0.018298400565981865, 0.02609645389020443, -0.03354706987738609, 0.01958199217915535, 0.032678473740816116, -0.022795792669057846, 0.07284616678953171, 0.0431981235742569, 0.001419911510311067, -0.010268722660839558, -0.047290172427892685, 0.009655880741775036, -0.011754985898733139, -0.023645086213946342, 0.006176675669848919, -0.010152910836040974, 0.003090750426054001, -0.019842570647597313, -0.04574600234627724, -0.04088187217712402, -0.046363670378923416, -0.009959889575839043, 0.04366137459874153, -0.006591671146452427, 0.0024899723939597607, -0.015663662925362587, -0.024069732055068016, 0.006615798454731703, 0.016619117930531502, 0.005351510364562273, 0.0389130562543869, 0.001796302734874189, 0.043120916932821274, -0.002175106666982174, -0.018935371190309525, -0.047907840460538864, -0.029184792190790176, 0.03302591294050217, 0.05516543239355087, 0.032350338995456696, -0.0034333630464971066, 0.025903433561325073, 0.0631951093673706, -0.018095729872584343, 0.03300660848617554, 0.012208585627377033, 0.033585675060749054, -0.011368943378329277, 0.009602800011634827, 0.03341195359826088, 0.003766324371099472, -0.05566728860139847, 0.07357964664697647, -0.009211932308971882, 0.029995480552315712, 0.009655880741775036, 0.08377116173505783, 0.0389130562543869, -0.02607715129852295, -0.021849989891052246, 0.0009349460015073419, -0.03684772923588753, -0.03256266191601753, 0.07037549465894699, -0.013028925284743309, 0.0041740816086530685, -0.02895316667854786, 0.010577556677162647, 0.03190638870000839, -0.0630020871758461, -0.027563415467739105, -0.011021505109965801, 0.016841091215610504, 0.007460265886038542, 0.016812138259410858, -0.014920531772077084, 0.043468352407217026, 0.019958382472395897, 0.02513134852051735, -0.014322166331112385, -0.0998305156826973, -0.01259462721645832, 0.0431981235742569, -0.04393160343170166, -0.00853635836392641, -0.06118769198656082, 0.0273703932762146, -0.002767440164461732, 0.04076606035232544, 0.05250174179673195, 0.005004072096198797, 0.03319963067770004, -0.01016256120055914, -0.002748138038441539, -0.03717586770653725, -0.0006924632471054792, 0.03161685913801193, 0.04242603853344917, 0.017738640308380127, -0.00533703388646245, -0.007518172264099121, -0.04173116385936737, -0.01162952184677124, -0.0420013926923275, -0.025227859616279602, -0.05157523974776268, -0.039916764944791794, 0.017574572935700417, 0.03491751849651337, 0.03567030280828476, 0.02837410382926464, -0.026926444843411446, 0.016184819862246513, 0.007658112794160843, -0.044780898839235306, -0.008208222687244415, 0.025555994361639023, 0.005317731760442257, -0.047019943594932556, -0.003836294636130333, -0.010876739397644997, -0.047599006444215775, -0.04833248630166054, -0.012015564367175102, 0.03177127614617348, -0.004268179181963205, 0.008159967139363289, -0.021193718537688255, -0.02038303017616272, 0.03192569315433502, 0.04875713214278221, -0.010316978208720684, 0.0181632861495018, -0.06014537811279297, -0.009173328056931496, -0.0046035535633563995, -0.031385231763124466, 0.04709715023636818, 0.08106886595487595, -0.0046035535633563995, 0.00956419575959444, -0.06829086691141129, -0.023239741101861, -0.0009904395556077361, -0.054624974727630615, 0.0213481355458498, 0.031115002930164337, 0.01604970544576645, -0.045359961688518524, 0.01066441647708416, -0.026617610827088356, 0.027447601780295372, -0.008034504018723965, 0.021193718537688255, 0.030728960409760475, -0.08245861530303955, 0.02542087994515896, -0.0019398621516302228, -0.0360756441950798, -0.013019273988902569, 0.015625059604644775, -0.0024260340724140406, -0.007923516444861889, 0.04323672875761986, 0.006249058526009321, -0.019012579694390297, -0.02899176999926567, -0.017265738919377327, 0.01623307541012764, 0.032041504979133606, 0.05030130222439766, 0.052385929971933365, 0.0036722265649586916, 0.05470218136906624, 0.0008517056703567505, -0.05821516737341881, -0.00038181987474672496, 0.10268723219633102, 0.005848539527505636, -0.05091897025704384, 0.016715629026293755, 0.014051936566829681, 0.005105408374220133, 0.01867479272186756, -0.03792864829301834, -0.04485810548067093, -0.006803994067013264, -0.03721446916460991, 0.04038001596927643, -0.00877280905842781, -0.007161083165556192, 0.04404741898179054, -0.057211458683013916, -0.005689297337085009, 0.0389130562543869, -0.02775643579661846, 0.0325433574616909, -0.003488856600597501, -0.038353294134140015, -0.07809634506702423, 0.009313268586993217, 0.010915343649685383, -0.040264204144477844, -0.03480170667171478, 0.00318243564106524, -0.04852550849318504, 0.046981338411569595, 0.06744157522916794, 0.01958199217915535, 0.04497391730546951, -0.0009379619732499123, -0.02542087994515896, 0.018568631261587143, 0.008878971450030804, -0.021193718537688255, -0.016310283914208412, 0.043468352407217026, -0.022390449419617653, -0.02926200069487095, 0.07960190623998642, 0.0267720278352499, -0.08554695546627045, -0.024089034646749496, -0.018626537173986435, 0.09349942952394485, 0.016175169497728348, 0.06416022032499313, -0.05983654409646988, 0.03926049545407295, 0.056555185467004776, -0.037117958068847656, -0.005660343915224075, -0.0016479177866131067, 0.012141027487814426, -0.016011100262403488, 0.007822180166840553, -0.007662937976419926, -0.005105408374220133, 0.039048172533512115, -0.029667343944311142, -0.03404892235994339, -0.039048172533512115, 0.012208585627377033, 0.03152034804224968, 0.05856260657310486, 0.022429052740335464, 0.03914467990398407, 0.02671412192285061, -0.042812082916498184, 0.04686552658677101, 0.08562416583299637, 0.0018107793293893337, -0.03125011920928955, 0.015470641665160656, 0.011185573413968086, -0.035380769520998, -0.10114306211471558, -0.01290346123278141, 0.04327533394098282, -0.05408451333642006, -0.01495913602411747, 0.049799446016550064, -0.006205628626048565, -0.0027963933534920216, -0.03887445107102394, 0.011118016205728054, 0.021077904850244522, 0.01132068783044815, -0.024706702679395676, 0.04613204672932625, -0.028200384229421616, 0.021830687299370766, -0.011262781918048859, 0.00907199177891016, -0.00455047283321619, -0.021541155874729156, 0.016204122453927994, 0.028567124158143997, -0.028238989412784576, 0.008468801155686378, 0.028277592733502388, 0.07180385291576385, 0.04964502900838852, 0.025903433561325073, -0.05126640573143959, 0.0611104853451252, -0.008690775372087955, -0.02100069634616375, -0.006456556264311075, -0.012305095791816711, 0.02767922729253769, -0.03119221143424511, 0.011098713614046574, 0.003645686199888587, 0.03215731680393219, 0.057751916348934174, 0.0033272013533860445, -0.04898875951766968, 0.021830687299370766, -0.07300058752298355, -0.08137769997119904, -0.027505507692694664, 0.04265766590833664, -0.05914166942238808, -0.017458759248256683, -0.010278373956680298, 0.07724704593420029, 0.01818258874118328, -0.029184792190790176, 0.029532229527831078, -0.01496878731995821, 0.031327325850725174, -0.029802460223436356, 0.002378985285758972, -0.007716018706560135, -0.08346232771873474, 0.10508069396018982, -0.02924269810318947, -0.08122328668832779, 0.016773534938693047, 0.026849236339330673, 0.02034442499279976, -0.03153964877128601, -0.059720732271671295, -0.01723678596317768, 0.029474323615431786, 0.043159522116184235, -0.03148174285888672, -0.02547878585755825, 0.019649548456072807, -0.031636159867048264, -0.07238291949033737, 0.008676298893988132, -0.027852946892380714, 0.008140665479004383, 0.017313994467258453, -0.003303073812276125, -0.04740598425269127, -0.01962059549987316, 0.014582744799554348, -0.07632054388523102, 0.011291734874248505, -0.014360770583152771, 0.024320660158991814, 0.03750400245189667, -0.008227525278925896, -0.01579877734184265, -0.014051936566829681, 0.051729656755924225, 0.006171850021928549, -0.03180987760424614, 0.047599006444215775, 0.06840667873620987, 0.005689297337085009, -0.019668851047754288, 0.023625783622264862, -0.049799446016550064, -0.07960190623998642, 0.07767169177532196, -0.0293585117906332, 0.0413065180182457, 0.03256266191601753, -0.029068978503346443, -0.07744006812572479, 0.01097325049340725, 0.036789823323488235, 0.02414694055914879, 0.008985132910311222, 0.11697079241275787, 0.024320660158991814, -0.0032910099253058434, -0.03397171571850777, -0.036191459745168686, -0.05616914480924606, 0.011561964638531208, -0.024089034646749496, 0.005607263185083866, 0.018684443086385727, 0.053659867495298386, -0.010760926641523838, 0.051729656755924225, 0.013270201161503792, -0.03180987760424614, -0.028760146349668503, 0.030420126393437386, -0.013540430925786495, 0.051111988723278046, -0.08130048960447311, -0.09017946571111679, 0.0497608408331871, 0.0344349667429924, 0.015171458944678307, -0.017593873664736748, 0.03404892235994339, 0.03433845564723015, 0.023741597309708595, -0.013627290725708008, -0.007368580903857946, 0.024899723008275032, -0.07110897451639175, 0.007971771992743015, -0.03570890426635742, -0.011291734874248505, 0.026250870898365974, -0.06076304614543915, -0.022718584164977074, -0.08114607632160187, 0.01777724362909794, 0.016020752489566803, 0.06365836411714554, 0.023239741101861, -0.0657815933227539, -0.02735109068453312, 0.03848841041326523, -0.03051663748919964, -0.02329764887690544, 0.036172155290842056, 0.012662184424698353, 0.02544018253684044, 0.061573732644319534, -0.039376307278871536, 0.02679133042693138, 0.09620171785354614, -0.027138767763972282, 0.030342917889356613, 0.027582716196775436, -0.002765027340501547, -0.0012618754990398884, -0.02959013544023037, 0.011079411953687668, -0.034898217767477036, 0.08253582566976547, -0.01596284657716751, -0.010075702331960201, 0.007412010803818703, 0.03331544250249863, -0.01017221249639988, 0.022544866427779198, 0.014573093503713608, -0.06257744133472443, 0.007059747353196144, 0.013636941090226173, -0.0025213381741195917, 0.008647345937788486, 0.0599137544631958, -0.05061013624072075, 0.0017275389982387424, 0.004215098451822996, -0.029802460223436356, -0.020614653825759888, -0.03914467990398407, -0.003580541582778096, 0.04748319461941719, 0.021270927041769028, -0.03341195359826088, 0.07342523336410522, 0.02138673886656761, 0.050108280032873154, 0.03308381885290146, -0.03291010111570358, -0.011243479326367378, 0.011600568890571594, 0.012391955591738224, -0.09859517961740494, -0.08122328668832779, 0.01544168870896101, -0.003611907595768571, 0.06315650790929794, -0.05064873769879341, -0.026829933747649193, -0.007769099902361631, -0.006784691940993071, -0.00011475708015495911, 0.013550082221627235, 0.05072594806551933, 0.0009590736590325832, 0.0483710914850235, 0.020556747913360596, -0.007484393659979105, -0.0030231932178139687, -0.01435111928731203, -0.01754561811685562, 0.0031221164390444756, 0.0002970715577248484, 0.027254581451416016, -0.03256266191601753, 0.022718584164977074, 0.005124710500240326, 0.019080135971307755, -0.0071803852915763855, 0.03810236603021622, -0.0029797633178532124, 0.03665471076965332, 0.019688153639435768, -0.0180378220975399, 0.009684834629297256, -0.044086020439863205, -0.03943421319127083, -0.040611643344163895, 0.05763610452413559, 0.013598336838185787, -0.011050458997488022, -0.03180987760424614, 0.046633899211883545, 0.06481648981571198, -0.05516543239355087, 0.008295082487165928, 0.005694122985005379, -0.0029483975376933813, 0.06265465170145035, -0.000624302658252418, -0.032581962645053864, 0.005911271553486586, -0.03125011920928955, 0.03528425842523575, 0.05439334735274315, -0.031095700338482857, 0.004222336690872908, -0.013521128334105015, 0.014582744799554348, -0.034203339368104935, 0.02105860225856304 ]
20,558
pyratings.aggregate
get_weighted_average
Compute weighted average. Parameters ---------- data Contains numerical values. weights Contains weights (between 0 and 1) with respect to `data`. Returns ------- float Weighted average data. Notes ----- Computing the weighted average is simply the sumproduct of `data` and `weights`. ``nan`` in `data` will be excluded from calculating the weighted average. All corresponding weights will be ignored. As a matter of fact, the remaining weights will be upscaled so that the weights of all ``non-nan`` rows in `data` will sum up to 1 (100%). Examples -------- >>> import numpy as np >>> import pandas as pd >>> rtg_scores = pd.Series(data=[5, 7, 9]) >>> wgt = pd.Series(data=[0.5, 0.3, 0.2]) >>> get_weighted_average(data=rtg_scores, weights=wgt) 6.4 >>> warf = pd.Series(data=[500, 735, np.nan, 93, np.nan]) >>> wgt = pd.Series(data=[0.4, 0.1, 0.1, 0.2, 0.2]) >>> get_weighted_average(data=warf, weights=wgt) 417.29
def get_weighted_average(data: pd.Series, weights: pd.Series) -> float: """Compute weighted average. Parameters ---------- data Contains numerical values. weights Contains weights (between 0 and 1) with respect to `data`. Returns ------- float Weighted average data. Notes ----- Computing the weighted average is simply the sumproduct of `data` and `weights`. ``nan`` in `data` will be excluded from calculating the weighted average. All corresponding weights will be ignored. As a matter of fact, the remaining weights will be upscaled so that the weights of all ``non-nan`` rows in `data` will sum up to 1 (100%). Examples -------- >>> import numpy as np >>> import pandas as pd >>> rtg_scores = pd.Series(data=[5, 7, 9]) >>> wgt = pd.Series(data=[0.5, 0.3, 0.2]) >>> get_weighted_average(data=rtg_scores, weights=wgt) 6.4 >>> warf = pd.Series(data=[500, 735, np.nan, 93, np.nan]) >>> wgt = pd.Series(data=[0.4, 0.1, 0.1, 0.2, 0.2]) >>> get_weighted_average(data=warf, weights=wgt) 417.29 """ # find indices in warf that correspond to np.nan idx_nan = data[pd.isna(data)].index # sum weights of securities with an actual rating, i.e. rating is not NaN weights_non_nan = 1 - sum(weights.loc[idx_nan]) # upscale to 100% weights_upscaled = weights / weights_non_nan return data.fillna(0).dot(weights_upscaled)
(data: pandas.core.series.Series, weights: pandas.core.series.Series) -> float
[ 0.015179124660789967, -0.00210270076058805, 0.0001316350681008771, 0.007409627083688974, 0.039235036820173264, -0.05853882431983948, -0.0029343231581151485, 0.020964723080396652, 0.08068465441465378, 0.07223232835531235, 0.00401162588968873, 0.019266875460743904, 0.02081708423793316, -0.05377746745944023, -0.014496294781565666, 0.0720846951007843, -0.05698861554265022, 0.060162849724292755, 0.03233291953802109, 0.007847930304706097, -0.033624760806560516, -0.08053702116012573, -0.0041731055825948715, 0.0022445726208388805, -0.016240278258919716, 0.005499548744410276, -0.03209300711750984, 0.0008039399399422109, -0.016590921208262444, 0.028974134474992752, 0.012853811495006084, -0.05377746745944023, -0.00466677313670516, -0.02046644315123558, 0.06761861592531204, -0.020558716729283333, -0.014902301132678986, -0.016148004680871964, -0.0621928870677948, -0.04698608070611954, 0.012696945108473301, -0.024969428777694702, -0.008535373955965042, -0.03676208481192589, 0.005144292954355478, 0.053445279598236084, 0.07913444936275482, -0.018002718687057495, -0.00590555602684617, -0.001671318430453539, 0.05610278248786926, 0.060199759900569916, 0.01463470607995987, 0.04078524559736252, 0.012540078721940517, 0.08570437878370285, -0.04170798882842064, -0.042040176689624786, -0.005125837866216898, -0.08312069624662399, 0.05783753842115402, -0.028752675279974937, 0.05518003925681114, -0.01954369992017746, -0.007801793050020933, 0.016360236331820488, -0.013896510936319828, -0.022754846140742302, -0.0026598069816827774, -0.012586216442286968, 0.003188077360391617, -0.015492856502532959, -0.01089759636670351, -0.04274146258831024, -0.03953031450510025, 0.08312069624662399, 0.06857826560735703, -0.007935591042041779, -0.00035093072801828384, 0.039751771837472916, 0.0337354876101017, -0.021961286664009094, 0.003280351869761944, -0.012106389738619328, 0.04783500358462334, 0.001485616434365511, -0.07027611881494522, 0.03692818060517311, -0.01819649338722229, -0.015825044363737106, -0.002238805405795574, 0.03511960431933403, 0.037980105727910995, -0.02041107788681984, -0.0002975846582558006, -0.011848021298646927, -0.016351008787751198, -0.07488983124494553, -0.006099332123994827, 0.01946987956762314, -0.01268771756440401, -0.00488131120800972, -0.0004241734859533608, 0.03153935819864273, 0.011515834368765354, -0.038865938782691956, 0.014376337639987469, -0.030007606372237206, 0.00409467238932848, 0.03321875259280205, 0.0004114857583772391, -0.06920573115348816, 0.01959906332194805, 0.0017970422049984336, -0.016221823170781136, -0.03860757127404213, -0.007695677690207958, 0.09655583649873734, 0.0062377434223890305, 0.014062604866921902, 0.02262566052377224, 0.06551475822925568, -0.03296038508415222, 0.021684464067220688, 0.006076263263821602, -0.0645551085472107, 0.0472075380384922, -0.07167868316173553, -0.005937851965427399, 0.037980105727910995, 0.035285696387290955, 0.0010253982618451118, -0.026796460151672363, 0.018897779285907745, 0.012401667423546314, 0.0514521561563015, 0.00466677313670516, 0.024766424670815468, 0.07898680865764618, -0.0659576803445816, 0.05111996829509735, -0.027885297313332558, 0.013748872093856335, 0.0063530863262712955, 0.04790882393717766, -0.008521532639861107, 0.0007243533618748188, 0.049163755029439926, -0.002218043664470315, -0.025467710569500923, 0.017522891983389854, 0.002694409806281328, -0.006546862423419952, -0.014210243709385395, 0.03809083625674248, -0.011211329139769077, 0.00846616830676794, -0.015151442028582096, -0.03198227658867836, -0.043258197605609894, 0.0036309941206127405, 0.014293290674686432, 0.017947353422641754, -0.04074833542108536, -0.03569170460104942, 0.02705482766032219, -0.004293062258511782, 0.04621097445487976, 0.011746520176529884, -0.014108742587268353, -0.0028305144514888525, -0.0006903272005729377, -0.03500887379050255, -0.02757156454026699, 0.006288494449108839, 0.010482361540198326, -0.03296038508415222, -0.035377971827983856, 0.019414514303207397, -0.0012722320389002562, 0.03231446444988251, -0.05204271152615547, -0.02568916790187359, -0.012318620458245277, 0.017153793945908546, 0.00500126788392663, -0.004034694284200668, 0.0002006966242333874, -0.04144962131977081, 0.008516918867826462, 0.039751771837472916, -0.0868854895234108, -0.037574101239442825, 0.021850556135177612, 0.014127196744084358, 0.0019066180102527142, 0.017522891983389854, -0.021020088344812393, -0.03777710348367691, -0.0009671501466073096, 0.018740912899374962, -0.060642678290605545, 0.055290766060352325, 0.03639298677444458, 0.022053560242056847, -0.011654245667159557, -0.05540149658918381, -0.050049588084220886, -0.0339200384914875, -0.0060208989307284355, 0.008396962657570839, 0.022441113367676735, -0.033034201711416245, 0.015391355380415916, 0.01644328236579895, 0.03941958770155907, 0.03916121646761894, -0.031188717111945152, 0.041892535984516144, -0.014985348097980022, -0.07640313357114792, -0.02229347452521324, 0.025006338953971863, 0.03783246874809265, 0.08371125906705856, -0.0230870321393013, 0.02448960207402706, -0.003188077360391617, 0.006173151545226574, 0.04144962131977081, 0.02351149544119835, -0.031170262023806572, 0.005993216764181852, -0.03200073167681694, 0.0042169359512627125, -0.0010173242771998048, -0.01199566014111042, -0.05111996829509735, 0.04351656511425972, 0.016203369945287704, -0.013352093286812305, -0.022127380594611168, -0.04897920414805412, 0.001176497433334589, -0.027811476960778236, -0.03406767547130585, -0.0019781305454671383, 0.0018316450295969844, 0.028549671173095703, -0.012041797861456871, 0.009688802994787693, 0.028199030086398125, 0.022847119718790054, 0.001791275106370449, -0.010011762380599976, 0.0009100554161705077, 0.016314098611474037, 0.050935421139001846, -0.022127380594611168, -0.03545179218053818, 0.02760847471654415, -0.012032570317387581, -0.0030058356933295727, 0.008586124517023563, -0.005601050797849894, 0.019691338762640953, -0.012530851177871227, -0.0050658597610890865, -0.01134051289409399, 0.03283119946718216, 0.059756845235824585, 0.012383212335407734, 0.08120139688253403, -0.02611362934112549, 0.023862136527895927, -0.038496844470500946, 0.07079285383224487, 0.023843681439757347, 0.015114531852304935, -0.028568126261234283, -0.035230331122875214, -0.0009740706882439554, -0.01736602559685707, 0.0506032332777977, 0.0230870321393013, -0.01604650355875492, 0.007548038847744465, -0.09840132296085358, 0.02847585268318653, 0.012355530634522438, 0.04897920414805412, -0.0024637242313474417, 0.005351909901946783, -0.01959906332194805, -0.007248147390782833, -0.017513664439320564, -0.034362953156232834, -0.03820156678557396, 0.05558604374527931, 0.03595007210969925, 0.003594084409996867, 0.026353543624281883, 0.07422545552253723, 0.01111905463039875, -0.018556363880634308, 0.018002718687057495, 0.0010801861062645912, 0.01913769170641899, -0.036189984530210495, 0.012632353231310844, -0.022053560242056847, -0.021629098802804947, -0.020521806553006172, -0.00055566435912624, -0.005388819612562656, -0.05787444859743118, 0.025412345305085182, -0.01484693679958582, 0.014468612149357796, 0.004629863426089287, 0.011202101595699787, 0.04827791824936867, 0.039235036820173264, -0.0015329070156440139, -0.023825226351618767, 0.01952524483203888, -0.017246069386601448, 0.0001988223084481433, 0.028660401701927185, -0.008184731006622314, -0.010971415787935257, -0.025135522708296776, -0.0005801747320219874, -0.00144178606569767, -0.024138959124684334, 0.039382677525281906, 0.0283651240170002, -0.006454587914049625, -0.023843681439757347, -0.0046852282248437405, -0.06632677465677261, 0.007861771620810032, 0.03146554157137871, 0.03993632271885872, -0.006210061255842447, -0.021610643714666367, 0.0031211785972118378, -0.017430616542696953, 0.004253845661878586, -0.05514312908053398, -0.011275921016931534, 0.003870907472446561, -0.00973493978381157, 0.009005973115563393, 0.0050658597610890865, -0.013988785445690155, 0.04185562953352928, -0.018971597775816917, 0.04842555895447731, 0.014293290674686432, -0.05554913729429245, 0.08991208672523499, 0.01871323026716709, 0.02489560842514038, 0.006514566484838724, 0.0199312511831522, 0.0391981266438961, 0.019783612340688705, -0.06267271190881729, -0.024175869300961494, 0.026371998712420464, -0.07112503796815872, -0.03460286557674408, 0.011414332315325737, 0.022053560242056847, 0.03332948312163353, 0.003208839101716876, -0.05425729602575302, 0.045989517122507095, -0.029417051002383232, -0.053482189774513245, 0.015668177977204323, -0.017070747911930084, 0.027423925697803497, 0.08526146411895752, 0.013841146603226662, -0.0048582423478364944, -0.017965808510780334, -0.023843681439757347, -0.022847119718790054, -0.06222979724407196, 0.0027267059776932, -0.0048444014973938465, 0.00821702741086483, -0.07920826971530914, 0.022478021681308746, 0.0356178842484951, -0.0365590825676918, -0.037943195551633835, 0.045103684067726135, 0.02258875221014023, -0.08385889232158661, -0.029915330931544304, -0.01043622475117445, -0.04211399704217911, 0.04436548799276352, -0.06256198137998581, -0.030801165848970413, 0.027682293206453323, -0.00775565579533577, -0.046764619648456573, 0.05558604374527931, 0.0029297093860805035, 0.03871830180287361, 0.012863039039075375, 0.03320029750466347, 0.04299983009696007, -0.008742990903556347, -0.028531217947602272, 0.01686774380505085, 0.008383121341466904, -0.05189507454633713, 0.003923965152353048, 0.05713625252246857, 0.055290766060352325, -0.10807167738676071, 0.028660401701927185, -0.07337652891874313, 0.02092781476676464, -0.015428264625370502, -0.0002771112776827067, -0.0391981266438961, -0.031797729432582855, -0.02624281495809555, 0.042778369039297104, 0.020244983956217766, -0.015169897116720676, 0.053445279598236084, -0.042003266513347626, -0.0095411641523242, 0.02126000076532364, -0.022459566593170166, 0.017043065279722214, -0.008493850007653236, -0.06289417296648026, -0.07485292106866837, 0.018058082088828087, -0.01553899422287941, -0.03761100769042969, -0.058391183614730835, -0.007280443329364061, -0.06684350967407227, 0.030358249321579933, 0.0640752837061882, -0.07625549286603928, 0.03893975913524628, 0.02347458526492119, -0.041006702929735184, 0.021463004872202873, 0.016544783487915993, 0.006915959529578686, 0.009019813500344753, 0.021979741752147675, -0.013730417937040329, -0.02183210290968418, 0.012300165370106697, 0.01313063409179449, -0.053113095462322235, 0.01869477517902851, 0.004576805979013443, 0.11914458870887756, 0.004083138424903154, -0.02216428890824318, -0.04565732926130295, 0.056619517505168915, 0.05957229435443878, -0.057579170912504196, -0.028974134474992752, 0.0346766859292984, -0.005804053973406553, 0.004226163495332003, 0.03404922038316727, 0.028199030086398125, 0.032720472663640976, -0.0155482217669487, -0.0036148461513221264, -0.03916121646761894, -0.029158681631088257, 0.081791952252388, -0.0051719751209020615, 0.043774932622909546, 0.052559446543455124, 0.04610024765133858, 0.035710159689188004, -0.08777132630348206, 0.0195067897439003, 0.04650625213980675, 0.03967795521020889, 0.07485292106866837, 0.012087934650480747, 0.05281781777739525, -0.033587850630283356, -0.06817226111888885, -0.038423024117946625, 0.003919351380318403, -0.028088299557566643, -0.061528511345386505, 0.030358249321579933, 0.05510621890425682, -0.009167453274130821, 0.0006805230514146388, 0.05739462003111839, 0.014468612149357796, 0.03724191337823868, 0.04410712048411369, -0.029859967529773712, -0.036171529442071915, 0.03380930796265602, 0.04694917052984238, -0.02448960207402706, -0.018990052863955498, 0.007612630724906921, -0.01865786500275135, 0.059793755412101746, -0.02046644315123558, 0.02305012382566929, -0.026445817202329636, -0.0039516473188996315, 0.016249505802989006, 0.06396455317735672, -0.03102262318134308, 0.05949847772717476, -0.02838357910513878, -0.042852189391851425, -0.02803293615579605, -0.03949340432882309, 0.031723909080028534, -0.017587482929229736, -0.03227755427360535, 0.027885297313332558, 0.0024591104593127966, -0.005024336278438568, 0.05362983047962189, -0.03113335184752941, 0.0472075380384922, 0.00288357213139534, -0.06621604412794113, 0.0013818078441545367, -0.03102262318134308, -0.05410965532064438, -0.0074188546277582645, -0.032166823744773865, 0.01779048703610897, 0.07787951827049255, 0.025467710569500923, -0.01157119870185852, -0.035341061651706696, 0.002611363073810935, -0.00021698881755582988, 0.001498304191045463, -0.018805503845214844, -0.08718077093362808, 0.028678856790065765, 0.0009533090051263571, -0.023363856598734856, -0.024508057162165642, 0.004807491786777973, -0.020614081993699074, -0.05052941292524338, 0.001885856268927455, -0.05695170536637306, 0.022478021681308746, 0.07876535505056381, -0.009596528485417366, -0.00031805800972506404, 0.010749957524240017, -0.02391750179231167, -0.034344498068094254, -0.023696042597293854, -0.07234305888414383, -0.014025695621967316, -0.04569423943758011, 0.004046228714287281, -0.030026061460375786, 0.014523976482450962, -0.023419220000505447, -0.07267525047063828, 0.013933421112596989, -0.08031556010246277, 0.04875774681568146, 0.01917460188269615, -0.04650625213980675, 0.007930977270007133, 0.053482189774513245, 0.04410712048411369, -0.015345217660069466, -0.015594358555972576, 0.008821424096822739, 0.04654316231608391, 0.01602804847061634, -0.0007249300833791494, 0.04458694905042648, 0.005748689640313387, -0.013905738480389118, 0.06462892889976501, 0.010113264434039593, 0.006205447483807802, -0.01954369992017746, -0.005411888472735882, -0.0944150760769844, 0.014154879376292229, 0.045509692281484604, 0.011691154912114143, -0.0021373038180172443, 0.0506032332777977, 0.03678053990006447, -0.06429673731327057, -0.022847119718790054, 0.020171163603663445, 0.01637868955731392, 0.04133889079093933, -0.06732333451509476, 0.004542203154414892, -0.00021309599105734378, 0.021130817010998726, -0.0173383429646492, 0.03692818060517311, 0.01508685015141964, -0.05540149658918381, -0.005167361348867416, 0.021056998521089554, -0.030339794233441353, 0.06891045719385147, -0.0523010790348053, -0.04672771319746971, 0.04927448183298111, 0.04351656511425972, -0.031760819256305695, -0.013139861635863781, -0.01991279609501362, 0.007875612936913967, -0.004143116530030966, 0.01780894212424755, -0.00907056499272585, 0.05990448221564293, -0.00765415420755744, -0.03231446444988251, -0.052559446543455124, -0.028235940262675285, 0.03893975913524628, -0.07728896290063858, -0.060162849724292755, 0.00026125164004042745, -0.0106484554708004, 0.02803293615579605, 0.09862278401851654, 0.020226528868079185, -0.05543840676546097, -0.03344020992517471, 0.010565408505499363, -0.06123323366045952, 0.014957665465772152, -0.012779992073774338, 0.043368928134441376, 0.04632170498371124, 0.05030795559287071, -0.08253014087677002, 0.02663036622107029, 0.04528823122382164, -0.06544094532728195, 0.0060393535532057285, 0.09493181109428406, 0.014247153885662556, 0.02216428890824318, -0.026501182466745377, 0.032185278832912445, -0.02170291729271412, -0.030727345496416092, -0.06496111303567886, -0.034344498068094254, 0.013084497302770615, 0.016987700015306473, 0.017449071630835533, -0.024969428777694702, 0.01826108619570732, -0.035728614777326584, -0.029084863141179085, 0.006343858782202005, 0.04838864877820015, -0.009901033714413643, -0.043774932622909546, -0.036263804882764816, 0.01601882092654705, -0.0059240106493234634, -0.01735679805278778, -0.049053024500608444, -0.026833370327949524, 0.005462639033794403, 0.06101177632808685, -0.024950973689556122, 0.004496065899729729, 0.04137580096721649, 0.003573322668671608, 0.002800525398924947, 0.06503493338823318, -0.030339794233441353, -0.008180118165910244, 0.014164106920361519, 0.002068097935989499, -0.05200580134987831, -0.061934519559144974, -0.010814549401402473, -0.03860757127404213, 0.05990448221564293, -0.033144932240247726, 0.03853375092148781, 0.0005219265585765243, -0.06355854868888855, -0.0400470495223999, 0.03831229358911514, -0.011977205984294415, 0.035783976316452026, 0.01223557349294424, -0.008927539922297001, -0.04432857781648636, 0.004927448462694883, -0.00017733969434630126, -0.06477656960487366, 0.0024867926258593798, 0.029952241107821465, 0.030062971636652946, -0.01915614679455757, 0.036226894706487656, 0.04181871935725212, 0.03452904894948006, 0.034492138773202896, 0.005158133804798126, -0.02882649563252926, -0.006911345757544041, 0.08016791939735413, -0.0019700564444065094, -0.011921840719878674, -0.017615165561437607, -0.02838357910513878, 0.005868646316230297, -0.035230331122875214, 0.005716393701732159, 0.005167361348867416, 0.007515742909163237, 0.011755747720599174, 0.01958060823380947, -0.009176679886877537, 0.0060347397811710835, -0.014542431570589542, 0.03380930796265602, 0.041117433458566666, -0.0035756295546889305, -0.0913146585226059, -0.0069759381003677845, -0.0003861103323288262, 0.026279723271727562, 0.017541347071528435, -0.018030401319265366, 0.014542431570589542, -0.04886847361922264, 0.016314098611474037, -0.03735264018177986, 0.03141017630696297 ]
20,559
pyratings.consolidate
get_worst_ratings
Compute the worst rating on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_innput` will be inferred from the dataframe column names. rating_provider_output Indicates which rating scale will be used for output results. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Worst ratings on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_worst_ratings(ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"]) 0 AA- 1 AA- 2 AA- 3 B+ 4 C Name: worst_rtg, dtype: object
def get_worst_ratings( ratings: pd.DataFrame, rating_provider_input: list[str] = None, rating_provider_output: Literal[ "Fitch", "Moody", "S&P", "Bloomberg", "DBRS" ] = "S&P", tenor: Literal["long-term", "short-term"] = "long-term", ) -> pd.Series: """Compute the worst rating on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_innput` will be inferred from the dataframe column names. rating_provider_output Indicates which rating scale will be used for output results. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Worst ratings on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_worst_ratings(ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"]) 0 AA- 1 AA- 2 AA- 3 B+ 4 C Name: worst_rtg, dtype: object """ ratings_series = consolidate_ratings( method="worst", ratings=ratings, rating_provider_input=rating_provider_input, rating_provider_output=rating_provider_output, tenor=tenor, ) return ratings_series
(ratings: pandas.core.frame.DataFrame, rating_provider_input: Optional[list[str]] = None, rating_provider_output: Literal['Fitch', 'Moody', 'S&P', 'Bloomberg', 'DBRS'] = 'S&P', tenor: Literal['long-term', 'short-term'] = 'long-term') -> pandas.core.series.Series
[ 0.005692027974873781, -0.04942437633872032, 0.03385308012366295, 0.013309438712894917, 0.012290667742490768, -0.06464049965143204, -0.02704881690442562, 0.03847025707364082, 0.060864511877298355, -0.0007272757356986403, -0.005491077899932861, 0.07948277145624161, -0.01741255819797516, 0.013421596959233284, 0.02246902324259281, 0.04392862319946289, -0.018982773646712303, -0.005949057172983885, 0.07316452264785767, -0.009907307103276253, -0.04228363558650017, 0.01064568106085062, 0.01225328166037798, -0.021440906450152397, -0.005332187283784151, 0.05720067769289017, -0.010234435088932514, 0.0013143537798896432, -0.08681043982505798, 0.03172207251191139, 0.03824594244360924, -0.031927697360515594, -0.037591684609651566, 0.0072669158689677715, -0.008645527064800262, -0.028544258326292038, 0.002064411761239171, 0.04781677573919296, -0.003063320415094495, -0.02102966047823429, -0.0373486764729023, -0.03970399871468544, 0.02013239450752735, -0.04643348976969719, -0.054471492767333984, 0.05159276723861694, 0.020095009356737137, 0.021216589957475662, -0.013225319795310497, -0.03626447916030884, 0.010047504678368568, 0.014337555505335331, -0.019795920699834824, 0.024394406005740166, 0.0176836084574461, 0.025833768770098686, 0.005654641892760992, 0.05185446888208389, 0.06052803620696068, -0.0677061602473259, 0.007986597716808319, 0.007023906335234642, -0.00021321738313417882, 0.03546068072319031, 0.030918274074792862, 0.01441232766956091, 0.004495674278587103, -0.01186072826385498, -0.03575976938009262, 0.027646994218230247, 0.0271235890686512, 0.002007164293900132, -0.031759459525346756, 0.014346901327371597, -0.041274212300777435, 0.006879035383462906, 0.02811431884765625, -0.013645912520587444, -0.01145882811397314, -0.013776764273643494, 0.07525814324617386, 0.015384364873170853, 0.032301560044288635, -0.06303290277719498, 0.026824500411748886, -0.04493804648518562, 0.03235763683915138, -0.004551752936094999, -0.007178124040365219, 0.005037772003561258, -0.0702110230922699, -0.0014919375535100698, 0.03572238236665726, -0.01778641901910305, -0.034731652587652206, 0.0373486764729023, -0.049611303955316544, -0.018001388758420944, 0.03718043863773346, -0.005921017844229937, 0.028002161532640457, 0.032301560044288635, -0.008131468668580055, 0.034712959080934525, 0.0176836084574461, 0.012458905577659607, -0.002930132672190666, 0.027890002354979515, -0.07346361130475998, -0.010608294978737831, -0.03295581415295601, -0.037965547293424606, -0.0006040185689926147, -0.027254439890384674, 0.010234435088932514, 0.014421673491597176, -0.041274212300777435, 0.009767108596861362, 0.04071342200040817, -0.018468715250492096, -0.010552216321229935, 0.018982773646712303, -0.019739842042326927, -0.028095625340938568, -0.019739842042326927, 0.006280858535319567, 0.0005917513044551015, -0.021983005106449127, -0.02740398421883583, 0.08299706131219864, -0.008281012997031212, 0.02603939361870289, -0.047667231410741806, 0.050882432609796524, 0.006799590308219194, 0.021627837792038918, -0.0368252731859684, -0.018618259578943253, 0.03271280601620674, -0.04430248588323593, 0.04321828857064247, -0.006967827677726746, 0.03394654393196106, 0.004724663682281971, 0.029946235939860344, -0.00794921163469553, 0.039105821400880814, 0.05417240411043167, 0.062472112476825714, -0.003063320415094495, 0.004009655211120844, 0.015571295283734798, -0.0007588202715851367, -0.030320096760988235, 0.02669364959001541, 0.00029908851138316095, 0.012599103152751923, -0.030600491911172867, -0.022039083763957024, -0.027964774519205093, 0.01940336637198925, -0.07387486100196838, -0.00023118022363632917, -0.030507028102874756, -0.017048044130206108, -0.016748955473303795, 0.05899520590901375, 0.012384133413434029, 0.03370353579521179, 0.011477521620690823, 0.029142435640096664, 0.000028386390113155358, -0.0557052344083786, -0.04318090155720711, -0.02344106137752533, 0.03370353579521179, -0.012486944906413555, -0.04220886528491974, -0.01441232766956091, 0.020805343985557556, 0.029572375118732452, -0.06856603920459747, -0.028974197804927826, -0.051779698580503464, -0.00789780542254448, -0.028151705861091614, 0.0023237774148583412, 0.0026590838097035885, -0.024824345484375954, 0.03467557206749916, -0.028805961832404137, -0.032189399003982544, -0.03783469647169113, -0.014206703752279282, 0.011972886510193348, -0.031385600566864014, -0.017010658979415894, 0.05297604948282242, -0.016477907076478004, -0.012533677741885185, -0.014748801477253437, 0.0721924901008606, -0.012954270467162132, -0.010673721320927143, 0.0013645912986248732, 0.009869921021163464, -0.04920005798339844, -0.050695501267910004, -0.06153745949268341, -0.0666593536734581, 0.014851613901555538, 0.01672091707587242, -0.0011017204960808158, -0.042171478271484375, 0.00911285262554884, 0.03162860870361328, 0.08725906908512115, 0.026917966082692146, -0.047742001712322235, -0.0028810633812099695, -0.031217362731695175, -0.05432194843888283, 0.008846476674079895, 0.02766568586230278, 0.048900969326496124, -0.009407267905771732, -0.016861114650964737, -0.0017723330529406667, 0.0285816453397274, -0.041648074984550476, -0.05398547649383545, -0.036245789378881454, 0.06594901531934738, -0.003439517691731453, -0.03080611489713192, -0.02344106137752533, 0.00714541133493185, -0.04968607798218727, -0.029983622953295708, -0.018450021743774414, -0.013103814795613289, 0.01616947166621685, -0.028245169669389725, -0.018711725249886513, -0.04591008648276329, -0.042769655585289, -0.0018295804038643837, 0.02497388981282711, 0.0001442868378944695, -0.008869843557476997, 0.037311289459466934, -0.04097512364387512, 0.012159816920757294, -0.022207321599125862, 0.01706673763692379, -0.034993354231119156, -0.06703320890665054, 0.015842344611883163, 0.02336628921329975, -0.030245324596762657, 0.017543410882353783, 0.024020545184612274, -0.03170338273048401, -0.037965547293424606, -0.03203985467553139, -0.031479064375162125, -0.03275018930435181, -0.008379151113331318, -0.0016788678476586938, -0.010954116471111774, -0.02559076063334942, 0.016188165172934532, -0.04691950976848602, -0.009907307103276253, -0.041648074984550476, 0.006991193629801273, 0.029161129146814346, -0.026263708248734474, 0.05334991216659546, -0.029703227803111076, -0.010972809046506882, -0.03989093005657196, -0.03620840236544609, 0.0781368687748909, 0.0905490443110466, 0.028637723997235298, 0.026917966082692146, -0.09623172879219055, 0.0199267715215683, 0.031123897060751915, 0.0049676732160151005, -0.03385308012366295, -0.0006560085457749665, 0.03415216878056526, -0.03168468922376633, -0.011617719195783138, 0.03170338273048401, -0.09391379356384277, 0.07151953876018524, -0.02660018391907215, -0.059593383222818375, 0.004103120416402817, 0.09368947148323059, 0.018375249579548836, 0.0030469640623778105, -0.04419032484292984, 0.012075698003172874, -0.09810102730989456, -0.04157330095767975, 0.047928933054208755, 0.028637723997235298, 0.02370276302099228, -0.024001851677894592, -0.020824037492275238, -0.023964466527104378, -0.009145565330982208, 0.008066043257713318, 0.013888922519981861, 0.026656262576580048, 0.02523559331893921, 0.020599720999598503, -0.037759922444820404, -0.011318630538880825, -0.0142908226698637, -0.0034371812362223864, -0.06303290277719498, -0.0945119634270668, 0.03940491005778313, 0.008042676374316216, -0.04770461469888687, -0.01509462296962738, -0.08075389266014099, 0.023646684363484383, -0.0028950832784175873, -0.016384441405534744, 0.048564497381448746, -0.00572941405698657, -0.0333857536315918, 0.028245169669389725, 0.003640467766672373, -0.011028888635337353, -0.008145488798618317, -0.011879421770572662, 0.05084504559636116, 0.010468097403645515, 0.004841495305299759, 0.032656725496053696, -0.009692336432635784, -0.02022586017847061, -0.04538667947053909, 0.014870306476950645, 0.04168545827269554, -0.01966506987810135, 0.014094545505940914, -0.0075893709436059, 0.06819217652082443, -0.02119789831340313, 0.04478850215673447, -0.007921172305941582, 0.018898654729127884, 0.010346593335270882, -0.04090035334229469, 0.030581800267100334, 0.004745693411678076, -0.05548091605305672, 0.04497543349862099, 0.055817391723394394, -0.00017393281450495124, 0.0108232656493783, -0.053125593811273575, -0.02641325257718563, -0.012477598153054714, 0.05361161381006241, 0.02901158481836319, 0.000020701072571682744, 0.07462257891893387, -0.02325413189828396, -0.025833768770098686, 0.027553528547286987, -0.011421442031860352, -0.021067045629024506, 0.02370276302099228, 0.005519117694348097, 0.00018050459038931876, 0.015029197558760643, 0.0366196483373642, -0.05020948126912117, -0.033535297960042953, -0.018431328237056732, -0.03424563258886337, -0.07671619951725006, -0.004684940911829472, -0.01387022901326418, 0.024282248690724373, -0.04362953454256058, 0.017281707376241684, -0.022338172420859337, 0.0026076778303831816, -0.014795534312725067, 0.0042082685977220535, 0.035890620201826096, -0.03207724168896675, 0.01589842326939106, -0.03888150677084923, -0.036787886172533035, -0.013337478041648865, 0.037591684609651566, 0.06557515263557434, -0.031852927058935165, 0.006425729487091303, -0.02658149041235447, 0.002039876999333501, -0.057350222021341324, -0.01680503599345684, -0.008636180311441422, 0.0175247173756361, 0.027796538546681404, 0.0641544833779335, 0.01660875789821148, 0.009832534939050674, 0.028151705861091614, -0.051144134253263474, 0.03648879751563072, 0.03460080176591873, 0.010112930089235306, -0.05731283500790596, 0.02020716667175293, -0.06101405620574951, -0.007416460197418928, -0.008145488798618317, 0.0040774173103272915, -0.002308589406311512, -0.05271434783935547, -0.008486635982990265, 0.03243241086602211, -0.029927542433142662, 0.017805112525820732, 0.028058240190148354, -0.06748184561729431, -0.0010923739755526185, 0.03895627707242966, 0.023833615705370903, -0.006075235083699226, 0.05361161381006241, 0.0033787654247134924, -0.022412944585084915, -0.010066197253763676, 0.024226168170571327, -0.03888150677084923, -0.037965547293424606, 0.027011429890990257, -0.06359369307756424, 0.041648074984550476, 0.06699582189321518, -0.04187238961458206, 0.054658424109220505, 0.06669673323631287, -0.014917039312422276, -0.018253745511174202, 0.01343094278126955, -0.01716955006122589, -0.006322917994111776, 0.06905205547809601, 0.02398316003382206, -0.03564761206507683, 0.04490066319704056, 0.00633226428180933, -0.12352354824542999, 0.011346669867634773, 0.031479064375162125, 0.05738760530948639, 0.0009831365896388888, 0.008883862756192684, -0.0037923487834632397, 0.04097512364387512, 0.02245033159852028, -0.021852154284715652, -0.027871310710906982, 0.01753406412899494, 0.007930518127977848, -0.018188320100307465, 0.021758688613772392, -0.02282419055700302, -0.0073837474919855595, 0.009276417084038258, -0.05787362530827522, -0.06150007247924805, -0.016515294089913368, 0.050695501267910004, 0.000024881446734070778, -0.0015632048016414046, 0.0382833294570446, 0.03017055243253708, 0.04508759081363678, -0.06198609247803688, 0.033553991466760635, 0.05039641261100769, -0.03136690706014633, 0.03835809975862503, -0.010150316171348095, 0.029310673475265503, 0.025740304961800575, -0.08120252937078476, -0.11200864613056183, 0.051704924553632736, -0.03719913214445114, -0.01113170012831688, -0.01122516579926014, 0.0009107011137530208, 0.0059724235907197, -0.02802085503935814, 0.0057901665568351746, 0.056004323065280914, -0.004236308392137289, -0.041648074984550476, 0.007659469731152058, 0.04295658692717552, 0.040190018713474274, 0.05271434783935547, 0.008491309359669685, 0.03658226132392883, -0.004948980174958706, -0.008860496804118156, 0.031310826539993286, 0.059967245906591415, -0.006192066706717014, 0.06329460442066193, 0.04654564708471298, -0.00020372483413666487, 0.0053134942427277565, -0.08269797265529633, 0.03744214028120041, -0.03241371735930443, -0.006888382136821747, -0.03241371735930443, 0.026431946083903313, -0.008953962475061417, 0.04654564708471298, 0.016206858679652214, 0.026188937947154045, -0.011337323114275932, 0.0016496600583195686, 0.07649188488721848, -0.01503854338079691, 0.038844119757413864, -0.05637818202376366, -0.02740398421883583, -0.010047504678368568, 0.0006127809174358845, -0.04086296632885933, 0.03762907162308693, 0.00248149991966784, 0.09174539893865585, 0.029796691611409187, 0.036414023488759995, -0.026020700111985207, 0.028432101011276245, 0.061200983822345734, -0.019160356372594833, 0.04045172035694122, -0.027553528547286987, -0.029329366981983185, 0.09331561625003815, -0.034096088260412216, 0.034002624452114105, 0.04942437633872032, 0.009682990610599518, 0.03248848766088486, -0.04770461469888687, 0.018833229318261147, -0.0028016180731356144, 0.049536533653736115, 0.04826540872454643, -0.020711878314614296, -0.03351660445332527, 0.019721148535609245, 0.005575196817517281, 0.01307577546685934, 0.003874130779877305, -0.014019773341715336, 0.00022913567954674363, 0.006472462322562933, 0.015010504052042961, -0.05334991216659546, 0.005149930249899626, 0.018758457154035568, -0.06224779412150383, 0.016047967597842216, -0.0631076768040657, 0.06800524890422821, 0.02596462145447731, -0.0075893709436059, -0.00003059523442061618, -0.008435230702161789, 0.041722845286130905, 0.06351891905069351, -0.04452680051326752, -0.0007745925104245543, 0.07686574757099152, 0.03235763683915138, -0.026394560933113098, 0.04759245738387108, -0.007369727827608585, -0.046209175139665604, 0.10625118762254715, -0.024936504662036896, -0.0036264481022953987, 0.001392630860209465, -0.0422462522983551, -0.002078431425616145, 0.004369495902210474, 0.09196971356868744, -0.008589448407292366, -0.003383438801392913, 0.08785724639892578, 0.005935037508606911, -0.009182951413094997, -0.02345975488424301, 0.008575428277254105, -0.07608063519001007, 0.03996570035815239, 0.10759709030389786, 0.034077394753694534, 0.028675111010670662, -0.0016625114949420094, -0.0034301711712032557, -0.040302176028490067, 0.029628455638885498, -0.003455874277278781, -0.012159816920757294, -0.003635794622823596, -0.06052803620696068, 0.06923899054527283, -0.003937219735234976, -0.04564838111400604, 0.030058395117521286, 0.08516544848680496, -0.007673489395529032, -0.023328904062509537, 0.0013762743910774589, -0.02792738936841488, 0.0056359488517045975, 0.0370308943092823, 0.014384287409484386, -0.005056465044617653, 0.0013984724646434188, -0.012440212070941925, 0.06273381412029266, -0.05895782262086868, 0.029516296461224556, -0.02443179115653038, -0.02983407862484455, 0.04116205498576164, -0.0582101009786129, 0.03951706737279892, 0.01859021931886673, 0.03456341475248337, -0.00577147351577878, 0.0024861732963472605, -0.00774826155975461, -0.0074071139097213745, -0.023665377870202065, 0.02067449316382408, 0.0740617886185646, -0.0029371425043791533, 0.007308975327759981, -0.03465687856078148, 0.02263726107776165, 0.02020716667175293, 0.0008826615521684289, 0.059256911277770996, 0.00830905232578516, 0.018188320100307465, -0.0008032161858864129, -0.02003892883658409, -0.06464049965143204, -0.03718043863773346, 0.04538667947053909, -0.04104989767074585, -0.02873118966817856, 0.03665703535079956, 0.003932546358555555, 0.0027875984087586403, -0.0053041474893689156, 0.059967245906591415, -0.018487408757209778, -0.0388067327439785, 0.024768266826868057, -0.029310673475265503, -0.06000462919473648, 0.00480410922318697, -0.07503382861614227, 0.010888691060245037, -0.06736968457698822, -0.021758688613772392, 0.0026053411420434713, -0.028002161532640457, 0.03026401810348034, 0.06015417352318764, 0.0181509330868721, -0.026431946083903313, 0.08643657714128494, -0.009991425089538097, 0.00098722567781806, 0.025983313098549843, 0.01436559483408928, -0.0025796382687985897, -0.002251341938972473, 0.075108602643013, -0.10161531716585159, -0.024039238691329956, -0.01644052192568779, 0.018122894689440727, 0.02837602235376835, -0.03437648341059685, -0.01778641901910305, 0.0021683915983885527, 0.010159662924706936, 0.014851613901555538, -0.02460002899169922, -0.0015024524182081223, -0.01029051374644041, 0.03645141050219536, 0.006893055513501167, -0.0567520447075367, 0.005308820866048336, 0.004491000901907682, -0.01788923144340515, 0.06901466846466064, -0.019833305850625038, -0.024824345484375954, -0.010365285910665989, 0.016019927337765694, -0.009739069268107414, 0.025646839290857315, -0.0027665686793625355, -0.003881140612065792, -0.03000231459736824, 0.03869457542896271, -0.008215587586164474, -0.0373486764729023, 0.02603939361870289, -0.06385539472103119, -0.05761192366480827, 0.024207476526498795, 0.06333199143409729, -0.033815693110227585, -0.0236279908567667, 0.0053368606604635715, -0.0009083644836209714, 0.012982310727238655, -0.06407970935106277, -0.0021905896719545126, 0.001847105217166245, 0.020506255328655243, 0.06404232233762741, 0.01513200905174017, -0.015225473791360855, -0.04602224379777908, -0.014150625094771385, 0.03316143900156021, 0.04179761931300163, 0.04609701409935951, -0.032189399003982544, -0.015103969722986221, 0.04426509886980057, -0.05301343649625778, -0.011169086210429668 ]
20,560
pyratings.consolidate
get_worst_scores
Compute the worst scores on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_innput` will be inferred from the dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Worst scores on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_worst_scores(ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"]) 0 4 1 4 2 4 3 14 4 21 Name: worst_scores, dtype: int64
def get_worst_scores( ratings: pd.DataFrame, rating_provider_input: list[str] = None, tenor: Literal["long-term", "short-term"] = "long-term", ) -> pd.Series: """Compute the worst scores on a security level basis across rating agencies. Parameters ---------- ratings Dataframe consisting of clean ratings (i.e. stripped off of watches/outlooks) rating_provider_input Indicates rating providers within `ratings`. Should contain any valid rating provider out of {"Fitch", "Moody's", "S&P", "Bloomberg", "DBRS"}. If None, `rating_provider_innput` will be inferred from the dataframe column names. tenor Should contain any valid tenor out of {"long-term", "short-term"} Returns ------- pd.Series Worst scores on a security level basis. Examples -------- >>> import pandas as pd >>> ratings_df = pd.DataFrame( ... data=( ... { ... "rating_S&P": ['AAA', 'AA-', 'AA+', 'BB-', 'C'], ... "rating_Moody's": ['Aa1', 'Aa3', 'Aa2', 'Ba3', 'Ca'], ... "rating_Fitch": ['AA-', 'AA-', 'AA-', 'B+', 'C'], ... } ... ) ... ) >>> get_worst_scores(ratings_df, rating_provider_input=["S&P", "Moody", "Fitch"]) 0 4 1 4 2 4 3 14 4 21 Name: worst_scores, dtype: int64 """ rating_scores_df = get_scores_from_ratings( ratings=ratings, rating_provider=rating_provider_input, tenor=tenor ) rating_scores_series = rating_scores_df.max(axis=1) rating_scores_series.name = "worst_scores" return rating_scores_series
(ratings: pandas.core.frame.DataFrame, rating_provider_input: Optional[list[str]] = None, tenor: Literal['long-term', 'short-term'] = 'long-term') -> pandas.core.series.Series
[ 0.008116387762129307, -0.01245575025677681, 0.011584128253161907, 0.027160845696926117, 0.031734514981508255, -0.043749768286943436, -0.024836521595716476, 0.037695277482271194, 0.054771557450294495, 0.019925450906157494, -0.015342409722507, 0.06365647166967392, -0.029353957623243332, -0.00888022780418396, 0.02095640078186989, 0.046486470848321915, -0.010328244417905807, -0.007375978399068117, 0.06155708432197571, 0.004768143408000469, -0.04180033504962921, 0.0005623363540507853, 0.01396468561142683, -0.0276482030749321, -0.00795237347483635, 0.057808175683021545, -0.0038496607448905706, 0.007024518214166164, -0.0899738147854805, 0.027760671451687813, 0.014255226589739323, -0.040938086807727814, -0.04502439498901367, 0.01280252356082201, -0.01327113714069128, -0.021856138482689857, -0.004976676777005196, 0.04041323810815811, -0.0030670762062072754, -0.027610713616013527, -0.04911070689558983, -0.026617253199219704, 0.01983172819018364, -0.04206275939941406, -0.05353441834449768, 0.03503355383872986, 0.04629902541637421, -0.014714467339217663, 0.007333802990615368, -0.04153791069984436, 0.016335871070623398, 0.0022434876300394535, -0.011949647217988968, 0.007657146546989679, -0.009508170187473297, 0.04292500764131546, 0.005229727830737829, 0.04978550970554352, 0.037264153361320496, -0.07254138588905334, 0.017132513225078583, -0.0034161931835114956, -0.023037046194076538, 0.027142100036144257, 0.04127548635005951, 0.013374232687056065, 0.019700516015291214, -0.00828508846461773, -0.03529597818851471, 0.002344239503145218, 0.00911922100931406, -0.01143417228013277, -0.02656101994216442, -0.003402134869247675, -0.047423698008060455, 0.009020811878144741, 0.011049908585846424, -0.016485827043652534, -0.01891324482858181, 0.002469593659043312, 0.0766277015209198, -0.00484546460211277, 0.047686122357845306, -0.043487343937158585, 0.030159972608089447, -0.05499649420380592, 0.048585858196020126, 0.010103309527039528, -0.008303833194077015, 0.004119113553315401, -0.06133215129375458, 0.01038447767496109, 0.029391445219516754, -0.02262466587126255, -0.05792064219713211, 0.027085866779088974, -0.03690800815820694, -0.006185699719935656, 0.03690800815820694, -0.0034630545414984226, 0.03533346578478813, 0.052259791642427444, 0.004322960507124662, 0.05649605765938759, 0.0065324739553034306, 0.047836076468229294, -0.0032873244490474463, 0.016082819551229477, -0.05405926704406738, 0.015183080919086933, -0.03913860768079758, -0.01964428275823593, -0.002715615788474679, -0.012999341823160648, -0.021931117400527, 0.01349607203155756, -0.028304262086749077, 0.025998683646321297, 0.04262509569525719, -0.013008713722229004, -0.0019763780292123556, 0.037264153361320496, -0.025473836809396744, -0.026898421347141266, -0.025661282241344452, -0.003882463788613677, -0.0004949731519445777, -0.02403050661087036, -0.03600826859474182, 0.07152917981147766, 0.014517650008201599, 0.011424800381064415, -0.0322406180202961, 0.057808175683021545, 0.029578890651464462, 0.013889707624912262, -0.013936568982899189, -0.012765035033226013, 0.02148124761879444, -0.06478114426136017, 0.043712276965379715, 0.00980339664965868, 0.007858650758862495, -0.011331077665090561, -0.0005632149986922741, -0.014489533379673958, 0.026617253199219704, 0.05885786935687065, 0.055221427232027054, -0.010721879079937935, -0.008406927809119225, 0.013346116058528423, 0.004803289659321308, -0.020394064486026764, 0.04011332616209984, -0.004934501368552446, 0.03072230890393257, -0.04937313124537468, -0.004332332871854305, -0.01964428275823593, 0.021987350657582283, -0.05417173355817795, -0.0000736602014512755, -0.06643066555261612, -0.024536609649658203, -0.01635461486876011, 0.03508978709578514, 0.011809063144028187, 0.009672185406088829, 0.02030034177005291, 0.027760671451687813, 0.0028233970515429974, -0.04618655890226364, -0.0433373861014843, -0.024836521595716476, 0.012840013019740582, -0.021856138482689857, -0.03340277820825577, -0.011387310922145844, 0.02256843075156212, 0.02538011409342289, -0.07745245844125748, -0.019213158637285233, -0.05672099068760872, 0.002668754430487752, -0.00687456177547574, -0.008547511883080006, 0.0025844040792435408, -0.048135992139577866, 0.03299039974808693, -0.031228411942720413, -0.04404968023300171, -0.03872622922062874, -0.01593286357820034, 0.008088271133601665, -0.026167383417487144, -0.009840886108577251, 0.054134245961904526, -0.028754131868481636, -0.009391017258167267, -0.0018861697753891349, 0.08757451176643372, -0.009747163392603397, -0.009822141379117966, -0.003280295291915536, 0.025792492553591728, -0.055521342903375626, -0.04202526807785034, -0.0591202937066555, -0.07224147766828537, 0.0019412318943068385, 0.00656527653336525, -0.007521248422563076, -0.03707670792937279, 0.01849149353802204, 0.03042239509522915, 0.07344112545251846, 0.005051654763519764, -0.019719261676073074, -0.007938314229249954, -0.006602765992283821, -0.05334697291254997, -0.0030741053633391857, 0.01658892259001732, 0.056608524173498154, -0.006958912126719952, -0.011884041130542755, -0.0002848292060662061, 0.0336277112364769, -0.02956014685332775, -0.0535719096660614, -0.045549243688583374, 0.038688741624355316, -0.015979724004864693, -0.026486041024327278, -0.009147337637841702, 0.018107229843735695, -0.038163892924785614, -0.03089100867509842, -0.016242148354649544, -0.006593393627554178, 0.02421795204281807, -0.023168256506323814, -0.011340449564158916, -0.06388140469789505, -0.037264153361320496, -0.003465397749096155, 0.01842588745057583, -0.006837072782218456, -0.006607451941817999, 0.04157539829611778, -0.042587604373693466, 0.034714896231889725, -0.002354783471673727, 0.030178716406226158, -0.03338403254747391, -0.06800520420074463, 0.02095640078186989, 0.02672971971333027, -0.03625195100903511, -0.0013601509854197502, 0.024142973124980927, -0.024536609649658203, -0.03823887184262276, -0.022737132385373116, -0.025755004957318306, -0.03921358659863472, -0.008936461992561817, 0.014245853759348392, -0.00991586409509182, -0.012315166182816029, 0.004627559334039688, -0.03790146857500076, -0.01545487716794014, -0.028697898611426353, -0.0069682844914495945, 0.018641449511051178, -0.01512684766203165, 0.052222300320863724, -0.0024742798414081335, -0.017891667783260345, -0.04037575051188469, -0.04401218891143799, 0.06571837514638901, 0.09709674119949341, 0.04135046526789665, 0.027179589495062828, -0.09919612854719162, 0.028435474261641502, 0.023393191397190094, 0.005000107455998659, -0.014395810663700104, -0.0037043907213956118, 0.029653869569301605, -0.028716642409563065, -0.017694849520921707, 0.02215605229139328, -0.074715755879879, 0.07062944769859314, -0.014920657500624657, -0.03387139365077019, -0.004920443054288626, 0.07359108328819275, 0.006897992454469204, -0.009273863397538662, -0.02766694873571396, 0.002375870943069458, -0.07197905331850052, -0.03604575991630554, 0.053197018802165985, 0.042550116777420044, 0.03613948076963425, -0.02080644480884075, -0.027085866779088974, -0.03895116224884987, 0.004643960855901241, 0.005323450546711683, -0.020581509917974472, 0.006002940237522125, 0.019250648096203804, 0.02511768974363804, -0.03089100867509842, -0.003917609807103872, -0.0292977225035429, 0.011359194293618202, -0.06016998738050461, -0.10774364322423935, 0.029635125771164894, 0.01027201022952795, -0.045549243688583374, -0.009062987752258778, -0.08247599750757217, 0.03141585737466812, -0.01244637742638588, 0.006265364121645689, 0.056608524173498154, -0.0047892313450574875, 0.011949647217988968, 0.015248687006533146, 0.008922403678297997, -0.023187002167105675, -0.038182638585567474, -0.005309392232447863, 0.05195987597107887, -0.007085437886416912, -0.004967304412275553, 0.04461201652884483, -0.0035075729247182608, -0.00842567253857851, -0.059157781302928925, -0.008898972533643246, 0.02211856283247471, -0.016898207366466522, 0.028060583397746086, -0.02031908556818962, 0.07302874326705933, -0.0014245853526517749, 0.034939829260110855, -0.00369267538189888, 0.004714252892881632, -0.0024649077095091343, -0.03269048407673836, 0.024555353447794914, 0.005342195276170969, -0.06583084166049957, 0.057133372873067856, 0.05334697291254997, -0.019250648096203804, 0.017872923985123634, -0.04862334951758385, -0.01870705559849739, -0.024817777797579765, 0.054359178990125656, 0.05117260664701462, -0.008472533896565437, 0.0741909071803093, -0.03638315945863724, -0.03351524472236633, 0.031996939331293106, -0.02354314737021923, -0.006448123138397932, 0.014105269685387611, 0.021162590011954308, -0.017469914630055428, 0.022755878046154976, 0.04779858887195587, -0.0783521980047226, -0.0405631959438324, -0.02078769914805889, -0.028323007747530937, -0.06024496629834175, 0.0007790701347403228, -0.015492365695536137, 0.014714467339217663, -0.03621445968747139, 0.03422753885388374, -0.01845400407910347, 0.0025094258598983288, 0.004158945754170418, -0.0026125209406018257, 0.02189362794160843, -0.03188446909189224, 0.01703879050910473, -0.03578333556652069, -0.023018300533294678, -0.019681772217154503, 0.04270007088780403, 0.051135119050741196, -0.028547940775752068, 0.009831513278186321, -0.014864424243569374, 0.0036270692944526672, -0.03570835664868355, -0.0035192882642149925, -0.015464249067008495, 0.02211856283247471, 0.04266258329153061, 0.05600870028138161, 0.0237493384629488, 0.002666411455720663, 0.019663026556372643, -0.05975760892033577, 0.011930902488529682, 0.04251262545585632, 0.015070613473653793, -0.04873581603169441, 0.0007767270435579121, -0.07040450721979141, -0.011424800381064415, -0.024817777797579765, -0.01002833154052496, -0.016092192381620407, -0.044686995446681976, -0.009840886108577251, 0.024311674758791924, -0.0274795014411211, -0.01682322844862938, 0.049935467541217804, -0.0665806233882904, -0.01778857223689556, 0.056458570063114166, 0.01255884487181902, 0.016504570841789246, 0.059457696974277496, -0.0013906109379604459, -0.02656101994216442, 0.00809295754879713, 0.03782648965716362, -0.054584112018346786, -0.04389972239732742, -0.010065820068120956, -0.07722752541303635, 0.05353441834449768, 0.0910235121846199, -0.028941577300429344, 0.059157781302928925, 0.039813414216041565, -0.022081073373556137, 0.004482289310544729, 0.011677850969135761, -0.00829446129500866, 0.001842822995968163, 0.07707756757736206, 0.007479073479771614, -0.05705839395523071, 0.053197018802165985, 0.006733977701514959, -0.12281425297260284, 0.019006967544555664, 0.020900167524814606, 0.0722789615392685, 0.010928069241344929, -0.00595139293000102, -0.025230156257748604, 0.034489963203668594, 0.03850129619240761, -0.0025375427212566137, -0.027816904708743095, 0.015576716512441635, 0.03188446909189224, -0.004735340364277363, 0.014049036428332329, -0.017919784411787987, -0.020000429823994637, 0.02030034177005291, -0.04285002872347832, -0.08914905041456223, -0.022999556735157967, 0.046036601066589355, 0.006354400422424078, 0.01255884487181902, 0.035164766013622284, 0.031940702348947525, 0.06343153864145279, -0.05908280611038208, 0.014883168041706085, 0.07494068890810013, -0.01545487716794014, 0.014011546969413757, 0.003146740375086665, 0.022662155330181122, 0.030122483149170876, -0.08817433565855026, -0.09109848737716675, 0.05934522673487663, -0.04150042310357094, -0.006077918689697981, 0.013917824253439903, 0.0031982879154384136, 0.004189405590295792, -0.024142973124980927, 0.01198713667690754, 0.04551175609230995, -0.004850151017308235, -0.04217522591352463, 0.00761497113853693, 0.04067566245794296, 0.0410880409181118, 0.06181950867176056, 0.032165639102458954, 0.04037575051188469, -0.0015921148005872965, -0.0025961194187402725, 0.030778542160987854, 0.05972011759877205, -0.003324813675135374, 0.036608096212148666, 0.045774176716804504, 0.015248687006533146, 0.033571477979421616, -0.057358305901288986, 0.029822571203112602, -0.027329545468091965, -0.01866956613957882, -0.021106356754899025, 0.04457452520728111, 0.010262638330459595, 0.022343497723340988, 0.0337214358150959, 0.03225935995578766, -0.015211197547614574, 0.0029686673078686, 0.07321619242429733, -0.0026804697699844837, 0.03801393508911133, -0.05510896071791649, -0.05375935509800911, -0.008908344432711601, 0.010525061748921871, -0.03490234166383743, 0.06781776249408722, 0.01985047198832035, 0.09987093508243561, 0.024874011054635048, 0.010881207883358002, 0.0020911882165819407, 0.005328136961907148, 0.046074092388153076, -0.01487379614263773, 0.02952265739440918, -0.009137965738773346, -0.03205317258834839, 0.09904617071151733, -0.004826720338314772, 0.01140605565160513, 0.041163019835948944, 0.001309775048866868, 0.015398642979562283, -0.04431210458278656, 0.022549686953425407, -0.0042198654264211655, 0.04341236501932144, 0.04731123149394989, -0.02073146589100361, -0.004934501368552446, 0.020693976432085037, -0.0003561463381629437, -0.005735830869525671, -0.0076477741822600365, -0.0104875722900033, 0.012858757749199867, 0.0034888284280896187, 0.010047076269984245, -0.06395638734102249, -0.018603960052132607, 0.03443372994661331, -0.07947687059640884, 0.00421049352735281, -0.058932848274707794, 0.05255970358848572, 0.025323878973722458, -0.0023782141506671906, -0.018641449511051178, -0.007282255683094263, 0.045586731284856796, 0.06253179907798767, -0.06946728378534317, 0.002230600919574499, 0.0679677203297615, 0.049972955137491226, -0.053197018802165985, 0.03812640532851219, -0.027835648506879807, -0.048548370599746704, 0.09739665687084198, -0.04989797621965408, 0.007324430625885725, 0.029260234907269478, -0.03432125970721245, -0.009775280021131039, 0.001403497764840722, 0.0585954450070858, -0.009301980026066303, 0.009184827096760273, 0.09357276558876038, 0.00969092920422554, -0.00537031190469861, -0.013589794747531414, 0.02448037452995777, -0.061931975185871124, 0.03690800815820694, 0.09432254731655121, 0.043449852615594864, 0.020675232633948326, 0.002928835107013583, -0.012024625204503536, -0.013908452354371548, 0.021331291645765305, -0.007418153341859579, -0.018969479948282242, 0.004402624908834696, -0.048585858196020126, 0.07767739146947861, -0.025530070066452026, -0.05698341503739357, 0.017657361924648285, 0.09762158989906311, -0.018069740384817123, -0.019063202664256096, -0.01570792868733406, -0.035014808177948, 0.0013402348849922419, 0.025248901918530464, -0.0009911177912726998, 0.0027203019708395004, -0.0026710976380854845, -0.01522994227707386, 0.0677802711725235, -0.03454619646072388, 0.03765778988599777, -0.017488660290837288, -0.04401218891143799, 0.021987350657582283, -0.05031035840511322, 0.03807016834616661, 0.009709673933684826, 0.032634250819683075, -0.008603746071457863, -0.005276589188724756, -0.0038613760843873024, 0.00056907266844064, -0.03810765966773033, 0.030759798362851143, 0.06598079949617386, -0.002216542372480035, 0.004006646573543549, -0.047198764979839325, 0.03257801756262779, 0.026635996997356415, 0.005820181220769882, 0.07677765190601349, 0.0014726183144375682, 0.006204444449394941, -0.005792064126580954, -0.017479287460446358, -0.036814287304878235, -0.038426317274570465, 0.031453344970941544, -0.04150042310357094, -0.03973843529820442, 0.022455964237451553, 0.01753552071750164, -0.004362792707979679, -0.010637529194355011, 0.05777068808674812, -0.020019173622131348, -0.027067122980952263, 0.0410880409181118, -0.027067122980952263, -0.07010459899902344, -0.003402134869247675, -0.08629988133907318, 0.017676105722784996, -0.059420205652713776, -0.04727374017238617, -0.0017947901505976915, -0.04498690739274025, 0.04007583484053612, 0.061931975185871124, 0.023618126288056374, -0.04363729804754257, 0.09979595243930817, -0.004311245400458574, 0.020900167524814606, 0.023580636829137802, 0.017694849520921707, 0.0038145147264003754, -0.0009969754610210657, 0.06395638734102249, -0.10871835798025131, -0.04086310788989067, -0.02558630332350731, 0.0170762799680233, 0.028248028829693794, -0.030047504231333733, 0.007572796195745468, 0.011462288908660412, 0.021968606859445572, 0.012437005527317524, -0.022512197494506836, 0.01730121485888958, 0.0033857333473861217, 0.056870948523283005, 0.010215776972472668, -0.028229285031557083, -0.014311459846794605, 0.014311459846794605, -0.020600253716111183, 0.0679677203297615, -0.01938185840845108, -0.025267645716667175, -0.028566686436533928, 0.010037703439593315, -0.04311245307326317, 0.005862356163561344, 0.012549472972750664, 0.017610499635338783, -0.04007583484053612, 0.04862334951758385, -0.006307539064437151, -0.03913860768079758, 0.024817777797579765, -0.061969462782144547, -0.05398428812623024, 0.03398386016488075, 0.05372186377644539, -0.046748895198106766, -0.037245411425828934, 0.002942893421277404, 0.013364859856665134, 0.023355701938271523, -0.06268175691366196, 0.019550560042262077, 0.005904531572014093, -0.010834346525371075, 0.06046989932656288, 0.023374447599053383, -0.03248429670929909, -0.03850129619240761, -0.010346988216042519, 0.04521184042096138, 0.025661282241344452, 0.025961194187402725, -0.04427461326122284, -0.020450297743082047, 0.02862291969358921, -0.05510896071791649, -0.036551862955093384 ]
20,564
tabledata.error
DataError
Exception raised when data is invalid as tabular data.
class DataError(ValueError): """ Exception raised when data is invalid as tabular data. """
null
[ 0.01895635388791561, 0.02330445684492588, 0.014204376377165318, -0.004988288041204214, -0.012064697220921516, -0.04767445847392082, -0.026655761525034904, 0.008146248757839203, 0.006870174780488014, -0.05238347128033638, 0.03249906376004219, 0.018131418153643608, 0.007115077693015337, -0.04368726536631584, -0.0231841541826725, 0.025487102568149567, -0.017358040437102318, 0.04526839405298233, 0.02208423987030983, 0.03160538151860237, -0.04592146724462509, 0.007067815866321325, -0.055133260786533356, -0.009976576082408428, 0.011334284208714962, 0.093561552464962, -0.024799654260277748, -0.016421392560005188, 0.06307327747344971, -0.010655430145561695, -0.057367462664842606, -0.0069303265772759914, -0.03339274600148201, 0.05709248408675194, -0.02082964777946472, -0.04949619248509407, -0.0013437443412840366, -0.06310764700174332, -0.035042617470026016, 0.052933428436517715, -0.08345608413219452, -0.014204376377165318, -0.03770647570490837, 0.012588875368237495, 0.03208659589290619, -0.035850368440151215, -0.022565452381968498, -0.01967817358672619, -0.10827292501926422, -0.04100622236728668, -0.02693074196577072, -0.009160232730209827, 0.02875247597694397, 0.008129062131047249, 0.013207578100264072, 0.07183822244405746, -0.00041381095070391893, 0.042931072413921356, -0.01642998680472374, -0.03086637519299984, -0.010260147973895073, 0.06046097353100777, -0.002633781870827079, -0.028202518820762634, -0.007050629705190659, -0.036056600511074066, 0.005649955943226814, -0.03318651020526886, -0.028168145567178726, 0.03127884492278099, -0.019025098532438278, 0.044512201100587845, -0.03208659589290619, 0.0785064622759819, 0.06338262557983398, -0.024266883730888367, -0.03346148878335953, -0.013430998660624027, -0.01960942894220352, 0.016421392560005188, 0.04258735105395317, -0.01964380219578743, 0.03791270777583122, 0.04258735105395317, 0.027033858001232147, -0.05324278026819229, 0.013998142443597317, 0.038531411439180374, -0.021379604935646057, 0.04502778872847557, -0.0410749651491642, -0.045887093991041183, -0.042724840342998505, 0.0017003575339913368, -0.018148604780435562, 0.04045626521110535, 0.003091363701969385, -0.03163975477218628, -0.04423722252249718, -0.0561300590634346, 0.07335060834884644, 0.04086873307824135, 0.04966805502772331, 0.014814485795795918, -0.004532854538410902, -0.0423123724758625, 0.02187800407409668, -0.01878449320793152, -0.004807833582162857, 0.004618785344064236, -0.04506215825676918, 0.04485592618584633, -0.041212454438209534, 0.013602860271930695, 0.005314825568348169, -0.025160564109683037, 0.008614571765065193, 0.01093900203704834, -0.07637537270784378, 0.012442792765796185, 0.045852724462747574, 0.0176845770329237, -0.030127370730042458, 0.03547227010130882, 0.04506215825676918, 0.009203198365867138, 0.02467935159802437, -0.01611204259097576, 0.05881110206246376, -0.0029109090100973845, 0.008911033160984516, -0.023527877405285835, 0.015605050139129162, 0.00046214708709158003, -0.010191403329372406, 0.029989881440997124, 0.09507393836975098, 0.011119456961750984, -0.018939169123768806, -0.039390720427036285, 0.0789189338684082, 0.04131557419896126, 0.0012599617475643754, -0.01683386228978634, 0.03591911122202873, 0.004429737571626902, -0.006217100191861391, 0.025555847212672234, 0.007669331971555948, 0.011566298082470894, -0.013508335687220097, -0.003959266003221273, 0.010595278814435005, -0.011016339994966984, 0.027910353615880013, -0.017177585512399673, -0.029543040320277214, -0.09624259918928146, 0.021328046917915344, -0.012348269112408161, -0.003022619057446718, -0.05819239839911461, 0.0024726614356040955, 0.015570677816867828, -0.014771520160138607, 0.07720031589269638, -0.024593420326709747, -0.06286703795194626, -0.019179774448275566, -0.018389210104942322, 0.0246106069535017, 0.00878643337637186, -0.008004462346434593, 0.04550899937748909, -0.01752990111708641, -0.006620975211262703, 0.00044120140955783427, 0.05747057870030403, 0.04042189195752144, 0.0016971350414678454, 0.024335628375411034, 0.01336225401610136, -0.0553051196038723, 0.05324278026819229, -0.01818297617137432, -0.005572618450969458, -0.034630149602890015, -0.031210100278258324, 0.02610580436885357, 0.003250336041674018, -0.02009064145386219, -0.056508153676986694, 0.005959307309240103, 0.025435544550418854, 0.018114231526851654, -0.05499577149748802, 0.020606227219104767, 0.03598785772919655, 0.04430596902966499, 0.02586519904434681, -0.028340008109807968, 0.020382806658744812, 0.052005376666784286, 0.002812088467180729, -0.01471996121108532, 0.011884242296218872, -0.009787528775632381, -0.05331152305006981, -0.0711507797241211, -0.00980471447110176, 0.0034823494497686625, -0.03866890072822571, -0.015682388097047806, 0.0862058699131012, 0.06410444527864456, 0.002863646950572729, 0.03591911122202873, -0.05393022671341896, 0.0043459548614919186, 0.013130240142345428, 0.12456542253494263, -0.03163975477218628, 0.03423486649990082, -0.010096879675984383, 0.051833514124155045, -0.03217252716422081, 0.008485675789415836, -0.01821734942495823, 0.009718784131109715, 0.015458967536687851, -0.023356016725301743, -0.005289046559482813, -0.035111360251903534, -0.008253661915659904, 0.04224362596869469, 0.02871810458600521, 0.029422737658023834, -0.045612115412950516, 0.03237875923514366, 0.0006933548720553517, -0.06657925248146057, -0.04038751870393753, -0.024266883730888367, -0.021826446056365967, 0.036056600511074066, -0.023527877405285835, 0.028030656278133392, 0.08029382675886154, -0.07341935485601425, -0.029783647507429123, -0.021121812984347343, 0.029921136796474457, 0.003765921341255307, -0.004287951625883579, 0.03997505083680153, -0.052967801690101624, 0.0018743675900623202, 0.0024318441282957792, 0.08888691663742065, 0.012777923606336117, -0.0022105721291154623, -0.019368823617696762, -0.00841693114489317, 0.04925558716058731, -0.0027433435898274183, -0.03445828706026077, -0.04430596902966499, 0.02306385152041912, 0.05331152305006981, 0.04599021375179291, 0.07926265150308609, 0.05637066438794136, -0.020365621894598007, -0.0015005682362243533, -0.029027454555034637, 0.0241981390863657, 0.030935119837522507, 0.011540519073605537, 0.04079998657107353, -0.0004932970041409135, 0.004365289118140936, -0.007411539554595947, -0.016155008226633072, -0.022909175604581833, -0.025280868634581566, -0.02538398467004299, -0.001030633575282991, -0.07314437627792358, -0.008047427982091904, 0.03464733436703682, 0.0030935120303183794, -0.03432079777121544, -0.03425205498933792, 0.01148896012455225, 0.008777840062975883, 0.0026316335424780846, 0.009890645742416382, -0.026243293657898903, 0.028133774176239967, -0.023407574743032455, -0.012571689672768116, -0.005478094331920147, 0.05953292176127434, 0.010904629714787006, -0.062042102217674255, -0.052280355244874954, 0.03500824421644211, -0.00787126924842596, -0.027308836579322815, -0.03229282796382904, 0.0772690549492836, 0.02667294815182686, -0.0321209654211998, 0.001473714830353856, 0.019334450364112854, 0.03756898641586304, 0.005718700587749481, 0.0074630980379879475, -0.017753321677446365, 0.06032348424196243, -0.027274465188384056, -0.025315240025520325, 0.04021565616130829, -0.08696205914020538, -0.006668237037956715, 0.011351470835506916, 0.06678549200296402, -0.03473326563835144, -0.02985239215195179, 0.030041439458727837, 0.021981121972203255, -0.05087108910083771, 0.05949854850769043, 0.010303113609552383, -0.014230155386030674, -0.02041717991232872, 0.011128050275146961, -0.017229143530130386, 0.027377581223845482, 0.03523166477680206, 0.0423123724758625, -0.012545909732580185, 0.04925558716058731, -0.0244043730199337, 0.0418999008834362, -0.048499394208192825, -0.023046664893627167, -0.003989341668784618, 0.06011725217103958, 0.09115549176931381, -0.0345785915851593, 0.06733544915914536, -0.03811894357204437, 0.004760571289807558, 0.024129394441843033, -0.04454657435417175, 0.016490137204527855, -0.03148507699370384, -0.01354270800948143, 0.008902439847588539, 0.07383181899785995, -0.008713392540812492, -0.01626671850681305, -0.0023781373165547848, -0.04045626521110535, -0.014771520160138607, -0.037156518548727036, 0.0011342877987772226, 0.024387186393141747, 0.042277999222278595, 0.0008915329817682505, -0.0017486936412751675, 0.013198984786868095, -0.019798478111624718, 0.0305054672062397, 0.03347867354750633, 0.018131418153643608, 0.030247673392295837, -0.05334589630365372, -0.0008764950907789171, 0.024748096242547035, -0.07438177615404129, -0.02770411968231201, -0.034303613007068634, -0.015837064012885094, 0.01745256409049034, -0.06173275038599968, 0.02345913276076317, -0.032722484320402145, 0.03750023990869522, -0.03208659589290619, -0.03404581919312477, 0.04018128290772438, -0.02285761758685112, -0.016541697084903717, 0.008850881829857826, -0.0032460393849760294, -0.009529735893011093, -0.016979943960905075, -0.03325525298714638, -0.0723881796002388, 0.025848012417554855, -0.030367976054549217, 0.040284402668476105, 0.01093900203704834, 0.01993596740067005, 0.028477497398853302, -0.06245457008481026, -0.012657620012760162, -0.012030324898660183, 0.04530276730656624, 0.017873626202344894, 0.046265192329883575, 0.0006149429245851934, 0.00015480986621696502, 0.024748096242547035, -0.052245981991291046, -0.04389349743723869, -0.0035124251153320074, 0.020228132605552673, -0.0012406272580847144, -0.0254183579236269, 0.04502778872847557, 0.03512854874134064, -0.018647003918886185, 0.01102493330836296, -0.07417554408311844, -0.011824090965092182, 0.012588875368237495, -0.002464068355038762, -0.0012492203386500478, -0.018079860135912895, -0.03273966908454895, -0.08984933793544769, 0.0008963666041381657, -0.05131792649626732, -0.062248338013887405, 0.006260065361857414, 0.022685755044221878, 0.050286758691072464, 0.05210849270224571, -0.004623082000762224, 0.09954234212636948, 0.05197100341320038, -0.023081038147211075, -0.06719795614480972, 0.0439278706908226, 0.011884242296218872, -0.0370190292596817, -0.011763938702642918, 0.012537317350506783, -0.005224598105996847, 0.0036262834910303354, -0.028649359941482544, -0.019093843176960945, -0.026621390134096146, -0.05241784453392029, -0.03512854874134064, 0.015012126415967941, 0.030591396614909172, -0.012133441865444183, 0.05544261261820793, -0.04544025659561157, -0.04258735105395317, -0.011609263718128204, -0.00581752136349678, 0.007875566370785236, -0.008210696280002594, 0.02449030429124832, 0.00019186756981071085, -0.04863688349723816, 0.0012277376372367144, -0.0001779037993401289, -0.037156518548727036, -0.052074119448661804, 0.06362323462963104, 0.030574211850762367, 0.013516929000616074, -0.0023695442359894514, -0.00015736094792373478, 0.08311235904693604, -0.04224362596869469, 0.033977072685956955, -0.0217577014118433, 0.005576914642006159, -0.003568280255421996, -0.04863688349723816, -0.018389210104942322, -0.009289129637181759, -0.011497553437948227, -0.023149782791733742, -0.03009299747645855, 0.000501621572766453, 0.03188036009669304, 0.045543372631073, -0.004790646955370903, 0.019128216430544853, 0.045165278017520905, -0.0077681527473032475, -0.0037723660934716463, 0.0695352777838707, -0.026122990995645523, -0.023923160508275032, -0.06169838085770607, 0.03550664335489273, -0.036056600511074066, 0.07967512309551239, 0.026535458862781525, 0.02892433851957321, -0.07775027304887772, -0.0548926517367363, 0.04904935136437416, 0.02961178496479988, 0.05994538962841034, -0.00833529606461525, -0.046368308365345, -0.03729400783777237, -0.01862981729209423, -0.007763856090605259, 0.08373106271028519, -0.003643469884991646, -0.012863853946328163, 0.03169131278991699, -0.0008448080625385046, -0.030849190428853035, 0.016945572569966316, -0.006113982759416103, -0.04375600814819336, 0.014238748699426651, 0.02199830859899521, -0.02127648890018463, 0.006947512738406658, 0.08311235904693604, 0.029096199199557304, -0.01623234525322914, 0.006393258459866047, 0.011205388233065605, 0.017014317214488983, -0.009418025612831116, 0.02122493088245392, -0.01098196767270565, 0.0414874330163002, 0.027566630393266678, -0.047193244099617004, 0.032722484320402145, -0.03691590949892998, -0.04770883172750473, 0.04155617952346802, -0.03148507699370384, -0.009134453721344471, -0.02041717991232872, 0.013473963364958763, 0.06077032536268234, -0.003617690410465002, -0.027274465188384056, -0.0005346512771211565, 0.031330402940511703, 0.07259441912174225, 0.0577455572783947, -0.027841608971357346, -0.03169131278991699, -0.03646906837821007, 0.03530041128396988, -0.03990630432963371, 0.009220384992659092, -0.016661999747157097, -0.02943992242217064, 0.00903133675456047, -0.07170073688030243, 0.0010574869811534882, -0.015768319368362427, 0.00790993869304657, -0.0057874456979334354, 0.0005805706023238599, 0.024387186393141747, -0.008369668386876583, -0.02777286432683468, 0.029749274253845215, -0.03347867354750633, -0.060907814651727676, 0.000206234137294814, 0.009985169395804405, -0.04733073338866234, -0.026690134778618813, 0.014977754093706608, 0.02363099530339241, -0.07857520878314972, 0.0016842454206198454, -0.0014586768811568618, 0.028116587549448013, 0.010234368965029716, -0.013396626338362694, -0.04853376746177673, -0.05214286595582962, 0.054720792919397354, 0.0634169951081276, -0.0017701763426885009, -0.044924668967723846, -0.011927207931876183, 0.0037809591740369797, -0.04485592618584633, 0.043171681463718414, -0.019489126279950142, -0.03359897807240486, 0.05059610679745674, -0.03368490934371948, 0.016455765813589096, 0.0504242479801178, -0.002201979048550129, -0.029010267928242683, 0.006552230566740036, 0.0254183579236269, -0.012502945028245449, -0.05145541578531265, -0.038737647235393524, -0.03176005557179451, -0.005039846990257502, -0.033049020916223526, 0.002063415478914976, 0.005821818020194769, 0.0020677121356129646, -0.003662804141640663, -0.0009350355248898268, 0.03354742005467415, -0.020021896809339523, 0.02110462635755539, -0.005349197890609503, 0.007235380820930004, -0.054273951798677444, -0.12587156891822815, -0.025521473959088326, 0.054480183869600296, 0.020365621894598007, -0.0561300590634346, -0.030161742120981216, 0.0017046540742740035, -0.007024850230664015, 0.009383653290569782, 0.04774320125579834, 0.03244750574231148, -0.0007749891956336796, 0.002442585537210107, -0.03201784938573837, 0.034836381673812866, -0.010096879675984383, 0.00019119623175356537, -0.012176407501101494, -0.052520960569381714, 0.04966805502772331, -0.011849869973957539, 0.009546921588480473, 0.05544261261820793, 0.00014245729835238308, -0.027343209832906723, 0.013705977238714695, 0.014943381771445274, 0.009650039486587048, -0.05035550147294998, 0.01159207709133625, 0.017925184220075607, -0.01148896012455225, -0.024009091779589653, -0.0024554752744734287, -0.016533102840185165, 0.07541295140981674, 0.031055424362421036, 0.009160232730209827, 0.0028915745206177235, 0.031742870807647705, 0.008893847465515137, -0.033323999494314194, 0.05372399464249611, 0.01659325510263443, 0.008455599658191204, 0.04104059189558029, 0.0003939394373446703, -0.014023921452462673, -0.08077503740787506, -0.0012921857414767146, -0.0005854041664861143, 0.022393589839339256, 0.025641778483986855, -0.021774888038635254, -0.039425093680620193, -0.04176241159439087, 0.03646906837821007, -0.0370190292596817, 0.012571689672768116, 0.01700572296977043, -0.08056880533695221, 0.014427796937525272, 0.011927207931876183, -0.03791270777583122, 0.014548099599778652, -0.07843771576881409, -0.023166967555880547, -0.02249670773744583, 0.04681514948606491, 0.028889965265989304, 0.06352011114358902, -0.02345913276076317, 0.012485758401453495, 0.013568487949669361, 0.03994067758321762, 0.014101259410381317, 0.004880874417722225, -0.058158028870821, -0.015880027785897255, 0.025968315079808235, -0.07843771576881409, 0.0423123724758625, 0.05458330363035202, -0.015751132741570473, -0.04354977607727051, -0.03256780654191971, -0.010440602898597717, -0.006431926973164082, 0.01220218650996685, -0.012279524467885494, 0.007274049799889326, 0.016739336773753166, 0.011798311024904251, -0.012296710163354874, 0.05063048005104065, -0.0732131227850914, 0.03370209410786629, -0.04203739017248154, -0.06393258273601532, 0.039150115102529526, 0.02101869508624077, 0.07101328670978546, 0.06664799898862839, -0.03732837736606598, 0.07843771576881409, 0.006913139950484037, 0.005907748825848103, -0.07479424774646759, 0.012623247690498829, 0.09012431651353836, 0.0805000588297844, 0.021087439730763435, -0.011110864579677582, 0.004002231173217297, -0.054686419665813446, -0.031622566282749176, 0.03229282796382904, -0.02107025496661663, 0.08036256581544876, -0.0020913430489599705, 0.044752806425094604, -0.017667390406131744, -0.04196864739060402, -0.04169366881251335, 0.01691979169845581, 0.014264527708292007, -0.011832683347165585, 0.013027123175561428, -0.026208922266960144, 0.0016552438028156757, -0.009186012670397758, -0.01020858995616436, 0.031141355633735657, 0.00048336124746128917, 0.010638244450092316, -0.035644132643938065, 0.002201979048550129, 0.007033443544059992, 0.03222408518195152 ]
20,565
tabledata.error
InvalidHeaderNameError
Exception raised when a table header name is invalid.
class InvalidHeaderNameError(NameValidationError): """ Exception raised when a table header name is invalid. """
null
[ -0.029912540689110756, 0.019648941233754158, -0.015412622131407261, -0.027294978499412537, -0.020974943414330482, -0.06836660206317902, -0.0004299820284359157, 0.039435647428035736, 0.01663529872894287, -0.05617427080869675, 0.0025960365310311317, -0.004903624765574932, 0.03805798292160034, -0.012795059010386467, -0.02378193475306034, 0.008911767043173313, 0.049354832619428635, 0.0656457170844078, 0.006199490278959274, -0.044636331498622894, -0.029413137584924698, 0.036990292370319366, 0.0021676691249012947, -0.020217226818203926, -0.008365007117390633, 0.09209687262773514, -0.012898384593427181, 0.006884017493575811, 0.06781553477048874, -0.03657699376344681, -0.05007810518145561, -0.0008061490370891988, 0.00535136554390192, 0.057620819658041, -0.005695781670510769, -0.06233932077884674, 0.028483213856816292, -0.03561262786388397, -0.034734368324279785, -0.0005203912733122706, -0.03936676308512688, 0.022989775985479355, -0.022610919550061226, -0.01916675828397274, 0.025590118020772934, -0.0057948012836277485, -0.0031298815738409758, 0.006238237023353577, -0.08279763907194138, 0.041915442794561386, -0.004735721740871668, -0.0037885773926973343, 0.04105440154671669, -0.014232996851205826, 0.007745057810097933, -0.005609677638858557, 0.02638227492570877, 0.03664587810635567, -0.0007345750345848501, -0.005355671048164368, -0.012898384593427181, 0.028104355558753014, -0.017255248501896858, -0.035182107239961624, -0.008059337735176086, -0.05951510742306709, 0.04101996123790741, -0.06626566499471664, -0.027622174471616745, -0.003749830648303032, 0.003674489678815007, 0.012683124281466007, -0.028448771685361862, 0.0663345456123352, 0.049182623624801636, -0.008765390142798424, -0.06630010902881622, -0.007297317031770945, 0.022972555831074715, -0.015670934692025185, 0.05469328165054321, -0.039883390069007874, -0.0011634808033704758, 0.008442500606179237, 0.03826463222503662, -0.03802354261279106, 0.010616627521812916, -0.0037778145633637905, 0.013914411887526512, 0.034424394369125366, -0.039883390069007874, -0.03287452086806297, -0.05724196135997772, 0.0436030812561512, -0.0047228061594069, 0.0040275161154568195, 0.03172072768211365, -0.011865136213600636, -0.047357216477394104, -0.03325337916612625, 0.03172072768211365, 0.02875874750316143, 0.029740333557128906, 0.04064110293984413, -0.012398980557918549, -0.02178432047367096, -0.016445869579911232, -0.06550794839859009, 0.014224385842680931, -0.022077074274420738, -0.012812280096113682, -0.01920119859278202, -0.0194939523935318, -0.025521235540509224, 0.049044858664274216, -0.08011119067668915, 0.044705215841531754, -0.005179157480597496, -0.03912567347288132, -0.008834273554384708, 0.07425611466169357, -0.008911767043173313, -0.060961656272411346, 0.011744590476155281, 0.06833215802907944, 0.010625237599015236, 0.0013873511925339699, -0.013440839946269989, 0.07170744240283966, 0.028138797730207443, -0.014741010963916779, 0.006909848656505346, -0.03537153825163841, -0.037816889584064484, 0.005415943916887045, 0.027157211676239967, 0.1013961061835289, 0.030343061313033104, -0.0264167170971632, -0.01080605573952198, 0.03909122943878174, 0.06867657601833344, -0.011865136213600636, -0.05579541251063347, 0.030429165810346603, 0.010298042558133602, -0.04119217023253441, -0.02846599370241165, 0.005506352987140417, 0.029395917430520058, -0.015670934692025185, -0.02672669105231762, -0.014844335615634918, 0.005713002756237984, -0.0010391680989414454, -0.01656641624867916, -0.04294869303703308, -0.13384011387825012, -0.005893820896744728, 0.007026088889688253, 0.05803411826491356, -0.04773607477545738, -0.025882871821522713, -0.018495146185159683, -0.030377503484487534, 0.027088329195976257, -0.007443693466484547, -0.06981314718723297, -0.044257473200559616, -0.022869231179356575, -0.006251152604818344, 0.013638879172503948, -0.010108613409101963, 0.05569208785891533, -0.030411943793296814, -0.0146635165438056, 0.006182269658893347, 0.0528334341943264, -0.002994267735630274, -0.03537153825163841, 0.0620637871325016, 0.022748686373233795, 0.00784838292747736, 0.017401624470949173, 0.006983037106692791, 0.027174433693289757, -0.03409719839692116, 0.044705215841531754, 0.06815995275974274, 0.00592826260253787, 0.020906059071421623, -0.03349446877837181, 0.028087135404348373, 0.04081331193447113, 0.02159489132463932, -0.04301757365465164, 0.01716914400458336, 0.009368118830025196, 0.0689176693558693, -0.008123915642499924, -0.025968976318836212, 0.06444025784730911, -0.01557621918618679, -0.0014745316002517939, 0.019769486039876938, 0.025176819413900375, 0.04301757365465164, -0.04811493307352066, -0.08741281181573868, -0.00592395756393671, 0.007379115559160709, -0.02862098067998886, -0.05348782613873482, 0.061374954879283905, 0.007297317031770945, -0.030239736661314964, -0.020268889144062996, -0.028035473078489304, 0.06313147395849228, 0.010280821472406387, 0.09430113434791565, 0.025073494762182236, 0.08817052841186523, -0.061684928834438324, 0.06543906778097153, -0.04522183910012245, 0.008442500606179237, -0.039814505726099014, 0.010625237599015236, -0.02670947089791298, -0.032581765204668045, -0.011443225666880608, -0.03165184333920479, 0.018719017505645752, 0.011202135123312473, 0.017909638583660126, 0.007301622070372105, -0.05235125124454498, 0.034786030650138855, -0.02893095463514328, -0.05304008349776268, 0.0024238284677267075, -0.030067527666687965, 0.013905801810324192, 0.028379889205098152, -0.04976813122630119, -0.015240414068102837, 0.04367196559906006, -0.0769425630569458, -0.0047012800350785255, -0.05954954773187637, 0.005850769113749266, 0.015025153756141663, -0.011718759313225746, 0.013724982738494873, -0.00654821190983057, -0.06099609658122063, -0.032719533890485764, 0.04122661054134369, -0.008972040377557278, -0.05255790054798126, -0.032271791249513626, -0.013173917308449745, 0.03165184333920479, 0.017944080755114555, -0.03688696771860123, -0.020182784646749496, 0.030101969838142395, 0.003521654987707734, 0.016015350818634033, 0.058722950518131256, 0.0689176693558693, -0.04053777828812599, 0.004049042239785194, 0.007348979357630014, -0.05014698952436447, -0.012502305209636688, 0.051455769687891006, 0.00954032689332962, 0.011400174349546432, 0.03340836614370346, -0.027002224698662758, -0.01968338154256344, 0.039194557815790176, 0.005876600276678801, 0.005032780580222607, -0.042225416749715805, -0.09402560442686081, -0.0723273903131485, 0.003749830648303032, -0.005738833919167519, -0.0165836364030838, -0.01954561471939087, -0.03432106599211693, -0.04312089830636978, -0.011426005512475967, -0.008558740839362144, -0.022576477378606796, 0.01921842060983181, 0.002522848080843687, 0.012338708154857159, 0.057793028652668, 0.008304733783006668, -0.01451713964343071, -0.09891631454229355, -0.05056028813123703, 0.0010122605599462986, 0.013544164597988129, -0.03122132271528244, -0.019752265885472298, 0.005196378566324711, 0.04356864094734192, -0.06888322532176971, 0.01641142927110195, 0.07136302441358566, 0.054142214357852936, 0.0030739139765501022, 0.014654906466603279, -0.010263600386679173, 0.06047947332262993, -0.03309839218854904, 0.012984488159418106, -0.01195123977959156, -0.0914769247174263, -0.03192737698554993, -0.02133657969534397, 0.01602395996451378, 0.003844544989988208, -0.058929599821567535, 0.000869112613145262, -0.0036249798722565174, -0.04532516375184059, 0.06175381317734718, -0.011004095897078514, -0.029378695413470268, -0.002563747577369213, 0.047219451516866684, 0.011262407526373863, 0.02884485200047493, 0.010418588295578957, 0.05782746896147728, -0.030894126743078232, 0.037128057330846786, -0.013897190801799297, -0.03643922507762909, -0.09588544815778732, -0.020320551469922066, -0.017961300909519196, 0.059101808816194534, 0.020923279225826263, -0.04587622731924057, 0.037472475320100784, -0.01314808614552021, 0.004016753286123276, 0.0625804141163826, -0.014775452204048634, -0.020286111161112785, -0.018564028665423393, 0.01215788908302784, -0.010978263802826405, 0.05765525996685028, -0.044119708240032196, -0.024487987160682678, -0.03137630969285965, -0.037231385707855225, -0.026985004544258118, -0.007628817576915026, 0.004503240808844566, -0.007912960834801197, 0.0025981892831623554, -0.025056274607777596, 0.002165516372770071, 0.022783126682043076, -0.005605372600257397, -0.0019965372048318386, 0.005226514767855406, 0.041915442794561386, 0.007439388427883387, -0.07081195712089539, -0.029878100380301476, 0.0288104098290205, -0.0037778145633637905, -0.027897706255316734, -0.004212639760226011, -0.046702828258275986, -0.020802734419703484, -0.004641007166355848, 0.022335385903716087, -0.012769227847456932, 0.03459659963846207, 0.016135895624756813, -0.037369150668382645, 0.04139881953597069, 0.015025153756141663, -0.016299493610858917, -0.00723273865878582, -0.04287980869412422, -0.03123854286968708, -0.014542970806360245, -0.013139475136995316, -0.03389054909348488, 0.003917733673006296, -0.044705215841531754, 0.03378722444176674, 0.007026088889688253, -0.012528137303888798, 0.0489070899784565, 0.008614708669483662, 0.025813989341259003, 0.008235850371420383, -0.008085168898105621, -0.01918397843837738, -0.009764197282493114, -0.02867264300584793, -0.005230819806456566, 0.018753457814455032, 0.028173239901661873, -0.035147666931152344, 0.0007313461392186582, 0.004882098641246557, 0.0034699924290180206, -0.0006527762161567807, 0.05238569527864456, 0.08734393119812012, -0.0016435107681900263, 0.011098809540271759, -0.0641302838921547, -0.013776645064353943, 0.029826438054442406, -0.018305717036128044, -0.03602592647075653, 0.0033795833587646484, 0.0054073333740234375, -0.07577154785394669, -0.0015326518332585692, -0.05968731641769409, -0.034510497003793716, -0.014982101507484913, 0.0041243829764425755, 0.048975974321365356, 0.02404024638235569, -0.0003549100656528026, 0.04597955197095871, 0.05021587386727333, -0.009566158056259155, -0.044119708240032196, 0.028138797730207443, 0.044498562812805176, -0.004307354334741831, -0.000006104641215642914, 0.007168160751461983, -0.010771614499390125, 0.008399448357522488, -0.07756251096725464, -0.0056570349261164665, -0.027294978499412537, -0.04384417459368706, -0.008748169988393784, -0.0011548703769221902, 0.02388525940477848, -0.010961043648421764, 0.09932961314916611, 0.010771614499390125, 0.006431971210986376, 0.0036615740973502398, 0.02157767117023468, 0.015076816082000732, 0.011624044738709927, 0.06654119491577148, 0.023041440173983574, -0.02672669105231762, 0.018219612538814545, 0.011727369390428066, -0.0079517075791955, -0.005579541437327862, 0.012261214666068554, 0.030463606119155884, 0.0386434905230999, 0.004653923213481903, 0.011124640703201294, 0.10112057626247406, -0.037816889584064484, 0.02610674314200878, 0.0003083600604441017, 0.05737972632050514, 0.003386041149497032, -0.01935618743300438, -0.04405082389712334, -0.020010577514767647, -0.0338561050593853, -0.01189957745373249, -0.0190634336322546, 0.0004864877846557647, 0.039745621383190155, 0.06444025784730911, -0.03297784551978111, 0.012433422729372978, 0.04067554697394371, -0.005743138957768679, 0.00712510896846652, 0.06054835766553879, -0.04522183910012245, -0.0017489881720393896, -0.032702311873435974, 0.03315005451440811, -0.024642974138259888, 0.05844741687178612, -0.011253797449171543, 0.04108884558081627, -0.07398058474063873, -0.0432586669921875, 0.0670233815908432, 0.00477016344666481, 0.06371698528528214, -0.0026347835082560778, -0.012476474046707153, -0.05789635330438614, 0.017281079664826393, 0.05104247108101845, 0.1010516956448555, 0.0036615740973502398, -0.01203734427690506, 0.023454738780856133, -0.024901285767555237, -0.0005629051011055708, 0.013759424909949303, -0.018202392384409904, -0.027536069974303246, 0.06447470188140869, 0.039917830377817154, -0.020906059071421623, 0.023024218156933784, 0.042225416749715805, -0.005588151980191469, 0.0032698006834834814, 0.03147963434457779, -0.039883390069007874, 0.014336321502923965, -0.010616627521812916, -0.003188001923263073, 0.02395414188504219, 0.06006617471575737, 0.02152600884437561, -0.0032375117298215628, -0.005631203763186932, -0.00006804236909374595, -0.032444000244140625, 0.030653035268187523, -0.07852687686681747, -0.03568151220679283, -0.03358057141304016, 0.003521654987707734, 0.019872810691595078, -0.0677122101187706, -0.04126105457544327, 0.0069959526881575584, 0.00973836611956358, 0.05217904597520828, 0.040021155029535294, 0.03104911372065544, 0.008963430300354958, -0.03113521821796894, 0.07749363034963608, -0.013501112349331379, -0.005415943916887045, 0.011667096056044102, -0.030549710616469383, -0.014284659177064896, -0.0034226353745907545, 0.042294301092624664, -0.03798909857869148, 0.010315263643860817, 0.051490213721990585, 0.03798909857869148, -0.01574842818081379, -0.005368586629629135, 0.010823276825249195, 0.06375142931938171, -0.037610240280628204, -0.05562320724129677, 0.05751749500632286, -0.015188751742243767, -0.05286787822842598, -0.0218015406280756, -0.01576564833521843, 0.0034699924290180206, -0.058998484164476395, 0.02634783461689949, -0.01184791512787342, 0.03561262786388397, -0.04070998728275299, -0.02645115926861763, -0.020165564492344856, -0.04305201768875122, 0.014482698403298855, 0.052041277289390564, -0.000245127419475466, -0.0637858659029007, -0.0036271323915570974, 0.003435550956055522, -0.030205294489860535, 0.044016383588314056, 0.03399387374520302, 0.020217226818203926, 0.08679286390542984, 0.0057603600434958935, 0.009161469526588917, -0.009118417277932167, -0.030050307512283325, -0.027019444853067398, 0.005997146014124155, 0.0015487963100895286, -0.027036666870117188, -0.02865542285144329, -0.028311006724834442, -0.023523621261119843, 0.0011247339425608516, -0.07150078564882278, 0.014689347706735134, -0.02891373448073864, -0.016471700742840767, 0.01431049033999443, 0.014474088326096535, 0.03358057141304016, -0.019735043868422508, 0.03158295899629593, 0.015033763833343983, -0.0062855943106114864, -0.03788577392697334, -0.10697565227746964, -0.03805798292160034, 0.02193930745124817, -0.04064110293984413, -0.06368254125118256, 0.01431049033999443, 0.03378722444176674, 0.0106855109333992, -0.008313344791531563, 0.006681672763079405, 0.03175516799092293, 0.012226772494614124, -0.0023786239326000214, -0.04084775224328041, 0.05324673280119896, -0.03170350566506386, 0.046806152909994125, -0.03185849264264107, -0.08520855009555817, 0.06626566499471664, -0.024711858481168747, -0.0037648987490683794, 0.07983566075563431, -0.009101196192204952, -0.023265309631824493, 0.0670233815908432, 0.017401624470949173, -0.061478279531002045, -0.049217063933610916, 0.005028475541621447, -0.022834789007902145, 0.03860905021429062, -0.06902099400758743, 0.044291913509368896, -0.00022884838108438998, 0.03389054909348488, 0.02646837942302227, 0.03160018101334572, -0.025245701894164085, -0.0487348847091198, 0.014155503362417221, -0.01692805252969265, 0.014697958715260029, 0.02376471273601055, -0.05541655421257019, 0.011348512023687363, 0.014207165688276291, 0.0016424343921244144, -0.032271791249513626, 0.04067554697394371, 0.003080371767282486, 0.04026224464178085, 0.004438662901520729, 0.01607562229037285, -0.005631203763186932, -0.0013109339633956552, 0.0264167170971632, -0.0264167170971632, 0.025813989341259003, 0.013501112349331379, -0.03885013982653618, -0.011632654815912247, 0.009282014332711697, -0.03823019191622734, 0.08741281181573868, -0.07315398752689362, 0.008825663477182388, 0.03122132271528244, -0.006978732068091631, -0.012967267073690891, 0.06984759122133255, 0.004597955383360386, 0.002007300266996026, 0.0008524299482814968, 0.029395917430520058, -0.009368118830025196, 0.032495662569999695, 0.022197619080543518, -0.009290625341236591, 0.042500950396060944, -0.039607856422662735, 0.03352890908718109, -0.00964365154504776, 0.012442032806575298, 0.002029902534559369, 0.03404553607106209, -0.037300266325473785, 0.015825921669602394, 0.013742203824222088, 0.008946209214627743, 0.006733335554599762, 0.041949886828660965, -0.0016122980741783977, -0.014095230028033257, -0.004735721740871668, -0.05706975236535072, -0.0074609145522117615, -0.06068612262606621, -0.049458157271146774, 0.0034441612660884857, 0.05965287610888481, 0.0723273903131485, 0.05751749500632286, -0.07646038383245468, 0.09650540351867676, 0.05049140378832817, -0.014887386932969093, -0.02183598279953003, 0.0335116907954216, 0.048975974321365356, 0.051559094339609146, -0.0009616744355298579, 0.032719533890485764, 0.005618288181722164, -0.053660035133361816, -0.020045019686222076, 0.07701144367456436, -0.0015724749537184834, 0.027553290128707886, 0.003835934679955244, 0.05138688534498215, -0.01722080633044243, -0.02173265814781189, -0.02681279554963112, 0.0019750113133341074, -0.0066084847785532475, -0.06798774749040604, 0.025142377242445946, 0.025865651667118073, -0.030205294489860535, -0.0030007255263626575, 0.029464799910783768, 0.020837176591157913, 0.006586958654224873, 0.007486745715141296, 0.01952839456498623, -0.027983810752630234, 0.046978361904621124, 0.029482021927833557 ]
20,566
tabledata.error
InvalidTableNameError
Exception raised when a table name is invalid.
class InvalidTableNameError(NameValidationError): """ Exception raised when a table name is invalid. """
null
[ -0.01743205264210701, 0.016933495178818703, -0.0032996698282659054, -0.027411969378590584, -0.020169751718640327, -0.055313751101493835, 0.01284006703644991, 0.03545887768268585, 0.039254918694496155, -0.04166899248957634, -0.01605883054435253, 0.005169264040887356, 0.04541255533695221, -0.010802100412547588, -0.024123232811689377, 0.003264683298766613, 0.04166899248957634, 0.04716188460588455, 0.019714927300810814, -0.02947617694735527, -0.01742330752313137, 0.056818172335624695, 0.020344683900475502, -0.031487904489040375, -0.007036671973764896, 0.1144760251045227, -0.012131589464843273, 0.004845638759434223, 0.069448322057724, -0.022146493196487427, -0.051780108362436295, 0.012175322510302067, 0.019557487219572067, 0.07228223234415054, 0.008764132857322693, -0.06678934395313263, 0.011414364911615849, -0.015953870490193367, -0.050065767019987106, -0.0067392862401902676, -0.023598434403538704, 0.03267744556069374, -0.021884093061089516, -0.007290324196219444, 0.041773952543735504, -0.018805276602506638, -0.009402638301253319, -0.00850610714405775, -0.10530954599380493, 0.037960417568683624, -0.008357414044439793, -0.0060351816937327385, 0.04086430370807648, 0.00009546137880533934, 0.025557681918144226, 0.018892742693424225, 0.008654800243675709, 0.043068453669548035, -0.020537110045552254, -0.008383654057979584, -0.015324112959206104, 0.018875248730182648, -0.020449643954634666, -0.022373905405402184, -0.015350352972745895, -0.04887622594833374, 0.03241504728794098, -0.05664324015378952, -0.03593119606375694, 0.01763322576880455, 0.009420131333172321, -0.00018108278163708746, -0.03600117191672325, 0.06524993479251862, 0.04124915227293968, -0.005589102860540152, -0.028146687895059586, -0.003741375170648098, 0.026327386498451233, 0.0008927039452828467, 0.05139525607228279, -0.06126146763563156, -0.002023753710091114, 0.0012540494790300727, 0.04313842952251434, -0.021271828562021255, -0.00478441221639514, -0.012026630342006683, -0.000767517660278827, 0.020467137917876244, -0.057902757078409195, -0.03663092851638794, -0.0510803759098053, 0.05356442183256149, -0.02825164794921875, 0.0031815902329981327, 0.010111115872859955, -0.04159902036190033, -0.04362824186682701, -0.0370507687330246, 0.045377567410469055, 0.016662349924445152, 0.02742946334183216, 0.03050827980041504, -0.0011173832463100553, -0.028688978403806686, -0.02968609519302845, -0.055383723229169846, -0.0010315568652004004, -0.011012019589543343, -0.008313680998980999, 0.030210893601179123, -0.02812919393181801, -0.005584729835391045, 0.019994819536805153, -0.06227607652544975, 0.023808354511857033, -0.00959506444633007, -0.030385827645659447, -0.016854776069521904, 0.05223493278026581, -0.002156046684831381, -0.059197258204221725, -0.0007292511290870607, 0.0899854302406311, 0.017248373478651047, -0.0059127286076545715, -0.002337539568543434, 0.06643947958946228, 0.031138038262724876, -0.007452137302607298, 0.012044123373925686, -0.03956979885697365, -0.040619395673274994, -0.008060028776526451, 0.037750497460365295, 0.09579320251941681, 0.046881988644599915, -0.05192005634307861, 0.014598142355680466, 0.04555249959230423, 0.09089507907629013, -0.011370631866157055, -0.04894619807600975, 0.03015841543674469, -0.003645162098109722, -0.04369821399450302, -0.02328355610370636, 0.020099779590964317, 0.041144195944070816, -0.014563155360519886, -0.0136797446757555, -0.0014617822598665953, 0.007749523036181927, -0.013583531603217125, -0.01528037991374731, -0.03171531483530998, -0.1265813708305359, 0.013889663852751255, -0.021761640906333923, 0.040269531309604645, -0.03970974683761597, -0.03517898544669151, -0.04254365712404251, -0.019959831610322, 0.03199521079659462, 0.006157634314149618, -0.05569860339164734, -0.035703785717487335, -0.02240889146924019, -0.013758464716374874, 0.014265770092606544, 0.00014814620953984559, 0.06469015032052994, -0.023930806666612625, -0.016085071489214897, 0.026432346552610397, 0.03869513422250748, 0.028881404548883438, -0.006074541248381138, 0.058777421712875366, 0.021954067051410675, 0.018367944285273552, 0.017073441296815872, 0.01578768528997898, 0.014834301546216011, -0.04656711220741272, 0.0597570426762104, 0.0572030246257782, 0.006301953922957182, 0.02375587448477745, -0.022443877533078194, 0.0336395762860775, 0.024088246747851372, 0.02062457613646984, -0.023930806666612625, 0.005750915966928005, 0.02239139750599861, 0.04737180098891258, 0.0036495355889201164, -0.031960222870111465, 0.08242833614349365, -0.020064791664481163, -0.011379378847777843, 0.02784930169582367, 0.02219897136092186, 0.013119960203766823, -0.04628721997141838, -0.06748907268047333, -0.033866990357637405, -0.004250866826623678, -0.035493865609169006, -0.056538280099630356, 0.06455020606517792, 0.016854776069521904, -0.007360297720879316, 0.007172244600951672, -0.020921962335705757, 0.030945612117648125, 0.037820469588041306, 0.08767631649971008, 0.013863424770534039, 0.08501733839511871, -0.04369821399450302, 0.041354112327098846, -0.047616709023714066, 0.02335352823138237, -0.02335352823138237, 0.011860444210469723, -0.01756325364112854, -0.06423532217741013, -0.010495968163013458, -0.03279989957809448, 0.01777317188680172, 0.03589621186256409, 0.02980854921042919, 0.022793743759393692, -0.06241602450609207, 0.0503806471824646, -0.026379866525530815, -0.04390813410282135, -0.00830930843949318, -0.03838025778532028, 0.0074171507731080055, 0.03663092851638794, -0.03140043839812279, -0.0073428042232990265, 0.029318736866116524, -0.07119765132665634, -0.013015000149607658, -0.056398335844278336, 0.0070148054510355, 0.003907561302185059, 0.008484240621328354, 0.017187148332595825, -0.026099974289536476, -0.06311575323343277, -0.04250866919755936, 0.057692836970090866, 0.008348667994141579, -0.04705692455172539, -0.018420424312353134, -0.041389100253582, 0.042928509414196014, -0.0022347664926201105, -0.049261074513196945, -0.021971559152007103, 0.01340859942138195, 0.008799119852483273, 0.008488614112138748, 0.08865594118833542, 0.08312806487083435, -0.027272023260593414, 0.02566264197230339, -0.027796821668744087, -0.04166899248957634, -0.009455117397010326, 0.05863747373223305, -0.00001988493932003621, -0.018123038113117218, 0.019312581047415733, -0.0329398475587368, -0.010977033525705338, 0.022181479260325432, 0.0014792755246162415, -0.021604200825095177, -0.03942985460162163, -0.10852830857038498, -0.043348345905542374, 0.01494800765067339, 0.011851697228848934, -0.023598434403538704, -0.02226894535124302, -0.011256925761699677, -0.07312191277742386, -0.02422819286584854, -0.008116882294416428, -0.013933397829532623, 0.01130065880715847, -0.02335352823138237, 0.0006953578558750451, 0.03563380986452103, 0.011388124898076057, 0.01062716729938984, -0.08837605267763138, -0.05359940975904465, 0.014440702274441719, 0.006752406246960163, -0.005326703656464815, -0.02048463001847267, -0.004204947035759687, 0.04093427583575249, -0.06720918416976929, 0.0185253843665123, 0.06112151965498924, 0.0755709707736969, 0.0063107009045779705, -0.004981211386620998, -0.021884093061089516, 0.07007808238267899, -0.013181186281144619, 0.04166899248957634, -0.012149082496762276, -0.07648061960935593, -0.048841238021850586, -0.018665330484509468, 0.014930514618754387, 0.0268171988427639, -0.060491763055324554, -0.01763322576880455, 0.014528169296681881, -0.040619395673274994, 0.049995794892311096, -0.01620752364397049, -0.06297580897808075, -0.001960340654477477, 0.0392199344933033, -0.0027442583814263344, 0.04215880483388901, 0.022251451388001442, 0.07620073109865189, -0.025557681918144226, 0.016872268170118332, -0.0325549952685833, -0.02554018795490265, -0.05468399450182915, -0.00830930843949318, -0.024700511246919632, 0.06993813067674637, 0.02594253420829773, -0.058322593569755554, 0.0492960624396801, -0.04268360137939453, -0.012516441754996777, 0.031960222870111465, -0.03119051828980446, -0.01598885841667652, -0.01750202663242817, -0.01093329954892397, -0.02314360998570919, 0.041354112327098846, -0.05657326802611351, -0.021954067051410675, -0.03914996236562729, -0.016592375934123993, -0.015297872945666313, 0.02947617694735527, -0.025242803618311882, -0.014388223178684711, 0.005602222867310047, -0.012350255623459816, 0.002263193018734455, 0.022513851523399353, -0.005475396756082773, 0.002455619163811207, 0.018350450322031975, 0.05370436981320381, -0.00973501056432724, -0.04467783868312836, 0.0014705288922414184, 0.01749327965080738, -0.010469728149473667, -0.012210309505462646, -0.0016181283863261342, -0.014624382369220257, -0.01337361242622137, -0.020519617944955826, 0.03337717801332474, -0.011125725694000721, 0.038835082203149796, 0.014860541559755802, -0.026117466390132904, 0.04096926003694534, -0.005234864074736834, -0.011816710233688354, -0.022618811577558517, -0.04800156131386757, -0.03764553740620613, -0.013644758611917496, 0.013181186281144619, -0.05601348355412483, 0.008326801471412182, -0.03365707024931908, 0.02812919393181801, 0.009455117397010326, 0.010434741154313087, 0.039464838802814484, 0.028986364603042603, 0.006616833154112101, 0.0016891948180273175, -0.011396871879696846, -0.01974991336464882, -0.0164699237793684, -0.033324699848890305, 0.007819496095180511, 0.010802100412547588, 0.008716026321053505, -0.0363510362803936, -0.01228902954608202, -0.0007604110287502408, 0.006643073167651892, 0.016312483698129654, 0.07452137023210526, 0.0658097192645073, -0.013723477721214294, 0.009201465174555779, -0.06203117221593857, -0.010583434253931046, 0.044292986392974854, -0.005418543238192797, -0.026379866525530815, -0.018840262666344643, 0.01525413990020752, -0.10488970577716827, -0.0024228193797171116, -0.07354174554347992, -0.018945222720503807, -0.03614111617207527, 0.0041021741926670074, 0.03757556527853012, 0.021744146943092346, -0.025627655908465385, 0.06031683087348938, 0.07133759558200836, 0.00905277207493782, -0.04663708433508873, 0.016172537580132484, 0.047686681151390076, -0.0016629549209028482, 0.006231980863958597, -0.01599760539829731, -0.0027748714201152325, 0.013758464716374874, -0.06958826631307602, -0.014834301546216011, -0.01770319975912571, -0.05951213836669922, -0.02874145843088627, -0.003653908846899867, 0.03337717801332474, -0.026607278734445572, 0.08109884709119797, 0.006214487832039595, 0.015219153836369514, 0.011344391852617264, 0.033866990357637405, 0.026432346552610397, 0.009796236641705036, 0.06427031010389328, 0.018193010240793228, -0.04814150556921959, 0.02457805909216404, 0.025207815691828728, -0.008663547225296497, -0.023178596049547195, 0.033936962485313416, 0.03600117191672325, 0.007876349613070488, 0.018700316548347473, 0.010749620385468006, 0.09369400888681412, -0.031907740980386734, 0.03252000734210014, 0.017134668305516243, 0.037470605224370956, -0.00926269218325615, -0.027936767786741257, -0.032170142978429794, -0.025557681918144226, -0.02742946334183216, -0.023790860548615456, -0.030455799773335457, 0.018070558086037636, 0.0336395762860775, 0.028776446357369423, -0.04194888472557068, 0.0021473001688718796, 0.06559979915618896, -0.021831613034009933, -0.0008522507268935442, 0.07067284733057022, -0.022723769769072533, -0.023108622059226036, -0.018840262666344643, 0.02191907912492752, -0.004618226084858179, 0.04460786283016205, -0.008396774530410767, 0.0460423119366169, -0.07836989313364029, -0.03164534270763397, 0.06860864162445068, 0.008611067198216915, 0.0507654994726181, -0.009866209700703621, -0.017169654369354248, -0.03932489454746246, -0.0016061017522588372, 0.05835758149623871, 0.08613690733909607, -0.011064499616622925, -0.015359099954366684, 0.01912015490233898, 0.001249676221050322, -0.0029935375787317753, 0.0023025530390441418, -0.016968481242656708, -0.012140336446464062, 0.05513881891965866, 0.03677087277173996, 0.0017012214520946145, 0.030245881527662277, 0.04072435572743416, -0.011431858874857426, -0.0002458625822328031, 0.041843924671411514, -0.056818172335624695, -0.012341508641839027, 0.0069448319263756275, 0.03049078769981861, 0.02137678861618042, 0.05965208634734154, 0.02464803121984005, -0.0043099066242575645, -0.011020766571164131, -0.00864605326205492, -0.04786161333322525, 0.03684084862470627, -0.05349444970488548, -0.029161296784877777, -0.006669313181191683, 0.017851892858743668, 0.02328355610370636, -0.06378050148487091, -0.02429816499352455, -0.008379281498491764, 0.00689672539010644, 0.0503806471824646, 0.03729567304253578, 0.029511163011193275, -0.018770288676023483, -0.015630245208740234, 0.07326185703277588, -0.02302115596830845, 0.024962911382317543, 0.0010277301771566272, -0.04089928790926933, -0.010294795036315918, 0.010924553498625755, 0.04698694869875908, -0.02554018795490265, -0.002853591227903962, 0.06280087679624557, 0.016093818470835686, -0.016015097498893738, -0.004270547069609165, 0.00813437532633543, 0.022233959287405014, -0.04740678891539574, -0.05989699065685272, 0.03907998651266098, -0.026642264798283577, -0.07536105066537857, 0.016977228224277496, -0.008121254853904247, 0.01004114281386137, -0.0665794238448143, 0.03670090064406395, -0.013880917802453041, 0.031960222870111465, -0.03684084862470627, -0.0013087160186842084, -0.011589298024773598, -0.03269493952393532, 0.018560370430350304, 0.012498948723077774, -0.0027836181689053774, -0.08081895112991333, -0.005427290219813585, -0.003314976580440998, -0.03722570091485977, 0.04474781081080437, 0.018367944285273552, 0.012656387872993946, 0.06717419624328613, 0.011633031070232391, 0.0128663070499897, 0.0012606094824150205, -0.040409475564956665, -0.004445479717105627, -0.004126227460801601, -0.0026633518282324076, -0.00077626429265365, -0.037610553205013275, -0.011921670287847519, -0.036875832825899124, -0.011195698752999306, -0.05289967730641365, 0.03286987170577049, -0.029231270775198936, -0.013784704729914665, 0.027149571105837822, 0.02477048523724079, 0.03845022991299629, -0.026922157034277916, 0.03963977098464966, 0.006931712385267019, -0.010154848918318748, -0.03831028193235397, -0.11888433247804642, -0.0453425832092762, 0.022443877533078194, -0.05846254155039787, -0.07361172139644623, 0.02165668085217476, 0.02464803121984005, 0.006441900506615639, -0.010863326489925385, 0.006022061686962843, 0.031155532225966454, 0.007631443440914154, -0.01627749763429165, -0.020537110045552254, 0.05090544372797012, -0.02702711708843708, 0.03269493952393532, -0.025767602026462555, -0.07007808238267899, 0.055243778973817825, -0.0061620078049600124, 0.0035052159801125526, 0.0637105256319046, 0.007316564209759235, -0.019382555037736893, 0.08137873560190201, 0.025172829627990723, -0.05751790478825569, -0.0637105256319046, 0.0024643659126013517, -0.017519520595669746, 0.0007407310768030584, -0.060841627418994904, 0.004985584877431393, 0.025172829627990723, 0.03150539845228195, 0.034146882593631744, 0.03566879779100418, -0.04082931578159332, -0.04842139780521393, 0.029861029237508774, -0.015367846004664898, 0.022566331550478935, 0.025960028171539307, -0.053879301995038986, 0.01831546425819397, 0.022443877533078194, 0.00884722638875246, -0.013356119394302368, 0.03175030276179314, -0.00860669370740652, 0.01912015490233898, -0.010758367367088795, 0.004591986071318388, -0.011484337970614433, 0.013618518598377705, 0.04457287862896919, -0.03050827980041504, 0.030735692009329796, 0.02545272186398506, -0.04075934365391731, -0.021604200825095177, 0.03015841543674469, -0.050695523619651794, 0.07284201681613922, -0.0791395977139473, 0.006092034745961428, 0.033254723995923996, -0.010137355886399746, -0.014213290065526962, 0.06497003883123398, 0.007255337666720152, 0.016513656824827194, 0.0003782921703532338, 0.009009039029479027, 0.003522709244862199, 0.04173896461725235, -0.0050861709751188755, -0.023248568177223206, 0.03272992745041847, -0.011090739630162716, 0.033254723995923996, -0.012525188736617565, 0.016050083562731743, -0.024333152920007706, 0.02422819286584854, -0.04093427583575249, 0.017134668305516243, 0.029738575220108032, -0.006485633552074432, -0.011991643346846104, 0.04145907238125801, -0.02314360998570919, -0.017064694315195084, -0.027009624987840652, -0.05895235389471054, 0.009463864378631115, -0.07007808238267899, -0.04838641360402107, 0.009297678247094154, 0.06769899278879166, 0.06325569748878479, 0.0496809147298336, -0.07781010866165161, 0.0914548709988594, 0.058182649314403534, -0.0351090133190155, -0.031627848744392395, -0.0025977520272135735, 0.05765784904360771, 0.029441190883517265, 0.009630050510168076, 0.007185364607721567, 0.0026392985600978136, -0.04908614233136177, -0.020589590072631836, 0.08599696308374405, -0.01634746976196766, 0.036455996334552765, 0.0037851084489375353, 0.06189122423529625, -0.010443488135933876, -0.012971267104148865, -0.04691697657108307, 0.002794551430270076, -0.014580648392438889, -0.07802002876996994, 0.06098157539963722, 0.004458599723875523, -0.03328971192240715, 0.004727558698505163, 0.01805306412279606, 0.026309892535209656, 0.00884722638875246, -0.007648936472833157, 0.02370339445769787, -0.034899093210697174, 0.05125531181693077, 0.00111519661732018 ]