GenomeComb
cg tsv2bed ?infile? ?outfile?
Converts data in tab-separated format (tsv) format to bed format. By default it will create a minimal bed file by extracting chromosome,begin and end from the input using the default fields.
cg tsv2bed --fields '{} {} {} name score' tsvfile bedfile
will add the name and score fields, taking the default columns for chromosome,begin,end
If the first (chromosome) field is not found in the header, it will be put as a value in the output, e.g.
cg tsv2bed --fields 'contig1 {} {} name score' tsvfile bedfile
will contain the value "contig1" for the first (chromosome) field in all output
Format Conversion