-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
odgi props: Describe a node's properties, including label length, sequence, depth, incoming and outgoing degree. Required args -i <input graph.og>, -g graph position ([[node_id][,offset[,(+|-)]**]**]) or node range (>405>410) or -G file with one graph position or node range per line. Options: -p/--paths-covered print all paths covering the given node, -r/--ref-path <path> Required if supplying node ranges. Reference path to traverse, printing props for each node in range.
# Print basic properties of a given graph node.
odgi props -i graph.path -g 405
# node_id label_length sequence depth in_degree out_degree
405 16 acagataaggccttta 5 1 2
# Print extended properties of a given graph node.
odgi props -i graph.path -g 405 -p
# node_id label_length sequence depth in_degree out_degree paths_crossing
405 16 acagataaggccttta 5 1 2 GRCh38#0#chr1,HG005#1#chr1,HG00438#2#chr1,HG004#0#chr1,HG003#0#chr1
# Print node properties for a range of nodes in a path.
odgi props -i graph.og -g >405>408 -r HG004#0#chr1
# node_id label_length sequence depth in_degree out_degree
405 16 acagataaggccttta 5 1 2
407 8 ggccttta 1 1 1
408 10 ccccttacta 5 2 1
odgi props -i graph.og -g >405>408 -r HG005#1#chr1
# node_id label_length sequence depth in_degree out_degree
405 16 acagataaggccttta 5 1 2
406 11 ggaattcaccg 4 1 1
408 10 ccccttacta 5 2 1
Metadata
Metadata
Assignees
Labels
No labels