Upload folder using huggingface_hub
Browse files
scripts/parse_harbison_data.R
CHANGED
|
@@ -135,3 +135,29 @@ combined_harbison_harmonized %>%
|
|
| 135 |
group_by(condition, regulator_locus_tag) %>%
|
| 136 |
write_dataset(path = here("data/harbison/hf/data"), format = "parquet")
|
| 137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
group_by(condition, regulator_locus_tag) %>%
|
| 136 |
write_dataset(path = here("data/harbison/hf/data"), format = "parquet")
|
| 137 |
|
| 138 |
+
combined_harbison_harmonized %>%
|
| 139 |
+
select(regulator_locus_tag,regulator_symbol,
|
| 140 |
+
target_locus_tag, target_symbol,
|
| 141 |
+
condition, effect, pvalue) %>%
|
| 142 |
+
write_parquet("~/code/hf/harbison_2004/harbison_2004.parquet",
|
| 143 |
+
compression = "zstd",
|
| 144 |
+
write_statistics = TRUE,
|
| 145 |
+
chunk_size = 6226,
|
| 146 |
+
use_dictionary = c(
|
| 147 |
+
condition = TRUE,
|
| 148 |
+
regulator_locus_tag = TRUE,
|
| 149 |
+
regulator_symbol = TRUE,
|
| 150 |
+
target_locus_tag = TRUE,
|
| 151 |
+
target_symbol = TRUE
|
| 152 |
+
)
|
| 153 |
+
)
|
| 154 |
+
|
| 155 |
+
combined_harbison_harmonized %>%
|
| 156 |
+
select(harbison_locus_tag, target_locus_tag) %>%
|
| 157 |
+
distinct() %>%
|
| 158 |
+
write_csv("~/code/hf/harbison_2004/scripts/harbison_locus_tag_to_target_locus_tag.csv")
|
| 159 |
+
|
| 160 |
+
combined_harbison_harmonized %>%
|
| 161 |
+
select(harbison_regulator, regulator_locus_tag) %>%
|
| 162 |
+
distinct() %>%
|
| 163 |
+
write_csv("~/code/hf/harbison_2004/scripts/harbison_regulator_to_regulator_locus_tag.csv")
|