Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solves issue #6 #7

Merged
merged 3 commits into from
Nov 18, 2021
Merged

Solves issue #6 #7

merged 3 commits into from
Nov 18, 2021

Conversation

ribosaki
Copy link

A new perl script named "feed_venn_labels.pl" has been created that generates an ascii input file with the same format as before with the following modification:
The lines indicating the number of elements for each group can hold in addition a label for that circle. A blank space separates the number and the label (which continues until the end of the line).
So these two files would be for equivalent diagrams, except that the second one contains labels:

=============
nVenn v1.2
3
Group1
Group2
Group3
0
2
1
2
3
0
1
1

nVenn v1.2
3
Group1
Group2
Group3
0
2 z, x
1 f
2 g, h
3 c, d, e
0
1 b
1 a

The main.cpp has modified in order to parse correctly both types of input files. In addition the class borderLine has been extended to include a vector of strings containing the labels for each circle. The printing of these labels to the svg plot has been added in function toSVG().
The most tricky part has been to properly assign the labels to the corresponding circle, as the binMap does not follow "standard binary order". This assignment has been done inside the function setCircles(...).

The documentation has not been updated for this change, as it is unsure if this modification will be included into the main branch.

@vqf vqf merged commit 8b3377f into vqf:master Nov 18, 2021
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.

2 participants