Skip to content

Gfa paths#64

Closed
asl wants to merge 6 commits into
rrwick:developmentfrom
asl:gfa-paths
Closed

Gfa paths#64
asl wants to merge 6 commits into
rrwick:developmentfrom
asl:gfa-paths

Conversation

@asl

@asl asl commented May 2, 2018

Copy link
Copy Markdown

This PR provides an experimental support to load paths from GFA. One could then draw the graph along these paths (e.g. in SPAdes cases these are the scaffolds).

@ekg

ekg commented Aug 13, 2021

Copy link
Copy Markdown

Could this be merged?

It's very useful.

@ekg

ekg commented Aug 13, 2021

Copy link
Copy Markdown

@rrwick would it be better if we forked Bandage for future development?

@rlorigro

rlorigro commented Sep 9, 2021

Copy link
Copy Markdown

I would also benefit quite a lot from being able to visualize paths, and I know several others in my lab would too.

@asl

asl commented Sep 9, 2021

Copy link
Copy Markdown
Author

I went ahead and made a fork: https://github.com/asl/Bandage
Also, qt6 branch contains port to qt6.

@rlorigro

rlorigro commented Sep 9, 2021

Copy link
Copy Markdown

Cool, thanks. I am running into a couple issues when attempting to build on Ubuntu 20, using the qmake recipe from the Readme.

I have resolved the first issue, which was actually on the main branch, and this link summarizes the issue and the working solution:
https://stackoverflow.com/a/52841306/5095925

The second issue is that when I switch to your gfa-paths branch, I am getting QT namespace-related errors, and I don't know if I can fix this on my own:

ui/mygraphicsview.cpp: In member function ‘QPointF MyGraphicsView::findIntersectionWithViewportBoundary(QLineF)’:
ui/mygraphicsview.cpp:243:14: error: ‘class QLineF’ has no member named ‘intersects’; did you mean ‘intersect’?
  243 |     if (line.intersects(boundary1, &intersection) == QLineF::BoundedIntersection)
      |              ^~~~~~~~~~
      |              intersect

It seems to suggest that references are being made to functions that come from a different version of qt? Here is nearly the same issue on stackoverflow again:
therecipe/qt#750

@ekg

ekg commented Sep 9, 2021

Copy link
Copy Markdown

@asl you should merge your gfa-paths changes into master on the fork. I'll be happy to contribute some powerups, for path position queries in particular. CC @AndreaGuarracino

@asl

asl commented Sep 9, 2021

Copy link
Copy Markdown
Author

@rlorigro gfa-paths branch is still with "old" qt5. I will need to find some time to merge everything together :)

@rlorigro

rlorigro commented Sep 9, 2021

Copy link
Copy Markdown

Hmm ok. I think it's actually not related to qt6, if that's what you mean

@asl

asl commented Sep 9, 2021

Copy link
Copy Markdown
Author

It does. intersects is deprecated in Qt5 and was removed from Qt6. Everything else depends on the exact version of Qt + additional flags. See asl@03892ef

@rlorigro

rlorigro commented Sep 9, 2021

Copy link
Copy Markdown

I guess I am confused because I am attempting to build with QT_SELECT=5, and the issue i referenced (therecipe/qt#750) seems to indicate that it is an error involving the qt5 library itself.

@rlorigro

rlorigro commented Sep 9, 2021

Copy link
Copy Markdown

The issue may be that Ubuntu20.04 uses qt 5.12: https://packages.ubuntu.com/focal/qtbase5-dev so I guess I will try upgrading

@asl

asl commented Sep 10, 2021

Copy link
Copy Markdown
Author

So, I went ahead and merged everything into 'dev' branch of https://github.com/asl/Bandage repo. Now with GFA paths and Qt6.

@ekg

ekg commented Sep 10, 2021 via email

Copy link
Copy Markdown

@asl

asl commented Sep 10, 2021

Copy link
Copy Markdown
Author

The 'dev' branch is default in the fork to emphasize the status (note that it includes several commits and bugfixes from 'development' branch of rrwick/bandage that are absent from master). I do not have bandwidth to do any binary releases, etc. so feel free to contribute :)

@ekg

ekg commented Sep 10, 2021 via email

Copy link
Copy Markdown

@asl

asl commented May 13, 2022

Copy link
Copy Markdown
Author

Closing as the project is not going to update anymore. Those who need paths might use https://github.com/asl/Bandage/ instead

@asl asl closed this May 13, 2022
@asl asl deleted the gfa-paths branch May 31, 2022 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants