def _chunk_query_dss_objs_from_dss_uids(self):
     list_of_data_set_samples_of_analysis = []
     for uid_list in general.chunks(
             self.virtual_obj_manager.list_of_data_set_sample_uids):
         list_of_data_set_samples_of_analysis.extend(
             list(DataSetSample.objects.filter(id__in=uid_list)))
     return list_of_data_set_samples_of_analysis
 def _chunk_query_dss_from_dss_uids(self):
     print('Chunking query')
     data_set_samples = []
     for uid_list in general.chunks(self.list_of_data_set_sample_uids):
         data_set_samples.extend(
             list(DataSetSample.objects.filter(id__in=uid_list)))
     return data_set_samples
 def _chunk_query_dss_from_ds_uids(self):
     data_set_samples = []
     for uid_list in general.chunks(self.list_of_data_set_uids):
         data_set_samples.extend(
             list(
                 DataSetSample.objects.filter(
                     data_submission_from__in=uid_list)))
     return data_set_samples
 def _chunk_query_dsss_from_cc_objs(self, ccs_of_analysis):
     data_set_sample_sequence_objects_of_analysis = []
     for uid_list in general.chunks(ccs_of_analysis):
         data_set_sample_sequence_objects_of_analysis.extend(
             list(
                 DataSetSampleSequence.objects.filter(
                     clade_collection_found_in__in=uid_list)))
     return data_set_sample_sequence_objects_of_analysis
Exemplo n.º 5
0
 def _chunk_query_dss_objs_from_ds_uids(self, ds_of_analysis):
     dss_of_analysis = []
     for uid_list in general.chunks(ds_of_analysis):
         dss_of_analysis.extend(
             list(
                 DataSetSample.objects.filter(
                     data_submission_from__in=uid_list)))
     return dss_of_analysis
 def _set_ccs_of_analysis(self, data_set_samples):
     print('Chunking query')
     clade_collection_obj_list = []
     for uid_list in general.chunks(data_set_samples):
         clade_collection_obj_list.extend(
             list(
                 CladeCollection.objects.filter(
                     data_set_sample_from__in=uid_list)))
     return clade_collection_obj_list
Exemplo n.º 7
0
 def get_clade_collections(self):
     uids_for_query = [
         int(x) for x in self.list_of_clade_collections.split(',')
     ]
     cc_objs_list = []
     for uid_list in general.chunks(uids_for_query):
         cc_objs_list.extend(
             list(CladeCollection.objects.filter(id__in=uid_list)))
     return cc_objs_list
Exemplo n.º 8
0
 def get_clade_collections(self):
     list_of_uids = [int(x) for x in self.list_of_data_set_uids.split(',')]
     clade_collections = []
     for uid_list in general.chunks(list_of_uids):
         clade_collections.extend(
             list(
                 CladeCollection.objects.filter(
                     data_set_sample_from__data_submission_from__in=uid_list
                 )))
     return clade_collections
 def _chunk_query_ref_seq_obj_from_rs_uids(self, rs_uid_list_to_query):
     ref_seq_objs = []
     for uid_list in general.chunks(rs_uid_list_to_query):
         ref_seq_objs.extend(
             list(ReferenceSequence.objects.filter(id__in=uid_list)))
     return ref_seq_objs
Exemplo n.º 10
0
 def _chunk_query_ds_objs_from_ds_uids(self, ds_uid_list_for_query):
     ds_of_analysis = []
     for uid_list in general.chunks(ds_uid_list_for_query):
         ds_of_analysis.extend(list(
             DataSet.objects.filter(id__in=uid_list)))
     return ds_of_analysis