src/hg/utils/automation/makeGenomeDb.pl 1.23
1.23 2009/08/06 18:22:31 hiram
Adding chrM entry to the AGP file
Index: src/hg/utils/automation/makeGenomeDb.pl
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/utils/automation/makeGenomeDb.pl,v
retrieving revision 1.22
retrieving revision 1.23
diff -b -B -U 4 -r1.22 -r1.23
--- src/hg/utils/automation/makeGenomeDb.pl 8 Jun 2009 18:38:57 -0000 1.22
+++ src/hg/utils/automation/makeGenomeDb.pl 6 Aug 2009 18:22:31 -0000 1.23
@@ -721,8 +721,14 @@
values($bin,"chrM",0,'\$mSize',1,"F","$mitoGold",0,'\$mSize',"+");'
_EOF_
);
}
+ # may as well finally add the chrM entry to the agp file
+ $bossScript->add(<<_EOF_
+set lastId = `tail -1 $topDir/$db.agp | awk '{print \$4+1}'`
+/bin/echo -e "chrM\t1\t\$mSize\t\$lastId\tF\t$mitoGold\t1\t\$mSize\t+" >> $topDir/$db.agp
+_EOF_
+ );
}
$bossScript->add(<<_EOF_