Skip to content

Commit 4e8d1e9

Browse files
author
Nolan Woods
committed
Add PTT query
1 parent 1c4fb45 commit 4e8d1e9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ Examples:
7272

7373
[*].{id: id, type: annotations.molecule_type}
7474

75+
Convert dataset to PTT format using text output::
76+
77+
[0].[join(' - 1..', [description, to_string(length(seq))]), join(' ', [to_string(length(features[?type=='CDS' && qualifiers.translation])), 'proteins']), join(`"\t"`, ['Location', 'Strand', 'Length', 'PID', 'Gene', 'Synonym', 'Code', 'COG', 'Product']), (features[?type=='CDS' && qualifiers.translation].[join('..', [to_string(sum([location.start, `1`])), to_string(location.end)]), [location.strand][?@==`1`] && '+' || '-', length(qualifiers.translation[0]), qualifiers.db_xref[?starts_with(@, 'GI')][0] || '-', qualifiers.gene[0] || '-', qualifiers.locus_tag[0] || '-', '-', '-', qualifiers.product[0] ] | [*].join(`"\t"`, [*].to_string(@)) )] | []
78+
7579
See CONTRIBUTING.rst_ for information on contributing to this repo.
7680

7781
.. _CONTRIBUTING.rst: CONTRIBUTING.rst

0 commit comments

Comments
 (0)