Update by aswathyseb on Sat Nov 11 17:40:48 EST 2017 from MacBook-Air.local
@@ -4,7 +4,7 @@ import sys, os, glob
def make_igv(url, files_dir):
- # Get the genome
+ # Get the genome file.
fasta_idx = os.path.join(files_dir, f'*.fa.fai')
genome = glob.glob(fasta_idx)[0].replace(".fai","")
genome = os.path.basename(genome)
@@ -30,12 +30,4 @@ def make_igv(url, files_dir):
if __name__ == "__main__":
url = sys.argv[1]
workdir = sys.argv[2]
- #
- # url="http://localhost:8000/media/jobs/job-ad6d40b0/"
- #genome = "/Users/aswathyseb/work/test/igv/viral_genomes.fa"
- #workdir = "/Users/aswathyseb/work/test/igv"
- #print(os.path.basename(files_dir))
- #1/0
-
- #make_igv(url, genome, workdir)
make_igv(url, workdir)
\ No newline at end of file
