cmatkhan commited on
Commit
e987fef
·
verified ·
1 Parent(s): 2e86d57

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. scripts/parse_mcisaac_data.R +17 -5
scripts/parse_mcisaac_data.R CHANGED
@@ -86,8 +86,20 @@ mcisaac_GeneName_to_target_locus_tag = mcisaac_for_parquet %>%
86
  select(GeneName, target_locus_tag) %>%
87
  distinct()
88
 
89
- # mcisaac_for_parquet %>%
90
- # select(regulator_locus_tag, time, mechanism, restriction, date, strain,
91
- # target_locus_tag, ends_with("median"), starts_with("log2")) %>%
92
- # group_by(regulator_locus_tag, time, mechanism, restriction, date, strain) %>%
93
- # write_dataset(path = here("data/mcisaac/hf/data"), format = "parquet")
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  select(GeneName, target_locus_tag) %>%
87
  distinct()
88
 
89
+ mcisaac_for_parquet %>%
90
+ select(regulator_locus_tag, regulator_symbol, target_locus_tag, target_symbol,
91
+ time, mechanism, restriction, date, strain,
92
+ ends_with("median"), starts_with("log2")) %>%
93
+ write_parquet("~/code/hf/hackett_2020/hackett_2020.parquet",
94
+ compression = "zstd",
95
+ write_statistics = TRUE,
96
+ use_dictionary = c(
97
+ regulator_locus_tag = TRUE,
98
+ regulator_symbol = TRUE,
99
+ target_locus_tag = TRUE,
100
+ target_symbol = TRUE,
101
+ time = TRUE,
102
+ mechanism = TRUE,
103
+ restriction = TRUE,
104
+ date = TRUE,
105
+ strain = TRUE))