remicorne / phd

Other
0 stars 1 forks source link

Directed Network data selection - BUG 🐞 #69

Closed jjb-hub closed 3 weeks ago

jjb-hub commented 3 months ago

Here TYR exists in one region (OF) but not the other (PL) hence when it goes to add correlations for it the node does not yet txist - in this case, only nodes (in this reverse case compounds) that exist for both regions should be included, hence TYR should be excluded and a print 'node TYR excluded as it is not in region/compound OF'

Code to get bug: '''python from module.core.Figure import Network from module.core.Constants import * Network(project ='TCB2',

experiment='agonist antagonist',

            compound=COMPOUND_CLASSES['amino_acids'], 
            region= 'PL-OF', 
            from_scratch=True, 
            remove_outliers='calculated', 
            )

''' NetworkXError: Node 'TYR' has no position. Screenshot 2024-08-12 at 16 55 53