Comments (15)
I may have time, but this issue going away would have made sure I would forget.
from gfa-spec.
Hmmm. Yes, that it is a tad confusing. The simplest fix would be an explanatory comment indicating that an asterisk *
on its own separated by white space is the literal terminal *
, whereas an asterisk immediately following another terminal without white space is the zero-or-more repetition operator.
I wouldn't myself be opposed to migrating to EBNF. Standards are good, and this is a standard after all. =p It would need to be proposed and pass with a vote. See Criteria for merging a pull request
#16
from gfa-spec.
The short term solution would be to quote literals.
from gfa-spec.
What do you propose for more complex terminals?
For example
<tag> <- [A-Za-z0-9][A-Za-z0-9]:[ABHJZif]:[ -~]*
<pos> <- <int>{$}
<int> <- {-}[0-9]+
becomes
<tag> <- [A-Za-z0-9][A-Za-z0-9]":"[ABHJZif]":"[ -~]*
<pos> <- <int>{"$"}
<int> <- {"-"}[0-9]+
To my eyes that's not more readable.
I suggest that we use [*]
to represent a literal *
, which is a character set of the single character *
. It's consistent, and resolves the ambiguity. For example
<gap> <- G <gid:opt_id> <sid1:ref> <sid2:ref> <dist:int> ([*] | <var:int>) <tag>*
I'd also suggest adding a text clarification.
* zero-or-more
+ one-or-more
[] a set of one character alternatives.
[*] the literal asterisk character
Feel free to open a pull request if you agree.
from gfa-spec.
Yeah, if quotes are required around literals, then white space can be used to separate tokens. This is what EBNF does. A half-way with lighter-on-the-page syntax would be to use single quote only where it's needed to disambiguate a character (I don't like a single member character group, though that's an aesthetic thing that maybe I should get over).
from gfa-spec.
Since we're not using quotes around other literals, I feel like it would be inconsistent and confusing to use quotes around just one literal, namely "*"
. I don't much like single member character groups either, but in this case, I think it's the least worst of the options.
from gfa-spec.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
from gfa-spec.
bot bump
from gfa-spec.
@kortschak Are you interested in opening a PR that uses the single member character group [*]
?
from gfa-spec.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
from gfa-spec.
Having a stale bot clear away issues that remain relevant is IMHO a bad approach to good software maintenance.
from gfa-spec.
We close issues that no one is actively working on. Feel free to open a PR as suggested above in #80 (comment).
from gfa-spec.
Yeah, I understand that, I just don't think it's a sensible approach. Closed issues lead to non-work. At the moment, I'm not able to spend the time doing this. With a closed issue, no-one else will either. Issues are for neatness, they're for keeping track of what should be done.
from gfa-spec.
Not all issues will eventually be addressed. Professional projects have project managers to triage and decide which issues will be addressed. In open source, unless someone volunteers their time to address the issue, the issue will not be addressed. Issues that are not important enough for anyone to volunteer to fix will not be fixed and are closed.
from gfa-spec.
OK. As the/a maintainer of a few open source projects I find that an odd approach, but this it your project.
from gfa-spec.
Related Issues (20)
- Need to specify "reference" in terms of cigar operations in overlap HOT 4
- Do two genes link together in GFA file indicate these two genes associate with each other? HOT 2
- Should a PG line (like in SAM) be codified in the spec? HOT 3
- GFA2: does not mention the encoding expected of file content (ASCII-7bit, UTF-8, etc.) HOT 1
- v1.1 is not semantically distinct from v1 HOT 2
- W lines: no description of '>' and '<' use HOT 2
- Use of GFA2 as a pangenome reference
- Representation of annotations in a GFA2/GFA3 file
- Segment names conflicts in spec
- Translocation and Inversion HOT 2
- Allow lowercase characters in hex strings
- looking for a CLI tool to produce circular candidates from GFA HOT 2
- Allow empty string value in optional field like SAM does HOT 1
- Namespace for S and P lines in GFA1 HOT 1
- Indicating that a path is circular HOT 2
- manipulating .gfa file HOT 5
- Implied adjacent objects in GFA2 groups are problematic HOT 3
- GFA2 specification does not mention optional field reserved tags HOT 4
- making path overlap cigar list optional HOT 3
- GFA has been submitted to the EDAM ontology HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gfa-spec.