Skip to content

Conversation

@oliverfanderson
Copy link
Contributor

Finish wrapping BowTieBuilder pathway reconstruction algorithm into SPRAS environment.

BTB connects multiple source nodes to multiple target nodes in a "BowTie" shape. It can consider weighted edges and works on both directed and undirected graphs.

Copy link
Contributor

@sumedhars sumedhars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • all tests passed
  • btb ran successfully

for line in edge_file:
line = line.strip()
line = line.split('\t')
line = line[2]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be colllapsed into:
_ = line.strip().split('\t')[2]

instead of:
line = line.strip() line = line.split('\t') line = line[2]

line = line.split('\t')
line = line[2]

except Exception as err:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe raise an IndexError instead? can say that edge file isnt formatted correctly/etc

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request deletes several of the LocalNeighborhood files. Can you please restore those?

@tristan-f-r tristan-f-r added the algorithm Pathway reconstruction algorithm to add to SPRAS label May 29, 2025
@tristan-f-r tristan-f-r mentioned this pull request Jun 3, 2025
@tristan-f-r
Copy link
Collaborator

tristan-f-r commented Jun 3, 2025

[closed in favor of #250]

@tristan-f-r tristan-f-r closed this Jun 3, 2025
This was referenced Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

algorithm Pathway reconstruction algorithm to add to SPRAS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants