Save / Load with multiple data inputs / outputs
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Review FileIO's load/save interface against the proposed two-table PCL examples and the id_row="sampleID" option. Determine whether multi-input/output dispatch and this metadata/feature split fit the framework, then document a concrete API decision and its expected behavior.
Written by the indexing model from the issue text.
Description
I'm frequently dealing with a really weird tabular data structure called a PCL file - basically, the first n rows contain various forms of metadata (first column for these rows is metadata name), then below that it has a sample x feature matrix. So for example, I might have my_data.pcl:
| age | 12 | 14 | 18 |
|---|---|---|---|
| gender | m | f | f |
| sampleID | a | b | c |
| feature1 | 0.2 | 0.4 | 0.3 |
| feature2 | 0.3 | 0.2 | 0.3 |
| feature3 | 0.1 | 0.6 | 0.7 |
Since most of the operations occur on the numerical table part, and storing this all in a single dataframe (or whatever) would generally lead to columns with type Any, what I'd like to be able to do is have load/save functions that make/take two iterable tables, that share the sampleID row, eg the two tables would be:
metadatadf:
| sampleID | a | b | c |
|---|---|---|---|
| age | 12 | 14 | 18 |
| gender | m | f | f |
featuredf:
| sampleID | a | b | c |
|---|---|---|---|
| feature1 | 0.2 | 0.4 | 0.3 |
| feature2 | 0.3 | 0.2 | 0.3 |
| feature3 | 0.1 | 0.6 | 0.7 |
And I'd like to be able to do something like:
(x, y) = load("my_data.pcl", id_row="sampleID")
metadatadf = DataFrame(x)
featuredf = DataFrame(y)
save("new_table.pcl", metadatadf, featuredf)
Can I get some guidance on whether this is possible / makes sense to use the FileIO framework for this?
- Dominant language
- Julia
- Stars
- 228
- Forks
- 83
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaIO/FileIO.jl
-
Drop the hard `Pkg` dependencyPossibly taken @thchr claimed this 26 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
Add SVGZ formatOpen
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
All issues in JuliaIO/FileIO.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
brown-ccv/Chamber.jl#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAstro/SolarPosition.jl#143 ·
-
distributions
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaBayes/Wren.jl#404 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAI/MLJTransforms.jl#113 ·
Maintainers usually reply within 1 day