This repository was archived by the owner on Aug 10, 2022. It is now read-only.
Repository navigation
Initial data loading
nyoungb2 edited this page Sep 24, 2013
·
13 revisions
** making the sqlite tables & loading loci table **
- [making the tables](#### making the database tables)
- [load the loci table](#### loading the loci table)
- [adding scaffold count](#### adding number of scaffolds to the loci table)
$ CLdb_makeDB.pl
The 'loci' table has all of the basic info on each CRISPR locus (for formatting, see XXX).
$ CLdb_loadLoci.pl -d CLdb.sqlite < loci.txt
$ CLdb_addScaffoldCount.pl -d CLdb.sqlite
$ CLdb_loadArrays.pl -d CLdb.sqlite
$ CLdb_groupArrayElements.pl -d CLdb.sqlite -s -r
$ CLdb_hclusterArrays.pl -d CLdb.sqlite -s -r
$ CLdb_loadDRConsensus.pl -d CLdb.sqlite
$ CLdb_spacerPairwiseBlast.pl -d CLdb.sqlite
- used for plotting & checking for paritial overlap of spacers
$ CLdb_getGenesInLoci.pl -d CLdb.sqlite > gene_table.txt
- manually currate the 'gene_alias' column values
$ CLdb_loadGenes.pl -d CLdb.sqlite < gene_table.txt
CLdb_getLeaderRegions.pl -d CLdb.sqlite > possible_leaders.fna
CLdb_getLeaderRegions.pl -d CLdb.sqlite -q "AND subtype='I-B'" > leaders_IB.fna
mafft --adjustdirection leaders_IB.fna > leaders_IB_aln.fna
-
if 2 leaders written for a locus, remove the 1 that does not align
-
determine where leader conservation ends
-
for example: conservation ends 50bp from end of alignment
-
this will be trimmed off of the leader region when added to the database
-
CLdb_loadLeaders.pl -d CLdb.sqlite -t 50 test_leader_Ib.fna test_leader_Ib_aln.fna
-
'-t 50' = trim off the last 50bp of unconserved sequence in the alignment
- 50bp trimmed from side farthest from the array
-
both the aligned and unaligned sequenced are needed because mafft can alter orientation during alignment (--adjustdirect)
CLdb_groupLeaders.pl -da CLdb.sqlite