Commit 3e981032 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

sequence_file.py add some function documentation.

parent 3026e693
...@@ -109,6 +109,9 @@ def get_run_id(file_id): ...@@ -109,6 +109,9 @@ def get_run_id(file_id):
return run_id return run_id
def get_sequence_file_sample_sets(sequence_file_id): def get_sequence_file_sample_sets(sequence_file_id):
'''
return the list of sample_sets a sequence_file belongs to
'''
query = db((db.sample_set_membership.sequence_file_id == sequence_file_id)).select(db.sample_set_membership.sample_set_id) query = db((db.sample_set_membership.sequence_file_id == sequence_file_id)).select(db.sample_set_membership.sample_set_id)
sample_set_ids = [] sample_set_ids = []
for row in query: for row in query:
...@@ -116,6 +119,9 @@ def get_sequence_file_sample_sets(sequence_file_id): ...@@ -116,6 +119,9 @@ def get_sequence_file_sample_sets(sequence_file_id):
return sample_set_ids return sample_set_ids
def get_sequence_file_config_ids(sequence_file_id): def get_sequence_file_config_ids(sequence_file_id):
'''
return the list of configs run ona sequence_file
'''
query = db((db.results_file.sequence_file_id == sequence_file_id)).select(db.results_file.config_id) query = db((db.results_file.sequence_file_id == sequence_file_id)).select(db.results_file.config_id)
config_ids = [] config_ids = []
for row in query: for row in query:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment