Skip to content

Commit c91b123

Browse files
authored
Update gggenomes_skeleton.stargraph.R
1 parent f96f1ae commit c91b123

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/gggenomes_skeleton.stargraph.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ bed=read.csv("PATHTOOUTPUT/CLUSTER.regions_plus_flank.plotting.bed", sep='\t', h
1616
##just modify some headers for downstream handling
1717
##make another header, copy of contig, but called seq_id
1818
bed$seq_id = bed$contig
19+
##add another column, bin_id, which will be used by gggenomes to split up each element onto its own line (defaults to seq_id for clustering per row if not present)
20+
bed$bin_id = 1:nrow(bed)
1921
##also length using the end position
2022
#bed$length = bed$end
2123
bed$length = bed$end - bed$start

0 commit comments

Comments
 (0)