Skip to main content

Table 1 Examples of dictionary-based python string formatting

From: CDSbank: taxonomy-aware extraction, selection, renaming and formatting of protein-coding DNA or amino acid sequences

Label format

Comment format

Resulting title line

>%(ComName)s

[%(SciName)s]

>human [Homo sapiens]

>%(genus).1 s%(species)s

gene = %(gene)s

>Hsapiens gene = HBA2

>%(gi)s_%(taxID)s

%(today)s

>450145_9606 2013-05-10

>seq%(sqNr)s

order = %(order)s

>seq1 order = Primates

%(ComName)s

%(pcGC)5.2f

human 65.26a

  1. aExample of a tab-delimited annotation file linking the sequence label to the GC-percentage of its DNA sequence. In this case, the sequence representation should be set to “do not show sequence”.