Save / Load with multiple data inputs / outputs

オープン
#192 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
julia
領域
data, tooling

調査の方向性

FileIO の load/save インターフェースを、提案されている 2 テーブルの PCL 例および id_row="sampleID" オプションと照らし合わせて確認する。複数の入力/出力のディスパッチと、このメタデータ/feature の分離がフレームワークに適合するかを判断し、具体的な API の決定事項と想定される動作を文書化する。

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Julia
スター
228
フォーク
83
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

JuliaIO/FileIO.jl のほかの issue

JuliaIO/FileIO.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。