Skip to content

Cytoscape: Genetic Links form with nodes that don't have a sequence #960

@dacowan404

Description

@dacowan404

I loaded the file (the csv version of the file, zenhub doesn't allow CSV files so I had to upload a excel version) and links were forming between each node and nodes (p1, p2, and p3). These three nodes don't have a sequence and they shouldn't have any genetic links. It seems this issue is specific to node files as a CSV, but node files as excel is working.

I believe I have a fix but am testing it further before pushing. Essentially, the empty field (null) is getting converted into a string 'null' by filterXSS function and then the string ('null') is being treated as a genetic sequences. After filterXSS and before calculating genetic distance there is a statement that sets the node.seq to a string of gaps/dashes ('------....') but this is based on if node.seq is falsey. The current fix is to expand the if statement that sets this to include if seq=='null', 'none' or 'na'.

COVID-19_simulated_NodeList.xlsx

image.png

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions