In [62]:
# directory where you want the spacer blasting to be done
## CHANGE THIS!
workDir = "/home/nyoungb2/t/CLdb_Ecoli/loci_plots/"
In [63]:
import os
from IPython.display import Image
In [64]:
if not os.path.isdir(workDir):
os.makedirs(workDir)
In [65]:
# checking that CLdb is in $PATH & ~/.CLdb config file is set up
!CLdb --config-params
In [66]:
!CLdb -- plotLoci -h
In [67]:
!CLdb -- plotLoci --list
In [68]:
# making table
!cd $workDir; \
CLdb -- plotLoci -- make_dna_segs > dna_segs.txt
# checking output
!cd $workDir; \
echo; \
head -n 5 dna_segs.txt
In [84]:
# making table
!cd $workDir; \
CLdb -- plotLoci -- format_dna_segs_colors < dna_segs.txt > dna_segs_col.txt
# checking output
!cd $workDir; \
echo; \
head -n 5 dna_segs_col.txt
In [69]:
# making table
!cd $workDir; \
CLdb -- plotLoci -- make_xlims > xlims.txt
# checking output
!cd $workDir; \
echo; \
head -n 5 xlims.txt
In [85]:
# making table
!cd $workDir; \
CLdb -- plotLoci -- make_comparison < dna_segs_col.txt
In [86]:
!cd $workDir; \
CLdb -- plotLoci -- run \
-d dna_segs_col.txt \
-x xlims.txt \
-f png \
-o all_loci
In [87]:
pngFile = os.path.join(workDir, 'all_loci.png')
Image(filename=pngFile)
Out[87]:
In [ ]: