forked from victoradell/single-nucleotide-polymorphisms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Primers intents construir matriu de kernel
- Loading branch information
1 parent
a09a952
commit 3a6789d
Showing
2 changed files
with
417 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include <iostream> | ||
#include <fstream> | ||
#include <sstream> | ||
#include <vector> | ||
#include <string> | ||
|
||
using namespace std; | ||
using Matrix = vector<vector<int>>; | ||
|
||
const int N = 389; | ||
const int D = 27183; | ||
|
||
Matrix load_dataframe(string filepath) { | ||
Matrix K(N, vector<int>(N, 0)); | ||
ifstream data(filepath); | ||
if (data.is_open()) { | ||
for (int i = 0; i < N; ++i) { | ||
for (int j = 0; j < D; ++j) { | ||
|
||
} | ||
} | ||
} else { | ||
cout << "Could not load " << filepath << endl; | ||
} | ||
return K; | ||
} | ||
|
||
|
||
|
||
int main() { | ||
Matrix X = load_dataframe("../data/snp.csv"); | ||
} |
Oops, something went wrong.