Comments (8)
👍 I'll merge a pull request if there are no dissenters.
They could also be used as a hacky solution to add user defined annotations into a file in the same way that javadoc / doxygen use source code comments.
I'd like to avoid this use of comments. I'd suggest that header H
records with optional fields should be used for this purpose.
from gfa-spec.
My understanding is that header lines can only appear at the top of a file. Is this true? Spec is unclear.
My use case was that the user might want to bundle in some association between a set of Segments/Links after they have been declared. Example:
# SNP r313131 seg100,link101,seg102/seg200,link201,seg202
This comment is skipped by general GFA tools, but the gives the user the opportunity to extend/abuse the file format without proposing an alteration to the format for their small use case.
from gfa-spec.
I propose a JSON J
record to contain completely arbitrary data.
Column | Type | Description |
---|---|---|
1 | Character | J |
2 | String | JSON |
from gfa-spec.
I do like to point out JSON is actually quite complicated format (although better than XML for its simplicity). What we need is a restrict set of JSON? A simple example, do we allow \n
in the JSON string? If we do, the parser needs to know that.
from gfa-spec.
Yes, I agree, Jason. In particular, the characters \t
and \n
must not appear in the JSON. Defining the subset that we allow would be helpful.
from gfa-spec.
Yes @pb-jchin, parsers need to be aware of new lines within JSON objects. I've written similar code 1 that reads until the end of a JSON object (for loading JSON headers) -- it's about 40 lines of code in C.
Using JSON does mean that lines starting with S might not be segment lines. This may upset some people who rely on awk
. It wouldn't be hard to write a GFA tool that stripped JSON annotations though.
I don't think we need to restrict to a subset of JSON. Other people may prefer that we do not allow any new line characters in strings or in JSON objects. I can understand the motivation.
from gfa-spec.
Let's move this discussion regarding the JSON format to #15.
from gfa-spec.
@noporpoise Would you open a pull request proposing that lines starting with #
are comments?
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.