Commit 90bff383 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

scripts/links.py: list of sequence files by patient, ready to be linked

parent 37656f88
import defs
import datetime
patient_id = 10
our_id = 0
for res in db(db.patient.id == db.sequence_file.patient_id).select():
our_id += 1
print "ln -s %s/%-20s %5s.fa" % (defs.DIR_SEQUENCES, res.sequence_file.data_file, our_id),
print "\t", "# seq-%04d" % res.sequence_file.id, "%-20s" % res.sequence_file.filename,
print "\t", "# pat-%04d (%s %s)" % (res.patient.id, res.patient.first_name, res.patient.last_name)
#!/bin/sh
sudo -u www-data python ../../../web2py.py -S vidjil -M -R applications/vidjil/scripts//links.py
Markdown is supported
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