Hi, I want to save a data frame with a list column to tsv
> group_file
# A tibble: 2,233 x 2
gene_name marker
<chr> <list>
1 A3GALT2 <chr [81]>
2 AADACL3 <chr [91]>
3 AADACL4 <chr [132]>
4 ABCA4 <chr [756]>
5 ABCB10 <chr [219]>
6 ABCD3 <chr [260]>
7 ABL2 <chr [676]>
8 ACADM <chr [305]>
9 ACAP3 <chr [121]>
10 ACBD3 <chr [200]>
# … with 2,223 more rows
and I want to save this to a format like and each row consist of gene name followed by the markers belonging to that gene:
GENE1 chrX:4_A/C chrX:9_A/C chrX:10_A/C chrX:11_A/C
GENE2 chrX:12_A/C chrX:14_A/C chrX:15_A/C chrX:17_A/C
But I couldn't save it directly:
> write_tsv(group_file,"../data/group_fie.tsv")
Error: Flat files can't store the list column `marker`
What should I do about it?