Skip to content

Commit

Permalink
Version 1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
jernst98 committed Dec 29, 2022
1 parent e404ef8 commit 30e4fbe
Show file tree
Hide file tree
Showing 25 changed files with 651 additions and 65 deletions.
Binary file added ANCHORFILES/hs1/RefSeqTES.hs1.txt.gz
Binary file not shown.
Binary file added ANCHORFILES/hs1/RefSeqTSS.hs1.txt.gz
Binary file not shown.
Binary file added ANCHORFILES/mm39/RefSeqTES.mm39.txt.gz
Binary file not shown.
Binary file added ANCHORFILES/mm39/RefSeqTSS.mm39.txt.gz
Binary file not shown.
25 changes: 25 additions & 0 deletions CHROMSIZES/hs1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
chr1 248387328
chr2 242696752
chr3 201105948
chr4 193574945
chr5 182045439
chr6 172126628
chr7 160567428
chrX 154259566
chr9 150617247
chr8 146259331
chr11 135127769
chr10 134758134
chr12 133324548
chr13 113566686
chr14 101161492
chr15 99753195
chr16 96330374
chr17 84276897
chr18 80542538
chr20 66210255
chrY 62460029
chr19 61707364
chr22 51324926
chr21 45090682
chrM 16569
61 changes: 61 additions & 0 deletions CHROMSIZES/mm39.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
chr1 195154279
chr2 181755017
chrX 169476592
chr3 159745316
chr4 156860686
chr5 151758149
chr6 149588044
chr7 144995196
chr10 130530862
chr8 130127694
chr14 125139656
chr9 124359700
chr11 121973369
chr13 120883175
chr12 120092757
chr15 104073951
chr16 98008968
chr17 95294699
chrY 91455967
chr18 90720763
chr19 61420004
chr5_JH584299v1_random 953012
chrX_GL456233v2_random 559103
chrY_JH584301v1_random 259875
chr1_GL456211v1_random 241735
chr1_GL456221v1_random 206961
chr5_JH584297v1_random 205776
chr5_JH584296v1_random 199368
chr5_GL456354v1_random 195993
chr5_JH584298v1_random 184189
chrY_JH584300v1_random 182347
chr7_GL456219v1_random 175968
chr1_GL456210v1_random 169725
chrY_JH584303v1_random 158099
chrY_JH584302v1_random 155838
chr1_GL456212v1_random 153618
chrUn_JH584304v1 114452
chrUn_GL456379v1 72385
chrUn_GL456366v1 47073
chrUn_GL456367v1 42057
chr1_GL456239v1_random 40056
chrUn_GL456383v1 38659
chrUn_GL456385v1 35240
chrUn_GL456360v1 31704
chrUn_GL456378v1 31602
chrUn_MU069435v1 31129
chrUn_GL456389v1 28772
chrUn_GL456372v1 28664
chrUn_GL456370v1 26764
chrUn_GL456381v1 25871
chrUn_GL456387v1 24685
chrUn_GL456390v1 24668
chrUn_GL456394v1 24323
chrUn_GL456392v1 23629
chrUn_GL456382v1 23158
chrUn_GL456359v1 22974
chrUn_GL456396v1 21240
chrUn_GL456368v1 20208
chrM 16299
chr1_MU069434v1_random 8412
chr4_JH584295v1_random 1976
Binary file added COORDS/hs1/CpGIsland.hs1.bed.gz
Binary file not shown.
Binary file added COORDS/hs1/RefSeqExon.hs1.bed.gz
Binary file not shown.
Binary file added COORDS/hs1/RefSeqGene.hs1.bed.gz
Binary file not shown.
Binary file added COORDS/hs1/RefSeqTES.hs1.bed.gz
Binary file not shown.
Binary file added COORDS/hs1/RefSeqTSS.hs1.bed.gz
Binary file not shown.
Binary file added COORDS/hs1/RefSeqTSS2kb.hs1.bed.gz
Binary file not shown.
Binary file added COORDS/mm39/CpGIsland.mm39.bed.gz
Binary file not shown.
Binary file added COORDS/mm39/RefSeqExon.mm39.bed.gz
Binary file not shown.
Binary file added COORDS/mm39/RefSeqGene.mm39.bed.gz
Binary file not shown.
Binary file added COORDS/mm39/RefSeqTES.mm39.bed.gz
Binary file not shown.
Binary file added COORDS/mm39/RefSeqTSS.mm39.bed.gz
Binary file not shown.
Binary file added COORDS/mm39/RefSeqTSS2kb.mm39.bed.gz
Binary file not shown.
Binary file modified ChromHMM.jar
Binary file not shown.
Binary file modified ChromHMM.zip
Binary file not shown.
Binary file modified ChromHMM_manual.pdf
Binary file not shown.
66 changes: 50 additions & 16 deletions edu/mit/compbio/ChromHMM/ChromHMM.java
Original file line number Diff line number Diff line change
Expand Up @@ -12848,7 +12848,7 @@ public static void main(String[] args) throws IOException

