diff options
author | Zachary Sloan | 2013-04-30 19:16:51 +0000 |
---|---|---|
committer | Zachary Sloan | 2013-04-30 19:16:51 +0000 |
commit | d4138b76eae3aa54ba18d44d753cb440aac7a0f8 (patch) | |
tree | 2863714514b064b7c4a3c255e3dbc2010da10729 | |
parent | 275f9210a7af6a2de32e8e102de816276b5ef237 (diff) | |
download | genenetwork2-d4138b76eae3aa54ba18d44d753cb440aac7a0f8.tar.gz |
Did a little with correlation_plot.py
-rw-r--r-- | wqflask/wqflask/correlation/correlation_plot.py | 7 | ||||
-rw-r--r-- | wqflask/wqflask/my_pylmm/pyLMM/process_plink.py | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/wqflask/wqflask/correlation/correlation_plot.py b/wqflask/wqflask/correlation/correlation_plot.py index 4b043fc3..c2b64d70 100644 --- a/wqflask/wqflask/correlation/correlation_plot.py +++ b/wqflask/wqflask/correlation/correlation_plot.py @@ -24,6 +24,10 @@ class CorrelationPlot(object): self.samples_1 = self.get_samples(self.dataset1, sample_names_1, self.trait1) self.samples_2 = self.get_samples(self.dataset2, sample_names_2, self.trait2) + coords = {} + for sample in self.samples_1: + coords[sample.name] = (sample.val) + def get_sample_names(self, dataset): if dataset.group.parlist: @@ -45,4 +49,5 @@ class CorrelationPlot(object): sample_group_type='primary', header="%s Only" % (dataset.group.name)) - return samples
\ No newline at end of file + return samples +
\ No newline at end of file diff --git a/wqflask/wqflask/my_pylmm/pyLMM/process_plink.py b/wqflask/wqflask/my_pylmm/pyLMM/process_plink.py index 8f7ad243..1274fe50 100644 --- a/wqflask/wqflask/my_pylmm/pyLMM/process_plink.py +++ b/wqflask/wqflask/my_pylmm/pyLMM/process_plink.py @@ -17,6 +17,7 @@ identifier = plink_data['identifier'] print("identifier: ", identifier) + ps, ts = lmm.human_association(snp, n, keep, @@ -25,4 +26,3 @@ ps, ts = lmm.human_association(snp, covariate_matrix, kinship_matrix, refit) - |