Description
Format one supplied GTF-style quoted attribute.
Sequence formats distinguish coordinate origins, included endpoints, allele separators and identifier grammars. A genomic interbase position differs from a base number, and a parsed optional-field value may still violate its declared type. Local token checks preserve representation without validating a complete file, sequence, reference assembly or biological interpretation.
Format one supplied GTF-style quoted attribute.
When to use this tool
Use GTF Quoted Attribute Token when you already have attributeName, valueText and need to format one supplied GTF-style quoted attribute.
How to use the tool and how it works
- Enter attributeName, valueText. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read attributeToken. Use the output convention below.
Require an ASCII letter/underscore name followed by letters/digits/underscores. Reject double quotes, backslashes, C0 controls and DEL in valueText, then output name, space, double-quoted value and semicolon.1
GTF annotation attributes use key/value entries with quoted values and semicolon delimiters. One formatted attribute does not establish a valid feature record or satisfy all required annotation fields.2
| Input field | Meaning and units | Accepted input |
|---|---|---|
| attributeName | Attribute Name | Required. Text; maximum UTF-16 length 8192. |
| valueText | Literal attribute value without double quote, backslash, C0 controls or DEL; rejected characters are not escaped. | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| attributeToken | Attribute Token | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"attributeName": "gene_id",
"valueText": "GENE17"
},
"output": {
"attributeToken": "gene_id \"GENE17\";"
}
} Limitations and assumptions
- The value can be empty. This restricted formatter does not escape rejected characters or validate required attributes, coordinates, annotation biology or a complete GTF feature.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use the complete applicable file specification and a full format validator for conformance. Verify reference assembly, sequence bounds, annotation and database context before interpreting local fields or coordinate transformations.
References
Similar or alternative tools
- SAM Optional Field Type Token
Split a supplied SAM-style optional-field token into tag, type and value text.
- BED Zero To Start
Convert a nonempty zero-based half-open BED interval to one-based endpoints.