Commit 38cded99 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

scripts/ Get the sample_set ID not the sample_set_membership ID

parent dbad7ad2
......@@ -10,11 +10,11 @@ def create_clone_db_for_sequences(sequences, output_file):
vtf_metadata = []
vtf_result_files = []
for sequence in sequences:
sample_sets = db(db.sample_set_membership.sequence_file_id ==
sample_sets = db(db.sample_set_membership.sequence_file_id ==
last_results = get_last_results(
for result in last_results:
if result.data_file is not None:
vtf_metadata.append('-d "'+' '.join(['sample_set='+str( for s in sample_sets])+' '+'config_id='+str(result.config_id)+'"')
vtf_metadata.append('-d "'+' '.join(['sample_set='+str(s.sample_set_id) for s in sample_sets])+' '+'config_id='+str(result.config_id)+'"')
command = 'python %s/ %s -w -o %s %s ' % (vidjil_to_fasta_path, ' '.join(vtf_metadata), output_file, ' '.join(vtf_result_files))
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