if (szcommand.equalsIgnoreCase("Version"))
{
System.out.println("This is Version 1.23 of ChromHMM (c) Copyright 2008-2012 Massachusetts Institute of Technology");
System.out.println("This is Version 1.24 of ChromHMM (c) Copyright 2008-2012 Massachusetts Institute of Technology");
}
else if ((szcommand.equals("BinarizeBam"))||(szcommand.equalsIgnoreCase("BinarizeBed")))
{
Expand Down Expand Up @@ -14012,6 +14012,7 @@ else if (szcommand.equalsIgnoreCase("OverlapEnrichment"))
String szoutfile;
boolean buniformheat = ChromHMM.DEFAULT_OVERLAPENRICHMENT_BUNIFORMHEAT; //boolean ChromHMM.DEFAULT_OVERLAPENRICHMENT_BUNIFORMHEAT = false;
boolean bstringlabels = false;
boolean bbrowser = false;


String sztitle = "Fold Enrichments";
Expand Down Expand Up @@ -14061,6 +14062,10 @@ else if (args[nargindex].equals("-binres"))
{
bbaseres = false;
}
else if (args[nargindex].equals("-browser"))
{
bbrowser = true;
}
else if (args[nargindex].equals("-f"))
{
szinputcoordlist = args[++nargindex];
Expand Down Expand Up @@ -14140,12 +14145,12 @@ else if (args[nargindex].equals("-lowmem"))
if (blowmem)
{
StateAnalysis.enrichmentMaxLowMem(szinput, szinputcoorddir,szinputcoordlist,noffsetleft,noffsetright,nbinsize,
bcenter, bunique, busesignal,szcolfields,bbaseres, szoutfile,bcolscaleheat,theColor,sztitle, szlabelmapping, bprintimage,bstringlabels);
bcenter, bunique, busesignal,szcolfields,bbaseres, szoutfile,bcolscaleheat,theColor,sztitle, szlabelmapping, bprintimage,bstringlabels,bbrowser);
}
else
{
StateAnalysis.enrichmentMax(szinput, szinputcoorddir,szinputcoordlist,noffsetleft,noffsetright,nbinsize,
bcenter, bunique, busesignal,szcolfields,bbaseres, szoutfile,bcolscaleheat,theColor,sztitle, szlabelmapping,bprintimage,bstringlabels);
bcenter, bunique, busesignal,szcolfields,bbaseres, szoutfile,bcolscaleheat,theColor,sztitle, szlabelmapping,bprintimage,bstringlabels,bbrowser);
}
}
else
Expand All @@ -14161,7 +14166,7 @@ else if (args[nargindex].equals("-lowmem"))

