Skip to content

Commit

Permalink
bug fixes on file read
Browse files Browse the repository at this point in the history
  • Loading branch information
DeshanPerera committed Oct 2, 2024
1 parent 5f00f37 commit d9343f4
Show file tree
Hide file tree
Showing 7 changed files with 1,041 additions and 976 deletions.
2 changes: 2 additions & 0 deletions cancer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ cancer::cancer(string parameter_Master_Location)
cout << "Decimal date: " << stop_Date << endl;
}

// exit(-1);

cout << "\nConfiguring hardware resources:\n\n";
this->CPU_cores = Parameters.get_INT(found_Parameters[1]);
cout << "Available CPU cores: " << this->CPU_cores << endl
Expand Down
1,991 changes: 1,027 additions & 964 deletions cancer_Host.cu

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions cancer_Host.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public:

void simulate_cell_Round(functions_library &functions, string &multi_Read, int &num_Cuda_devices, int *CUDA_device_IDs,
int &num_of_Cells, int &start, int &stop,
int *parents_in_Tissue, int &tissue, string tissue_Name,
vector<int> &parents_in_Tissue, int &tissue, string tissue_Name,
vector<pair<int, int>> &indexed_Tissue_Folder,
string this_Gen_intermediary_Sequences,
int &overall_Generations,
Expand Down Expand Up @@ -215,11 +215,11 @@ public:
// int &start, int &stop, int cell_Count,
// int *CUDA_device_IDs);

string find_Sequences_Master(int &offset, int &tissue, string &tissue_Name, functions_library &functions, string &folder_Path, int *parents_in_Tissue, int &num_Sequences, vector<pair<int, int>> &indexed_Tissue_Folder, int &current_Generation, vector<int> &parent_IDs, float *parents_Elapsed, int &last_index_Seq_Written, mt19937 &gen,
string find_Sequences_Master(int &offset, int &tissue, string &tissue_Name, functions_library &functions, string &folder_Path, vector<int> &parents_in_Tissue, int &num_Sequences, vector<pair<int, int>> &indexed_Tissue_Folder, int &current_Generation, vector<int> &parent_IDs, float *parents_Elapsed, int &last_index_Seq_Written, mt19937 &gen,
int &tissue_Migration_Total, multiset<pair<float, int>> &migration_cell_List,
string &viral_Migration);

void thread_find_Files(int offset, int start, int stop, int *parents_in_Tissue, vector<pair<int, int>> &indexed_Tissue_Folder);
void thread_find_Files(int offset, int start, int stop, vector<int> &parents_in_Tissue, vector<pair<int, int>> &indexed_Tissue_Folder);

void thread_Sequence_to_String_Cancer(int start, int stop, int **progeny_Sequences);

Expand Down
Binary file modified main
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Terminal load distribution type":"Fixed",
"Terminal load Binomial trials":100000,
"Terminal load Binomial probability":"0.75",
"Terminal load Fixed":1000,
"Terminal load Fixed":100000,

"Tissue profiles":{

Expand Down
2 changes: 1 addition & 1 deletion parameters_Cancer/parameters_MASTER.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"Stop after generations":"Yes",
# Generations or Date can be used to stop the simulation as well
"Mode to stop":"Generations",
"Number of generations":5,
"Number of generations":20,
"End date":"2024-01-12",

# Node profile parameter file location
Expand Down
14 changes: 7 additions & 7 deletions parameters_Cancer/sequence_Profiles/sequence_Master.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@

"Number of regions":5,

"Region 1":"100_100",
"Region 2":"50_200",
"Region 3":"10_10",
"Region 4":"1_100",
"Region 5":"200_300",
"Region 1":"1_10",
"Region 2":"20_100",
"Region 3":"15_50",
"Region 4":"50_75",
"Region 5":"80_90",

},

Expand All @@ -49,7 +49,7 @@

"Hotspot 1":{

"Region":"100_100",
"Region":"1_100",
# Clock model, can follow a Poisson or Negative Binomial distribution or be Fixed.
"Clock model":"Poisson",

Expand Down Expand Up @@ -81,7 +81,7 @@

"Hotspot 2":{

"Region":"10000_20000",
"Region":"50_50",
# Clock model, can follow a Poisson or Negative Binomial distribution or be Fixed.
"Clock model":"Negative Binomial",

Expand Down

0 comments on commit d9343f4

Please sign in to comment.