if (FALSE) {
# Create sample data
mats <- replicate(10, Matrix::pack(Matrix::Matrix(diag(5), sparse = FALSE)), simplify = FALSE)
# Write to Parquet
write_connectomes_to_parquet(
mats,
output_dir = "my_connectomes",
subject_ids = paste0("subj_", 1:10),
provenance = list(study = "Example Study", date = Sys.Date())
)
}
Run the code above in your browser using DataLab