if (!bok)
{
System.out.println("usage OverlapEnrichment [-a cell][-b binsize][-binres][-color r,g,b][-center][-colfields chromosome,start,end[,signal]]"+
System.out.println("usage OverlapEnrichment [-a cell][-b binsize][-binres][-browser][-color r,g,b][-center][-colfields chromosome,start,end[,signal]]"+
"[-e offsetend][-f coordlistfile][-labels][-lowmem][-m labelmappingfile]"+
"[-multicount][-noimage][-posterior][-s offsetstart][-signal][-t title][-uniformscale]"+
" inputsegment inputcoorddir outfileprefix");
Expand All @@ -14179,6 +14184,7 @@ else if ((szcommand.equalsIgnoreCase("NeighborhoodEnrichment"))||(szcommand.equa
boolean busestrand =ChromHMM.DEFAULT_NEIGHBORHOOD_BUSESTRAND;
boolean busesignal = ChromHMM.DEFAULT_NEIGHBORHOOD_BUSESIGNAL;
boolean bstringlabels = false;
boolean bbrowser = false;
String szcolfields = null;
int noffsetanchor = ChromHMM.DEFAULT_NEIGHBORHOOD_NOFFSETANCHOR;
String szoutfile;
Expand Down Expand Up @@ -14210,6 +14216,10 @@ else if (args[nargindex].equals("-b"))
{
nbinsize = Integer.parseInt(args[++nargindex]);
}
else if (args[nargindex].equals("-browser"))
{
bbrowser = true;
}
else if (args[nargindex].equals("-color"))
{
String szcolor = args[++nargindex];
Expand Down Expand Up @@ -14308,19 +14318,22 @@ else if (args[nargindex].equals("-t"))
{
//this is an undocumented feature to compute signal enrichment for marks around a position
StateAnalysis.neighborhoodSignal(szinput,szcell,szanchorpositions,nbinsize,numleft,numright,
nspacing,busestrand,busesignal,szcolfields,noffsetanchor,szoutfile,theColor,sztitle,szlabelmapping, bprintimage);
nspacing,busestrand,busesignal,szcolfields,noffsetanchor,szoutfile,theColor,
sztitle,szlabelmapping, bprintimage);
}
else if (bmax)
{
if (blowmem)
{
StateAnalysis.neighborhoodMaxLowMem(szinput,szanchorpositions,nbinsize,numleft,numright,
nspacing,busestrand,busesignal,szcolfields,noffsetanchor,szoutfile,theColor,sztitle,szlabelmapping, bprintimage, bstringlabels);
nspacing,busestrand,busesignal,szcolfields,noffsetanchor,szoutfile,theColor,
sztitle,szlabelmapping, bprintimage, bstringlabels, bbrowser);
}
else
{
StateAnalysis.neighborhoodMax(szinput,szanchorpositions,nbinsize,numleft,numright,
nspacing,busestrand,busesignal,szcolfields,noffsetanchor,szoutfile,theColor,sztitle,szlabelmapping, bprintimage, bstringlabels);
nspacing,busestrand,busesignal,szcolfields,noffsetanchor,szoutfile,theColor,sztitle,szlabelmapping,
bprintimage, bstringlabels,bbrowser);
}
}
else
Expand All @@ -14336,7 +14349,7 @@ else if (bmax)

if (!bok)
{
System.out.println("usage NeighborhoodEnrichment [-a cell][-b binsize][-color r,g,b][-colfields chromosome,position[,optionalcol1|,optionalcol1,optionalcol2]"+
System.out.println("usage NeighborhoodEnrichment [-a cell][-b binsize][-browser][-color r,g,b][-colfields chromosome,position[,optionalcol1|,optionalcol1,optionalcol2]"+
"[-l numleftintervals][-labels][-lowmem][-m labelmappingfile][-noimage][-nostrand]"+
"[-o anchoroffset][-posterior][-r numrightintervals]"+
"[-s spacing][-signal][-t title] inputsegment anchorpositions outfileprefix");
Expand Down Expand Up @@ -14852,7 +14865,7 @@ else if (args[nargindex].equals("-z"))
ChromHMM.DEFAULT_OVERLAPENRICHMENT_BCENTER, !ChromHMM.DEFAULT_OVERLAPENRICHMENT_BCOUNTMULTI,
ChromHMM.DEFAULT_OVERLAPENRICHMENT_BUSESIGNAL,null,//szcolfields,
ChromHMM.DEFAULT_OVERLAPENRICHMENT_BBASERES, szoutputdir+"/"+szprefix+ChromHMM.SZOVERLAPEXTENSION,
!ChromHMM.DEFAULT_OVERLAPENRICHMENT_BUNIFORMHEAT,theColor,"Fold Enrichment "+szprefix,null,bprintimage, false);
!ChromHMM.DEFAULT_OVERLAPENRICHMENT_BUNIFORMHEAT,theColor,"Fold Enrichment "+szprefix,null,bprintimage, false,false);
}
else
{
Expand All @@ -14864,7 +14877,7 @@ else if (args[nargindex].equals("-z"))
ChromHMM.DEFAULT_OVERLAPENRICHMENT_BCENTER, !ChromHMM.DEFAULT_OVERLAPENRICHMENT_BCOUNTMULTI,
ChromHMM.DEFAULT_OVERLAPENRICHMENT_BUSESIGNAL,null,//szcolfields,
ChromHMM.DEFAULT_OVERLAPENRICHMENT_BBASERES, szoutputdir+"/"+szprefix+ChromHMM.SZOVERLAPEXTENSION,
!ChromHMM.DEFAULT_OVERLAPENRICHMENT_BUNIFORMHEAT,theColor,"Fold Enrichment "+szprefix,null,bprintimage, false);
!ChromHMM.DEFAULT_OVERLAPENRICHMENT_BUNIFORMHEAT,theColor,"Fold Enrichment "+szprefix,null,bprintimage, false,false);
}
String szoverlapoutfile = szprefix+ChromHMM.SZOVERLAPEXTENSION+".txt";
if (bprintimage)
Expand Down Expand Up @@ -14913,7 +14926,7 @@ else if (args[nargindex].equals("-z"))
ChromHMM.DEFAULT_NEIGHBORHOOD_NUMRIGHT, nbinsize,//nspacing
ChromHMM.DEFAULT_NEIGHBORHOOD_BUSESTRAND,ChromHMM.DEFAULT_NEIGHBORHOOD_BUSESIGNAL,null,//szcolfields,
ChromHMM.DEFAULT_NEIGHBORHOOD_NOFFSETANCHOR,szoutputdir+"/"+szprefix+"_"+szanchorname+"_neighborhood",
theColor,"Fold Enrichment "+szprefix+" "+szanchorname,null,bprintimage,false);
theColor,"Fold Enrichment "+szprefix+" "+szanchorname,null,bprintimage,false,false);
}
else
{
Expand All @@ -14922,7 +14935,7 @@ else if (args[nargindex].equals("-z"))
ChromHMM.DEFAULT_NEIGHBORHOOD_NUMRIGHT, nbinsize,//nspacing
ChromHMM.DEFAULT_NEIGHBORHOOD_BUSESTRAND,ChromHMM.DEFAULT_NEIGHBORHOOD_BUSESIGNAL,null,//szcolfields,
ChromHMM.DEFAULT_NEIGHBORHOOD_NOFFSETANCHOR,szoutputdir+"/"+szprefix+"_"+szanchorname+"_neighborhood",
theColor,"Fold Enrichment "+szprefix+" "+szanchorname,null,bprintimage,false);
theColor,"Fold Enrichment "+szprefix+" "+szanchorname,null,bprintimage,false,false);
}
String szneighborhoodoutfileprefix = szprefix+"_"+szanchorname+ChromHMM.SZNEIGHBORHOODEXTENSION;

Expand Down Expand Up @@ -15141,6 +15154,9 @@ else if (szcommand.equalsIgnoreCase("ConvertGeneTable"))
int nargindex = 1;
int npromoterwindow = 2000;
boolean bgzip = false;
boolean bnobin = false;
boolean bnoheader = false;
boolean bbiggenepred = false;
String szcoorddir;
String szanchordir;

Expand All @@ -15152,14 +15168,26 @@ else if (szcommand.equalsIgnoreCase("ConvertGeneTable"))
// {
// szfullprefixpathchromsizedir = args[++nargindex];
// }
if (args[nargindex].equals("-gzip"))
if (args[nargindex].equals("-biggenepred"))
{
bbiggenepred = true;
}
else if (args[nargindex].equals("-gzip"))
{
bgzip = true;
}
else if (args[nargindex].equals("-l"))
else if (args[nargindex].equals("-l"))
{
szchromlengthfile = args[++nargindex];
}
else if (args[nargindex].equals("-nobin"))
{
bnobin = true;
}
else if (args[nargindex].equals("-noheader"))
{
bnoheader = true;
}
else if (args[nargindex].equals("-u"))
{
szfullprefixpathcoorddir = args[++nargindex];
Expand All @@ -15184,6 +15212,11 @@ else if (args[nargindex].equals("-w"))
bok = false;
}

if ((bbiggenepred)&&(bnobin))
{
bok = false;
}

if (bok && (nargindex==args.length-3))
{
String sztable = args[nargindex++];
Expand Down Expand Up @@ -15230,7 +15263,8 @@ else if (args[nargindex].equals("-w"))
}


ConvertGeneTable.convertGeneTableToAnnotations(sztable, szprefix, szassembly, szcoorddir, szanchordir, szchromlengthfile, npromoterwindow, bgzip);
ConvertGeneTable.convertGeneTableToAnnotations(sztable, szprefix, szassembly, szcoorddir, szanchordir, szchromlengthfile,
npromoterwindow, bgzip, bnobin, bnoheader,bbiggenepred);
}
else
{
Expand All @@ -15239,7 +15273,7 @@ else if (args[nargindex].equals("-w"))

if (!bok)
{
System.out.println("usage: ConvertGeneTable [-gzip][-l chromosomelengthfile][-u coorddir][-v anchordir][-w promoterwindow] inputgenetable prefix assembly");
System.out.println("usage: ConvertGeneTable [-biggenepred|-nobin][-gzip][-l chromosomelengthfile][-noheader][-u coorddir][-v anchordir][-w promoterwindow] inputgenetable prefix assembly");
}

}
Expand Down
Loading

0 comments on commit 30e4fbe

Please sign in to comment.